mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Move Type types to zeek namespace
This commit is contained in:
parent
4a1b39a2be
commit
ed13972924
120 changed files with 2094 additions and 1934 deletions
|
@ -26,7 +26,7 @@ EventHandler::operator bool() const
|
|||
|| ! auto_publish.empty());
|
||||
}
|
||||
|
||||
const IntrusivePtr<FuncType>& EventHandler::GetType(bool check_export)
|
||||
const IntrusivePtr<zeek::FuncType>& EventHandler::GetType(bool check_export)
|
||||
{
|
||||
if ( type )
|
||||
return type;
|
||||
|
@ -35,12 +35,12 @@ const IntrusivePtr<FuncType>& EventHandler::GetType(bool check_export)
|
|||
check_export);
|
||||
|
||||
if ( ! id )
|
||||
return FuncType::nil;
|
||||
return zeek::FuncType::nil;
|
||||
|
||||
if ( id->GetType()->Tag() != TYPE_FUNC )
|
||||
return FuncType::nil;
|
||||
if ( id->GetType()->Tag() != zeek::TYPE_FUNC )
|
||||
return zeek::FuncType::nil;
|
||||
|
||||
type = id->GetType<FuncType>();
|
||||
type = id->GetType<zeek::FuncType>();
|
||||
return type;
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ void EventHandler::NewEvent(zeek::Args* vl)
|
|||
return;
|
||||
|
||||
const auto& args = GetType()->Params();
|
||||
static auto call_argument_vector = zeek::id::find_type<VectorType>("call_argument_vector");
|
||||
static auto call_argument_vector = zeek::id::find_type<zeek::VectorType>("call_argument_vector");
|
||||
auto vargs = make_intrusive<VectorVal>(call_argument_vector);
|
||||
|
||||
for ( int i = 0; i < args->NumFields(); i++ )
|
||||
|
@ -120,7 +120,7 @@ void EventHandler::NewEvent(zeek::Args* vl)
|
|||
const auto& ftype = args->GetFieldType(i);
|
||||
auto fdefault = args->FieldDefault(i);
|
||||
|
||||
static auto call_argument = zeek::id::find_type<RecordType>("call_argument");
|
||||
static auto call_argument = zeek::id::find_type<zeek::RecordType>("call_argument");
|
||||
auto rec = make_intrusive<RecordVal>(call_argument);
|
||||
rec->Assign(0, make_intrusive<StringVal>(fname));
|
||||
|
||||
|
@ -144,4 +144,3 @@ void EventHandler::NewEvent(zeek::Args* vl)
|
|||
});
|
||||
mgr.Dispatch(ev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue