[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] error: add error_setg()
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 1/9] error: add error_setg() |
Date: |
Wed, 29 Aug 2012 16:52:58 -0300 |
Signed-off-by: Luiz Capitulino <address@hidden>
---
error.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/error.h b/error.h
index 96fc203..da7fed3 100644
--- a/error.h
+++ b/error.h
@@ -30,6 +30,12 @@ typedef struct Error Error;
void error_set(Error **err, ErrorClass err_class, const char *fmt, ...)
GCC_FMT_ATTR(3, 4);
/**
+ * Same as error_set(), but sets a generic error
+ */
+#define error_setg(err, fmt, ...) \
+ error_set(err, ERROR_CLASS_GENERIC_ERROR, fmt, ## __VA_ARGS__)
+
+/**
* Returns true if an indirect pointer to an error is pointing to a valid
* error object.
*/
--
1.7.11.2.249.g31c7954.dirty
- [Qemu-devel] [PATCH qmp-next v3 0/9]: qapi: convert screendump, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 1/9] error: add error_setg(),
Luiz Capitulino <=
- [Qemu-devel] [PATCH 2/9] console: vga_hw_screen_dump_ptr: take Error argument, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 3/9] qapi: convert screendump, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 4/9] vga: ppm_save(): add error handling, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 5/9] omap_lcdc: rename ppm_save() to omap_ppm_save(), Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 6/9] omap_lcdc: omap_ppm_save(): add error handling, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 7/9] g364fb: g364fb_screen_dump(): add error handling, Luiz Capitulino, 2012/08/29
- [Qemu-devel] [PATCH 8/9] tcx: tcx24_screen_dump(): add error handling, Luiz Capitulino, 2012/08/29