Omega Security Services 0.7.3

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 *, int)

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 begin reading it

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

Definition at line 93 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 *  )

Parse a config buffer

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

Do nothing

Do nothing

Do nothing

Definition at line 164 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, and ConfBase::map.

Referenced by config_load().

dlink_list* get_config_base ( char *  )

Definition at line 333 of file configparse.c.

References config_tree, HASH, and HASH_BY.

Referenced by build_access_list(), and load_modules().

int get_config_bool ( char *  ,
char *  ,
int   
)

Definition at line 363 of file configparse.c.

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

Referenced by Run(), and VerifyConf().

char* get_config_entry ( char *  ,
char *   
)

Definition at line 340 of file configparse.c.

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

Referenced by load_protocol(), and VerifyConf().


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().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines