]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mailbox_index_opened hook renamed to mailbox_opened.
authorTimo Sirainen <tss@iki.fi>
Thu, 17 Dec 2009 03:21:36 +0000 (22:21 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 17 Dec 2009 03:21:36 +0000 (22:21 -0500)
--HG--
branch : HEAD

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

index 6b738f1048ac14e6bac45a4c0fbc9fea41a4881d..ac1b2b36d09c35a73958fda52554dae24781ec3c 100644 (file)
@@ -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;
 }
 
index 4b49d6e0ba964cad7839397eea6c132448bfb2e6..9e473c842907ed97a64f7867252636f2cbab4cbc 100644 (file)
@@ -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
index 6b9cb45a4e40f561083369362adad0811063449d..7e11b23846b9d3d4ceac52cb56a9ad8af9a2316d 100644 (file)
@@ -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;
index 837b3ca35b946c039561af013ebdbdf9cd125821..457d01f68342376060759ee12ae976de92f88c72 100644 (file)
@@ -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);
        }
 }
index a876aae55e099705002360b314e6f9762cfb3574..a6c24ce124f8581c3c752a3fad01d5c2171b21a2 100644 (file)
@@ -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