diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2011-07-19 14:50:33 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@gmail.com> | 2011-07-21 16:48:13 -0300 |
commit | c40cc0a0ddbcda2af446b40271025b3dbee119ce (patch) | |
tree | 3ff59233f4501395523dbd7232021419f2ec7d56 /qerror.h | |
parent | 2345c77c6d383bd804527720551b79b1d0400693 (diff) | |
download | qemu-c40cc0a0ddbcda2af446b40271025b3dbee119ce.tar.gz qemu-c40cc0a0ddbcda2af446b40271025b3dbee119ce.tar.bz2 qemu-c40cc0a0ddbcda2af446b40271025b3dbee119ce.zip |
qapi: add QMP input visitor
A type of Visiter class that is used to walk a qobject's
structure and assign each entry to the corresponding native C type.
Command marshaling function will use this to pull out QMP command
parameters recieved over the wire and pass them as native arguments
to the corresponding C functions.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'qerror.h')
-rw-r--r-- | qerror.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -124,6 +124,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_JSON_PARSE_ERROR \ "{ 'class': 'JSONParseError', 'data': { 'message': %s } }" +#define QERR_BUFFER_OVERRUN \ + "{ 'class': 'BufferOverrun', 'data': {} }" + #define QERR_KVM_MISSING_CAP \ "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" |