Statistics
| Branch: | Revision:

root / cmd.h @ 0b613881

History | View | Annotate | Download (1.3 kB)

# Date Author Comment
c2cdf5c5 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move functions for registering and running commands

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

d1174f13 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move command_loop() and friends

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

0b613881 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move remaining helpers from cmd.c

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

734c3b85 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Don't use global bs in command implementations

Pass in the BlockDriverState to the command handlers instead of using
the global variable. This is an important step to make the commands
usable outside of qemu-io.

Signed-off-by: Kevin Wolf <>...

dd583296 06/06/2013 12:27 pm Kevin Wolf

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 <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

f18a834a 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move 'help' function

No reason to treat it different from other commands. Move it to
qemu-io-cmds.c, adapt the coding style and register it like any other
command.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...

e681be7e 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move 'quit' function

This one only makes sense in the context of the qemu-io tool, so move it
to qemu-io.c. Adapt coding style and register it like other commands.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...

a23818f4 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Remove unused args_command

The original intention seems to be something with handling multiple
images at once, but this has never been implemented and the only
function ever registered is implemented to make everything behave like a
"global" command. Just do that unconditionally now....

b6e356aa 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Make cvtnum() a wrapper around strtosz_suffix()

No reason to implement the same thing multiple times. A nice side effect
is that fractional numbers like 0.5M can be used in qemu-io now.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...

64b85a8f 01/23/2011 06:21 pm Blue Swirl

Delete useless 'extern' qualifiers for functions

'extern' qualifier is useless for function declarations. Delete
them.

Signed-off-by: Blue Swirl <>

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

856ae5c3 04/07/2009 08:57 pm blueswir1

Fix a few Sparse warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162

e3aff4f6 04/05/2009 10:14 pm aliguori

Add files not included in previous commit.

Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6995 c046a42c-6fe2-441c-8c8c-71466251a162