From ddd7aa4e7cd5a1aa07a16c3895d1f91ebf49347b Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 24 Mar 2026 09:05:49 -0700 Subject: Add a hook to allow BinaryView subclasses to run code after snapshot data is applied Snapshot data is applied when loading from a database, rebasing the view, etc. --- binaryninjacore.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index ef38cef8..519a9400 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,14 +37,14 @@ // 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 162 +#define BN_CURRENT_CORE_ABI_VERSION 163 // 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 // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 161 +#define BN_MINIMUM_CORE_ABI_VERSION 163 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -1847,6 +1847,7 @@ extern "C" bool (*isRelocatable)(void* ctxt); size_t (*getAddressSize)(void* ctxt); bool (*save)(void* ctxt, BNFileAccessor* accessor); + void (*onAfterSnapshotDataApplied)(void* ctxt); } BNCustomBinaryView; typedef struct BNCustomBinaryViewType -- cgit v1.3.1