From d7cb0b3acc0621aa69061d0d1199ac33c664e58f Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 25 May 2017 19:51:45 -0400 Subject: Modify how structures are created in the type system, expose additional structure APIs --- binaryninjaapi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index d27ab5fa..5ea6d909 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1723,7 +1723,7 @@ namespace BinaryNinja public: Structure(); Structure(BNStructure* s); - Structure(BNStructureType type, bool isUnion = false, bool packed = false); + Structure(BNStructureType type, bool packed = false); std::vector GetMembers() const; uint64_t GetWidth() const; @@ -1733,8 +1733,8 @@ namespace BinaryNinja bool IsPacked() const; void SetPacked(bool packed); bool IsUnion() const; - void SetUnion(bool u); - + void SetStructureType(BNStructureType type); + BNStructureType GetStructureType() const; void AddMember(Type* type, const std::string& name); void AddMemberAtOffset(Type* type, const std::string& name, uint64_t offset); void RemoveMember(size_t idx); -- cgit v1.3.1