1 #ifndef  __VARLIST_H
2 #define  __VARLIST_H
3 
4 typedef struct varlist_struct varlist;
5 typedef struct varlist_struct *varlist_p;
6 struct varlist_struct
7 {
8     /* name for this variable */
9     char      *name;
10 
11     /* value for this variable */
12     char      *value;
13 
14     /* next variable in the list, or NULL */
15     varlist_p next;
16 };
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
22 varlist_p varlist_init(void);
23 void      varlist_destroy(varlist_p variable_list);
24 char *    varlist_get_value(varlist_p variable_list, char *name);
25 int       varlist_set_value(varlist_p *variable_list, char *name, char *value);
26 
27 #ifdef __cplusplus
28 }
29 #endif /* __cplusplus */
30 
31 #endif /* __VARLIST_H */
32