]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
QMP: Return an empty dict by default
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 18 Dec 2009 15:25:00 +0000 (13:25 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 19 Dec 2009 14:26:27 +0000 (08:26 -0600)
commit3733a1e804db3de881b20c9b7abefa60b419113b
tree10d4000d09315208e9bd0934ea2ae90b397b545a
parent5b06a3f7852fad7ceeb427b733e2c4f7a0393683
QMP: Return an empty dict by default

Currently, when a regular command doesn't have any data to output,
QMP will emit:

{ "return": "OK" }

Returning an empty dict is better though, because dicts can support
some protocol changes in a compatible way.

So, with this commit we will return:

{ "return": {} }

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit e38fb11b5099db8de8d60d536d4a01610ee4c08b)
monitor.c