From: Timo Sirainen Date: Thu, 17 Dec 2009 03:21:36 +0000 (-0500) Subject: lib-storage: mailbox_index_opened hook renamed to mailbox_opened. X-Git-Tag: 2.0.beta2~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c1ed553b9add66a85e908b0c783c1b0dee1e0fe;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mailbox_index_opened hook renamed to mailbox_opened. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-storage.c b/src/lib-storage/index/index-storage.c index 6b738f1048..ac1b2b36d0 100644 --- a/src/lib-storage/index/index-storage.c +++ b/src/lib-storage/index/index-storage.c @@ -438,9 +438,9 @@ int index_storage_mailbox_open(struct mailbox *box) 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 --git a/src/lib-storage/index/index-thread-private.h b/src/lib-storage/index/index-thread-private.h index 4b49d6e0ba..9e473c8429 100644 --- a/src/lib-storage/index/index-thread-private.h +++ b/src/lib-storage/index/index-thread-private.h @@ -79,6 +79,6 @@ mail_thread_iterate_init_full(struct mail_thread_cache *cache, 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 --git a/src/lib-storage/index/index-thread.c b/src/lib-storage/index/index-thread.c index 6b9cb45a4e..7e11b23846 100644 --- a/src/lib-storage/index/index-thread.c +++ b/src/lib-storage/index/index-thread.c @@ -633,7 +633,7 @@ static void mail_thread_mailbox_close(struct mailbox *box) 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 --git a/src/lib-storage/mail-storage-hooks.c b/src/lib-storage/mail-storage-hooks.c index 837b3ca35b..457d01f683 100644 --- a/src/lib-storage/mail-storage-hooks.c +++ b/src/lib-storage/mail-storage-hooks.c @@ -181,12 +181,12 @@ void hook_mailbox_allocated(struct mailbox *box) } } -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 --git a/src/lib-storage/mail-storage-hooks.h b/src/lib-storage/mail-storage-hooks.h index a876aae55e..a6c24ce124 100644 --- a/src/lib-storage/mail-storage-hooks.h +++ b/src/lib-storage/mail-storage-hooks.h @@ -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_namespaces_created(struct mail_namespace *namespaces); 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