aboutsummaryrefslogtreecommitdiff
path: root/qerror.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-12-07 21:37:16 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-07 16:34:36 -0600
commit77e595e7c613c495714d04ce63fb9bce263c29ae (patch)
tree9c2abb8fae39552e97e8bb965961b24be557f1d9 /qerror.h
parent7cdfcfe18f0a9e8603e4a14770a84eb5649521c5 (diff)
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>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index 9462d5cb9d..09e32b9a39 100644
--- a/qerror.h
+++ b/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);