summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2024-05-27 15:29:48 -0400
committerBrian Potchik <brian@vector35.com>2024-05-27 15:29:48 -0400
commita348dab8b14b8ddd36c400ae39a7a48b6a28e829 (patch)
treec5aa3b6274b57660d263de44ac1eccc9bfa8739d /binaryninjacore.h
parent309d606f1c51168c0ef30ccf7850d483429fa35b (diff)
Update load APIs to take a JSON string for options.
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index af05cb00..35e69541 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 64
+#define BN_CURRENT_CORE_ABI_VERSION 65
// 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 64
+#define BN_MINIMUM_CORE_ABI_VERSION 65
#ifdef __GNUC__
#ifdef BINARYNINJACORE_LIBRARY
@@ -6119,12 +6119,9 @@ extern "C"
BINARYNINJACOREAPI bool BNCheckForStringAnnotationType(BNBinaryView* view, uint64_t addr, char** value, BNStringType* strType,
bool allowShortStrings, bool allowLargeStrings, size_t childWidth);
- BINARYNINJACOREAPI BNBinaryView* BNLoadFilename(const char* const filename, const bool updateAnalysis,
- bool (*progress)(size_t, size_t), const BNMetadata* const options);
- BINARYNINJACOREAPI BNBinaryView* BNLoadProjectFile(BNProjectFile* projectFile, const bool updateAnalysis,
- bool (*progress)(size_t, size_t), const BNMetadata* const options);
- BINARYNINJACOREAPI BNBinaryView* BNLoadBinaryView(BNBinaryView* view, const bool updateAnalysis,
- bool (*progress)(size_t, size_t), const BNMetadata* const options, const bool isDatabase);
+ BINARYNINJACOREAPI BNBinaryView* BNLoadFilename(const char* const filename, const bool updateAnalysis, const char* options, bool (*progress)(size_t, size_t));
+ BINARYNINJACOREAPI BNBinaryView* BNLoadProjectFile(BNProjectFile* projectFile, const bool updateAnalysis, const char* options, bool (*progress)(size_t, size_t));
+ BINARYNINJACOREAPI BNBinaryView* BNLoadBinaryView(BNBinaryView* view, const bool updateAnalysis, const char* options, bool (*progress)(size_t, size_t));
BINARYNINJACOREAPI BNExternalLibrary* BNBinaryViewAddExternalLibrary(BNBinaryView* view, const char* name, BNProjectFile* backingFile, bool isAuto);
BINARYNINJACOREAPI void BNBinaryViewRemoveExternalLibrary(BNBinaryView* view, const char* name);
@@ -6902,6 +6899,7 @@ extern "C"
BINARYNINJACOREAPI uint8_t* BNMetadataGetRaw(BNMetadata* data, size_t* size);
BINARYNINJACOREAPI BNMetadata** BNMetadataGetArray(BNMetadata* data, size_t* size);
BINARYNINJACOREAPI BNMetadataValueStore* BNMetadataGetValueStore(BNMetadata* data);
+ BINARYNINJACOREAPI char* BNMetadataGetJsonString(BNMetadata* data);
// Query type of Metadata
BINARYNINJACOREAPI BNMetadataType BNMetadataGetType(BNMetadata* data);