cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob eefa4c9be8c23f3c5639cd6ec9b24b2914f767f1 874 bytes (raw)
$ git show HEAD:cfg.h	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
/*
 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 */
struct mog_svc;
struct mog_cfg {
	const char *docroot;
	bool daemonize;
	unsigned long maxconns;
	const char *pidfile;
	const char *configfile; /* expanded path */
	const char *config; /* command-line arg */
	const char *server;
	struct mog_addrinfo *httplisten;
	struct mog_addrinfo *mgmtlisten;
	struct mog_addrinfo *httpgetlisten; /* unique to cmogstored */
	struct mog_svc *svc;
};

void mog_cfg_validate_or_die(struct mog_cfg *cli);
bool mog_cfg_validate_one(void *ent, void *cli);
bool mog_cfg_validate_multi(void *ent, void *cli);
bool mog_cfg_validate_daemon(void *ent, void *nerr);
void mog_cfg_die_if_cli_set(struct mog_cfg *);
void mog_cfg_merge_defaults(struct mog_cfg *);
void mog_cfg_check_server(struct mog_cfg *);

git clone https://yhbt.net/cmogstored.git