aboutsummaryrefslogtreecommitdiff
path: root/cmd.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-06-05 14:19:36 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-06-06 11:27:05 +0200
commitc2cdf5c5892165cbe7d3567bff5930521bc52669 (patch)
treebe093161ef00d2b352f9c55bdc6bea52638cc8c3 /cmd.h
parenta38ed811474e953371f848233208c2026c2d1195 (diff)
downloadqemu-c2cdf5c5892165cbe7d3567bff5930521bc52669.zip
qemu-c2cdf5c5892165cbe7d3567bff5930521bc52669.tar.gz
qemu-c2cdf5c5892165cbe7d3567bff5930521bc52669.tar.bz2
qemu-io: Move functions for registering and running commands
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'cmd.h')
-rw-r--r--cmd.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/cmd.h b/cmd.h
index 5b6f61b..0d01a33 100644
--- a/cmd.h
+++ b/cmd.h
@@ -39,23 +39,16 @@ typedef struct cmdinfo {
helpfunc_t help;
} cmdinfo_t;
-extern cmdinfo_t *cmdtab;
-extern int ncmds;
-
typedef int (*checkfunc_t)(BlockDriverState *bs, const cmdinfo_t *ci);
-void add_command(const cmdinfo_t *ci);
+void qemuio_add_command(const cmdinfo_t *ci);
void add_user_command(char *optarg);
void add_check_command(checkfunc_t cf);
-const cmdinfo_t *find_command(const char *cmd);
-
void command_loop(void);
-int command_usage(const cmdinfo_t *ci);
-int command(const cmdinfo_t *ci, int argc, char **argv);
+int qemuio_command_usage(const cmdinfo_t *ci);
/* from input.h */
-char **breakline(char *input, int *count);
char *fetchline(void);
void cvtstr(double value, char *str, size_t sz);