aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-exception.h')
-rw-r--r--camel/camel-exception.h11
1 files changed, 11 insertions, 0 deletions
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);