summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2024-03-14 12:43:05 -0400
committerBrian Potchik <brian@vector35.com>2024-03-14 12:43:05 -0400
commit6e04c943e75ebdfbc6e940d0aa3d88a54b4c264b (patch)
treeb47ffcdaacba453fe39de077f914f4000f732a67 /binaryninjacore.h
parentbf8b662124aeb1cf6e79045b3d4de3fd1cdd89a8 (diff)
Add support for advanced binary search.
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index d5fcdcce..3e26db68 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 55
+#define BN_CURRENT_CORE_ABI_VERSION 56
// 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
@@ -3716,6 +3716,9 @@ extern "C"
bool (*progress)(void* ctxt, size_t current, size_t total), void* matchCtxt,
bool (*matchCallback)(void* matchCtxt, uint64_t addr, BNLinearDisassemblyLine* line));
+ 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 BNAddAutoSegment(
BNBinaryView* view, uint64_t start, uint64_t length, uint64_t dataOffset, uint64_t dataLength, uint32_t flags);
BINARYNINJACOREAPI void BNRemoveAutoSegment(BNBinaryView* view, uint64_t start, uint64_t length);