[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 20/34] qapi: Add feature flags to struct members
From: |
Eric Blake |
Subject: |
Re: [PATCH v4 20/34] qapi: Add feature flags to struct members |
Date: |
Tue, 17 Mar 2020 15:27:40 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 3/17/20 6:54 AM, Markus Armbruster wrote:
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
---
+++ b/qapi/introspect.json
@@ -206,11 +206,15 @@
# Future extension: if present and non-null, the parameter
# is optional, and defaults to this value.
#
+# @features: names of features associated with the member, in no
+# particular order. (since 5.0)
We're down to the soft-freeze wire ;)
+#
# Since: 2.5
##
{ 'struct': 'SchemaInfoObjectMember',
- 'data': { 'name': 'str', 'type': 'str', '*default': 'any' } }
+ 'data': { 'name': 'str', 'type': 'str', '*default': 'any',
# @default's type must be null or match @type
+ '*features': [ 'str' ] } }
The comment was outside the overall definition, and now occurs
mid-object. I might have listed '*features' first, leaving '*default'
last so that the comment can still be outside the overall struct. But
that's aesthetics; the QAPI parser handles things correctly as-is.
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [PATCH v4 29/34] qapi: Implement deprecated-output=hide for QMP events, (continued)
- [PATCH v4 29/34] qapi: Implement deprecated-output=hide for QMP events, Markus Armbruster, 2020/03/17
- [PATCH v4 34/34] qapi: New -compat deprecated-input=crash, Markus Armbruster, 2020/03/17
- [PATCH v4 19/34] qapi/schema: Call QAPIDoc.connect_member() in just one place, Markus Armbruster, 2020/03/17
- [PATCH v4 26/34] qapi: Mark deprecated QMP parts with feature 'deprecated', Markus Armbruster, 2020/03/17
- [PATCH v4 17/34] qapi/schema: Reorder classes so related ones are together, Markus Armbruster, 2020/03/17
- [PATCH v4 31/34] qapi: Implement deprecated-output=hide for QMP introspection, Markus Armbruster, 2020/03/17
- [PATCH v4 33/34] qapi: Implement deprecated-input=reject for QMP command arguments, Markus Armbruster, 2020/03/17
- [PATCH v4 12/34] qapi: Add feature flags to remaining definitions, Markus Armbruster, 2020/03/17
- [PATCH v4 20/34] qapi: Add feature flags to struct members, Markus Armbruster, 2020/03/17
- Re: [PATCH v4 20/34] qapi: Add feature flags to struct members,
Eric Blake <=
- [PATCH v4 15/34] qapi/introspect: Factor out _make_tree(), Markus Armbruster, 2020/03/17
- [PATCH v4 14/34] qapi/introspect: Rename *qlit* to reduce confusion, Markus Armbruster, 2020/03/17
- Re: [PATCH v4 00/34] Configurable policy for handling deprecated interfaces, Marc-André Lureau, 2020/03/17
- Re: [PATCH v4 00/34] Configurable policy for handling deprecated interfaces, Markus Armbruster, 2020/03/17