cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 8b5d40dc35336775b206bd97d6eb80892e1a9a00 867 bytes (raw)
$ git show gl-env: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-2016 all contributors <cmogstored-public@bogomips.org>
 * License: GPLv3 or later (see COPYING for details)
 */
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