From e613b78c2fda396ffb7d54261681db88a788bd87 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 16 Aug 2023 12:08:20 -0400 Subject: Add some convenience flags to NotificationType. --- python/binaryview.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 80edc811..e84b40d1 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -171,6 +171,23 @@ class NotificationType(IntFlag): ComponentFunctionRemoved = 1 << 36 ComponentDataVariableAdded = 1 << 37 ComponentDataVariableRemoved = 1 << 38 + BinaryDataUpdates = DataWritten | DataInserted | DataRemoved + FunctionLifetime = FunctionAdded | FunctionRemoved + FunctionUpdates = FunctionLifetime | FunctionUpdated + DataVariableLifetime = DataVariableAdded | DataVariableRemoved + DataVariableUpdates = DataVariableLifetime | DataVariableUpdated + TagLifetime = TagAdded | TagRemoved + TagUpdates = TagLifetime | TagUpdated + SymbolLifetime = SymbolAdded | SymbolRemoved + SymbolUpdates = SymbolLifetime | SymbolUpdated + StringUpdates = StringFound | StringRemoved + TypeLifetime = TypeDefined | TypeUndefined + TypeUpdates = TypeLifetime | TypeReferenceChanged | TypeFieldReferenceChanged + SegmentLifetime = SegmentAdded | SegmentRemoved + SegmentUpdates = SegmentLifetime | SegmentUpdated + SectionLifetime = SectionAdded | SectionRemoved + SectionUpdates = SectionLifetime | SectionUpdated + ComponentUpdates = (ComponentAdded | ComponentRemoved | ComponentMoved | ComponentFunctionAdded | ComponentFunctionRemoved | ComponentDataVariableAdded | ComponentDataVariableRemoved) class BinaryDataNotification: -- cgit v1.3.1