FlowLogger LogFunc;
OutputCtx *output_ctx;
struct OutputFlowLogger_ *next;
+
+ /** A name for this logger, used for debugging only. */
const char *name;
+
TmEcode (*ThreadInit)(ThreadVars *, const void *, void **);
TmEcode (*ThreadDeinit)(ThreadVars *, void *);
void (*ThreadExitPrintStats)(ThreadVars *, void *);
static OutputFlowLogger *list = NULL;
+/**
+ * \brief Register a new low-level flow logger.
+ *
+ * \param name The name of this logger. Its only used for debugging,
+ * so choose something unique.
+ *
+ * \retval 0 on success, -1 on failure.
+ */
int OutputRegisterFlowLogger(const char *name, FlowLogger LogFunc,
OutputCtx *output_ctx, ThreadInitFunc ThreadInit,
ThreadDeinitFunc ThreadDeinit,