/src/zeek/build/src/logging/writers/sqlite/sqlite.bif.init.cc
Line | Count | Source |
1 | | // This file was automatically generated by bifcl from /src/zeek/src/logging/writers/sqlite/sqlite.bif (plugin mode). |
2 | | |
3 | | |
4 | | #include <list> |
5 | | #include <string> |
6 | | #include "zeek/plugin/Plugin.h" |
7 | | #include "zeek/Func.h" |
8 | | #include "sqlite.bif.h" |
9 | | |
10 | | namespace plugin::Zeek_SQLiteWriter { |
11 | | |
12 | | void __bif_sqlite_init(zeek::plugin::Plugin* plugin) |
13 | 66 | { |
14 | 66 | #ifdef __GNUC__ |
15 | 66 | #pragma GCC diagnostic push |
16 | 66 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
17 | | |
18 | 66 | #endif |
19 | 66 | { |
20 | 66 | const auto& v = zeek::id::find_const<zeek::StringVal>("LogSQLite::set_separator"); |
21 | 66 | zeek::BifConst::LogSQLite::set_separator = v; |
22 | 66 | } |
23 | 66 | plugin->AddBifItem("LogSQLite::set_separator", zeek::plugin::BifItem::CONSTANT); |
24 | 66 | { |
25 | 66 | const auto& v = zeek::id::find_const<zeek::StringVal>("LogSQLite::empty_field"); |
26 | 66 | zeek::BifConst::LogSQLite::empty_field = v; |
27 | 66 | } |
28 | 66 | plugin->AddBifItem("LogSQLite::empty_field", zeek::plugin::BifItem::CONSTANT); |
29 | 66 | { |
30 | 66 | const auto& v = zeek::id::find_const<zeek::StringVal>("LogSQLite::unset_field"); |
31 | 66 | zeek::BifConst::LogSQLite::unset_field = v; |
32 | 66 | } |
33 | 66 | plugin->AddBifItem("LogSQLite::unset_field", zeek::plugin::BifItem::CONSTANT); |
34 | 66 | zeek::BifType::Enum::LogSQLite::SQLiteSynchronous = zeek::id::find_type<zeek::EnumType>("LogSQLite::SQLiteSynchronous"); |
35 | 66 | plugin->AddBifItem("LogSQLite::SQLiteSynchronous", zeek::plugin::BifItem::TYPE); |
36 | 66 | zeek::BifType::Enum::LogSQLite::SQLiteJournalMode = zeek::id::find_type<zeek::EnumType>("LogSQLite::SQLiteJournalMode"); |
37 | 66 | plugin->AddBifItem("LogSQLite::SQLiteJournalMode", zeek::plugin::BifItem::TYPE); |
38 | 66 | { |
39 | 66 | const auto& v = zeek::id::find_const("LogSQLite::synchronous"); |
40 | 66 | zeek::BifConst::LogSQLite::synchronous = v; |
41 | 66 | } |
42 | 66 | plugin->AddBifItem("LogSQLite::synchronous", zeek::plugin::BifItem::CONSTANT); |
43 | 66 | { |
44 | 66 | const auto& v = zeek::id::find_const("LogSQLite::journal_mode"); |
45 | 66 | zeek::BifConst::LogSQLite::journal_mode = v; |
46 | 66 | } |
47 | 66 | plugin->AddBifItem("LogSQLite::journal_mode", zeek::plugin::BifItem::CONSTANT); |
48 | 66 | #ifdef __GNUC__ |
49 | | |
50 | | |
51 | 66 | #pragma GCC diagnostic pop |
52 | 66 | #endif |
53 | | |
54 | 66 | } |
55 | | } |
56 | | |
57 | | |