[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.43, 1.44

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


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

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



Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- dbox-storage.c	30 Mar 2007 13:40:16 -0000	1.43
+++ dbox-storage.c	30 Mar 2007 14:12:49 -0000	1.44
@@ -231,12 +231,6 @@
 	return 0;
 }
 
-static void dbox_free(struct mail_storage *storage)
-{
-	index_storage_deinit(storage);
-	pool_unref(storage->pool);
-}
-
 static bool dbox_autodetect(const char *data, enum mail_storage_flags flags)
 {
 	bool debug = (flags & MAIL_STORAGE_FLAG_DEBUG) != 0;
@@ -611,9 +605,8 @@
 		dbox_class_deinit,
 		dbox_alloc,
 		dbox_create,
-		dbox_free,
+		NULL,
 		dbox_autodetect,
-		index_storage_set_callbacks,
 		dbox_mailbox_open,
 		dbox_mailbox_create,
 		index_storage_get_last_error



More information about the dovecot-cvs mailing list