configparse.h File Reference

Go to the source code of this file.

Data Structures

struct  ConfBase
struct  ConfEntry

Defines

#define CONF_REQUIRED   1
#define CONF_OPTIONAL   0
#define HASH_BY   1543
#define HASH_B   254

Functions

int config_load (char *)
int config_parse (char *)
dlink_list * get_config_base (char *)
char * get_config_entry (char *, char *)
int get_config_bool (char *, char *)

Variables

dlink_list config_tree [1568]
int config_tree_index [1568]
int config_tree_entries

Define Documentation

#define CONF_OPTIONAL   0

Definition at line 7 of file configparse.h.

#define CONF_REQUIRED   1

Definition at line 6 of file configparse.h.

#define HASH_B   254
#define HASH_BY   1543

Function Documentation

int config_load ( char *   ) 

Open a config file and begine reading it

Parameters:
file (string) path to the file we are opening
Returns:
(int) 1 on success

Open a config file and begin reading it

Parameters:
file (string) path to the file we are opening
Returns:
(int) 1 on success

Definition at line 68 of file config_test.c.

References config_parse(), current_file, include_cnt, include_stack, and MAX_INCLUDE.

Referenced by config_parse(), config_test(), main(), and Rehash().

int config_parse ( char *  buffer  ) 

Parse a config buffer

Parameters:
(String) Buffer we are to parse
Returns:
(int) 1 on success

Do nothing

Definition at line 113 of file config_test.c.

References config_load(), config_tree, config_tree_entries, config_tree_index, current_file, dlink_add_tail(), dlink_create(), ConfBase::entry_cnt, HASH, HASH_B, HASH_BY, ConfBase::map, ConfEntry::name, and ConfEntry::value.

Referenced by config_load().

dlink_list* get_config_base ( char *   ) 

Definition at line 331 of file configparse.c.

References config_tree, HASH, and HASH_BY.

Referenced by build_access_list(), load_modules(), and SigHandler().

int get_config_bool ( char *  ,
char *   
)

Definition at line 361 of file configparse.c.

References config_tree, DLINK_FOREACH, HASH, HASH_B, HASH_BY, and ConfBase::map.

Referenced by Run().

char* get_config_entry ( char *  ,
char *   
)

Definition at line 338 of file configparse.c.

References config_tree, DLINK_FOREACH, HASH, HASH_B, HASH_BY, and ConfBase::map.

Referenced by InitDefaults(), and load_protocol().


Variable Documentation

dlink_list config_tree[1568]

Definition at line 33 of file configparse.h.

Referenced by config_parse(), and destroy_config_tree().

int config_tree_index[1568]

Definition at line 32 of file configparse.h.

Referenced by config_parse(), and destroy_config_tree().

Generated on Mon Jul 19 21:53:04 2010 for Omega Security Services by  doxygen 1.6.3