1 #ifndef _CONFFILE_H
2 #define _CONFFILE_H
3 
4 #include "cntr.h"
5 #include "strlist.h"
6 
7 extern void conf_set_cli_overrides(struct strlist *overrides);
8 
9 extern int conf_get_pair(char buf[], char **field, char **value, int *reset);
10 extern int get_file_size(const char *v, uint64_t *dest, const char *conf_path, int line);
11 extern int conf_parse_incexcs_buf(struct conf **confs, const char *incexc);
12 extern int conf_parse_incexcs_srestore(struct conf **confs, const char *incexc);
13 extern int conf_parse_incexcs_path(struct conf **confs, const char *path);
14 
15 extern int conf_load_clientconfdir(struct conf **globalcs,
16 	struct conf **ccconfs);
17 extern int conf_load_global_only(const char *path, struct conf **globalcs);
18 
19 extern const char *confs_get_lockfile(struct conf **confs);
20 
21 extern int conf_switch_to_orig_client(struct conf **globalcs,
22 	struct conf **cconfs, const char *orig_client);
23 
24 extern int reeval_glob(struct conf **c);
25 
26 extern char *config_default_path(void);
27 
28 extern int cname_valid(const char *cname);
29 
30 #ifdef UTEST
31 extern int conf_load_lines_from_buf(const char *buf, struct conf **c);
32 extern int conf_load_overrides(struct conf **globalcs, struct conf **cconfs,
33 	const char *path);
34 #endif
35 
36 #endif
37