From 23185a25463ccce06e1db8fd9babd4575629f39f Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Mon, 27 Dec 1999 09:25:21 +0000 Subject: Backup sync. svn path=/trunk/; revision=1520 --- camel/camel-exception.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'camel/camel-exception.h') diff --git a/camel/camel-exception.h b/camel/camel-exception.h index 384f23a6f8..79a8984c13 100644 --- a/camel/camel-exception.h +++ b/camel/camel-exception.h @@ -43,6 +43,7 @@ typedef enum { } ExceptionId; + typedef struct { /* do not access the fields directly */ ExceptionId id; @@ -50,20 +51,30 @@ typedef struct { } CamelException; + + +/* creation and destruction functions */ CamelException *camel_exception_new (); void camel_exception_free (CamelException *exception); +/* exception content manipulation */ void camel_exception_clear (CamelException *exception); void camel_exception_set (CamelException *ex, ExceptionId id, const char *desc); +void camel_exception_setv (CamelException *ex, + ExceptionId id, + const char *format, + ...); +/* exception content transfer */ void camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src); +/* exception content retrieval */ ExceptionId camel_exception_get_id (CamelException *ex); const gchar *camel_exception_get_description (CamelException *ex); -- cgit