summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2024-11-07 14:34:07 -0500
committerBrian Potchik <brian@vector35.com>2024-11-07 14:34:07 -0500
commit7c946370e0245baf306568d8bb361f40e6a6f668 (patch)
tree4d2918af18e96b4747e799236815bb95b85d6dd7 /binaryninjacore.h
parent9105d57a4942f78cd64371bc08553e63cd62e8ec (diff)
Add APIs to support bulk segment addition operations.
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 7836f254..ff1f3241 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -37,7 +37,7 @@
// Current ABI version for linking to the core. This is incremented any time
// there are changes to the API that affect linking, including new functions,
// new types, or modifications to existing functions or types.
-#define BN_CURRENT_CORE_ABI_VERSION 82
+#define BN_CURRENT_CORE_ABI_VERSION 83
// Minimum ABI version that is supported for loading of plugins. Plugins that
// are linked to an ABI version less than this will not be able to load and
@@ -4146,10 +4146,14 @@ extern "C"
BINARYNINJACOREAPI bool BNSearch(BNBinaryView* view, const char* query, void* context, bool (*callback)(void*, uint64_t, BNDataBuffer*));
BINARYNINJACOREAPI bool BNPerformSearch(const char* query, const uint8_t* buffer, size_t size, bool(*callback)(void*, size_t, size_t), void* context);
+ BINARYNINJACOREAPI void BNBeginBulkAddSegments(BNBinaryView* view);
+ BINARYNINJACOREAPI void BNEndBulkAddSegments(BNBinaryView* view);
+ BINARYNINJACOREAPI void BNCancelBulkAddSegments(BNBinaryView* view);
BINARYNINJACOREAPI void BNAddAutoSegment(BNBinaryView* view, uint64_t start, uint64_t length, uint64_t dataOffset, uint64_t dataLength, uint32_t flags);
BINARYNINJACOREAPI void BNAddAutoSegments(BNBinaryView* view, const BNSegmentInfo* segmentInfo, size_t count);
BINARYNINJACOREAPI void BNRemoveAutoSegment(BNBinaryView* view, uint64_t start, uint64_t length);
BINARYNINJACOREAPI void BNAddUserSegment(BNBinaryView* view, uint64_t start, uint64_t length, uint64_t dataOffset, uint64_t dataLength, uint32_t flags);
+ BINARYNINJACOREAPI void BNAddUserSegments(BNBinaryView* view, const BNSegmentInfo* segmentInfo, size_t count);
BINARYNINJACOREAPI void BNRemoveUserSegment(BNBinaryView* view, uint64_t start, uint64_t length);
BINARYNINJACOREAPI BNSegment** BNGetSegments(BNBinaryView* view, size_t* count);
BINARYNINJACOREAPI void BNFreeSegmentList(BNSegment** segments, size_t count);