mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Extending plugin interface.
This is for feature parity with the older interface, and remains experimental for now.
This commit is contained in:
parent
aec61e9ea4
commit
421120e12c
8 changed files with 145 additions and 14 deletions
|
@ -13,6 +13,7 @@ EventHandler::EventHandler(const char* arg_name)
|
|||
type = 0;
|
||||
error_handler = false;
|
||||
enabled = true;
|
||||
generate_always = false;
|
||||
}
|
||||
|
||||
EventHandler::~EventHandler()
|
||||
|
@ -23,7 +24,9 @@ EventHandler::~EventHandler()
|
|||
|
||||
EventHandler::operator bool() const
|
||||
{
|
||||
return enabled && ((local && local->HasBodies()) || receivers.length());
|
||||
return enabled && ((local && local->HasBodies())
|
||||
|| receivers.length()
|
||||
|| generate_always);
|
||||
}
|
||||
|
||||
FuncType* EventHandler::FType()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue