[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.178, 1.179

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:41:09 EEST 2007


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

Modified Files:
	mbox-storage.c 
Log Message:
Moved notify settings to struct mailbox. Removed the parameters from
notify_changes(), they're now set before calling it.



Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -d -r1.178 -r1.179
--- mbox-storage.c	30 Mar 2007 18:32:10 -0000	1.178
+++ mbox-storage.c	30 Mar 2007 18:41:07 -0000	1.179
@@ -784,17 +784,11 @@
 	return ret;
 }
 
-static void
-mbox_notify_changes(struct mailbox *box, unsigned int min_interval,
-		    mailbox_notify_callback_t *callback, void *context)
+static void mbox_notify_changes(struct mailbox *box)
 {
 	struct mbox_mailbox *mbox = (struct mbox_mailbox *)box;
 
-	mbox->ibox.min_notify_interval = min_interval;
-	mbox->ibox.notify_callback = callback;
-	mbox->ibox.notify_context = context;
-
-	if (callback == NULL)
+	if (box->notify_callback == NULL)
 		index_mailbox_check_remove_all(&mbox->ibox);
 	else if (!mbox->no_mbox_file)
 		index_mailbox_check_add(&mbox->ibox, mbox->path);



More information about the dovecot-cvs mailing list