aboutsummaryrefslogtreecommitdiff
path: root/qapi/misc.json
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2018-03-02 00:09:38 +1100
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-06 14:01:26 +0100
commit35f63767dc77d85bebff6c6565aceaf74023776a (patch)
tree67671b4fbacb57f0a4e421787d7097ef9abe9bdc /qapi/misc.json
parentf29d4450428fe07e9d6b0655cef2e59bfa0b2ea5 (diff)
downloadqemu-35f63767dc77d85bebff6c6565aceaf74023776a.zip
qemu-35f63767dc77d85bebff6c6565aceaf74023776a.tar.gz
qemu-35f63767dc77d85bebff6c6565aceaf74023776a.tar.bz2
qmp: Merge ObjectPropertyInfo and DevicePropertyInfo
ObjectPropertyInfo is more generic and only missing @description. This adds a description to ObjectPropertyInfo and removes DevicePropertyInfo so the resulting ObjectPropertyInfo can be used elsewhere. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-Id: <20180301130939.15875-2-aik@ozlabs.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/misc.json')
-rw-r--r--qapi/misc.json23
1 files changed, 5 insertions, 18 deletions
diff --git a/qapi/misc.json b/qapi/misc.json
index a1702c9..fb9f41d 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -1285,10 +1285,12 @@
# 3) A link type in the form 'link<subtype>' where subtype is a qdev
# device type name. Link properties form the device model graph.
#
+# @description: if specified, the description of the property.
+#
# Since: 1.2
##
{ 'struct': 'ObjectPropertyInfo',
- 'data': { 'name': 'str', 'type': 'str' } }
+ 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
##
# @qom-list:
@@ -1444,34 +1446,19 @@
'returns': [ 'ObjectTypeInfo' ] }
##
-# @DevicePropertyInfo:
-#
-# Information about device properties.
-#
-# @name: the name of the property
-# @type: the typename of the property
-# @description: if specified, the description of the property.
-# (since 2.2)
-#
-# Since: 1.2
-##
-{ 'struct': 'DevicePropertyInfo',
- 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
-
-##
# @device-list-properties:
#
# List properties associated with a device.
#
# @typename: the type name of a device
#
-# Returns: a list of DevicePropertyInfo describing a devices properties
+# Returns: a list of ObjectPropertyInfo describing a devices properties
#
# Since: 1.2
##
{ 'command': 'device-list-properties',
'data': { 'typename': 'str'},
- 'returns': [ 'DevicePropertyInfo' ] }
+ 'returns': [ 'ObjectPropertyInfo' ] }
##
# @xen-set-global-dirty-log: