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
|
@ -71,6 +71,23 @@ EventRegistry::string_list* EventRegistry::UsedHandlers()
|
|||
return names;
|
||||
}
|
||||
|
||||
EventRegistry::string_list* EventRegistry::AllHandlers()
|
||||
{
|
||||
string_list* names = new string_list;
|
||||
|
||||
IterCookie* c = handlers.InitForIteration();
|
||||
|
||||
HashKey* k;
|
||||
EventHandler* v;
|
||||
while ( (v = handlers.NextEntry(k, c)) )
|
||||
{
|
||||
names->append(v->Name());
|
||||
delete k;
|
||||
}
|
||||
|
||||
return names;
|
||||
}
|
||||
|
||||
void EventRegistry::PrintDebug()
|
||||
{
|
||||
IterCookie* c = handlers.InitForIteration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue