Functions | |
void | u_config_print (u_config_t *c, int lev) |
Print configuration to stdout . | |
int | u_config_load (u_config_t *c, int fd, int overwrite) |
Load a configuration file. | |
int | u_config_create (u_config_t **pc) |
Create a config object. | |
int | u_config_free (u_config_t *c) |
Free a config object and all its children. | |
const char * | u_config_get_key (u_config_t *c) |
Return the key of a config object. | |
const char * | u_config_get_value (u_config_t *c) |
Return the value of a config object. | |
const char * | u_config_get_subkey_value (u_config_t *c, const char *subkey) |
Return the value of a subkey. | |
int | u_config_get_subkey_value_i (u_config_t *c, const char *subkey, int def, int *out) |
Return the value of an integer subkey. | |
int | u_config_get_subkey_value_b (u_config_t *c, const char *subkey, int def, int *out) |
Return the value of an bool subkey. |
|
Create a config object. Use u_config_set_key(...) to set its key/value pairs.
Definition at line 441 of file config.c. References u_config_free(), and u_zalloc(). |
|
Free a config object and all its children.
Definition at line 482 of file config.c. Referenced by u_config_create(). |
|
Return the key string of a config object.
|
|
Return the value of the child config object whose key is
Definition at line 551 of file config.c. References u_config_get_value(). Referenced by u_config_get_subkey_value_b(), and u_config_get_subkey_value_i(). |
|
Return the bool value of the child config object whose key is Recognized bool values are (case insensitive) yes/no, 1/0, enable/disable.
Definition at line 613 of file config.c. References u_config_get_subkey_value(). |
|
Return the integer value (atoi is used for conversion) of the child config object whose key is
Definition at line 575 of file config.c. References u_config_get_subkey_value(). |
|
Return the value string of a config object.
Definition at line 532 of file config.c. Referenced by u_config_get_subkey_value(). |
|
Fill a config object with key/value pairs loaded from the configuration file linked to the descriptor
|
|
Print a configuration object and its children to
|