[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.h, 1.56, 1.57 maildir-util.c, 1.17, 1.18

tss at dovecot.org tss at dovecot.org
Fri Dec 15 16:55:48 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv346/lib-storage/index/maildir

Modified Files:
	maildir-storage.h maildir-util.c 
Log Message:
Added context parameter type safety checks for most callback APIs.



Index: maildir-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- maildir-storage.h	25 Nov 2006 22:17:42 -0000	1.56
+++ maildir-storage.h	15 Dec 2006 16:55:45 -0000	1.57
@@ -90,6 +90,10 @@
 
 int maildir_file_do(struct maildir_mailbox *mbox, uint32_t seq,
 		    maildir_file_do_func *func, void *context);
+#define maildir_file_do(mbox, seq, func, context) \
+	CONTEXT_CALLBACK3(maildir_file_do, maildir_file_do_func, \
+			  func, context, mbox, seq)
+
 const char *maildir_generate_tmp_filename(const struct timeval *tv);
 int maildir_create_tmp(struct maildir_mailbox *mbox, const char *dir,
 		       mode_t mode, const char **fname_r);

Index: maildir-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-util.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- maildir-util.c	25 Nov 2006 22:17:43 -0000	1.17
+++ maildir-util.c	15 Dec 2006 16:55:45 -0000	1.18
@@ -41,6 +41,7 @@
 	return ret;
 }
 
+#undef maildir_file_do
 int maildir_file_do(struct maildir_mailbox *mbox, uint32_t uid,
 		    maildir_file_do_func *func, void *context)
 {



More information about the dovecot-cvs mailing list