mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Deprecate EventMgr::QueueEventFast() and update usages to Enqueue()
This commit is contained in:
parent
0db484cc7a
commit
6980f63a91
27 changed files with 187 additions and 198 deletions
|
@ -21,13 +21,11 @@ void RuleActionEvent::DoAction(const Rule* parent, RuleEndpointState* state,
|
|||
const u_char* data, int len)
|
||||
{
|
||||
if ( signature_match )
|
||||
{
|
||||
mgr.QueueEventFast(signature_match, {
|
||||
rule_matcher->BuildRuleStateValue(parent, state),
|
||||
new StringVal(msg),
|
||||
data ? new StringVal(len, (const char*)data) : val_mgr->GetEmptyString(),
|
||||
});
|
||||
}
|
||||
mgr.Enqueue(signature_match,
|
||||
IntrusivePtr{AdoptRef{}, rule_matcher->BuildRuleStateValue(parent, state)},
|
||||
make_intrusive<StringVal>(msg),
|
||||
data ? make_intrusive<StringVal>(len, (const char*)data) : IntrusivePtr{AdoptRef{}, val_mgr->GetEmptyString()}
|
||||
);
|
||||
}
|
||||
|
||||
void RuleActionEvent::PrintDebug()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue