aboutsummaryrefslogtreecommitdiff
path: root/qerror.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-03-22 10:29:05 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-27 14:30:38 +0100
commit0167f772d1505b79f2db2f1d3ccad54f2cbe5de1 (patch)
tree6dc1663a784d9b4d0313ae2742c16afc5b0112c1 /qerror.h
parent526f0ac1538378a561b629cb2f99a0349d48bc2f (diff)
error: Move qerror_report() from qemu-error.[ch] to qerror.[ch]
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index d96abe1d06..dd298d4777 100644
--- a/qerror.h
+++ b/qerror.h
@@ -37,6 +37,11 @@ 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(QError *qerror);
+void qerror_report_internal(const char *file, int linenr, const char *func,
+ const char *fmt, ...)
+ __attribute__ ((format(printf, 4, 5)));
+#define qerror_report(fmt, ...) \
+ qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
QError *qobject_to_qerror(const QObject *obj);
/*