diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-06-05 14:19:32 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-06 11:27:04 +0200 |
commit | dd5832967ac3fe96bd5bf9f199639176998ead69 (patch) | |
tree | a5053905409672db4fc98332fcc44824ed01a521 /cmd.h | |
parent | 797ac58cb2093ab9192d8998a1fef85d87cc8661 (diff) | |
download | qemu-dd5832967ac3fe96bd5bf9f199639176998ead69.zip qemu-dd5832967ac3fe96bd5bf9f199639176998ead69.tar.gz qemu-dd5832967ac3fe96bd5bf9f199639176998ead69.tar.bz2 |
qemu-io: Factor out qemuio_command
It's duplicated code. Move it to qemu-io-cmds.c because it's not
dependent on any static data of the qemu-io tool.
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,7 +59,6 @@ int command(const cmdinfo_t *ci, int argc, char **argv); /* from input.h */ char **breakline(char *input, int *count); -void doneline(char *input, char **vec); char *fetchline(void); void cvtstr(double value, char *str, size_t sz); @@ -77,4 +76,6 @@ void timestr(struct timeval *tv, char *str, size_t sz, int flags); extern char *progname; +bool qemuio_command(const char *cmd); + #endif /* __COMMAND_H__ */ |