mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Converting log writers and input readers to plugins.
This commit is contained in:
parent
6d9e261384
commit
f4cbcb9b03
109 changed files with 1177 additions and 495 deletions
28
src/input/Component.cc
Normal file
28
src/input/Component.cc
Normal file
|
@ -0,0 +1,28 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Component.h"
|
||||
#include "Manager.h"
|
||||
|
||||
#include "../Desc.h"
|
||||
#include "../util.h"
|
||||
|
||||
using namespace input;
|
||||
|
||||
Component::Component(const std::string& name, factory_callback arg_factory)
|
||||
: plugin::Component(plugin::component::WRITER, name)
|
||||
{
|
||||
factory = arg_factory;
|
||||
|
||||
input_mgr->RegisterComponent(this, "READER_");
|
||||
}
|
||||
|
||||
Component::~Component()
|
||||
{
|
||||
}
|
||||
|
||||
void Component::DoDescribe(ODesc* d) const
|
||||
{
|
||||
d->Add("Input::READER_");
|
||||
d->Add(CanonicalName());
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue