[dovecot-cvs] dovecot/src/lib-storage/index/cydir cydir-storage.c, 1.4, 1.5

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


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

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



Index: cydir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/cydir/cydir-storage.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cydir-storage.c	30 Mar 2007 13:40:16 -0000	1.4
+++ cydir-storage.c	30 Mar 2007 14:12:48 -0000	1.5
@@ -138,18 +138,6 @@
 	return 0;
 }
 
-static void cydir_free(struct mail_storage *storage)
-{
-	index_storage_deinit(storage);
-	pool_unref(storage->pool);
-}
-
-static bool cydir_autodetect(const char *data __attr_unused__,
-			     enum mail_storage_flags flags __attr_unused__)
-{
-	return FALSE;
-}
-
 static int create_cydir(struct mail_storage *storage, const char *path)
 {
 	const char *error;
@@ -480,9 +468,8 @@
 		cydir_class_deinit,
 		cydir_alloc,
 		cydir_create,
-		cydir_free,
-		cydir_autodetect,
-		index_storage_set_callbacks,
+		NULL,
+		NULL,
 		cydir_mailbox_open,
 		cydir_mailbox_create,
 		index_storage_get_last_error



More information about the dovecot-cvs mailing list