38#define OUTPUT_NAME "nullsink"
40static int NullLogInit(
const SCConfNode *conf,
const bool threaded,
void **init_data)
46static int NullLogWrite(
47 const char *buffer,
const int buffer_len,
const void *init_data,
void *thread_data)
52static int NullLogThreadInit(
const void *init_data,
const ThreadId thread_id,
void **thread_data)
58static void NullLogThreadDeInit(
const void *init_data,
void *thread_data)
62static 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;
void NullLogInitialize(void)
bool SCRegisterEveFileType(SCEveFileType *plugin)
Register an Eve file type.
Structure used to define an EVE output file type plugin.
void(* Deinit)(void *init_data)
Final call to deinitialize this filetype.
int(* Init)(const SCConfNode *conf, const bool threaded, void **init_data)
Function to initialize this filetype.
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.
const char * name
The name of the output, used in the configuration.
int(* ThreadInit)(const void *init_data, const ThreadId thread_id, void **thread_data)
Initialize thread specific data.