Lines Matching refs:config_t

44 struct config_t {  struct
51 static void config_parse(FILE *fp, config_t *config); argument
55 static section_t *section_find(const config_t *config, const char *section);
59 static entry_t *entry_find(const config_t *config, const char *section, const char *key);
61 config_t *config_new_empty(void) { in config_new_empty()
62 config_t *config = osi_calloc(sizeof(config_t)); in config_new_empty()
81 config_t *config_new(const char *filename) { in config_new()
84 config_t *config = config_new_empty(); in config_new()
99 void config_free(config_t *config) { in config_free()
107 bool config_has_section(const config_t *config, const char *section) { in config_has_section()
114 bool config_has_key(const config_t *config, const char *section, const char *key) { in config_has_key()
122 int config_get_int(const config_t *config, const char *section, const char *key, int def_value) { in config_get_int()
136 bool config_get_bool(const config_t *config, const char *section, const char *key, bool def_value) { in config_get_bool()
153 const char *config_get_string(const config_t *config, const char *section, const char *key, const c… in config_get_string()
165 void config_set_int(config_t *config, const char *section, const char *key, int value) { in config_set_int()
175 void config_set_bool(config_t *config, const char *section, const char *key, bool value) { in config_set_bool()
183 void config_set_string(config_t *config, const char *section, const char *key, const char *value) { in config_set_string()
203 bool config_remove_section(config_t *config, const char *section) { in config_remove_section()
214 bool config_remove_key(config_t *config, const char *section, const char *key) { in config_remove_key()
227 const config_section_node_t *config_section_begin(const config_t *config) { in config_section_begin()
232 const config_section_node_t *config_section_end(const config_t *config) { in config_section_end()
249 bool config_save(const config_t *config, const char *filename) { in config_save()
321 static void config_parse(FILE *fp, config_t *config) { in config_parse()
379 static section_t *section_find(const config_t *config, const char *section) { in section_find()
409 static entry_t *entry_find(const config_t *config, const char *section, const char *key) { in entry_find()