diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-20 01:24:51 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-20 01:24:51 -0400 |
| commit | 5fe41897d085a4fe39135fdcc7ec60a24d1799cd (patch) | |
| tree | ccf956741eb73d616ba7ff48a10dd01e7fcdc6e8 /binaryninjacore.h | |
| parent | b2faff7bd9112a878b5fca33048fdbab2fb52045 (diff) | |
Add notifications for data variables
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 18 |
1 files changed, 11 insertions, 7 deletions
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); |
