A number of smaller API extensions to provide plugins with access to

information.
This commit is contained in:
Robin Sommer 2014-05-29 12:48:36 -07:00
parent 79531a4538
commit d88b333353
13 changed files with 127 additions and 35 deletions

View file

@ -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");
}
}