Lines Matching refs:config_t
25 typedef struct config_t config_t; typedef
31 config_t *config_new_empty(void);
38 config_t *config_new(const char *filename);
43 void config_free(config_t *config);
48 bool config_has_section(const config_t *config, const char *section);
52 bool config_has_key(const config_t *config, const char *section, const char *key);
58 int config_get_int(const config_t *config, const char *section, const char *key, int def_value);
63 bool config_get_bool(const config_t *config, const char *section, const char *key, bool def_value);
69 const char *config_get_string(const config_t *config, const char *section, const char *key, const c…
74 void config_set_int(config_t *config, const char *section, const char *key, int value);
79 void config_set_bool(config_t *config, const char *section, const char *key, bool value);
84 void config_set_string(config_t *config, const char *section, const char *key, const char *value);
89 bool config_remove_section(config_t *config, const char *section);
94 bool config_remove_key(config_t *config, const char *section, const char *key);
101 const config_section_node_t *config_section_begin(const config_t *config);
108 const config_section_node_t *config_section_end(const config_t *config);
127 bool config_save(const config_t *config, const char *filename);