@ -81,7 +81,7 @@ const char *thread_name_heartbeat = "HB";
*/
typedef struct RunMode_ {
/* the runmode type */
enum RunModes runmode ;
enum SC RunModes runmode ;
const char * name ;
const char * description ;
/* runmode function */
@ -177,7 +177,7 @@ static const char *RunModeTranslateModeToName(int runmode)
* \ param runmode The runmode type .
* \ param runmode_custom_id The runmode custom id .
*/
static RunMode * RunModeGetCustomMode ( enum RunModes runmode , const char * custom_mode )
static RunMode * RunModeGetCustomMode ( enum SC RunModes runmode , const char * custom_mode )
{
if ( runmode < RUNMODE_USER_MAX ) {
for ( int i = 0 ; i < runmodes [ runmode ] . cnt ; i + + ) {
@ -473,7 +473,7 @@ int RunModeNeedsBypassManager(void)
* \ param description Description for this runmode .
* \ param RunModeFunc The function to be run for this runmode .
*/
void RunModeRegisterNewRunMode ( enum RunModes runmode , const char * name , const char * description ,
void RunModeRegisterNewRunMode ( enum SC RunModes runmode , const char * name , const char * description ,
int ( * RunModeFunc ) ( void ) , int ( * RunModeIsIPSEnabled ) ( void ) )
{
if ( RunModeGetCustomMode ( runmode , name ) ! = NULL ) {
@ -535,7 +535,7 @@ int RunModeOutputFiledataEnabled(void)
return filedata_logger_count > 0 ;
}
bool IsRunModeSystem ( enum RunModes run_mode_to_check )
bool IsRunModeSystem ( enum SC RunModes run_mode_to_check )
{
switch ( run_mode_to_check ) {
case RUNMODE_PCAP_FILE :
@ -548,7 +548,7 @@ bool IsRunModeSystem(enum RunModes run_mode_to_check)
}
}
bool IsRunModeOffline ( enum RunModes run_mode_to_check )
bool IsRunModeOffline ( enum SC RunModes run_mode_to_check )
{
switch ( run_mode_to_check ) {
case RUNMODE_CONF_TEST :