mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +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
|
@ -2175,14 +2175,14 @@ zeek::Val* Manager::ValueToVal(const Stream* i, const Value* val, zeek::Type* re
|
|||
|
||||
switch ( val->type ) {
|
||||
case zeek::TYPE_BOOL:
|
||||
return val_mgr->Bool(val->val.int_val)->Ref();
|
||||
return zeek::val_mgr->Bool(val->val.int_val)->Ref();
|
||||
|
||||
case zeek::TYPE_INT:
|
||||
return val_mgr->Int(val->val.int_val).release();
|
||||
return zeek::val_mgr->Int(val->val.int_val).release();
|
||||
|
||||
case zeek::TYPE_COUNT:
|
||||
case zeek::TYPE_COUNTER:
|
||||
return val_mgr->Count(val->val.int_val).release();
|
||||
return zeek::val_mgr->Count(val->val.int_val).release();
|
||||
|
||||
case zeek::TYPE_DOUBLE:
|
||||
return new zeek::DoubleVal(val->val.double_val);
|
||||
|
@ -2200,7 +2200,7 @@ zeek::Val* Manager::ValueToVal(const Stream* i, const Value* val, zeek::Type* re
|
|||
}
|
||||
|
||||
case zeek::TYPE_PORT:
|
||||
return val_mgr->Port(val->val.port_val.port, val->val.port_val.proto)->Ref();
|
||||
return zeek::val_mgr->Port(val->val.port_val.port, val->val.port_val.proto)->Ref();
|
||||
|
||||
case zeek::TYPE_ADDR:
|
||||
{
|
||||
|
|
|
@ -19,34 +19,33 @@ type AnalysisDescription: record;
|
|||
function Input::__create_table_stream%(description: Input::TableDescription%) : bool
|
||||
%{
|
||||
bool res = input_mgr->CreateTableStream(description->AsRecordVal());
|
||||
return val_mgr->Bool(res);
|
||||
return zeek::val_mgr->Bool(res);
|
||||
%}
|
||||
|
||||
function Input::__create_event_stream%(description: Input::EventDescription%) : bool
|
||||
%{
|
||||
bool res = input_mgr->CreateEventStream(description->AsRecordVal());
|
||||
return val_mgr->Bool(res);
|
||||
return zeek::val_mgr->Bool(res);
|
||||
%}
|
||||
|
||||
function Input::__create_analysis_stream%(description: Input::AnalysisDescription%) : bool
|
||||
%{
|
||||
bool res = input_mgr->CreateAnalysisStream(description->AsRecordVal());
|
||||
return val_mgr->Bool(res);
|
||||
return zeek::val_mgr->Bool(res);
|
||||
%}
|
||||
|
||||
function Input::__remove_stream%(id: string%) : bool
|
||||
%{
|
||||
bool res = input_mgr->RemoveStream(id->AsString()->CheckString());
|
||||
return val_mgr->Bool(res);
|
||||
return zeek::val_mgr->Bool(res);
|
||||
%}
|
||||
|
||||
function Input::__force_update%(id: string%) : bool
|
||||
%{
|
||||
bool res = input_mgr->ForceUpdate(id->AsString()->CheckString());
|
||||
return val_mgr->Bool(res);
|
||||
return zeek::val_mgr->Bool(res);
|
||||
%}
|
||||
|
||||
# Options for the input framework
|
||||
|
||||
const accept_unsupported_types: bool;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue