]> git.proxmox.com Git - mirror_qemu.git/commit - qga/qapi-schema.json
qga: Use common time encoding for guest-get-devices 'driver-date'
authorMarkus Armbruster <armbru@redhat.com>
Wed, 21 Oct 2020 07:15:18 +0000 (09:15 +0200)
committerMichael Roth <michael.roth@amd.com>
Mon, 2 Nov 2020 14:14:35 +0000 (08:14 -0600)
commita88bceef789f0b8bfe96bb77cef686e9b4976699
treea112330ddb79e3e1fb08616af91490c338cdf507
parentb519e2e982f7f5368c5976ca44d9ca7bbb7a3378
qga: Use common time encoding for guest-get-devices 'driver-date'

guest-get-devices returns 'driver-date' as string in the format
YYYY-MM-DD.  Goes back to recent commit 2e4211cee4 "qga: add command
guest-get-devices for reporting VirtIO devices".

We should avoid use of multiple encodings for the same kind of data.
Especially string encodings.  Change it to return nanoseconds since
the epoch, like guest-get-time does.

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