summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-05-25 19:51:45 -0400
committerPeter LaFosse <peter@vector35.com>2017-05-25 19:51:52 -0400
commitd7cb0b3acc0621aa69061d0d1199ac33c664e58f (patch)
tree9a0cda4bd39ca7ba7d88821ba7d2ee17db47c41d /binaryninjaapi.h
parent18c3e2e49ceef496d272f6bcbf81b0d768f29acb (diff)
Modify how structures are created in the type system, expose additional structure APIs
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h6
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);