mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-11 04:51:08 +00:00
Make it static and then use it both for argp_parse as well as cmd_register_argp. Split commands into five groups, to help understanding of their usefulness. Mention that each command has its own help text, and that we are being fancy to keep the user from having to give fs path. Signed-off-by: Andy Grover <agrover@versity.com>
16 lines
299 B
C
16 lines
299 B
C
#ifndef _CMD_H_
|
|
#define _CMD_H_
|
|
|
|
#define GROUP_CORE 0
|
|
#define GROUP_INFO 1
|
|
#define GROUP_SEARCH 2
|
|
#define GROUP_AGENT 3
|
|
#define GROUP_DEBUG 4
|
|
|
|
void cmd_register_argp(char *name, struct argp *argp, int group,
|
|
int (*func)(int argc, char **argv));
|
|
|
|
char cmd_execute(int argc, char **argv);
|
|
|
|
#endif
|