mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14: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
|
@ -7,6 +7,7 @@
|
|||
#include "Obj.h"
|
||||
#include "Serializer.h"
|
||||
#include "File.h"
|
||||
#include "plugin/Manager.h"
|
||||
|
||||
Location no_location("<no location>", 0, 0, 0, 0);
|
||||
Location start_location("<start uninitialized>", 0, 0, 0, 0);
|
||||
|
@ -92,6 +93,11 @@ int BroObj::suppress_errors = 0;
|
|||
|
||||
BroObj::~BroObj()
|
||||
{
|
||||
if ( notify_plugins )
|
||||
{
|
||||
PLUGIN_HOOK_VOID(HOOK_BRO_OBJ_DTOR, HookBroObjDtor(this));
|
||||
}
|
||||
|
||||
delete location;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue