mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
plugin/Manager: Fix MetaHookPre and MetaHookPost using HOOK_CALL_FUNCTION
This commit is contained in:
parent
3b478ddc0a
commit
6d97d5526a
10 changed files with 166 additions and 2 deletions
|
@ -962,13 +962,13 @@ void Manager::HookUnprocessedPacket(const Packet* packet) const {
|
|||
}
|
||||
|
||||
void Manager::MetaHookPre(HookType hook, const HookArgumentList& args) const {
|
||||
if ( hook_list* l = hooks[HOOK_CALL_FUNCTION] )
|
||||
if ( hook_list* l = hooks[META_HOOK_PRE] )
|
||||
for ( const auto& [hook_type, plugin] : *l )
|
||||
plugin->MetaHookPre(hook, args);
|
||||
}
|
||||
|
||||
void Manager::MetaHookPost(HookType hook, const HookArgumentList& args, const HookArgument& result) const {
|
||||
if ( hook_list* l = hooks[HOOK_CALL_FUNCTION] )
|
||||
if ( hook_list* l = hooks[META_HOOK_POST] )
|
||||
for ( const auto& [hook_type, plugin] : *l )
|
||||
plugin->MetaHookPost(hook, args, result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue