diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-02-03 21:00:17 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-02-03 21:00:17 +0200 |
commit | d675085a67fba325c7c35dbf3b2ec544354f7742 (patch) | |
tree | be4fdc3517270c3c17154b4cf8898383657d26b9 /commands.h | |
parent | 8b4e3d8b5b9e3cb65b244fec55d93608d1a1e319 (diff) |
Btrfs-progs: switch all existing commands to a new parser
The new infrastructure offloads checking number of arguments passed to a
command to individual command handlers. Fix them up accordingly.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'commands.h')
-rw-r--r-- | commands.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -78,3 +78,18 @@ void help_unknown_token(const char *arg, const struct cmd_group *grp); void help_ambiguous_token(const char *arg, const struct cmd_group *grp); void help_command_group(const struct cmd_group *grp, int argc, char **argv); + +/* common.c */ +int open_file_or_dir(const char *fname); + +extern const struct cmd_group subvolume_cmd_group; +extern const struct cmd_group filesystem_cmd_group; +extern const struct cmd_group device_cmd_group; +extern const struct cmd_group scrub_cmd_group; +extern const struct cmd_group inspect_cmd_group; + +int cmd_subvolume(int argc, char **argv); +int cmd_filesystem(int argc, char **argv); +int cmd_device(int argc, char **argv); +int cmd_scrub(int argc, char **argv); +int cmd_inspect(int argc, char **argv); |