aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-07-07 09:22:15 -0300
committerEduardo Habkost <ehabkost@redhat.com>2017-07-17 15:41:30 -0300
commitf86285c571c49e781d3fa46f3bef3835b8e6f393 (patch)
treea8a2327055d07499b3629548795f1c08da3d5558 /qapi-schema.json
parent87467eae37e9b4727152292e09acead3ba3c95ed (diff)
qmp: Include parent type on 'qom-list-types' output
Include name of parent type of each type on 'qom-list-types' output. Without this, there's no way to figure out the parents of a given type without making additional 'qom-list-types' queries. In addition to the test case for the new feature, update the abstract-interface test case to use the new field and avoid the "qom-list-types implements=object" trick. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20170707122215.8819-4-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index 6486690584..8b015bee2e 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3054,10 +3054,12 @@
# @abstract: the type is abstract and can't be directly instantiated.
# Omitted if false. (since 2.10)
#
+# @parent: Name of parent type, if any (since 2.10)
+#
# Since: 1.1
##
{ 'struct': 'ObjectTypeInfo',
- 'data': { 'name': 'str', '*abstract': 'bool' } }
+ 'data': { 'name': 'str', '*abstract': 'bool', '*parent': 'str' } }
##
# @qom-list-types: