33 |
|
|
34 |
/* Structure definitions */ |
/* Structure definitions */ |
35 |
|
|
36 |
/* A linked list of key/value pairs */ |
/* A linked list of key/value pairs of the configuration file */ |
37 |
struct gn_cfg_entry { |
struct gn_cfg_entry { |
38 |
struct gn_cfg_entry *next, *prev; |
struct gn_cfg_entry *next, *prev; |
39 |
char *key; |
char *key; |
40 |
char *value; |
char *value; |
41 |
}; |
}; |
42 |
|
|
43 |
|
/* A linked list of the config file sections together with key included */ |
44 |
struct gn_cfg_header { |
struct gn_cfg_header { |
45 |
struct gn_cfg_header *next, *prev; |
struct gn_cfg_header *next, *prev; |
46 |
struct gn_cfg_entry *entries; |
struct gn_cfg_entry *entries; |