aboutsummaryrefslogtreecommitdiff
path: root/qapi/introspect.json
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-10-25 06:24:02 +0200
committerMarkus Armbruster <armbru@redhat.com>2021-10-27 17:18:55 +0200
commitb6c18755e41f7b40aad4c2c8188fb1719535699d (patch)
tree461b80ebb2bd36703020099c09172d5c1fb544bf /qapi/introspect.json
parent75ecee7262548d21a9e20c12f0b3b12f8a51d5c6 (diff)
qapi: Add feature flags to enum members
This is quite similar to commit 84ab008687 "qapi: Add feature flags to struct members", only for enums instead of structs. Special feature flag 'deprecated' is silently ignored there. This is okay only because it will be implemented shortly. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20211025042405.3762351-3-armbru@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'qapi/introspect.json')
-rw-r--r--qapi/introspect.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/qapi/introspect.json b/qapi/introspect.json
index 9683e884f8..183148b2e9 100644
--- a/qapi/introspect.json
+++ b/qapi/introspect.json
@@ -167,10 +167,13 @@
#
# @name: the member's name, as defined in the QAPI schema.
#
+# @features: names of features associated with the member, in no
+# particular order.
+#
# Since: 6.2
##
{ 'struct': 'SchemaInfoEnumMember',
- 'data': { 'name': 'str' } }
+ 'data': { 'name': 'str', '*features': [ 'str' ] } }
##
# @SchemaInfoArray: