diff options
Diffstat (limited to 'camel/camel-exception.h')
-rw-r--r-- | camel/camel-exception.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/camel/camel-exception.h b/camel/camel-exception.h index ead903daa3..384f23a6f8 100644 --- a/camel/camel-exception.h +++ b/camel/camel-exception.h @@ -44,21 +44,30 @@ typedef enum { } ExceptionId; typedef struct { - + /* do not access the fields directly */ ExceptionId id; char *desc; } CamelException; -void camel_exception_free (CamelException *exception); CamelException *camel_exception_new (); +void camel_exception_free (CamelException *exception); + + +void camel_exception_clear (CamelException *exception); void camel_exception_set (CamelException *ex, ExceptionId id, const char *desc); + + void camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src); +ExceptionId camel_exception_get_id (CamelException *ex); +const gchar *camel_exception_get_description (CamelException *ex); + + #ifdef __cplusplus } |