mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
QMP: add human-readable description to error response
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7cdfcfe18f
commit
77e595e7c6
4 changed files with 23 additions and 6 deletions
2
qerror.h
2
qerror.h
|
@ -13,6 +13,7 @@
|
|||
#define QERROR_H
|
||||
|
||||
#include "qdict.h"
|
||||
#include "qstring.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef struct QErrorStringTable {
|
||||
|
@ -32,6 +33,7 @@ typedef struct QError {
|
|||
QError *qerror_new(void);
|
||||
QError *qerror_from_info(const char *file, int linenr, const char *func,
|
||||
const char *fmt, va_list *va);
|
||||
QString *qerror_human(const QError *qerror);
|
||||
void qerror_print(const QError *qerror);
|
||||
QError *qobject_to_qerror(const QObject *obj);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue