mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Deprecate Plugin::HookCallFunction(), replace with HookFunctionCall()
This also changes the argument type of Func::operator() to zeek::Args* to allow plugins to be able to alter function arguments in place as was previously documented.
This commit is contained in:
parent
46c5dea733
commit
272db640aa
27 changed files with 417 additions and 77 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
auto_publish.erase(topic);
|
||||
}
|
||||
|
||||
void Call(const zeek::Args& vl, bool no_remote = false);
|
||||
void Call(zeek::Args* vl, bool no_remote = false);
|
||||
|
||||
// Returns true if there is at least one local or remote handler.
|
||||
explicit operator bool() const;
|
||||
|
@ -66,7 +66,7 @@ public:
|
|||
bool GenerateAlways() { return generate_always; }
|
||||
|
||||
private:
|
||||
void NewEvent(const zeek::Args& vl); // Raise new_event() meta event.
|
||||
void NewEvent(zeek::Args* vl); // Raise new_event() meta event.
|
||||
|
||||
std::string name;
|
||||
IntrusivePtr<Func> local;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue