|
| static char * | config_trim_whitespace (char *str) |
| |
| static config_section_t * | config_find_section (config_t *cfg, const char *section) |
| |
| static config_pair_t * | config_find_pair (config_section_t *sec, const char *key) |
| |
| config_t * | config_open (const char *prefix, const char *name) |
| | Open a configuration file.
|
| |
| void | config_close (config_t *config) |
| | Close a configuration file.
|
| |
| void | config_get (config_t *config, const char *section, uint64_t index, const char *fallback, const char **outValue, const char **outKey) |
| | Get a value as a string by index from a configuration file.
|
| |
| const char * | config_get_string (config_t *config, const char *section, const char *key, const char *fallback) |
| | Get a string value from a configuration file.
|
| |
| int64_t | config_get_int (config_t *config, const char *section, const char *key, int64_t fallback) |
| | Get an integer value from a configuration file.
|
| |
| bool | config_get_bool (config_t *config, const char *section, const char *key, bool fallback) |
| | Get a boolean value from a configuration file.
|
| |
| config_array_t * | config_get_array (config_t *config, const char *section, const char *key) |
| | Get an array of strings from a configuration file.
|
| |
| void | config_array_free (config_array_t *array) |
| | Free a configuration array.
|
| |