diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-01-20 18:44:25 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-01-20 18:44:25 -0500 |
| commit | e78cae77103b5396ce42d9e33593ea55f9135be0 (patch) | |
| tree | b44cb4bf7732c1e2e77ae39335eb4e2f02d9af84 /binaryninjacore.h | |
| parent | cbd4d7f12d54ddc4b6d3d90a8d7b49591f468a94 (diff) | |
Revert "Add line formatter API and a generic line formatter plugin"
This reverts commit 1699c71999d29d32aba5c9f8fea193a661a4b02b.
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 59 |
1 files changed, 4 insertions, 55 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 5ac55e6b..b13a7a7a 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 89 +#define BN_CURRENT_CORE_ABI_VERSION 88 // 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 89 +#define BN_MINIMUM_CORE_ABI_VERSION 86 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -302,7 +302,6 @@ extern "C" typedef struct BNDemangler BNDemangler; typedef struct BNFirmwareNinja BNFirmwareNinja; typedef struct BNFirmwareNinjaReferenceNode BNFirmwareNinjaReferenceNode; - typedef struct BNLineFormatter BNLineFormatter; //! Console log levels typedef enum BNLogLevel @@ -728,7 +727,6 @@ extern "C" HighLevelILLinearDisassembly = 65, WaitForIL = 66, IndentHLILBody = 67, - DisableLineFormatting = 68, // Debugging options ShowFlagUsage = 128, @@ -3441,7 +3439,6 @@ extern "C" bool (*isValid)(void* ctxt, BNBinaryView* view); BNTypePrinter* (*getTypePrinter)(void* ctxt); BNTypeParser* (*getTypeParser)(void* ctxt); - BNLineFormatter* (*getLineFormatter)(void* ctxt); BNDisassemblyTextLine* (*getFunctionTypeTokens)( void* ctxt, BNFunction* func, BNDisassemblySettings* settings, size_t* count); void (*freeLines)(void* ctxt, BNDisassemblyTextLine* lines, size_t count); @@ -3541,28 +3538,6 @@ extern "C" size_t unique; } BNFirmwareNinjaDeviceAccesses; - typedef struct BNLineFormatterSettings - { - BNHighLevelILFunction* highLevelIL; - size_t desiredLineLength; - size_t minimumContentLength; - size_t tabWidth; - char* languageName; - char* commentStartString; - char* commentEndString; - char* annotationStartString; - char* annotationEndString; - } BNLineFormatterSettings; - - typedef struct BNCustomLineFormatter - { - void* context; - BNDisassemblyTextLine* (*formatLines)(void* ctxt, BNDisassemblyTextLine* inLines, size_t inCount, - const BNLineFormatterSettings* settings, size_t* outCount); - void (*freeLines)(void* ctxt, BNDisassemblyTextLine* lines, size_t count); - } BNCustomLineFormatter; - - BINARYNINJACOREAPI char* BNAllocString(const char* contents); BINARYNINJACOREAPI char* BNAllocStringWithLength(const char* contents, size_t len); BINARYNINJACOREAPI void BNFreeString(char* str); @@ -5478,9 +5453,6 @@ extern "C" // Disassembly settings BINARYNINJACOREAPI BNDisassemblySettings* BNCreateDisassemblySettings(void); - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultDisassemblySettings(void); - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultGraphDisassemblySettings(void); - BINARYNINJACOREAPI BNDisassemblySettings* BNDefaultLinearDisassemblySettings(void); BINARYNINJACOREAPI BNDisassemblySettings* BNNewDisassemblySettingsReference(BNDisassemblySettings* settings); BINARYNINJACOREAPI BNDisassemblySettings* BNDuplicateDisassemblySettings(BNDisassemblySettings* settings); BINARYNINJACOREAPI void BNFreeDisassemblySettings(BNDisassemblySettings* settings); @@ -6171,19 +6143,15 @@ extern "C" BNLanguageRepresentationFunctionType* type, BNBinaryView* view); BINARYNINJACOREAPI BNTypePrinter* BNGetLanguageRepresentationFunctionTypePrinter(BNLanguageRepresentationFunctionType* type); BINARYNINJACOREAPI BNTypeParser* BNGetLanguageRepresentationFunctionTypeParser(BNLanguageRepresentationFunctionType* type); - BINARYNINJACOREAPI BNLineFormatter* BNGetLanguageRepresentationFunctionTypeLineFormatter( - BNLanguageRepresentationFunctionType* type); BINARYNINJACOREAPI BNDisassemblyTextLine* BNGetLanguageRepresentationFunctionTypeFunctionTypeTokens( BNLanguageRepresentationFunctionType* type, BNFunction* func, BNDisassemblySettings* settings, size_t* count); BINARYNINJACOREAPI BNLanguageRepresentationFunction* BNCreateCustomLanguageRepresentationFunction( - BNLanguageRepresentationFunctionType* type, BNArchitecture* arch, BNFunction* func, - BNHighLevelILFunction* highLevelIL, BNCustomLanguageRepresentationFunction* callbacks); + BNArchitecture* arch, BNFunction* func, BNHighLevelILFunction* highLevelIL, + BNCustomLanguageRepresentationFunction* callbacks); BINARYNINJACOREAPI BNLanguageRepresentationFunction* BNNewLanguageRepresentationFunctionReference( BNLanguageRepresentationFunction* func); BINARYNINJACOREAPI void BNFreeLanguageRepresentationFunction(BNLanguageRepresentationFunction* func); - BINARYNINJACOREAPI BNLanguageRepresentationFunctionType* BNGetLanguageRepresentationType( - BNLanguageRepresentationFunction* func); BINARYNINJACOREAPI BNArchitecture* BNGetLanguageRepresentationArchitecture(BNLanguageRepresentationFunction* func); BINARYNINJACOREAPI BNFunction* BNGetLanguageRepresentationOwnerFunction(BNLanguageRepresentationFunction* func); BINARYNINJACOREAPI BNHighLevelILFunction* BNGetLanguageRepresentationILFunction(BNLanguageRepresentationFunction* func); @@ -8088,25 +8056,6 @@ extern "C" BINARYNINJACOREAPI void BNFreeFirmwareNinjaReferenceNode(BNFirmwareNinjaReferenceNode* node); BINARYNINJACOREAPI BNFirmwareNinjaReferenceNode* BNNewFirmwareNinjaReferenceNodeReference(BNFirmwareNinjaReferenceNode* node); BINARYNINJACOREAPI void BNFreeFirmwareNinjaReferenceNodes(BNFirmwareNinjaReferenceNode** nodes, size_t count); - - // Line formatters - BINARYNINJACOREAPI BNLineFormatter* BNRegisterLineFormatter(const char* name, BNCustomLineFormatter* callbacks); - BINARYNINJACOREAPI BNLineFormatter** BNGetLineFormatterList(size_t* count); - BINARYNINJACOREAPI void BNFreeLineFormatterList(BNLineFormatter** formatters); - BINARYNINJACOREAPI BNLineFormatter* BNGetLineFormatterByName(const char* name); - BINARYNINJACOREAPI BNLineFormatter* BNGetDefaultLineFormatter(); - - BINARYNINJACOREAPI char* BNGetLineFormatterName(BNLineFormatter* formatter); - - BINARYNINJACOREAPI BNDisassemblyTextLine* BNFormatLines(BNLineFormatter* formatter, BNDisassemblyTextLine* inLines, - size_t inCount, const BNLineFormatterSettings* settings, size_t* outCount); - - BINARYNINJACOREAPI BNLineFormatterSettings* BNGetDefaultLineFormatterSettings( - BNDisassemblySettings* settings, BNHighLevelILFunction* func); - BINARYNINJACOREAPI BNLineFormatterSettings* BNGetLanguageRepresentationLineFormatterSettings( - BNDisassemblySettings* settings, BNLanguageRepresentationFunction* func); - BINARYNINJACOREAPI void BNFreeLineFormatterSettings(BNLineFormatterSettings* settings); - #ifdef __cplusplus } #endif |
