From 5fe41897d085a4fe39135fdcc7ec60a24d1799cd Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Wed, 20 Jul 2016 01:24:51 -0400 Subject: Add notifications for data variables --- binaryninjacore.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 9af53442..d667d12a 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -171,6 +171,7 @@ extern "C" HexDumpInvalidByteToken = 18, HexDumpTextToken = 19, OpcodeToken = 20, + StringToken = 21, // The following are output by the analysis system automatically, these should // not be used directly by the architecture plugins @@ -556,6 +557,13 @@ extern "C" uint64_t value; }; + struct BNDataVariable + { + uint64_t address; + BNType* type; + bool autoDiscovered; + }; + // Callbacks struct BNLogListener { @@ -582,6 +590,9 @@ extern "C" void (*functionAdded)(void* ctxt, BNBinaryView* view, BNFunction* func); void (*functionRemoved)(void* ctxt, BNBinaryView* view, BNFunction* func); void (*functionUpdated)(void* ctxt, BNBinaryView* view, BNFunction* func); + void (*dataVariableAdded)(void* ctxt, BNBinaryView* view, BNDataVariable* var); + void (*dataVariableRemoved)(void* ctxt, BNBinaryView* view, BNDataVariable* var); + void (*dataVariableUpdated)(void* ctxt, BNBinaryView* view, BNDataVariable* var); void (*stringFound)(void* ctxt, BNBinaryView* view, BNStringType type, uint64_t offset, size_t len); void (*stringRemoved)(void* ctxt, BNBinaryView* view, BNStringType type, uint64_t offset, size_t len); }; @@ -930,13 +941,6 @@ extern "C" size_t count, total; }; - struct BNDataVariable - { - uint64_t address; - BNType* type; - bool autoDiscovered; - }; - BINARYNINJACOREAPI char* BNAllocString(const char* contents); BINARYNINJACOREAPI void BNFreeString(char* str); -- cgit v1.3.1