diff options
| author | Brian Potchik <brian@vector35.com> | 2024-05-15 14:39:45 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2024-05-15 14:39:45 -0400 |
| commit | 140f7c442883f815f5cfdddd673dca03cc87004f (patch) | |
| tree | bc740d3cc5894d29112bf78c52701c566d18419f /binaryninjacore.h | |
| parent | 50ce73aa576d63655919449fa111825b644c707f (diff) | |
Initial MemoryMap implementation.
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index f6900c43..cdbd3a49 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 62 +#define BN_CURRENT_CORE_ABI_VERSION 63 // 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 @@ -3714,6 +3714,17 @@ extern "C" BINARYNINJACOREAPI void BNUnregisterViewOfType(BNFileMetadata* file, const char* type, BNBinaryView* view); + // Memory Map + BINARYNINJACOREAPI char* BNGetMemoryMapDescription(BNBinaryView* view); + BINARYNINJACOREAPI bool BNAddBinaryMemoryRegion(BNBinaryView* view, const char* name, uint64_t start, BNBinaryView* data); + BINARYNINJACOREAPI bool BNAddDataMemoryRegion(BNBinaryView* view, const char* name, uint64_t start, BNDataBuffer* data); + BINARYNINJACOREAPI bool BNAddRemoteMemoryRegion(BNBinaryView* view, const char* name, uint64_t start, BNFileAccessor* accessor); + BINARYNINJACOREAPI bool BNRemoveMemoryRegion(BNBinaryView* view, const char* name); + BINARYNINJACOREAPI bool BNIsMemoryRegionEnabled(BNBinaryView* view, const char* name, uint64_t start); + BINARYNINJACOREAPI bool BNSetMemoryRegionEnabled(BNBinaryView* view, const char* name, uint64_t start, bool enable); + BINARYNINJACOREAPI bool BNSetMemoryRegionFill(BNBinaryView* view, const char* name, uint64_t start, uint8_t fill); + BINARYNINJACOREAPI void BNResetMemoryMap(BNBinaryView* view); + // Binary view access BINARYNINJACOREAPI BNBinaryView* BNNewViewReference(BNBinaryView* view); BINARYNINJACOREAPI void BNFreeBinaryView(BNBinaryView* view); |
