]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/qmp-registry.c
qapi: add support for command options
authorLuiz Capitulino <lcapitulino@redhat.com>
Tue, 8 May 2012 17:24:44 +0000 (14:24 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 15 May 2012 14:15:16 +0000 (09:15 -0500)
commitd34b867d816585900b72d09d42a34cea3057903d
tree2aa501d2c933659db2597959c1349be2268a86b0
parent76ee152a86d5f2533443ce4d2be6fe253cfb3c45
qapi: add support for command options

Options allow for changes in commands behavior. This commit introduces
the QCO_NO_SUCCESS_RESP option, which causes a command to not emit a
success response.

This is needed by commands such as qemu-ga's guest-shutdown, which
may not be able to complete before the VM vanishes. In this case, it's
useful and simpler not to bother sending a success response.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qapi/qmp-core.h
qapi/qmp-dispatch.c
qapi/qmp-registry.c
scripts/qapi-commands.py