cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob ce7c4427c656a8cf46b7ac14a81776c66f84552d 819 bytes (raw)
$ git show HEAD:mgmt.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
 
/*
 * 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_wbuf;
struct mog_mgmt;

/* mgmt_parser.rl */
void mog_mgmt_init(struct mog_mgmt *, struct mog_svc *);
enum mog_parser_state mog_mgmt_parse(struct mog_mgmt *, char *buf, size_t len);
void mog_mgmt_reset_parser(struct mog_mgmt *);

/* mgmt_fn.c */
void mog_mgmt_fn_digest(struct mog_fd *, char *buf);
void mog_mgmt_fn_size(struct mog_mgmt *, char *buf);
void mog_mgmt_fn_blank(struct mog_mgmt *);
void mog_mgmt_fn_unknown(struct mog_mgmt *, char *buf);
void mog_mgmt_fn_watch_err(struct mog_mgmt *);
void mog_mgmt_fn_digest_emit(struct mog_fd *);
void mog_mgmt_fn_digest_err(struct mog_fd *);
void mog_mgmt_fn_aio_threads(struct mog_mgmt *, char *);

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