From 432a8cdf64052db5fef7df792e2a5a51734d27af Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 2 Dec 2020 15:42:58 -0500 Subject: Callback for address changes #2166 --- ui/uicontext.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') diff --git a/ui/uicontext.h b/ui/uicontext.h index bc88a71b..5fbd2ca2 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -16,6 +16,7 @@ typedef void (*UIPluginDependencyFunction)(void); class ViewFrame; class UIActionHandler; class FileContext; +class ViewLocation; class BINARYNINJAUIAPI UIContextNotification { @@ -33,6 +34,7 @@ public: virtual void OnAfterCloseFile(UIContext* context, FileContext* file, ViewFrame* frame) { (void)context; (void)file; (void)frame; } virtual void OnViewChange(UIContext* context, ViewFrame* frame, const QString& type) { (void)context; (void)frame; (void)type; } + virtual void OnAddressChange(UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location) { (void)context; (void)frame; (void)view; (void)location; }; }; class BINARYNINJAUIAPI UIContextHandler @@ -86,6 +88,7 @@ public: void NotifyOnAfterCloseFile(FileContext* file, ViewFrame* frame); void NotifyOnViewChange(ViewFrame* frame, const QString& type); + void NotifyOnAddressChange(ViewFrame* frame, View* view, const ViewLocation& location); static void setHandler(UIContextHandler* handler); -- cgit v1.3.1