qapi: improve device_add schema

'device_add' is still incomplete for now, but we can fix a few
arguments:
- 'bus' is a common argument, regardless of the device
- 'id' is an optional argument

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170113144135.5150-5-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
master
Marc-André Lureau 2017-01-13 15:41:18 +01:00 committed by Markus Armbruster
parent e22da431a7
commit b780e9c3f2
1 changed files with 2 additions and 2 deletions

View File

@ -2292,7 +2292,7 @@
#
# @bus: #optional the device's parent bus (device tree path)
#
# @id: the device's ID, must be unique
# @id: #optional the device's ID, must be unique
#
# Additional arguments depend on the type.
#
@ -2322,7 +2322,7 @@
# Since: 0.13
##
{ 'command': 'device_add',
'data': {'driver': 'str', 'id': 'str'},
'data': {'driver': 'str', '*bus': 'str', '*id': 'str'},
'gen': false } # so we can get the additional arguments
##