Go to the documentation of this file.
38 #define OUTPUT_NAME "nullsink"
40 static int NullLogInit(
const ConfNode *conf,
const bool threaded,
void **init_data)
46 static int NullLogWrite(
47 const char *buffer,
const int buffer_len,
const void *init_data,
void *thread_data)
52 static int NullLogThreadInit(
const void *init_data,
const ThreadId thread_id,
void **thread_data)
58 static void NullLogThreadDeInit(
const void *init_data,
void *thread_data)
62 static void NullLogDeInit(
void *init_data)
72 if (file_type == NULL) {
77 file_type->
Init = NullLogInit;
78 file_type->
Deinit = NullLogDeInit;
79 file_type->
Write = NullLogWrite;
const char * name
The name of the output, used in the configuration.
int(* Write)(const char *buffer, const int buffer_len, const void *init_data, void *thread_data)
Called for each EVE log record.
void(* ThreadDeinit)(const void *init_data, void *thread_data)
Called to deinitialize each thread.
bool SCRegisterEveFileType(SCEveFileType *plugin)
Register an Eve file type.
void NullLogInitialize(void)
void(* Deinit)(void *init_data)
Final call to deinitialize this filetype.
int(* Init)(const ConfNode *conf, const bool threaded, void **init_data)
Function to initialize this filetype.
int(* ThreadInit)(const void *init_data, const ThreadId thread_id, void **thread_data)
Initialize thread specific data.
Structure used to define an EVE output file type plugin.