mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
27 lines
786 B
C++
27 lines
786 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "zeek/input/readers/raw/Plugin.h"
|
|
|
|
#include "zeek/input/Component.h"
|
|
#include "zeek/input/readers/raw/Raw.h"
|
|
|
|
namespace zeek::plugin::detail::Zeek_RawReader {
|
|
|
|
Plugin plugin;
|
|
|
|
zeek::plugin::Configuration Plugin::Configure() {
|
|
AddComponent(new zeek::input::Component("Raw", zeek::input::reader::detail::Raw::Instantiate));
|
|
|
|
zeek::plugin::Configuration config;
|
|
config.name = "Zeek::RawReader";
|
|
config.description = "Raw input reader";
|
|
return config;
|
|
}
|
|
|
|
void Plugin::InitPreScript() {}
|
|
|
|
void Plugin::Done() {}
|
|
|
|
std::unique_lock<std::mutex> Plugin::ForkMutex() { return std::unique_lock<std::mutex>(fork_mutex, std::defer_lock); }
|
|
|
|
} // namespace zeek::plugin::detail::Zeek_RawReader
|