diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-07-03 10:53:50 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-07-03 23:18:56 +0200 |
commit | 65e3fe6743af08bd0bc79b3d6158e91d572afc57 (patch) | |
tree | 6f448aa5f3877f257a64849ddb1b78de7604d028 /fpu | |
parent | d43b16945afa8457b03aee543a110c4ff0b7f070 (diff) | |
download | qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.zip qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.tar.gz qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.tar.bz2 |
qmp: Replace monitor_json_emitter{,raw}() by qmp_{queue,send}_response()
monitor_json_emitter() and monitor_json_emitter_raw() are
unnecessarily general: they can send arbitrary JSON values, even
though we only ever use them for QMP, which may send only JSON
objects.
Specialize the argument from QObject * to QDict *, and rename to
qmp_queue_response(), qmp_send_response().
All callers but one lose an upcast. The lone exception gains a
downcast; the next commit will get rid of it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180703085358.13941-25-armbru@redhat.com>
Diffstat (limited to 'fpu')
0 files changed, 0 insertions, 0 deletions