|
37 | 37 | // Current ABI version for linking to the core. This is incremented any time |
38 | 38 | // there are changes to the API that affect linking, including new functions, |
39 | 39 | // new types, or modifications to existing functions or types. |
40 | | -#define BN_CURRENT_CORE_ABI_VERSION 89 |
| 40 | +#define BN_CURRENT_CORE_ABI_VERSION 88 |
41 | 41 |
|
42 | 42 | // Minimum ABI version that is supported for loading of plugins. Plugins that |
43 | 43 | // are linked to an ABI version less than this will not be able to load and |
44 | 44 | // will require rebuilding. The minimum version is increased when there are |
45 | 45 | // incompatible changes that break binary compatibility, such as changes to |
46 | 46 | // existing types or functions. |
47 | | -#define BN_MINIMUM_CORE_ABI_VERSION 89 |
| 47 | +#define BN_MINIMUM_CORE_ABI_VERSION 86 |
48 | 48 |
|
49 | 49 | #ifdef __GNUC__ |
50 | 50 | #ifdef BINARYNINJACORE_LIBRARY |
@@ -302,7 +302,6 @@ extern "C" |
302 | 302 | typedef struct BNDemangler BNDemangler; |
303 | 303 | typedef struct BNFirmwareNinja BNFirmwareNinja; |
304 | 304 | typedef struct BNFirmwareNinjaReferenceNode BNFirmwareNinjaReferenceNode; |
305 | | - typedef struct BNLineFormatter BNLineFormatter; |
306 | 305 |
|
307 | 306 | //! Console log levels |
308 | 307 | typedef enum BNLogLevel |
@@ -728,7 +727,6 @@ extern "C" |
728 | 727 | HighLevelILLinearDisassembly = 65, |
729 | 728 | WaitForIL = 66, |
730 | 729 | IndentHLILBody = 67, |
731 | | - DisableLineFormatting = 68, |
732 | 730 |
|
733 | 731 | // Debugging options |
734 | 732 | ShowFlagUsage = 128, |
@@ -3441,7 +3439,6 @@ extern "C" |
3441 | 3439 | bool (*isValid)(void* ctxt, BNBinaryView* view); |
3442 | 3440 | BNTypePrinter* (*getTypePrinter)(void* ctxt); |
3443 | 3441 | BNTypeParser* (*getTypeParser)(void* ctxt); |
3444 | | - BNLineFormatter* (*getLineFormatter)(void* ctxt); |
3445 | 3442 | BNDisassemblyTextLine* (*getFunctionTypeTokens)( |
3446 | 3443 | void* ctxt, BNFunction* func, BNDisassemblySettings* settings, size_t* count); |
3447 | 3444 | void (*freeLines)(void* ctxt, BNDisassemblyTextLine* lines, size_t count); |
@@ -3541,28 +3538,6 @@ extern "C" |
3541 | 3538 | size_t unique; |
3542 | 3539 | } BNFirmwareNinjaDeviceAccesses; |
3543 | 3540 |
|
3544 | | - typedef struct BNLineFormatterSettings |
3545 | | - { |
3546 | | - BNHighLevelILFunction* highLevelIL; |
3547 | | - size_t desiredLineLength; |
3548 | | - size_t minimumContentLength; |
3549 | | - size_t tabWidth; |
3550 | | - char* languageName; |
3551 | | - char* commentStartString; |
3552 | | - char* commentEndString; |
3553 | | - char* annotationStartString; |
3554 | | - char* annotationEndString; |
3555 | | - } BNLineFormatterSettings; |
3556 | | - |
3557 | | - typedef struct BNCustomLineFormatter |
3558 | | - { |
3559 | | - void* context; |
3560 | | - BNDisassemblyTextLine* (*formatLines)(void* ctxt, BNDisassemblyTextLine* inLines, size_t inCount, |
3561 | | - const BNLineFormatterSettings* settings, size_t* outCount); |
3562 | | - void (*freeLines)(void* ctxt, BNDisassemblyTextLine* lines, size_t count); |
3563 | | - } BNCustomLineFormatter; |
3564 | | - |
3565 | | - |
3566 | 3541 | BINARYNINJACOREAPI char* BNAllocString(const char* contents); |
3567 | 3542 | BINARYNINJACOREAPI char* BNAllocStringWithLength(const char* contents, size_t len); |
3568 | 3543 | BINARYNINJACOREAPI void BNFreeString(char* str); |
@@ -5478,9 +5453,6 @@ extern "C" |
5478 | 5453 |
|
5479 | 5454 | // Disassembly settings |
5480 | 5455 | BINARYNINJACOREAPI BNDisassemblySettings* BNCreateDisassemblySettings(void); |
5481 | | - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultDisassemblySettings(void); |
5482 | | - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultGraphDisassemblySettings(void); |
5483 | | - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultLinearDisassemblySettings(void); |
5484 | 5456 | BINARYNINJACOREAPI BNDisassemblySettings* BNNewDisassemblySettingsReference(BNDisassemblySettings* settings); |
5485 | 5457 | BINARYNINJACOREAPI BNDisassemblySettings* BNDuplicateDisassemblySettings(BNDisassemblySettings* settings); |
5486 | 5458 | BINARYNINJACOREAPI void BNFreeDisassemblySettings(BNDisassemblySettings* settings); |
@@ -6171,19 +6143,15 @@ extern "C" |
6171 | 6143 | BNLanguageRepresentationFunctionType* type, BNBinaryView* view); |
6172 | 6144 | BINARYNINJACOREAPI BNTypePrinter* BNGetLanguageRepresentationFunctionTypePrinter(BNLanguageRepresentationFunctionType* type); |
6173 | 6145 | BINARYNINJACOREAPI BNTypeParser* BNGetLanguageRepresentationFunctionTypeParser(BNLanguageRepresentationFunctionType* type); |
6174 | | - BINARYNINJACOREAPI BNLineFormatter* BNGetLanguageRepresentationFunctionTypeLineFormatter( |
6175 | | - BNLanguageRepresentationFunctionType* type); |
6176 | 6146 | BINARYNINJACOREAPI BNDisassemblyTextLine* BNGetLanguageRepresentationFunctionTypeFunctionTypeTokens( |
6177 | 6147 | BNLanguageRepresentationFunctionType* type, BNFunction* func, BNDisassemblySettings* settings, size_t* count); |
6178 | 6148 |
|
6179 | 6149 | BINARYNINJACOREAPI BNLanguageRepresentationFunction* BNCreateCustomLanguageRepresentationFunction( |
6180 | | - BNLanguageRepresentationFunctionType* type, BNArchitecture* arch, BNFunction* func, |
6181 | | - BNHighLevelILFunction* highLevelIL, BNCustomLanguageRepresentationFunction* callbacks); |
| 6150 | + BNArchitecture* arch, BNFunction* func, BNHighLevelILFunction* highLevelIL, |
| 6151 | + BNCustomLanguageRepresentationFunction* callbacks); |
6182 | 6152 | BINARYNINJACOREAPI BNLanguageRepresentationFunction* BNNewLanguageRepresentationFunctionReference( |
6183 | 6153 | BNLanguageRepresentationFunction* func); |
6184 | 6154 | BINARYNINJACOREAPI void BNFreeLanguageRepresentationFunction(BNLanguageRepresentationFunction* func); |
6185 | | - BINARYNINJACOREAPI BNLanguageRepresentationFunctionType* BNGetLanguageRepresentationType( |
6186 | | - BNLanguageRepresentationFunction* func); |
6187 | 6155 | BINARYNINJACOREAPI BNArchitecture* BNGetLanguageRepresentationArchitecture(BNLanguageRepresentationFunction* func); |
6188 | 6156 | BINARYNINJACOREAPI BNFunction* BNGetLanguageRepresentationOwnerFunction(BNLanguageRepresentationFunction* func); |
6189 | 6157 | BINARYNINJACOREAPI BNHighLevelILFunction* BNGetLanguageRepresentationILFunction(BNLanguageRepresentationFunction* func); |
@@ -8088,25 +8056,6 @@ extern "C" |
8088 | 8056 | BINARYNINJACOREAPI void BNFreeFirmwareNinjaReferenceNode(BNFirmwareNinjaReferenceNode* node); |
8089 | 8057 | BINARYNINJACOREAPI BNFirmwareNinjaReferenceNode* BNNewFirmwareNinjaReferenceNodeReference(BNFirmwareNinjaReferenceNode* node); |
8090 | 8058 | BINARYNINJACOREAPI void BNFreeFirmwareNinjaReferenceNodes(BNFirmwareNinjaReferenceNode** nodes, size_t count); |
8091 | | - |
8092 | | - // Line formatters |
8093 | | - BINARYNINJACOREAPI BNLineFormatter* BNRegisterLineFormatter(const char* name, BNCustomLineFormatter* callbacks); |
8094 | | - BINARYNINJACOREAPI BNLineFormatter** BNGetLineFormatterList(size_t* count); |
8095 | | - BINARYNINJACOREAPI void BNFreeLineFormatterList(BNLineFormatter** formatters); |
8096 | | - BINARYNINJACOREAPI BNLineFormatter* BNGetLineFormatterByName(const char* name); |
8097 | | - BINARYNINJACOREAPI BNLineFormatter* BNGetDefaultLineFormatter(); |
8098 | | - |
8099 | | - BINARYNINJACOREAPI char* BNGetLineFormatterName(BNLineFormatter* formatter); |
8100 | | - |
8101 | | - BINARYNINJACOREAPI BNDisassemblyTextLine* BNFormatLines(BNLineFormatter* formatter, BNDisassemblyTextLine* inLines, |
8102 | | - size_t inCount, const BNLineFormatterSettings* settings, size_t* outCount); |
8103 | | - |
8104 | | - BINARYNINJACOREAPI BNLineFormatterSettings* BNGetDefaultLineFormatterSettings( |
8105 | | - BNDisassemblySettings* settings, BNHighLevelILFunction* func); |
8106 | | - BINARYNINJACOREAPI BNLineFormatterSettings* BNGetLanguageRepresentationLineFormatterSettings( |
8107 | | - BNDisassemblySettings* settings, BNLanguageRepresentationFunction* func); |
8108 | | - BINARYNINJACOREAPI void BNFreeLineFormatterSettings(BNLineFormatterSettings* settings); |
8109 | | - |
8110 | 8059 | #ifdef __cplusplus |
8111 | 8060 | } |
8112 | 8061 | #endif |
|
0 commit comments