aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:34:37 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:29 +0100
commit6517192b160363f9f24c7f05a0f7f88c5a1be114 (patch)
tree4830f92f1b24911b74da03d09f4b930284e39892 /qapi-schema.json
parentd071f6be51932ac30d0d585f74e38f9c8f6be769 (diff)
downloadqemu-6517192b160363f9f24c7f05a0f7f88c5a1be114.zip
qemu-6517192b160363f9f24c7f05a0f7f88c5a1be114.tar.gz
qemu-6517192b160363f9f24c7f05a0f7f88c5a1be114.tar.bz2
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>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index 4cb639f..2982e31 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3390,6 +3390,14 @@
# Error if @qom-type is not a valid class name
#
# Since: 2.0
+#
+# Example:
+#
+# -> { "execute": "object-add",
+# "arguments": { "qom-type": "rng-random", "id": "rng1",
+# "props": { "filename": "/dev/hwrng" } } }
+# <- { "return": {} }
+#
##
{ 'command': 'object-add',
'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} }