diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-05-20 20:42:12 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-05-25 14:22:45 -0400 |
| commit | 0569365d79aaeb74aa134f52db13aa54f9619c56 (patch) | |
| tree | aaf8f0d9913c08336b761e1130418368bd930ee4 /binaryninjacore.h | |
| parent | f5715d76bb50fbaaaad450aecf9c192e8450e0d9 (diff) | |
Add BinaryView::ParseTypesFromSource for clang+typelibs
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 4fb254e7..263f885e 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -21,6 +21,7 @@ #ifndef __BINARYNINJACORE_H__ #define __BINARYNINJACORE_H__ +#ifndef BN_TYPE_PARSER #ifdef __cplusplus #include <cstdint> #include <cstddef> @@ -30,11 +31,12 @@ #include <stddef.h> #include <stdlib.h> #endif +#endif // 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 20 +#define BN_CURRENT_CORE_ABI_VERSION 21 // 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 @@ -4169,8 +4171,9 @@ extern "C" BINARYNINJACOREAPI bool BNParseTypeString(BNBinaryView* view, const char* text, BNQualifiedNameAndType* result, char** errors, BNQualifiedNameList* typesAllowRedefinition); - BINARYNINJACOREAPI bool BNParseTypesString(BNBinaryView* view, const char* text, BNTypeParserResult* result, - char** errors, BNQualifiedNameList* typesAllowRedefinition); + BINARYNINJACOREAPI bool BNParseTypesString(BNBinaryView* view, const char* text, const char* const* options, size_t optionCount, + const char* const* includeDirs, size_t includeDirCount, BNTypeParserResult* result, char** errors, + BNQualifiedNameList* typesAllowRedefinition); BINARYNINJACOREAPI void BNFreeQualifiedNameAndType(BNQualifiedNameAndType* obj); BINARYNINJACOREAPI void BNFreeQualifiedNameAndTypeArray(BNQualifiedNameAndType* obj, size_t count); BINARYNINJACOREAPI char* BNEscapeTypeName(const char* name, BNTokenEscapingType escaping); |
