Add functions to check if file/filedata loggers are enabled.
static TmModule *filedata_logger_module = NULL;
static TmModule *streaming_logger_module = NULL;
+int RunModeOutputFileEnabled(void)
+{
+ return (file_logger_module != NULL);
+}
+
+int RunModeOutputFiledataEnabled(void)
+{
+ return (filedata_logger_module != NULL);
+}
+
/**
* Cleanup the run mode.
*/
void SetupOutputs(ThreadVars *);
void RunModeShutDown(void);
+/* bool indicating if file logger is enabled */
+int RunModeOutputFileEnabled(void);
+/* bool indicating if filedata logger is enabled */
+int RunModeOutputFiledataEnabled(void);
+
#include "runmode-pcap.h"
#include "runmode-pcap-file.h"
#include "runmode-pfring.h"