[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c, 1.175, 1.176

tss at dovecot.org tss at dovecot.org
Fri Mar 30 17:12:54 EEST 2007


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

Modified Files:
	mbox-storage.c 
Log Message:
Moved all storage destruction code to mail-storage.c and made destroy()
optional. Removed set_callbacks(). Made autodetect() optional.



Index: mbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- mbox-storage.c	30 Mar 2007 13:40:19 -0000	1.175
+++ mbox-storage.c	30 Mar 2007 14:12:52 -0000	1.176
@@ -444,12 +444,6 @@
 	return 0;
 }
 
-static void mbox_free(struct mail_storage *storage)
-{
-	index_storage_deinit(storage);
-	pool_unref(storage->pool);
-}
-
 static int create_mbox_index_dirs(struct mail_storage *storage,
 				  const char *name)
 {
@@ -1012,9 +1006,8 @@
 		mbox_class_deinit,
 		mbox_alloc,
 		mbox_create,
-		mbox_free,
+		NULL,
 		mbox_autodetect,
-		index_storage_set_callbacks,
 		mbox_mailbox_open,
 		mbox_mailbox_create,
 		index_storage_get_last_error



More information about the dovecot-cvs mailing list