Added function g_propagte_error to hand over local errors to the calling
[platform/upstream/glib.git] / gerror.h
index 7eafa94..458c20a 100644 (file)
--- a/gerror.h
+++ b/gerror.h
@@ -60,6 +60,11 @@ void     g_set_error           (GError       **err,
                                 const gchar   *format,
                                 ...) G_GNUC_PRINTF (4, 5);
 
+/* if (dest) *dest = src; also has some sanity checks.
+ */
+void     g_propagate_error     (GError       **dest,
+                               GError        *src);
+
 /* if (err && *err) { g_error_free(*err); *err = NULL; } */
 void     g_clear_error         (GError       **err);