aboutsummaryrefslogtreecommitdiff
path: root/cache-utils.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-11-26 22:58:59 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:23 -0600
commit25b422eb4051b9b7473feea1ae848f1e3b4f799f (patch)
tree10e47c3466337291d39521b4996586ad12563fdb /cache-utils.h
parent9b57c02e3e14163b576ada77ddd1d7b346a6e421 (diff)
downloadqemu-25b422eb4051b9b7473feea1ae848f1e3b4f799f.zip
qemu-25b422eb4051b9b7473feea1ae848f1e3b4f799f.tar.gz
qemu-25b422eb4051b9b7473feea1ae848f1e3b4f799f.tar.bz2
QMP: Output support
In the new Monitor output is always performed by only two functions: do_info() and monitor_call_handler(). To support QMP output, we modify those functions to check if we are in control mode. If so, we call monitor_protocol_emitter() to emit QMP output, otherwise we do regular output. QMP has two types of responses to issued commands: success and error. The outputed data is always a JSON object. Success responses have the following format: { "return": json-value, "id": json-value } Error responses have the following format: { "error": { "class": json-string, "desc": json-string, "data": json-value } "id": json-value } Please, note that the "id" key is part of the input code, and thus is not added in this commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'cache-utils.h')
0 files changed, 0 insertions, 0 deletions