mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Cleanup and more API docs.
This commit is contained in:
parent
4ccd6d76fd
commit
e3a7e0301b
18 changed files with 349 additions and 92 deletions
|
@ -1,3 +1,4 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Manager.h"
|
||||
|
||||
|
@ -35,22 +36,22 @@ bool Manager::RegisterPlugin(Plugin *plugin)
|
|||
return true;
|
||||
}
|
||||
|
||||
void Manager::InitPlugins()
|
||||
void Manager::InitPreScript()
|
||||
{
|
||||
assert(! init);
|
||||
|
||||
for ( plugin_list::iterator i = Manager::PluginsInternal()->begin(); i != Manager::PluginsInternal()->end(); i++ )
|
||||
(*i)->Init();
|
||||
(*i)->InitPreScript();
|
||||
|
||||
init = true;
|
||||
}
|
||||
|
||||
void Manager::InitPluginsBif()
|
||||
void Manager::InitPostScript()
|
||||
{
|
||||
assert(init);
|
||||
|
||||
for ( plugin_list::iterator i = Manager::PluginsInternal()->begin(); i != Manager::PluginsInternal()->end(); i++ )
|
||||
(*i)->InitBif();
|
||||
(*i)->InitPostScript();
|
||||
|
||||
init = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue