summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-03-28 17:09:23 -0400
committerGlenn Smith <glenn@vector35.com>2024-04-03 16:04:50 -0400
commit6320364130513117734495793886487928062891 (patch)
treed8a0aeb7a03a26d31abf9e99c1d71bc9b48a583f /binaryninjacore.h
parent6c514eaae5d2fed93738f91c85ca78343ff3c69b (diff)
Switch TypeParser to use TypeContainer for its external type source
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 6e2309dd..0533c5b7 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 57
+#define BN_CURRENT_CORE_ABI_VERSION 58
// 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 57
+#define BN_MINIMUM_CORE_ABI_VERSION 58
#ifdef __GNUC__
#ifdef BINARYNINJACORE_LIBRARY
@@ -2723,14 +2723,14 @@ extern "C"
bool (*getOptionText)(void* ctxt, BNTypeParserOption option, const char* value, char** result);
bool (*preprocessSource)(void* ctxt,
const char* source, const char* fileName, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
const char* const* options, size_t optionCount,
const char* const* includeDirs, size_t includeDirCount,
char** output, BNTypeParserError** errors, size_t* errorCount
);
bool (*parseTypesFromSource)(void* ctxt,
const char* source, const char* fileName, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
const char* const* options, size_t optionCount,
const char* const* includeDirs, size_t includeDirCount,
const char* autoTypeSource, BNTypeParserResult* result,
@@ -2738,7 +2738,7 @@ extern "C"
);
bool (*parseTypeString)(void* ctxt,
const char* source, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
BNQualifiedNameAndType* result,
BNTypeParserError** errors, size_t* errorCount
);
@@ -3140,6 +3140,7 @@ extern "C"
TypeArchiveTypeContainerType,
DebugInfoTypeContainerType,
PlatformTypeContainerType,
+ OtherTypeContainerType
} BNTypeContainerType;
typedef enum BNSyncStatus
@@ -5987,14 +5988,14 @@ extern "C"
const char* value, char** result);
BINARYNINJACOREAPI bool BNTypeParserPreprocessSource(BNTypeParser* parser,
const char* source, const char* fileName, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
const char* const* options, size_t optionCount,
const char* const* includeDirs, size_t includeDirCount,
char** output, BNTypeParserError** errors, size_t* errorCount
);
BINARYNINJACOREAPI bool BNTypeParserParseTypesFromSource(BNTypeParser* parser,
const char* source, const char* fileName, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
const char* const* options, size_t optionCount,
const char* const* includeDirs, size_t includeDirCount,
const char* autoTypeSource, BNTypeParserResult* result,
@@ -6002,7 +6003,7 @@ extern "C"
);
BINARYNINJACOREAPI bool BNTypeParserParseTypeString(BNTypeParser* parser,
const char* source, BNPlatform* platform,
- const BNQualifiedNameTypeAndId* existingTypes, size_t existingTypeCount,
+ BNTypeContainer* existingTypes,
BNQualifiedNameAndType* result,
BNTypeParserError** errors, size_t* errorCount
);