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

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
In directory talvi:/tmp/cvs-serv21144/lib-storage/index

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



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- index-storage.c	30 Mar 2007 13:40:15 -0000	1.107
+++ index-storage.c	30 Mar 2007 14:12:48 -0000	1.108
@@ -39,14 +39,6 @@
 static struct index_list *indexes = NULL;
 static struct timeout *to_index = NULL;
 
-void index_storage_deinit(struct mail_storage *storage)
-{
-	mailbox_list_deinit(storage->list);
-	i_free(storage->error);
-
-        index_storage_destroy_unrefed();
-}
-
 static void index_storage_add(struct mail_index *index,
 			      const char *mailbox_path, struct stat *st)
 {
@@ -416,14 +408,6 @@
 	return mail_index_view_is_inconsistent(ibox->view);
 }
 
-void index_storage_set_callbacks(struct mail_storage *storage,
-				 struct mail_storage_callbacks *callbacks,
-				 void *context)
-{
-	*storage->callbacks = *callbacks;
-	storage->callback_context = context;
-}
-
 const char *index_storage_get_last_error(struct mail_storage *storage,
 					 bool *syntax_error_r,
 					 bool *temporary_error_r)

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- index-storage.h	30 Mar 2007 13:40:15 -0000	1.117
+++ index-storage.h	30 Mar 2007 14:12:48 -0000	1.118
@@ -101,8 +101,6 @@
 void index_storage_unref(struct mail_index *index);
 void index_storage_destroy_unrefed(void);
 
-void index_storage_deinit(struct mail_storage *storage);
-
 void index_storage_mailbox_init(struct index_mailbox *ibox, const char *name,
 				enum mailbox_open_flags flags,
 				bool move_to_memory);
@@ -139,9 +137,6 @@
 
 int index_storage_sync(struct mailbox *box, enum mailbox_sync_flags flags);
 
-void index_storage_set_callbacks(struct mail_storage *storage,
-				 struct mail_storage_callbacks *callbacks,
-				 void *context);
 const char *index_storage_get_last_error(struct mail_storage *storage,
 					 bool *syntax_error_r,
 					 bool *temporary_error_r);



More information about the dovecot-cvs mailing list