1 |
#ifdef __cplusplus
|
2 |
extern "C" {
|
3 |
#endif
|
4 |
extern struct config *config;
|
5 |
extern int config_empty_ok;
|
6 |
/* prototypes */
|
7 |
enum attr_type;
|
8 |
struct attr;
|
9 |
struct attr_iter;
|
10 |
struct config;
|
11 |
struct config * config_get(void);
|
12 |
void config_destroy(struct config *this_);
|
13 |
int config_get_attr(struct config *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
|
14 |
int config_set_attr(struct config *this_, struct attr *attr);
|
15 |
int config_add_attr(struct config *this_, struct attr *attr);
|
16 |
int config_remove_attr(struct config *this_, struct attr *attr);
|
17 |
struct attr_iter *config_attr_iter_new(void);
|
18 |
void config_attr_iter_destroy(struct attr_iter *iter);
|
19 |
struct config *config_new(struct attr *parent, struct attr **attrs);
|
20 |
/* end of prototypes */
|
21 |
#ifdef __cplusplus
|
22 |
}
|
23 |
#endif
|