From 7f4989a475d7cc30f790a977ab5518b05e27306a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 29 Aug 2025 20:01:48 -0400 Subject: Add disassembly setting for block labels --- ui/disassemblyview.h | 2 ++ ui/linearview.h | 1 + ui/uitypes.h | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/disassemblyview.h b/ui/disassemblyview.h index 024ef33e..94d938a6 100644 --- a/ui/disassemblyview.h +++ b/ui/disassemblyview.h @@ -78,6 +78,7 @@ class BINARYNINJAUIAPI DisassemblyView : public FlowGraphWidget void toggleOption(BNDisassemblyOption option); void setAddressMode(std::optional mode, std::optional hex, std::optional withName); void setCallParamHints(BNDisassemblyCallParameterHints hints); + void setBlockLabels(BNDisassemblyBlockLabels labels); void setDisplayedFileName(); void setAddressBaseOffset(bool toHere); @@ -142,6 +143,7 @@ class BINARYNINJAUIAPI DisassemblyView : public FlowGraphWidget std::set m_options; BNDisassemblyAddressMode m_addressMode; BNDisassemblyCallParameterHints m_callParamHints; + BNDisassemblyBlockLabels m_blockLabels; DisassemblyContainer* m_container; SettingsRef m_settings; std::set m_layers; diff --git a/ui/linearview.h b/ui/linearview.h index 9ba28407..17ab6764 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -511,6 +511,7 @@ public: void toggleOption(BNDisassemblyOption option); void setAddressMode(std::optional mode, std::optional hex, std::optional withName); void setCallParamHints(BNDisassemblyCallParameterHints hints); + void setBlockLabels(BNDisassemblyBlockLabels labels); void setDisplayedFileName(); void setAddressBaseOffset(bool toHere); diff --git a/ui/uitypes.h b/ui/uitypes.h index b0197adc..476c0d79 100644 --- a/ui/uitypes.h +++ b/ui/uitypes.h @@ -6,14 +6,14 @@ // there are changes to the API that affect linking, including new functions, // new types, modifications to existing functions or types, or new versions // of the Qt libraries. -#define BN_CURRENT_UI_ABI_VERSION 10 +#define BN_CURRENT_UI_ABI_VERSION 11 // 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, or a new version of Qt. -#define BN_MINIMUM_UI_ABI_VERSION 9 +#define BN_MINIMUM_UI_ABI_VERSION 11 #ifdef __GNUC__ #ifdef BINARYNINJAUI_LIBRARY -- cgit v1.3.1