diff --git a/src/output-json-stats.c b/src/output-json-stats.c index 68701dd9d9..a94a5996ae 100644 --- a/src/output-json-stats.c +++ b/src/output-json-stats.c @@ -50,10 +50,6 @@ #ifdef HAVE_LIBJANSSON -#define JSON_STATS_TOTALS (1<<0) -#define JSON_STATS_THREADS (1<<1) -#define JSON_STATS_DELTAS (1<<2) - typedef struct OutputStatsCtx_ { LogFileCtx *file_ctx; uint32_t flags; /** Store mode */ diff --git a/src/output-json-stats.h b/src/output-json-stats.h index 9ad1d9b816..ab1e6b55c0 100644 --- a/src/output-json-stats.h +++ b/src/output-json-stats.h @@ -24,6 +24,15 @@ #ifndef __OUTPUT_JSON_COUNTERS_H__ #define __OUTPUT_JSON_COUNTERS_H__ +#include "output-stats.h" + +#define JSON_STATS_TOTALS (1<<0) +#define JSON_STATS_THREADS (1<<1) +#define JSON_STATS_DELTAS (1<<2) + +#ifdef HAVE_LIBJANSSON +json_t *StatsToJSON(const StatsTable *st, uint8_t flags); +#endif void TmModuleJsonStatsLogRegister (void); #endif /* __OUTPUT_JSON_COUNTERS_H__ */