File: config.h

package info (click to toggle)
mcelog 104-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 996 kB
  • ctags: 1,508
  • sloc: ansic: 7,739; sh: 481; makefile: 87
file content (24 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <sys/types.h>

struct config_choice {
	char *name;
	int val;
};

int config_choice(const char *header, const char *name, const struct config_choice *c);
char *config_string(const char *header, const char *name);
int config_number(const char *header, const char *name, char *fmt, void *val);
int config_bool(const char *header, const char *name);
int parse_config_file(const char *fn);
const char *config_file(char **av, const char *deffn);
struct option;
void config_options(struct option *opts, int (*func)(int));
struct bucket_conf;
int config_trigger(const char *header, const char *name, struct bucket_conf *bc);

struct config_cred {
	uid_t uid;
	gid_t gid;
};

void config_cred(char *header, char *name, struct config_cred *cred);