[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.32,1.33

cras at procontrol.fi cras at procontrol.fi
Mon Jan 27 04:00:02 EET 2003


Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv24859/src/lib-storage

Modified Files:
	mail-storage.h 
Log Message:
Function typedefs now define them as functions, not function pointers.



Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- mail-storage.h	22 Jan 2003 19:23:28 -0000	1.32
+++ mail-storage.h	27 Jan 2003 02:00:00 -0000	1.33
@@ -93,10 +93,9 @@
 struct fetch_context;
 struct search_context;
 
-typedef void (*mailbox_list_callback_t)(struct mail_storage *storage,
-					const char *name,
-					enum mailbox_flags flags,
-					void *context);
+typedef void mailbox_list_callback_t(struct mail_storage *storage,
+				     const char *name, enum mailbox_flags flags,
+				     void *context);
 
 /* All methods returning int return either TRUE or FALSE. */
 struct mail_storage {
@@ -150,7 +149,7 @@
 	/* Execute specified function for all mailboxes matching given
 	   mask. The mask is in RFC2060 LIST format. */
 	int (*find_mailboxes)(struct mail_storage *storage, const char *mask,
-			      mailbox_list_callback_t callback, void *context);
+			      mailbox_list_callback_t *callback, void *context);
 
 	/* Subscribe/unsubscribe mailbox. There should be no error when
 	   subscribing to already subscribed mailbox. Subscribing to
@@ -160,7 +159,8 @@
 
 	/* Exactly like find_mailboxes(), but list only subscribed mailboxes. */
 	int (*find_subscribed)(struct mail_storage *storage, const char *mask,
-			       mailbox_list_callback_t callback, void *context);
+			       mailbox_list_callback_t *callback,
+			       void *context);
 
 	/* Returns mailbox name status */
 	int (*get_mailbox_name_status)(struct mail_storage *storage,




More information about the dovecot-cvs mailing list