mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
qmp: Add examples to qom list, get, and set commands
Added examples for the qom-list, qom-get, and qom-set commands in qapi misc JSON file. Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20181228194442.3506-1-wainersm@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
a95291007b
commit
dd49d9d8a2
1 changed files with 36 additions and 0 deletions
|
@ -1380,6 +1380,16 @@
|
||||||
# object.
|
# object.
|
||||||
#
|
#
|
||||||
# Since: 1.2
|
# Since: 1.2
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "qom-list",
|
||||||
|
# "arguments": { "path": "/chardevs" } }
|
||||||
|
# <- { "return": [ { "name": "type", "type": "string" },
|
||||||
|
# { "name": "parallel0", "type": "child<chardev-vc>" },
|
||||||
|
# { "name": "serial0", "type": "child<chardev-vc>" },
|
||||||
|
# { "name": "mon0", "type": "child<chardev-stdio>" } ] }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'qom-list',
|
{ 'command': 'qom-list',
|
||||||
'data': { 'path': 'str' },
|
'data': { 'path': 'str' },
|
||||||
|
@ -1417,6 +1427,23 @@
|
||||||
# returned as #int.
|
# returned as #int.
|
||||||
#
|
#
|
||||||
# Since: 1.2
|
# Since: 1.2
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# 1. Use absolute path
|
||||||
|
#
|
||||||
|
# -> { "execute": "qom-get",
|
||||||
|
# "arguments": { "path": "/machine/unattached/device[0]",
|
||||||
|
# "property": "hotplugged" } }
|
||||||
|
# <- { "return": false }
|
||||||
|
#
|
||||||
|
# 2. Use partial path
|
||||||
|
#
|
||||||
|
# -> { "execute": "qom-get",
|
||||||
|
# "arguments": { "path": "unattached/sysbus",
|
||||||
|
# "property": "type" } }
|
||||||
|
# <- { "return": "System" }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'qom-get',
|
{ 'command': 'qom-get',
|
||||||
'data': { 'path': 'str', 'property': 'str' },
|
'data': { 'path': 'str', 'property': 'str' },
|
||||||
|
@ -1436,6 +1463,15 @@
|
||||||
# for a description of type mapping.
|
# for a description of type mapping.
|
||||||
#
|
#
|
||||||
# Since: 1.2
|
# Since: 1.2
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "qom-set",
|
||||||
|
# "arguments": { "path": "/machine",
|
||||||
|
# "property": "graphics",
|
||||||
|
# "value": false } }
|
||||||
|
# <- { "return": {} }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'qom-set',
|
{ 'command': 'qom-set',
|
||||||
'data': { 'path': 'str', 'property': 'str', 'value': 'any' },
|
'data': { 'path': 'str', 'property': 'str', 'value': 'any' },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue