aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:46:31 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:30 +0100
commite26a0d0070630baf8fc03f66fdc01682b7bad35e (patch)
tree9f7722e9b64eae0b52c6925ed6e9479aa16f0a36
parent4e022d01ee17cbc5653db51108832fe938a9c6da (diff)
downloadqemu-e26a0d0070630baf8fc03f66fdc01682b7bad35e.zip
qemu-e26a0d0070630baf8fc03f66fdc01682b7bad35e.tar.gz
qemu-e26a0d0070630baf8fc03f66fdc01682b7bad35e.tar.bz2
qmp-commands: move 'query-command-line-options' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt40
-rw-r--r--qapi-schema.json22
2 files changed, 22 insertions, 40 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 3afb438..1a3e4e5 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -1163,46 +1163,6 @@ Example:
]
}
-query-command-line-options
---------------------------
-
-Show command line option schema.
-
-Return a json-array of command line option schema for all options (or for
-the given option), returning an error if the given option doesn't exist.
-
-Each array entry contains the following:
-
-- "option": option name (json-string)
-- "parameters": a json-array describes all parameters of the option:
- - "name": parameter name (json-string)
- - "type": parameter type (one of 'string', 'boolean', 'number',
- or 'size')
- - "help": human readable description of the parameter
- (json-string, optional)
- - "default": default value string for the parameter
- (json-string, optional)
-
-Example:
-
--> { "execute": "query-command-line-options", "arguments": { "option": "option-rom" } }
-<- { "return": [
- {
- "parameters": [
- {
- "name": "romfile",
- "type": "string"
- },
- {
- "name": "bootindex",
- "type": "number"
- }
- ],
- "option": "option-rom"
- }
- ]
- }
-
query-rx-filter
---------------
diff --git a/qapi-schema.json b/qapi-schema.json
index 782d802..edae7ee 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -5136,6 +5136,28 @@
# @option). Returns an error if the given @option doesn't exist.
#
# Since: 1.5
+#
+# Example:
+#
+# -> { "execute": "query-command-line-options",
+# "arguments": { "option": "option-rom" } }
+# <- { "return": [
+# {
+# "parameters": [
+# {
+# "name": "romfile",
+# "type": "string"
+# },
+# {
+# "name": "bootindex",
+# "type": "number"
+# }
+# ],
+# "option": "option-rom"
+# }
+# ]
+# }
+#
##
{'command': 'query-command-line-options', 'data': { '*option': 'str' },
'returns': ['CommandLineOptionInfo'] }