// 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 {fork_mutex, std::defer_lock}; }

} // namespace zeek::plugin::detail::Zeek_RawReader
