[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v8 04/21] qapi: improve device_add schema
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH v8 04/21] qapi: improve device_add schema |
Date: |
Fri, 13 Jan 2017 15:41:18 +0100 |
'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 <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
qapi-schema.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index c18a59fefc..70e32570e8 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -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
##
--
2.11.0
- [Qemu-devel] [PATCH v8 00/21] qapi doc generation (whole version, squashed), Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 01/21] qapi: replace 'o' for list items, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 02/21] qapi: move QKeyCode doc body at the top, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 03/21] qapi: make TODOs named-sections, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 04/21] qapi: improve device_add schema,
Marc-André Lureau <=
- [Qemu-devel] [PATCH v8 05/21] qapi: improve TransactionAction doc, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 06/21] qga/schema: improve guest-set-vcpus Returns: section, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 07/21] qapi: avoid interleaving sections and parameters, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 09/21] qapi: add some sections in docs, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 10/21] docs: add master qapi texi files, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 08/21] qapi: move experimental note down, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 12/21] qapi.py: fix line break before binary operator pep8, Marc-André Lureau, 2017/01/13