-/* Copyright (C) 2014 Open Information Security Foundation
+/* Copyright (C) 2014-2022 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
/** per thread data for this module, contains a list of per thread
* data for the packet loggers. */
-typedef struct OutputLoggerThreadData_ {
+typedef struct OutputStatsLoggerThreadData_ {
OutputLoggerThreadStore *store;
-} OutputLoggerThreadData;
+} OutputStatsLoggerThreadData;
/* logger instance, a module + a output ctx,
* it's perfectly valid that have multiple instances of the same
DEBUG_VALIDATE_BUG_ON(thread_data == NULL);
DEBUG_VALIDATE_BUG_ON(list == NULL);
- OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data;
+ OutputStatsLoggerThreadData *op_thread_data = (OutputStatsLoggerThreadData *)thread_data;
OutputStatsLogger *logger = list;
OutputLoggerThreadStore *store = op_thread_data->store;
* loggers */
static TmEcode OutputStatsLogThreadInit(ThreadVars *tv, const void *initdata, void **data)
{
- OutputLoggerThreadData *td = SCMalloc(sizeof(*td));
+ OutputStatsLoggerThreadData *td = SCMalloc(sizeof(*td));
if (td == NULL)
return TM_ECODE_FAILED;
memset(td, 0x00, sizeof(*td));
static TmEcode OutputStatsLogThreadDeinit(ThreadVars *tv, void *thread_data)
{
- OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data;
+ OutputStatsLoggerThreadData *op_thread_data = (OutputStatsLoggerThreadData *)thread_data;
OutputLoggerThreadStore *store = op_thread_data->store;
OutputStatsLogger *logger = list;
static void OutputStatsLogExitPrintStats(ThreadVars *tv, void *thread_data)
{
- OutputLoggerThreadData *op_thread_data = (OutputLoggerThreadData *)thread_data;
+ OutputStatsLoggerThreadData *op_thread_data = (OutputStatsLoggerThreadData *)thread_data;
OutputLoggerThreadStore *store = op_thread_data->store;
OutputStatsLogger *logger = list;