mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qemu-ga: switch to the new error format on the wire
IMPORTANT: this BREAKS qemu-ga compatibility for the error response. Instead of returning something like: { "error": { "class": "InvalidParameterValue", "data": {"name": "mode", "expected": "halt|powerdown|reboot" } } } qemu-ga now returns: { "error": { "class": "GenericError", "desc": "Parameter 'mode' expects halt|powerdown|reboot" } } Notice that this is also a bug fix, as qemu-ga wasn't returning the human message. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
de253f1491
commit
93b91c59db
4 changed files with 13 additions and 3 deletions
|
@ -49,6 +49,7 @@ void qmp_disable_command(const char *name);
|
|||
void qmp_enable_command(const char *name);
|
||||
bool qmp_command_is_enabled(const char *name);
|
||||
char **qmp_get_command_list(void);
|
||||
QObject *qmp_build_error_object(Error *errp);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue