]> git.proxmox.com Git - mirror_qemu.git/commit - qga/qapi-schema.json
qga: Flatten simple union GuestDeviceId
authorMarkus Armbruster <armbru@redhat.com>
Wed, 21 Oct 2020 07:15:20 +0000 (09:15 +0200)
committerMichael Roth <michael.roth@amd.com>
Mon, 2 Nov 2020 14:14:36 +0000 (08:14 -0600)
commit0083124b3adb67bb740f1f06c2360335a5ce1533
tree9684afe4afe62b5ae134542b86c359ff7c13b59d
parent939caddc2c24a9f4840e5d9d52eb0465deed1c47
qga: Flatten simple union GuestDeviceId

Simple unions are simpler than flat unions in the schema, but more
complicated in C and on the QMP wire: there's extra indirection in C
and extra nesting on the wire, both pointless.  They should be avoided
in new code.

GuestDeviceId was recently added for guest-get-devices.  Convert it to
a flat union.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
qga/commands-win32.c
qga/qapi-schema.json