Line | Count | Source |
1 | // See the file "COPYING" in the main distribution directory for copyright. | |
2 | ||
3 | #include "zeek/plugin/Plugin.h" | |
4 | ||
5 | #include "zeek/analyzer/Component.h" | |
6 | #include "zeek/analyzer/protocol/stream_event/StreamEvent.h" | |
7 | ||
8 | namespace zeek::plugin::detail::Zeek_StreamEvent { | |
9 | ||
10 | class Plugin : public zeek::plugin::Plugin { | |
11 | public: | |
12 | 66 | zeek::plugin::Configuration Configure() override { |
13 | 66 | AddComponent(new zeek::analyzer::Component("STREAM_EVENT", |
14 | 66 | zeek::analyzer::stream_event::StreamEvent_Analyzer::Instantiate)); |
15 | ||
16 | 66 | zeek::plugin::Configuration config; |
17 | 66 | config.name = "Zeek::StreamEvent"; |
18 | 66 | config.description = "Delivers stream data as events"; |
19 | 66 | return config; |
20 | 66 | } |
21 | } plugin; | |
22 | ||
23 | } // namespace zeek::plugin::detail::Zeek_StreamEvent |