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 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 |
Definition at line 11 of file configparse.h.
Referenced by build_access_list(), config_parse(), get_config_bool(), get_config_entry(), and load_modules().
| #define HASH_BY 1543 |
Definition at line 10 of file configparse.h.
Referenced by config_parse(), destroy_config_tree(), get_config_base(), get_config_bool(), and get_config_entry().
| int config_load | ( | char * | ) |
Open a config file and begine reading it
| file | (string) path to the file we are opening |
Open a config file and begin reading it
| file | (string) path to the file we are opening |
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
| (String) | Buffer we are to parse |
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().
| dlink_list config_tree[1568] |
Definition at line 30 of file configparse.h.
Referenced by config_parse(), destroy_config_tree(), get_config_base(), get_config_bool(), and get_config_entry().
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().
1.6.3