mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Move all Val classes to the zeek namespaces
This commit is contained in:
parent
ec9eff0bd5
commit
64332ca22c
265 changed files with 3154 additions and 3086 deletions
|
@ -269,7 +269,7 @@ void BroFile::SetAttrs(zeek::detail::Attributes* arg_attrs)
|
|||
EnableRawOutput();
|
||||
}
|
||||
|
||||
RecordVal* BroFile::Rotate()
|
||||
zeek::RecordVal* BroFile::Rotate()
|
||||
{
|
||||
if ( ! is_open )
|
||||
return nullptr;
|
||||
|
@ -279,7 +279,7 @@ RecordVal* BroFile::Rotate()
|
|||
return nullptr;
|
||||
|
||||
static auto rotate_info = zeek::id::find_type<zeek::RecordType>("rotate_info");
|
||||
RecordVal* info = new RecordVal(rotate_info);
|
||||
auto* info = new zeek::RecordVal(rotate_info);
|
||||
FILE* newf = rotate_file(name, info);
|
||||
|
||||
if ( ! newf )
|
||||
|
@ -288,7 +288,7 @@ RecordVal* BroFile::Rotate()
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
info->Assign<TimeVal>(2, open_time);
|
||||
info->Assign<zeek::TimeVal>(2, open_time);
|
||||
|
||||
Unlink();
|
||||
|
||||
|
@ -329,7 +329,7 @@ void BroFile::RaiseOpenEvent()
|
|||
return;
|
||||
|
||||
BroFilePtr bf{zeek::NewRef{}, this};
|
||||
Event* event = new ::Event(::file_opened, {zeek::make_intrusive<Val>(std::move(bf))});
|
||||
Event* event = new ::Event(::file_opened, {zeek::make_intrusive<zeek::Val>(std::move(bf))});
|
||||
mgr.Dispatch(event, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue