mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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 <cassert>
|
||||
|
||||
|
@ -9,6 +10,12 @@
|
|||
|
||||
using namespace plugin;
|
||||
|
||||
BifItem::BifItem(const std::string& arg_id, Type arg_type)
|
||||
{
|
||||
id = copy_string(arg_id.c_str());
|
||||
type = arg_type;
|
||||
}
|
||||
|
||||
BifItem::BifItem(const BifItem& other)
|
||||
{
|
||||
id = copy_string(other.id);
|
||||
|
@ -91,11 +98,11 @@ void Plugin::SetAPIVersion(int arg_version)
|
|||
api_version = arg_version;
|
||||
}
|
||||
|
||||
void Plugin::Init()
|
||||
void Plugin::InitPreScript()
|
||||
{
|
||||
}
|
||||
|
||||
void Plugin::InitBif()
|
||||
void Plugin::InitPostScript()
|
||||
{
|
||||
for ( bif_init_func_list::const_iterator f = bif_inits.begin(); f != bif_inits.end(); f++ )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue