[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.106, 1.107 index-storage.h, 1.116, 1.117

tss at dovecot.org tss at dovecot.org
Fri Mar 30 16:40:17 EEST 2007


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

Modified Files:
	index-storage.c index-storage.h 
Log Message:
Removed mail_storage_create_with_data(). mail_storage_create() with
driver=NULL behaves the same way. Removed parameters from
mail_storage.create(), they're now put into the storage structure before
calling create().



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- index-storage.c	30 Mar 2007 12:44:01 -0000	1.106
+++ index-storage.c	30 Mar 2007 13:40:15 -0000	1.107
@@ -38,33 +38,12 @@
 
 static struct index_list *indexes = NULL;
 static struct timeout *to_index = NULL;
-static int index_storage_refcount = 0;
-
-void index_storage_init(struct mail_storage *storage,
-			struct mailbox_list *list,
-			enum mail_storage_flags flags,
-			enum file_lock_method lock_method)
-{
-	storage->list = list;
-	storage->flags = flags;
-	storage->lock_method = lock_method;
-
-	storage->callbacks =
-		p_new(storage->pool, struct mail_storage_callbacks, 1);
-
-	array_create(&storage->module_contexts,
-		     storage->pool, sizeof(void *), 5);
-	index_storage_refcount++;
-}
 
 void index_storage_deinit(struct mail_storage *storage)
 {
 	mailbox_list_deinit(storage->list);
 	i_free(storage->error);
 
-	if (--index_storage_refcount > 0)
-		return;
-
         index_storage_destroy_unrefed();
 }
 

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- index-storage.h	30 Mar 2007 12:44:01 -0000	1.116
+++ index-storage.h	30 Mar 2007 13:40:15 -0000	1.117
@@ -101,10 +101,6 @@
 void index_storage_unref(struct mail_index *index);
 void index_storage_destroy_unrefed(void);
 
-void index_storage_init(struct mail_storage *storage,
-			struct mailbox_list *list,
-			enum mail_storage_flags flags,
-			enum file_lock_method lock_method);
 void index_storage_deinit(struct mail_storage *storage);
 
 void index_storage_mailbox_init(struct index_mailbox *ibox, const char *name,



More information about the dovecot-cvs mailing list