1 #ifndef _CONF_PARSER_H_
2 #define _CONF_PARSER_H_
5 * This is the structure defining a token. A token is either a word or
6 * a string surrounded by double quotes.
9 TAILQ_ENTRY(token) next;
11 unsigned offset; /* offset in line */
14 /* A line is a list of token, plus a flag indicating if the line
15 * starts with space/tab */
16 TAILQ_HEAD(token_list, token);
19 struct token_list token_list;
25 int confnode_check_deps(const struct confnode *n, int verbose);
26 struct confnode *conf_reset_and_read(struct confnode *prev,
27 const char *dotconfig_filename);
29 int parse_conf_file(const char *filename, struct confnode **pparent,
30 struct confnode **pcurrent);
31 int confnode_get_value(const struct confnode *n, char *buf, unsigned buflen);
33 #endif /* _CONF_PARSER_H_ */