mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Redo API for notifiers.
There's now an notifier::Modifiable interface class that class supposed to signal modifications are to be derived from. This takes the place of the former MutableValue class and also unifies how Val and IDs signal modifications.
This commit is contained in:
parent
f8262b65c4
commit
062a1ee6b3
8 changed files with 126 additions and 163 deletions
2
src/ID.h
2
src/ID.h
|
@ -15,7 +15,7 @@ class Func;
|
|||
typedef enum { INIT_NONE, INIT_FULL, INIT_EXTRA, INIT_REMOVE, } init_class;
|
||||
typedef enum { SCOPE_FUNCTION, SCOPE_MODULE, SCOPE_GLOBAL } IDScope;
|
||||
|
||||
class ID : public BroObj {
|
||||
class ID : public BroObj, public notifier::Modifiable {
|
||||
public:
|
||||
ID(const char* name, IDScope arg_scope, bool arg_is_export);
|
||||
~ID() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue