commit | 79020cfcbb78a85768174bb93ee3b7cfc6ffa353 | [log] [tgz] |
---|---|---|
author | Luiz Capitulino <lcapitulino@redhat.com> | Mon Dec 05 16:04:05 2011 -0200 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Thu Mar 15 10:39:52 2012 -0300 |
tree | dcdc84f21626931efe67bfa3296850d7cc45d991 | |
parent | a4acc064f7054877aeffe0ea27a492b15086b833 [diff] [blame] |
Error: Introduce error_copy() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
diff --git a/error.h b/error.h index 6361f40..45ff6c1 100644 --- a/error.h +++ b/error.h
@@ -35,6 +35,11 @@ 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);