mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
f29d445042
commit
35f63767dc
3 changed files with 18 additions and 31 deletions
|
@ -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:
|
||||
|
@ -1443,21 +1445,6 @@
|
|||
'data': { '*implements': 'str', '*abstract': 'bool' },
|
||||
'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:
|
||||
#
|
||||
|
@ -1465,13 +1452,13 @@
|
|||
#
|
||||
# @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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue