]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
qmp: Use QDict * instead of QObject * for response objects
authorMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 08:53:49 +0000 (10:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 3 Jul 2018 21:18:56 +0000 (23:18 +0200)
commitd43b16945afa8457b03aee543a110c4ff0b7f070
tree3639afe23f1067412e3eaa6baa2bf345ef2b5fc1
parentcee32796cadc9510ee00f029a933009df7a28ae2
qmp: Use QDict * instead of QObject * for response objects

By using the more specific type, we get fewer downcasts.  The
downcasts are safe, but not obviously so, at least not locally.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180703085358.13941-24-armbru@redhat.com>
include/qapi/qmp/dispatch.h
monitor.c
qapi/qmp-dispatch.c
qga/main.c
tests/test-qmp-cmds.c