diff options
| author | Markus Armbruster | 2018-07-03 10:53:50 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2018-07-03 23:18:56 +0200 |
| commit | 65e3fe6743af08bd0bc79b3d6158e91d572afc57 (patch) | |
| tree | 6f448aa5f3877f257a64849ddb1b78de7604d028 /scripts/switch-timer-api | |
| parent | qmp: Use QDict * instead of QObject * for response objects (diff) | |
| download | qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.tar.gz qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.tar.xz qemu-65e3fe6743af08bd0bc79b3d6158e91d572afc57.zip | |
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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
