mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
A set of interface changes in preparation for merging into BinPAC++
branch.
This commit is contained in:
parent
52cd02173d
commit
2002787c6e
27 changed files with 381 additions and 172 deletions
|
@ -15,25 +15,22 @@
|
|||
protected: \
|
||||
void Init() \
|
||||
{ \
|
||||
plugin::Description _desc; \
|
||||
_desc.name = #_name; \
|
||||
_desc.version = _BRO_PLUGIN_VERSION_DEFAULT; \
|
||||
_desc.api_version = BRO_PLUGIN_API_VERSION;
|
||||
SetName(#_name); \
|
||||
SetVersion(_BRO_PLUGIN_VERSION_DEFAULT); \
|
||||
SetAPIVersion(BRO_PLUGIN_API_VERSION);
|
||||
|
||||
#define BRO_PLUGIN_END \
|
||||
SetDescription(_desc); \
|
||||
} \
|
||||
}; \
|
||||
\
|
||||
static Plugin __plugin; \
|
||||
} }
|
||||
|
||||
#define BRO_PLUGIN_DESCRIPTION _desc.description
|
||||
#define BRO_PLUGIN_URL _desc.url
|
||||
#define BRO_PLUGIN_VERSION _desc.version
|
||||
#define BRO_PLUGIN_DESCRIPTION(x) SetDescription(x)
|
||||
#define BRO_PLUGIN_VERSION(x) SetVersion(x)
|
||||
|
||||
#define BRO_PLUGIN_BIF_FILE(file) \
|
||||
std::list<std::pair<std::string, int> > __bif_##file##_init(); \
|
||||
std::list<std::pair<const char*, int> > __bif_##file##_init(); \
|
||||
AddBifInitFunction(&__bif_##file##_init);
|
||||
|
||||
#define BRO_PLUGIN_ANALYZER(tag, factory) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue