mirror of https://github.com/xemu-project/xemu.git
qmp-commands: move 'query-version' 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
5fba0a72ec
commit
dd746afbb4
|
@ -209,33 +209,6 @@ Note: This command must be issued before issuing any other command.
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
|
||||||
query-version
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Show QEMU version.
|
|
||||||
|
|
||||||
Return a json-object with the following information:
|
|
||||||
|
|
||||||
- "qemu": A json-object containing three integer values:
|
|
||||||
- "major": QEMU's major version (json-int)
|
|
||||||
- "minor": QEMU's minor version (json-int)
|
|
||||||
- "micro": QEMU's micro version (json-int)
|
|
||||||
- "package": package's version (json-string)
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "query-version" }
|
|
||||||
<- {
|
|
||||||
"return":{
|
|
||||||
"qemu":{
|
|
||||||
"major":0,
|
|
||||||
"minor":11,
|
|
||||||
"micro":5
|
|
||||||
},
|
|
||||||
"package":""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query-commands
|
query-commands
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,21 @@
|
||||||
# Returns: A @VersionInfo object describing the current version of QEMU.
|
# Returns: A @VersionInfo object describing the current version of QEMU.
|
||||||
#
|
#
|
||||||
# Since: 0.14.0
|
# Since: 0.14.0
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "query-version" }
|
||||||
|
# <- {
|
||||||
|
# "return":{
|
||||||
|
# "qemu":{
|
||||||
|
# "major":0,
|
||||||
|
# "minor":11,
|
||||||
|
# "micro":5
|
||||||
|
# },
|
||||||
|
# "package":""
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'query-version', 'returns': 'VersionInfo' }
|
{ 'command': 'query-version', 'returns': 'VersionInfo' }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue