summaryrefslogtreecommitdiff
path: root/qemu-error.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-18 16:24:31 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 16:55:05 +0100
commit2f7920166d1aa402104d7b30d0225e71588f91f9 (patch)
tree377ab72ba69140c5988ae78dedc0ec419e7c70c2 /qemu-error.h
parent6e4f984cb9474db99bf4e3998ff86cdb9ed02380 (diff)
error: Move qemu_error & friends into their own header
Diffstat (limited to 'qemu-error.h')
-rw-r--r--qemu-error.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu-error.h b/qemu-error.h
new file mode 100644
index 0000000000..fa161135fd
--- /dev/null
+++ b/qemu-error.h
@@ -0,0 +1,12 @@
+#ifndef QEMU_ERROR_H
+#define QEMU_ERROR_H
+
+void qemu_error(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
+void qemu_error_internal(const char *file, int linenr, const char *func,
+ const char *fmt, ...)
+ __attribute__ ((format(printf, 4, 5)));
+
+#define qemu_error_new(fmt, ...) \
+ qemu_error_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
+
+#endif