[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-storage.c, 1.7, 1.8

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


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

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



Index: cydir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-storage.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cydir-storage.c	30 Mar 2007 18:32:01 -0000	1.7
+++ cydir-storage.c	30 Mar 2007 18:41:05 -0000	1.8
@@ -367,22 +367,14 @@
 	return 0;
 }
 
-static void
-cydir_notify_changes(struct mailbox *box, unsigned int min_interval,
-		     mailbox_notify_callback_t *callback, void *context)
+static void cydir_notify_changes(struct mailbox *box)
 {
 	struct cydir_mailbox *mbox = (struct cydir_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);
-		return;
-	}
-
-	index_mailbox_check_add(&mbox->ibox, mbox->path);
+	else
+		index_mailbox_check_add(&mbox->ibox, mbox->path);
 }
 
 static int cydir_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx,



More information about the dovecot-cvs mailing list