runmodes: add funcs to check if file loggers enabled

Add functions to check if file/filedata loggers are enabled.
pull/1315/head
Victor Julien 11 years ago
parent fbe6dac1ae
commit e58fd3cc6e

@ -436,6 +436,16 @@ static TmModule *file_logger_module = NULL;
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.
*/

@ -72,6 +72,11 @@ void RunModeInitializeOutputs(void);
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"

Loading…
Cancel
Save