diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2018-03-04 18:08:04 -0500 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-07-10 18:11:08 -0400 |
| commit | 8849fb2b2b8dc824bd3f17ce1026a04856477a94 (patch) | |
| tree | e85f3db97d6d6b5fa2a21162c684fd08d47e4ab0 /python/examples/notification_callbacks.py | |
| parent | 8028bd325bc94a385f99122d87ac906ba717ecbf (diff) | |
working division, prints, and metaclasses, but imports broken, still needs work
Diffstat (limited to 'python/examples/notification_callbacks.py')
| -rw-r--r-- | python/examples/notification_callbacks.py | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/python/examples/notification_callbacks.py b/python/examples/notification_callbacks.py deleted file mode 100644 index b7c9cde9..00000000 --- a/python/examples/notification_callbacks.py +++ /dev/null @@ -1,51 +0,0 @@ -from binaryninja import BinaryDataNotification, PluginCommand, log_info -import inspect - -def reg_notif(view): - demo_notification = DemoNotification(view) - view.register_notification(demo_notification) - -class DemoNotification(BinaryDataNotification): - def __init__(self, view): - self.view = view - - def data_written(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def data_inserted(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def data_removed(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def function_added(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def function_removed(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def function_updated(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def data_var_added(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def data_var_updated(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def data_var_removed(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def string_found(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def string_removed(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def type_defined(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - - def type_undefined(self, *args): - log_info(inspect.stack()[0][3] + str(args)) - -PluginCommand.register("Register Notification", "", reg_notif) |
