Go to the documentation of this file.
38 #define OUTPUT_NAME "nullsink"
40 static int NullLogInit(
const SCConfNode *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;
SCEveFileTypeDeinitFunc Deinit
Final call to deinitialize this filetype.
const char * name
The name of the output, used in the configuration.
SCEveFileTypeWriteFunc Write
Called for each EVE log record.
SCEveFileTypeThreadDeinitFunc ThreadDeinit
Called to deinitialize each thread.
SCEveFileTypeThreadInitFunc ThreadInit
Initialize thread specific data.
SCEveFileTypeInitFunc Init
Function to initialize this filetype.
bool SCRegisterEveFileType(SCEveFileType *plugin)
Register an Eve file type.
void NullLogInitialize(void)
Structure used to define an EVE output file type.