mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
2345c77c6d
commit
c40cc0a0dd
4 changed files with 332 additions and 1 deletions
3
qerror.h
3
qerror.h
|
@ -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 } }"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue