Move logging code to zeek namespaces

This commit is contained in:
Tim Wojtulewicz 2020-08-01 10:48:05 -07:00
parent 9a800265ff
commit 45b5c6e619
25 changed files with 135 additions and 114 deletions

View file

@ -10,7 +10,7 @@
using threading::Value;
using threading::Field;
namespace logging {
namespace zeek::logging {
// Messages sent from frontend to backend (i.e., "InputMessages").
@ -22,7 +22,6 @@ public:
num_fields(num_fields), fields(fields)
{}
bool Process() override { return Object()->Init(num_fields, fields); }
private:
@ -92,12 +91,8 @@ private:
double network_time;
};
}
// Frontend methods.
using namespace logging;
WriterFrontend::WriterFrontend(const WriterBackend::WriterInfo& arg_info, zeek::EnumVal* arg_stream,
zeek::EnumVal* arg_writer, bool arg_local, bool arg_remote)
{
@ -299,3 +294,5 @@ void WriterFrontend::DeleteVals(int num_fields, Value** vals)
delete [] vals;
}
} // namespace zeek::logging