[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.46, 1.47

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


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

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



Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- dbox-storage.c	30 Mar 2007 18:32:07 -0000	1.46
+++ dbox-storage.c	30 Mar 2007 18:41:06 -0000	1.47
@@ -502,22 +502,14 @@
 	return 0;
 }
 
-static void
-dbox_notify_changes(struct mailbox *box, unsigned int min_interval,
-		    mailbox_notify_callback_t *callback, void *context)
+static void dbox_notify_changes(struct mailbox *box)
 {
 	struct dbox_mailbox *mbox = (struct dbox_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 dbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx,



More information about the dovecot-cvs mailing list