diff src/lib-storage/index/dbox/dbox-storage.c @ 5465:014236cf3dcc HEAD

Moved notify settings to struct mailbox. Removed the parameters from notify_changes(), they're now set before calling it.
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Mar 2007 21:41:05 +0300
parents 91b1f01b9307
children 8141168f86e1
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-storage.c	Fri Mar 30 21:31:57 2007 +0300
+++ b/src/lib-storage/index/dbox/dbox-storage.c	Fri Mar 30 21:41:05 2007 +0300
@@ -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,