]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: Rename guest-get-devices return member 'address' to 'id'
authorMarkus Armbruster <armbru@redhat.com>
Wed, 21 Oct 2020 07:15:17 +0000 (09:15 +0200)
committerMichael Roth <michael.roth@amd.com>
Mon, 2 Nov 2020 14:14:35 +0000 (08:14 -0600)
commitb519e2e982f7f5368c5976ca44d9ca7bbb7a3378
treebee296d57a4ec0785cf99b42d7236541e58e1d07
parent2c6605389c1f76973d92b69b85d40d94b8f1092c
qga: Rename guest-get-devices return member 'address' to 'id'

Member 'address' is union GuestDeviceAddress with a single branch
GuestDeviceAddressPCI, containing PCI vendor ID and device ID.  This
is not a PCI address.  Type GuestPCIAddress is.  Messed up in recent
commit 2e4211cee4 "qga: add command guest-get-devices for reporting
VirtIO devices".

Rename type GuestDeviceAddressPCI to GuestDeviceIdPCI, type
GuestDeviceAddress to GuestDeviceId, and member 'address' to 'id'.

Document the member properly while there.

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