summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2026-04-13 13:07:09 -0700
committerMark Rowe <mark@vector35.com>2026-04-22 15:20:52 -0700
commitaa8dab21d44b4e0dd863f0867c7e735cfb878a4d (patch)
tree256ca89364716afed1735521106130571b0fdb9b /binaryninjacore.h
parent84d66dc7e6244e6ef78ebb3a2aa24b57a6ed4345 (diff)
Always show the triage view when opening a shared cache or kernel cache
BinaryViewType gains a HasNoInitialContent function that views can use to suppress layout restoration when opening a file. The layout will still be restored when the view is loaded from a saved database. Fixes https://github.com/Vector35/binaryninja-api/issues/8083.
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 283524c8..446391e1 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1888,6 +1888,7 @@ extern "C"
bool (*isDeprecated)(void* ctxt);
bool (*isForceLoadable)(void* ctxt);
BNSettings* (*getLoadSettingsForData)(void* ctxt, BNBinaryView* data);
+ bool (*hasNoInitialContent)(void* ctxt);
} BNCustomBinaryViewType;
typedef struct BNTransformParameterInfo
@@ -4801,6 +4802,7 @@ extern "C"
BINARYNINJACOREAPI BNBinaryView* BNParseBinaryViewOfType(BNBinaryViewType* type, BNBinaryView* data);
BINARYNINJACOREAPI bool BNIsBinaryViewTypeValidForData(BNBinaryViewType* type, BNBinaryView* data);
BINARYNINJACOREAPI bool BNIsBinaryViewTypeForceLoadable(BNBinaryViewType* type);
+ BINARYNINJACOREAPI bool BNBinaryViewTypeHasNoInitialContent(BNBinaryViewType* type);
BINARYNINJACOREAPI BNSettings* BNGetBinaryViewDefaultLoadSettingsForData(
BNBinaryViewType* type, BNBinaryView* data);
BINARYNINJACOREAPI BNSettings* BNGetBinaryViewLoadSettingsForData(BNBinaryViewType* type, BNBinaryView* data);