mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
compiles. sill doesn't do much.
This commit is contained in:
parent
9c8b0dec3b
commit
3654060246
9 changed files with 117 additions and 29 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
InputReader::InputReader()
|
||||
{
|
||||
|
||||
disabled = true; // disabled will be set correcty in init.
|
||||
}
|
||||
|
||||
InputReader::~InputReader()
|
||||
|
@ -18,17 +18,18 @@ void InputReader::Error(const char *msg)
|
|||
input_mgr->Error(this, msg);
|
||||
}
|
||||
|
||||
bool InputReader::Init(string source, string eventName) {
|
||||
//EventHandler* handler = event_registry->Lookup(eventName.c_str());
|
||||
|
||||
//if ( handler == 0 ) {
|
||||
// reporter->Error("Event %s not found", eventName.c_str());
|
||||
// return false;
|
||||
//}
|
||||
|
||||
//val_list* vl = new val_list;
|
||||
//vl->append(new Val(12, TYPE_COUNT));
|
||||
|
||||
//mgr.Dispatch(new Event(handler, vl));
|
||||
return true;
|
||||
bool InputReader::Init(string arg_source, int arg_num_fields,
|
||||
const LogField* const * arg_fields)
|
||||
{
|
||||
source = arg_source;
|
||||
num_fields = arg_num_fields;
|
||||
fields = arg_fields;
|
||||
|
||||
// disable if DoInit returns error.
|
||||
disabled = !DoInit(arg_source, arg_num_fields, arg_fields);
|
||||
return !disabled;
|
||||
}
|
||||
|
||||
void InputReader::Finish() {
|
||||
DoFinish();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue