From 79020cfcbb78a85768174bb93ee3b7cfc6ffa353 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Mon, 5 Dec 2011 16:04:05 -0200 Subject: Error: Introduce error_copy() Signed-off-by: Luiz Capitulino --- error.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'error.h') diff --git a/error.h b/error.h index 6361f407fd..45ff6c1ffe 100644 --- a/error.h +++ b/error.h @@ -34,6 +34,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. */ -- cgit v1.2.3