From 88833c4256517df042d72136e6ad332e88a7b53e Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 21 Apr 2026 21:26:47 -0700 Subject: Add a hover preview for extern symbols that includes type information A new preview type is added for extern symbols that includes the external library name, if known, the symbol type, and any call type override that is applied at the hovered callsite. Previously, hovering an extern symbol would display a hex preview of the synthetic extern section which was of limited value. --- ui/uitypes.h | 2 +- ui/util.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/uitypes.h b/ui/uitypes.h index 4c2e9404..68b18655 100644 --- a/ui/uitypes.h +++ b/ui/uitypes.h @@ -6,7 +6,7 @@ // 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 14 +#define BN_CURRENT_UI_ABI_VERSION 15 // 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 diff --git a/ui/util.h b/ui/util.h index cae089b0..9f5365ca 100644 --- a/ui/util.h +++ b/ui/util.h @@ -175,6 +175,8 @@ void BINARYNINJAUIAPI showHexPreview(QWidget* parent, ViewFrame* frame, const QP bool BINARYNINJAUIAPI showDisassemblyPreview(QWidget* parent, ViewFrame* frame, const QPoint& previewPos,BinaryViewRef data, FunctionRef func, const ViewLocation& location); void BINARYNINJAUIAPI showTextTooltip(QWidget* parent, const QPoint& previewPos, const QString& text); +void BINARYNINJAUIAPI showTokenTooltip(QWidget* parent, const QPoint& previewPos, + const std::vector>& lines); // Interpret the hovered token and, if applicable, displays a tooltip or preview. If no token-driven preview matches // and `dataflowFallbackAddress` is set, a dataflow-details tooltip is shown for that address. -- cgit v1.3.1