aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-07-07 09:22:14 -0300
committerEduardo Habkost <ehabkost@redhat.com>2017-07-17 15:41:30 -0300
commit87467eae37e9b4727152292e09acead3ba3c95ed (patch)
tree07e098551d0f372761ae90704757b71ce085f449 /qapi-schema.json
parentdbb2a604a94f3899fa34bd1ede462f213e822e03 (diff)
downloadqemu-arm-87467eae37e9b4727152292e09acead3ba3c95ed.tar.gz
qmp: Include 'abstract' field on 'qom-list-types' output
A client may be interested in getting the list of both abstract and non-abstract types. Instead of requiring them to make multiple queries with different filter arguments, just return an 'abstract' field in 'qom-list-types'. In addition to the new test code for validating this field, update the abstract-interfaces test case to query for all 'interface' subtypes (including abstract ones), and to look at the 'abstract' field directly. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20170707122215.8819-3-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index ab438ead70..6486690584 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3051,10 +3051,13 @@
#
# @name: the type name found in the search
#
+# @abstract: the type is abstract and can't be directly instantiated.
+# Omitted if false. (since 2.10)
+#
# Since: 1.1
##
{ 'struct': 'ObjectTypeInfo',
- 'data': { 'name': 'str' } }
+ 'data': { 'name': 'str', '*abstract': 'bool' } }
##
# @qom-list-types: