diff options
author | Lei Li <lilei@linux.vnet.ibm.com> | 2013-01-25 00:03:21 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-01-25 11:46:50 -0200 |
commit | 49b6d7220bce42e6c06e0dbb61969a997868491f (patch) | |
tree | 4c70d8cd393f2cd86e53fcaa671a78f659d6c6c5 /qapi-schema.json | |
parent | 1f590cf9455c571799d1bfc0777255fa0796d4da (diff) | |
download | qemu-49b6d7220bce42e6c06e0dbb61969a997868491f.tar.gz qemu-49b6d7220bce42e6c06e0dbb61969a997868491f.tar.bz2 qemu-49b6d7220bce42e6c06e0dbb61969a997868491f.zip |
QAPI: Introduce memchar-read 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 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index d6231e5283..6c29f569b9 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -363,6 +363,42 @@ '*format': 'DataFormat'} } ## +# @MemCharRead +# +# Result of QMP command memchar-read. +# +# @data: The data read from memchar as string. +# +# @count: The numbers of bytes read from. +# +# Since: 1.4 +## +{ 'type': 'MemCharRead', + 'data': { 'data': 'str', 'count': 'int' } } + +## +# @memchar-read: +# +# Provide read interface for memchardev. Read from the char +# device 'memory' and return the data. +# +# @device: the name of the memory char device. +# +# @size: the size to read in bytes. +# +# @format: #optional the format of the data want to read from +# memchardev, by default is 'utf8'. +# +# Returns: @MemCharRead +# If @device is not a valid memchr device, DeviceNotFound +# +# Since: 1.4 +## +{ 'command': 'memchar-read', + 'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'}, + 'returns': 'MemCharRead' } + +## # @CommandInfo: # # Information about a QMP command |