mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Use vector<IntrusivePtr<Val>> for Func::Call and Event queuing args
This change may break BIFs that use @ARGS@, @ARG@, or @ARGC@ since their types have changed.
This commit is contained in:
parent
94656c2308
commit
4e1ac4e124
29 changed files with 367 additions and 305 deletions
|
@ -3,6 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "BroList.h"
|
||||
#include "ZeekArgs.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include <string>
|
||||
|
@ -31,7 +32,7 @@ public:
|
|||
auto_publish.erase(topic);
|
||||
}
|
||||
|
||||
void Call(val_list* vl, bool no_remote = false);
|
||||
void Call(const zeek::Args& vl, bool no_remote = false);
|
||||
|
||||
// Returns true if there is at least one local or remote handler.
|
||||
explicit operator bool() const;
|
||||
|
@ -52,7 +53,7 @@ public:
|
|||
bool GenerateAlways() { return generate_always; }
|
||||
|
||||
private:
|
||||
void NewEvent(val_list* vl); // Raise new_event() meta event.
|
||||
void NewEvent(const zeek::Args& vl); // Raise new_event() meta event.
|
||||
|
||||
const char* name;
|
||||
Func* local;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue