From 9eec91e7be4cd60778e3e624ab60d17721d4050a Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 18 Jun 2004 08:48:32 +0000 Subject: setup for static inititialisation. 2004-06-18 Not Zed * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for static inititialisation. svn path=/trunk/; revision=26414 --- camel/ChangeLog | 5 +++++ camel/camel-exception.h | 5 +---- camel/camel-object.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index fbf6c1e1c1..13651db646 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-06-18 Not Zed + + * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for + static inititialisation. + 2004-06-17 Jeffrey Stedfast * providers/imap4/camel-imap4-folder.c (uidset_init): init diff --git a/camel/camel-exception.h b/camel/camel-exception.h index 77c2c16066..2056dcabe3 100644 --- a/camel/camel-exception.h +++ b/camel/camel-exception.h @@ -41,15 +41,13 @@ typedef enum { } ExceptionId; - struct _CamelException { /* do not access the fields directly */ ExceptionId id; char *desc; - }; - +#define CAMEL_EXCEPTION_INITIALISER { 0, NULL } /* creation and destruction functions */ CamelException * camel_exception_new (void); @@ -67,7 +65,6 @@ void camel_exception_setv (CamelException *ex, const char *format, ...); - /* exception content transfer */ void camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src); diff --git a/camel/camel-object.h b/camel/camel-object.h index 80e68aecf3..cbdf9fdb2c 100644 --- a/camel/camel-object.h +++ b/camel/camel-object.h @@ -243,7 +243,7 @@ gboolean camel_object_meta_set(void *vo, const char * name, const char *value); int camel_object_state_read(void *vo); int camel_object_state_write(void *vo); -/* free a bunch of objects, list must be 0 terminated */ +/* free a retrieved object. May be a noop for static data. */ void camel_object_free(void *vo, guint32 tag, void *value); /* for managing bags of weakly-ref'd 'child' objects */ -- cgit