mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 03:21:50 -06:00
qmp-commands: move 'object-add' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
d071f6be51
commit
6517192b16
2 changed files with 8 additions and 17 deletions
|
@ -205,23 +205,6 @@ Example:
|
||||||
<- { "return": { "status": "active", "completed": 1024000,
|
<- { "return": { "status": "active", "completed": 1024000,
|
||||||
"total": 2048000 } }
|
"total": 2048000 } }
|
||||||
|
|
||||||
object-add
|
|
||||||
----------
|
|
||||||
|
|
||||||
Create QOM object.
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
- "qom-type": the object's QOM type, i.e. the class name (json-string)
|
|
||||||
- "id": the object's ID, must be unique (json-string)
|
|
||||||
- "props": a dictionary of object property values (optional, json-dict)
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "object-add", "arguments": { "qom-type": "rng-random", "id": "rng1",
|
|
||||||
"props": { "filename": "/dev/hwrng" } } }
|
|
||||||
<- { "return": {} }
|
|
||||||
|
|
||||||
object-del
|
object-del
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|
|
@ -3390,6 +3390,14 @@
|
||||||
# Error if @qom-type is not a valid class name
|
# Error if @qom-type is not a valid class name
|
||||||
#
|
#
|
||||||
# Since: 2.0
|
# Since: 2.0
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "object-add",
|
||||||
|
# "arguments": { "qom-type": "rng-random", "id": "rng1",
|
||||||
|
# "props": { "filename": "/dev/hwrng" } } }
|
||||||
|
# <- { "return": {} }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'object-add',
|
{ 'command': 'object-add',
|
||||||
'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} }
|
'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue