mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Deprecate names in BifConst, replace with zeek::BifConst
Some Val* types are also replaced with IntrusivePtr at the new location
This commit is contained in:
parent
eedeb07550
commit
0db5c920f2
39 changed files with 120 additions and 106 deletions
|
@ -35,47 +35,47 @@ Ascii::Ascii(WriterFrontend* frontend) : WriterBackend(frontend)
|
|||
|
||||
void Ascii::InitConfigOptions()
|
||||
{
|
||||
output_to_stdout = BifConst::LogAscii::output_to_stdout;
|
||||
include_meta = BifConst::LogAscii::include_meta;
|
||||
use_json = BifConst::LogAscii::use_json;
|
||||
enable_utf_8 = BifConst::LogAscii::enable_utf_8;
|
||||
gzip_level = BifConst::LogAscii::gzip_level;
|
||||
output_to_stdout = zeek::BifConst::LogAscii::output_to_stdout;
|
||||
include_meta = zeek::BifConst::LogAscii::include_meta;
|
||||
use_json = zeek::BifConst::LogAscii::use_json;
|
||||
enable_utf_8 = zeek::BifConst::LogAscii::enable_utf_8;
|
||||
gzip_level = zeek::BifConst::LogAscii::gzip_level;
|
||||
|
||||
separator.assign(
|
||||
(const char*) BifConst::LogAscii::separator->Bytes(),
|
||||
BifConst::LogAscii::separator->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::separator->Bytes(),
|
||||
zeek::BifConst::LogAscii::separator->Len()
|
||||
);
|
||||
|
||||
set_separator.assign(
|
||||
(const char*) BifConst::LogAscii::set_separator->Bytes(),
|
||||
BifConst::LogAscii::set_separator->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::set_separator->Bytes(),
|
||||
zeek::BifConst::LogAscii::set_separator->Len()
|
||||
);
|
||||
|
||||
empty_field.assign(
|
||||
(const char*) BifConst::LogAscii::empty_field->Bytes(),
|
||||
BifConst::LogAscii::empty_field->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::empty_field->Bytes(),
|
||||
zeek::BifConst::LogAscii::empty_field->Len()
|
||||
);
|
||||
|
||||
unset_field.assign(
|
||||
(const char*) BifConst::LogAscii::unset_field->Bytes(),
|
||||
BifConst::LogAscii::unset_field->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::unset_field->Bytes(),
|
||||
zeek::BifConst::LogAscii::unset_field->Len()
|
||||
);
|
||||
|
||||
meta_prefix.assign(
|
||||
(const char*) BifConst::LogAscii::meta_prefix->Bytes(),
|
||||
BifConst::LogAscii::meta_prefix->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::meta_prefix->Bytes(),
|
||||
zeek::BifConst::LogAscii::meta_prefix->Len()
|
||||
);
|
||||
|
||||
ODesc tsfmt;
|
||||
BifConst::LogAscii::json_timestamps->Describe(&tsfmt);
|
||||
zeek::BifConst::LogAscii::json_timestamps->Describe(&tsfmt);
|
||||
json_timestamps.assign(
|
||||
(const char*) tsfmt.Bytes(),
|
||||
tsfmt.Len()
|
||||
);
|
||||
|
||||
gzip_file_extension.assign(
|
||||
(const char*) BifConst::LogAscii::gzip_file_extension->Bytes(),
|
||||
BifConst::LogAscii::gzip_file_extension->Len()
|
||||
(const char*) zeek::BifConst::LogAscii::gzip_file_extension->Bytes(),
|
||||
zeek::BifConst::LogAscii::gzip_file_extension->Len()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ using namespace writer;
|
|||
bool None::DoInit(const WriterInfo& info, int num_fields,
|
||||
const threading::Field* const * fields)
|
||||
{
|
||||
if ( BifConst::LogNone::debug )
|
||||
if ( zeek::BifConst::LogNone::debug )
|
||||
{
|
||||
std::cout << "[logging::writer::None]" << std::endl;
|
||||
std::cout << " path=" << info.path << std::endl;
|
||||
|
|
|
@ -22,18 +22,18 @@ SQLite::SQLite(WriterFrontend* frontend)
|
|||
fields(), num_fields(), db(), st()
|
||||
{
|
||||
set_separator.assign(
|
||||
(const char*) BifConst::LogSQLite::set_separator->Bytes(),
|
||||
BifConst::LogSQLite::set_separator->Len()
|
||||
(const char*) zeek::BifConst::LogSQLite::set_separator->Bytes(),
|
||||
zeek::BifConst::LogSQLite::set_separator->Len()
|
||||
);
|
||||
|
||||
unset_field.assign(
|
||||
(const char*) BifConst::LogSQLite::unset_field->Bytes(),
|
||||
BifConst::LogSQLite::unset_field->Len()
|
||||
(const char*) zeek::BifConst::LogSQLite::unset_field->Bytes(),
|
||||
zeek::BifConst::LogSQLite::unset_field->Len()
|
||||
);
|
||||
|
||||
empty_field.assign(
|
||||
(const char*) BifConst::LogSQLite::empty_field->Bytes(),
|
||||
BifConst::LogSQLite::empty_field->Len()
|
||||
(const char*) zeek::BifConst::LogSQLite::empty_field->Bytes(),
|
||||
zeek::BifConst::LogSQLite::empty_field->Len()
|
||||
);
|
||||
|
||||
threading::formatter::Ascii::SeparatorInfo sep_info(string(), set_separator, unset_field, empty_field);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue