From 5c7fc6df1165a26c7dfca91f9664c4e860856824 Mon Sep 17 00:00:00 2001 From: bertrand Date: Thu, 2 Sep 1999 11:19:40 +0000 Subject: changed decl to fit CRLFunc. (_write_recipients_to_stream): calls 1999-09-02 bertrand * camel/camel-mime-message.c (_write_one_recipient_to_stream): changed decl to fit CRLFunc. (_write_recipients_to_stream): calls camel_recipient_foreach_recipient_type now. * camel/camel-recipient.c (camel_recipient_foreach_recipient_type): new convinience function. Iterate over all recipient types. * camel/gmime-utils.c (gmime_write_header_table_to_stream): s/write_header_table_to_stream/gmime_write_header_table_to_stream/ (gmime_write_header_with_glist_to_stream): s/write_header_with_glist_to_stream/gmime_write_header_with_glist_to_stream/ svn path=/trunk/; revision=1167 --- camel/camel-recipient.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'camel/camel-recipient.h') diff --git a/camel/camel-recipient.h b/camel/camel-recipient.h index 447cf5f10e..c568e6e2ba 100644 --- a/camel/camel-recipient.h +++ b/camel/camel-recipient.h @@ -43,6 +43,11 @@ typedef struct { } CamelRecipientTable; +typedef void (*CRLFunc) (gchar *recipient_type, + GList *recipient_list, + gpointer user_data); + + CamelRecipientTable *camel_recipient_table_new (); @@ -66,6 +71,9 @@ void camel_recipient_table_remove (CamelRecipientTable *recipient_table, const GList *camel_recipient_table_get (CamelRecipientTable *recipient_table, const gchar *recipient_type); +void camel_recipient_foreach_recipient_type (CamelRecipientTable *recipient_table, + CRLFunc func, + gpointer user_data); #ifdef __cplusplus -- cgit