summaryrefslogtreecommitdiff
path: root/binaryninjacore.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 /binaryninjacore.h
parent18c3e2e49ceef496d272f6bcbf81b0d768f29acb (diff)
Modify how structures are created in the type system, expose additional structure APIs
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 23014782..8880747c 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -2496,7 +2496,7 @@ extern "C"
BINARYNINJACOREAPI BNNamedTypeReference* BNNewNamedTypeReference(BNNamedTypeReference* nt);
BINARYNINJACOREAPI BNStructure* BNCreateStructure(void);
- BINARYNINJACOREAPI BNStructure* BNCreateStructureWithOptions(BNStructureType type, bool isUnion, bool packed);
+ BINARYNINJACOREAPI BNStructure* BNCreateStructureWithOptions(BNStructureType type, bool packed);
BINARYNINJACOREAPI BNStructure* BNNewStructureReference(BNStructure* s);
BINARYNINJACOREAPI void BNFreeStructure(BNStructure* s);
@@ -2509,7 +2509,8 @@ extern "C"
BINARYNINJACOREAPI bool BNIsStructurePacked(BNStructure* s);
BINARYNINJACOREAPI void BNSetStructurePacked(BNStructure* s, bool packed);
BINARYNINJACOREAPI bool BNIsStructureUnion(BNStructure* s);
- BINARYNINJACOREAPI void BNSetStructureUnion(BNStructure* s, bool u);
+ BINARYNINJACOREAPI void BNSetStructureType(BNStructure* s, BNStructureType type);
+ BINARYNINJACOREAPI BNStructureType BNGetStructureType(BNStructure* s);
BINARYNINJACOREAPI void BNAddStructureMember(BNStructure* s, BNType* type, const char* name);
BINARYNINJACOREAPI void BNAddStructureMemberAtOffset(BNStructure* s, BNType* type, const char* name, uint64_t offset);