summaryrefslogtreecommitdiff
path: root/examples/uinotification
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uinotification')
-rw-r--r--examples/uinotification/uinotification.cpp6
-rw-r--r--examples/uinotification/uinotification.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/uinotification/uinotification.cpp b/examples/uinotification/uinotification.cpp
index b7c22bde..ca53c560 100644
--- a/examples/uinotification/uinotification.cpp
+++ b/examples/uinotification/uinotification.cpp
@@ -85,6 +85,12 @@ void NotificationListener::OnViewChange(UIContext* context, ViewFrame* frame, co
}
+void NotificationListener::OnAddressChange(UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location)
+{
+ LogInfo("OnAddressChange: %llx", location.getOffset());
+}
+
+
extern "C"
{
BINARYNINJAPLUGIN bool UIPluginInit()
diff --git a/examples/uinotification/uinotification.h b/examples/uinotification/uinotification.h
index a26b3de3..3a3231be 100644
--- a/examples/uinotification/uinotification.h
+++ b/examples/uinotification/uinotification.h
@@ -17,6 +17,7 @@ public:
virtual bool OnBeforeCloseFile(UIContext* context, FileContext* file, ViewFrame* frame) override;
virtual void OnAfterCloseFile(UIContext* context, FileContext* file, ViewFrame* frame) override;
virtual void OnViewChange(UIContext* context, ViewFrame* frame, const QString& type) override;
+ virtual void OnAddressChange(UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location) override;
static void init();
}; \ No newline at end of file