mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move Func up to zeek namespace, rename BroFunc to ScriptFunc
This commit is contained in:
parent
86fdf0eaa9
commit
a2bc42dd93
36 changed files with 190 additions and 184 deletions
|
@ -182,7 +182,7 @@ type Cluster::Pool: record;
|
|||
## Returns: true if the message is sent.
|
||||
function Cluster::publish_rr%(pool: Pool, key: string, ...%): bool
|
||||
%{
|
||||
static zeek::detail::Func* topic_func = nullptr;
|
||||
static zeek::Func* topic_func = nullptr;
|
||||
|
||||
if ( ! topic_func )
|
||||
topic_func = zeek::detail::global_scope()->Find("Cluster::rr_topic")->GetVal()->AsFunc();
|
||||
|
@ -219,7 +219,7 @@ function Cluster::publish_rr%(pool: Pool, key: string, ...%): bool
|
|||
## Returns: true if the message is sent.
|
||||
function Cluster::publish_hrw%(pool: Pool, key: any, ...%): bool
|
||||
%{
|
||||
static zeek::detail::Func* topic_func = nullptr;
|
||||
static zeek::Func* topic_func = nullptr;
|
||||
|
||||
if ( ! topic_func )
|
||||
topic_func = zeek::detail::global_scope()->Find("Cluster::hrw_topic")->GetVal()->AsFunc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue