From c2b6b56fbc9e7dcd8fde1e0727e440e1ea7c406e Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 6 Apr 2020 05:44:53 -0400 Subject: Add various missing BinaryDataNotification callbacks in python --- python/examples/notification_callbacks.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'python/examples') diff --git a/python/examples/notification_callbacks.py b/python/examples/notification_callbacks.py index 1f536972..93be336e 100644 --- a/python/examples/notification_callbacks.py +++ b/python/examples/notification_callbacks.py @@ -20,8 +20,7 @@ import inspect -from binaryninja import BinaryDataNotification -from binaryninja import PluginCommand +from binaryninja import BinaryDataNotification, PluginCommand, log def reg_notif(view): @@ -59,6 +58,30 @@ class DemoNotification(BinaryDataNotification): def data_var_removed(self, *args): log.log_info(inspect.stack()[0][3] + str(args)) + def data_metadata_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def tag_type_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def tag_added(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def tag_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def tag_removed(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def symbol_added(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def symbol_updated(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + + def symbol_removed(self, *args): + log.log_info(inspect.stack()[0][3] + str(args)) + def string_found(self, *args): log.log_info(inspect.stack()[0][3] + str(args)) -- cgit v1.3.1