/src/zeek/build/src/analyzer/protocol/websocket/consts.bif.init.cc
Line | Count | Source |
1 | | // This file was automatically generated by bifcl from /src/zeek/src/analyzer/protocol/websocket/consts.bif (plugin mode). |
2 | | |
3 | | |
4 | | #include <list> |
5 | | #include <string> |
6 | | #include "zeek/plugin/Plugin.h" |
7 | | #include "zeek/Func.h" |
8 | | #include "consts.bif.h" |
9 | | |
10 | | namespace plugin::Zeek_WebSocket { |
11 | | |
12 | | void __bif_consts_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("WebSocket::payload_chunk_size"); |
21 | 66 | zeek::BifConst::WebSocket::payload_chunk_size = v->AsCount(); |
22 | 66 | } |
23 | 66 | plugin->AddBifItem("WebSocket::payload_chunk_size", zeek::plugin::BifItem::CONSTANT); |
24 | 66 | { |
25 | 66 | const auto& v = zeek::id::find_const("WebSocket::max_control_frame_size"); |
26 | 66 | zeek::BifConst::WebSocket::max_control_frame_size = v->AsCount(); |
27 | 66 | } |
28 | 66 | plugin->AddBifItem("WebSocket::max_control_frame_size", zeek::plugin::BifItem::CONSTANT); |
29 | 66 | #ifdef __GNUC__ |
30 | | |
31 | | |
32 | 66 | #pragma GCC diagnostic pop |
33 | 66 | #endif |
34 | | |
35 | 66 | } |
36 | | } |
37 | | |
38 | | |