diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index ef7366eb4e..46d6abe612 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1690,38 +1690,6 @@ named schema entities. Entities are commands, events and various types. See docs/qapi-code-gen.txt for information on their structure and intended use. -query-chardev-backends -------------- - -List available character device backends. - -Each backend is represented by a json-object, the returned value is a json-array -of all backends. - -Each json-object contains: - -- "name": backend name (json-string) - -Example: - --> { "execute": "query-chardev-backends" } -<- { - "return":[ - { - "name":"udp" - }, - { - "name":"tcp" - }, - { - "name":"unix" - }, - { - "name":"spiceport" - } - ] - } - query-block ----------- diff --git a/qapi-schema.json b/qapi-schema.json index 5bab9894a9..8fd1e49143 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -353,6 +353,27 @@ # Returns: a list of @ChardevBackendInfo # # Since: 2.0 +# +# Example: +# +# -> { "execute": "query-chardev-backends" } +# <- { +# "return":[ +# { +# "name":"udp" +# }, +# { +# "name":"tcp" +# }, +# { +# "name":"unix" +# }, +# { +# "name":"spiceport" +# } +# ] +# } +# ## { 'command': 'query-chardev-backends', 'returns': ['ChardevBackendInfo'] }