diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-05-25 19:51:45 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-05-25 19:51:52 -0400 |
| commit | d7cb0b3acc0621aa69061d0d1199ac33c664e58f (patch) | |
| tree | 9a0cda4bd39ca7ba7d88821ba7d2ee17db47c41d /binaryninjaapi.h | |
| parent | 18c3e2e49ceef496d272f6bcbf81b0d768f29acb (diff) | |
Modify how structures are created in the type system, expose additional structure APIs
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<StructureMember> 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); |
