diff options
author | Not Zed <NotZed@Ximian.com> | 2004-06-18 16:48:32 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-06-18 16:48:32 +0800 |
commit | 9eec91e7be4cd60778e3e624ab60d17721d4050a (patch) | |
tree | da217e753b10b233216f5b57a5847d68bc712847 /camel | |
parent | 1a68102c00f473ff8892f901fa71f9cd2c5a6534 (diff) | |
download | gsoc2013-evolution-9eec91e7be4cd60778e3e624ab60d17721d4050a.tar.gz gsoc2013-evolution-9eec91e7be4cd60778e3e624ab60d17721d4050a.tar.zst gsoc2013-evolution-9eec91e7be4cd60778e3e624ab60d17721d4050a.zip |
setup for static inititialisation.
2004-06-18 Not Zed <NotZed@Ximian.com>
* camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for
static inititialisation.
svn path=/trunk/; revision=26414
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-exception.h | 5 | ||||
-rw-r--r-- | 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 <NotZed@Ximian.com> + + * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for + static inititialisation. + 2004-06-17 Jeffrey Stedfast <fejj@ximian.com> * 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 */ |