mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Mark global val_mgr as deprecated and fix uses of it to use namespaced version
This commit is contained in:
parent
3098dd6fbb
commit
86fdf0eaa9
134 changed files with 1579 additions and 1580 deletions
|
@ -14,28 +14,28 @@ type AnalyzerArgs: record;
|
|||
function Files::__set_timeout_interval%(file_id: string, t: interval%): bool
|
||||
%{
|
||||
bool result = file_mgr->SetTimeoutInterval(file_id->CheckString(), t);
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::enable_reassembly`.
|
||||
function Files::__enable_reassembly%(file_id: string%): bool
|
||||
%{
|
||||
bool result = file_mgr->EnableReassembly(file_id->CheckString());
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::disable_reassembly`.
|
||||
function Files::__disable_reassembly%(file_id: string%): bool
|
||||
%{
|
||||
bool result = file_mgr->DisableReassembly(file_id->CheckString());
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::set_reassembly_buffer_size`.
|
||||
function Files::__set_reassembly_buffer%(file_id: string, max: count%): bool
|
||||
%{
|
||||
bool result = file_mgr->SetReassemblyBuffer(file_id->CheckString(), max);
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::add_analyzer`.
|
||||
|
@ -46,7 +46,7 @@ function Files::__add_analyzer%(file_id: string, tag: Files::Tag, args: any%): b
|
|||
bool result = file_mgr->AddAnalyzer(file_id->CheckString(),
|
||||
file_mgr->GetComponentTag(tag),
|
||||
std::move(rv));
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::remove_analyzer`.
|
||||
|
@ -57,14 +57,14 @@ function Files::__remove_analyzer%(file_id: string, tag: Files::Tag, args: any%)
|
|||
bool result = file_mgr->RemoveAnalyzer(file_id->CheckString(),
|
||||
file_mgr->GetComponentTag(tag),
|
||||
std::move(rv));
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::stop`.
|
||||
function Files::__stop%(file_id: string%): bool
|
||||
%{
|
||||
bool result = file_mgr->IgnoreFile(file_id->CheckString());
|
||||
return val_mgr->Bool(result);
|
||||
return zeek::val_mgr->Bool(result);
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::analyzer_name`.
|
||||
|
@ -78,9 +78,9 @@ function Files::__analyzer_name%(tag: Files::Tag%) : string
|
|||
function Files::__file_exists%(fuid: string%): bool
|
||||
%{
|
||||
if ( file_mgr->LookupFile(fuid->CheckString()) != nullptr )
|
||||
return val_mgr->True();
|
||||
return zeek::val_mgr->True();
|
||||
else
|
||||
return val_mgr->False();
|
||||
return zeek::val_mgr->False();
|
||||
%}
|
||||
|
||||
## :zeek:see:`Files::lookup_file`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue