mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
A number of smaller API extensions to provide plugins with access to
information.
This commit is contained in:
parent
79531a4538
commit
d88b333353
13 changed files with 127 additions and 35 deletions
|
@ -79,7 +79,7 @@ void HookArgument::Describe(ODesc* d) const
|
|||
break;
|
||||
|
||||
case EVENT:
|
||||
if ( arg.event )
|
||||
if ( arg.event )
|
||||
{
|
||||
d->Add(arg.event->Handler()->Name());
|
||||
d->Add("(");
|
||||
|
@ -106,7 +106,7 @@ void HookArgument::Describe(ODesc* d) const
|
|||
break;
|
||||
|
||||
case VAL:
|
||||
if ( arg.val )
|
||||
if ( arg.val )
|
||||
arg.val->Describe(d);
|
||||
|
||||
else
|
||||
|
@ -284,7 +284,7 @@ void Plugin::RequestBroObjDtor(BroObj* obj)
|
|||
plugin_mgr->RequestBroObjDtor(obj, this);
|
||||
}
|
||||
|
||||
int Plugin::HookLoadFile(const std::string& file)
|
||||
int Plugin::HookLoadFile(const std::string& file, const std::string& ext)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -410,7 +410,7 @@ void Plugin::Describe(ODesc* d) const
|
|||
d->Add(hook_name(hook));
|
||||
d->Add(" (priority ");
|
||||
d->Add(prio);
|
||||
d->Add("]\n");
|
||||
d->Add(")\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue