Mercurial > dovecot > core-2.2
changeset 14083:21c3ce1b21cd
lib-index: mail_cache_open_and_verify() is now public.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 09 Feb 2012 01:21:41 +0200 |
parents | 09db0f7aa6ce |
children | d8d214cc1936 |
files | src/lib-index/mail-cache-private.h src/lib-index/mail-cache.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-private.h Thu Feb 09 01:00:14 2012 +0200 +++ b/src/lib-index/mail-cache-private.h Thu Feb 09 01:21:41 2012 +0200 @@ -221,8 +221,6 @@ unsigned int appends_checked:1; }; -int mail_cache_open_and_verify(struct mail_cache *cache); - /* Explicitly lock the cache file. Returns -1 if error / timed out, 1 if ok, 0 if cache is broken/doesn't exist */ int mail_cache_lock(struct mail_cache *cache, bool require_same_reset_id);
--- a/src/lib-index/mail-cache.h Thu Feb 09 01:00:14 2012 +0200 +++ b/src/lib-index/mail-cache.h Thu Feb 09 01:21:41 2012 +0200 @@ -70,6 +70,8 @@ struct mail_index_transaction *trans); /* Returns TRUE if there is at least something in the cache. */ bool mail_cache_exists(struct mail_cache *cache); +/* Open and read cache header. Returns 0 if ok, -1 if error/corrupted. */ +int mail_cache_open_and_verify(struct mail_cache *cache); struct mail_cache_view * mail_cache_view_open(struct mail_cache *cache, struct mail_index_view *iview);