engine/parse_rules.h File Reference

#include "../config.h"
#include "hlbr.h"
#include <stdio.h>

Go to the source code of this file.

Functions

int ParseRules (char *FName)
int ParseDecoderLine (char *DecoderLine, int RuleNum)
int SetAction (int RuleID, char *ActionName)


Function Documentation

int ParseDecoderLine ( char *  DecoderLine,
int  RuleNum 
)

int ParseRules ( char *  FName  ) 

Definition at line 200 of file parse_rules.c.

References DEBUGPATH, FALSE, fp, GetLine(), Globals, ParseRule(), ParseRules(), global_vars::RulesFilename, and TRUE.

Referenced by main(), and ParseRules().

int SetAction ( int  RuleID,
char *  ActionName 
)

Set the action on a rule. Look up an action named ActionName in the actions list and returns its number.

Returns:
Action number if found, ACTION_NONE if not found

Definition at line 24 of file parse_rules.c.

References global_vars::Actions, DEBUGPATH, Globals, action_rec::Name, and global_vars::NumActions.

Referenced by ParseRule().


Generated on Sat Jul 7 23:33:10 2007 for HLBR by  doxygen 1.5.2