Mercurial > dovecot > core-2.2
changeset 10513:43239594b65b HEAD
lib-storage: mailbox_index_opened hook renamed to mailbox_opened.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Dec 2009 22:21:36 -0500 |
parents | c339b0f7d087 |
children | 55baae8ed874 |
files | src/lib-storage/index/index-storage.c src/lib-storage/index/index-thread-private.h src/lib-storage/index/index-thread.c src/lib-storage/mail-storage-hooks.c src/lib-storage/mail-storage-hooks.h |
diffstat | 5 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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; }
--- 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 @@ 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
--- 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 @@ 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;
--- 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_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); } }
--- 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 @@ 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 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