qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands
@ 2018-12-28 19:44 Wainer dos Santos Moschetta
  2019-01-07 15:53 ` Markus Armbruster
  2019-01-08 18:38 ` Markus Armbruster
  0 siblings, 2 replies; 3+ messages in thread
From: Wainer dos Santos Moschetta @ 2018-12-28 19:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, eblake, armbru

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>
---
 qapi/misc.json | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/qapi/misc.json b/qapi/misc.json
index 24d20a880a..426274ecf8 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -1380,6 +1380,16 @@
 #          object.
 #
 # 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',
   'data': { 'path': 'str' },
@@ -1417,6 +1427,23 @@
 #          returned as #int.
 #
 # 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',
   'data': { 'path': 'str', 'property': 'str' },
@@ -1436,6 +1463,15 @@
 #         for a description of type mapping.
 #
 # Since: 1.2
+#
+# Example:
+#
+# -> { "execute": "qom-set",
+#      "arguments": { "path": "/machine",
+#                     "property": "graphics",
+#                     "value": false } }
+# <- { "return": {} }
+#
 ##
 { 'command': 'qom-set',
   'data': { 'path': 'str', 'property': 'str', 'value': 'any' },
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands
  2018-12-28 19:44 [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands Wainer dos Santos Moschetta
@ 2019-01-07 15:53 ` Markus Armbruster
  2019-01-08 18:38 ` Markus Armbruster
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2019-01-07 15:53 UTC (permalink / raw)
  To: Wainer dos Santos Moschetta; +Cc: qemu-devel, qemu-trivial

Wainer dos Santos Moschetta <wainersm@redhat.com> writes:

> 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>

Reviewed-by: Markus Armbruster <armbru@redhat.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands
  2018-12-28 19:44 [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands Wainer dos Santos Moschetta
  2019-01-07 15:53 ` Markus Armbruster
@ 2019-01-08 18:38 ` Markus Armbruster
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2019-01-08 18:38 UTC (permalink / raw)
  To: Wainer dos Santos Moschetta; +Cc: qemu-devel, qemu-trivial

Wainer dos Santos Moschetta <wainersm@redhat.com> writes:

> 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>

Queued, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-08 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-28 19:44 [Qemu-devel] [PATCH] qmp: Add examples to qom list, get, and set commands Wainer dos Santos Moschetta
2019-01-07 15:53 ` Markus Armbruster
2019-01-08 18:38 ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).