ac26a4607cb12b156f6a42f1ead2881bedd43d94Timo Sirainen/* If using in-memory indexes, give index_dir=NULL. */
82d158d37db5cfb4e26affe4bc2f2a235901d1b9Timo Sirainenmail_index_alloc_cache_get(struct event *parent_event, const char *mailbox_path,
e10d8b1291090c26b9ef499637e6e632485ca5beTimo Sirainenvoid mail_index_alloc_cache_unref(struct mail_index **index);
ac26a4607cb12b156f6a42f1ead2881bedd43d94Timo Sirainenvoid mail_index_alloc_cache_destroy_unrefed(void);
ac26a4607cb12b156f6a42f1ead2881bedd43d94Timo Sirainen/* internal: */
ac26a4607cb12b156f6a42f1ead2881bedd43d94Timo Sirainenvoid mail_index_alloc_cache_index_opened(struct mail_index *index);