1 #include <sys/types.h>
2 
3 struct config_choice {
4 	char *name;
5 	int val;
6 };
7 
8 int config_choice(const char *header, const char *name, const struct config_choice *c);
9 char *config_string(const char *header, const char *name);
10 int config_number(const char *header, const char *name, char *fmt, void *val);
11 int config_bool(const char *header, const char *name);
12 int parse_config_file(const char *fn);
13 const char *config_file(char **av, const char *deffn);
14 struct option;
15 void config_options(struct option *opts, int (*func)(int));
16 struct bucket_conf;
17 int config_trigger(const char *header, const char *name, struct bucket_conf *bc);
18 
19 struct config_cred {
20 	uid_t uid;
21 	gid_t gid;
22 };
23 
24 void config_cred(char *header, char *name, struct config_cred *cred);
25