dovecot-2.0: lib-storage: mailbox_index_opened hook renamed to m...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 17 05:21:42 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/43239594b65b
changeset: 10513:43239594b65b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Dec 16 22:21:36 2009 -0500
description:
lib-storage: mailbox_index_opened hook renamed to mailbox_opened.

diffstat:

5 files changed, 10 insertions(+), 10 deletions(-)
src/lib-storage/index/index-storage.c        |    6 +++---
src/lib-storage/index/index-thread-private.h |    2 +-
src/lib-storage/index/index-thread.c         |    2 +-
src/lib-storage/mail-storage-hooks.c         |    6 +++---
src/lib-storage/mail-storage-hooks.h         |    4 ++--

diffs (78 lines):

diff -r c339b0f7d087 -r 43239594b65b src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c	Wed Dec 16 22:17:12 2009 -0500
+++ b/src/lib-storage/index/index-storage.c	Wed Dec 16 22:21:36 2009 -0500
@@ -438,9 +438,9 @@ int index_storage_mailbox_open(struct ma
 
 	box->opened = TRUE;
 
-	index_thread_mailbox_index_opened(ibox);
-	if (hook_mailbox_index_opened != NULL)
-		hook_mailbox_index_opened(box);
+	index_thread_mailbox_opened(ibox);
+	if (hook_mailbox_opened != NULL)
+		hook_mailbox_opened(box);
 	return 0;
 }
 
diff -r c339b0f7d087 -r 43239594b65b src/lib-storage/index/index-thread-private.h
--- a/src/lib-storage/index/index-thread-private.h	Wed Dec 16 22:17:12 2009 -0500
+++ b/src/lib-storage/index/index-thread-private.h	Wed Dec 16 22:21:36 2009 -0500
@@ -79,6 +79,6 @@ mail_thread_iterate_init_full(struct mai
 			      enum mail_thread_type thread_type,
 			      bool return_seqs);
 
-void index_thread_mailbox_index_opened(struct index_mailbox *ibox);
+void index_thread_mailbox_opened(struct index_mailbox *ibox);
 
 #endif
diff -r c339b0f7d087 -r 43239594b65b src/lib-storage/index/index-thread.c
--- a/src/lib-storage/index/index-thread.c	Wed Dec 16 22:17:12 2009 -0500
+++ b/src/lib-storage/index/index-thread.c	Wed Dec 16 22:21:36 2009 -0500
@@ -633,7 +633,7 @@ static void mail_thread_mailbox_close(st
 	i_free(tbox);
 }
 
-void index_thread_mailbox_index_opened(struct index_mailbox *ibox)
+void index_thread_mailbox_opened(struct index_mailbox *ibox)
 {
 	struct mailbox *box = &ibox->box;
 	struct mail_thread_mailbox *tbox;
diff -r c339b0f7d087 -r 43239594b65b src/lib-storage/mail-storage-hooks.c
--- a/src/lib-storage/mail-storage-hooks.c	Wed Dec 16 22:17:12 2009 -0500
+++ b/src/lib-storage/mail-storage-hooks.c	Wed Dec 16 22:21:36 2009 -0500
@@ -181,12 +181,12 @@ void hook_mailbox_allocated(struct mailb
 	}
 }
 
-void hook_mailbox_index_opened(struct mailbox *box)
+void hook_mailbox_opened(struct mailbox *box)
 {
 	const struct mail_storage_hooks *const *hooks;
 
 	array_foreach(&box->storage->user->hooks, hooks) {
-		if ((*hooks)->mailbox_index_opened != NULL)
-			(*hooks)->mailbox_index_opened(box);
+		if ((*hooks)->mailbox_opened != NULL)
+			(*hooks)->mailbox_opened(box);
 	}
 }
diff -r c339b0f7d087 -r 43239594b65b src/lib-storage/mail-storage-hooks.h
--- a/src/lib-storage/mail-storage-hooks.h	Wed Dec 16 22:17:12 2009 -0500
+++ b/src/lib-storage/mail-storage-hooks.h	Wed Dec 16 22:21:36 2009 -0500
@@ -15,7 +15,7 @@ struct mail_storage_hooks {
 	void (*mail_storage_created)(struct mail_storage *storage);
 	void (*mailbox_list_created)(struct mailbox_list *list);
 	void (*mailbox_allocated)(struct mailbox *box);
-	void (*mailbox_index_opened)(struct mailbox *box);
+	void (*mailbox_opened)(struct mailbox *box);
 };
 
 void mail_storage_hooks_init(void);
@@ -34,6 +34,6 @@ void hook_mail_storage_created(struct ma
 void hook_mail_storage_created(struct mail_storage *storage);
 void hook_mailbox_list_created(struct mailbox_list *list);
 void hook_mailbox_allocated(struct mailbox *box);
-void hook_mailbox_index_opened(struct mailbox *box);
+void hook_mailbox_opened(struct mailbox *box);
 
 #endif


More information about the dovecot-cvs mailing list