aboutsummaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-12-05 16:04:05 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-03-15 10:39:52 -0300
commit79020cfcbb78a85768174bb93ee3b7cfc6ffa353 (patch)
treedcdc84f21626931efe67bfa3296850d7cc45d991 /error.h
parenta4acc064f7054877aeffe0ea27a492b15086b833 (diff)
Error: Introduce error_copy()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'error.h')
-rw-r--r--error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/error.h b/error.h
index 6361f407fd..45ff6c1ffe 100644
--- a/error.h
+++ b/error.h
@@ -35,6 +35,11 @@ void error_set(Error **err, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
bool error_is_set(Error **err);
/**
+ * Returns an exact copy of the error passed as an argument.
+ */
+Error *error_copy(const Error *err);
+
+/**
* Get a human readable representation of an error object.
*/
const char *error_get_pretty(Error *err);