diff options
| author | Lei Li | 2013-01-24 17:03:20 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2013-01-25 14:23:06 +0100 |
| commit | 1f590cf9455c571799d1bfc0777255fa0796d4da (patch) | |
| tree | 587b89852266e89772c565474d85d95f34fba37d /qapi-schema.json | |
| parent | qemu-char: Add new char backend CirMemCharDriver (diff) | |
| download | qemu-1f590cf9455c571799d1bfc0777255fa0796d4da.tar.gz qemu-1f590cf9455c571799d1bfc0777255fa0796d4da.tar.xz qemu-1f590cf9455c571799d1bfc0777255fa0796d4da.zip | |
QAPI: Introduce memchar-write QMP command
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
| -rw-r--r-- | qapi-schema.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index a4c6eca319..d6231e5283 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -325,6 +325,44 @@ { 'command': 'query-chardev', 'returns': ['ChardevInfo'] } ## +# @DataFormat: +# +# An enumeration of data format. +# +# @utf8: The data format is 'utf8'. +# +# @base64: The data format is 'base64'. +# +# Since: 1.4 +## +{ 'enum': 'DataFormat' + 'data': [ 'utf8', 'base64' ] } + +## +# @memchar-write: +# +# Provide writing interface for memchardev. Write data to char +# device 'memory'. +# +# @device: the name of the memory char device. +# +# @size: the size to write in bytes. +# +# @data: the source data write to memchar. +# +# @format: #optional the format of the data write to chardev 'memory', +# by default is 'utf8'. +# +# Returns: Nothing on success +# If @device is not a valid char device, DeviceNotFound +# +# Since: 1.4 +## +{ 'command': 'memchar-write', + 'data': {'device': 'str', 'size': 'int', 'data': 'str', + '*format': 'DataFormat'} } + +## # @CommandInfo: # # Information about a QMP command |
