]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: move mail_cache_decision_add to public header
authorMarkus Valentin <markus.valentin@open-xchange.com>
Tue, 3 Sep 2019 12:16:41 +0000 (14:16 +0200)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Wed, 4 Sep 2019 09:20:39 +0000 (09:20 +0000)
To allow other components to mark fields as to be cached move the
declaration from mail-cache-private.h to mail-cache.h.

src/lib-index/mail-cache-private.h
src/lib-index/mail-cache.h

index 83f1be6248ea7a514850e9e5f280f567a53ca5ba..be288b1f1cd97e0adc87efabc4ddd8b79a6c4574 100644 (file)
@@ -254,11 +254,6 @@ int mail_cache_reopen(struct mail_cache *cache);
    in the cache file. */
 void mail_cache_decision_state_update(struct mail_cache_view *view,
                                      uint32_t seq, unsigned int field);
-/* Notify the decision handling code when field is committed to cache.
-   If this is the first time the field is added to cache, its caching decision
-   is updated to TEMP. */
-void mail_cache_decision_add(struct mail_cache_view *view, uint32_t seq,
-                            unsigned int field);
 
 int mail_cache_expunge_handler(struct mail_index_sync_map_ctx *sync_ctx,
                               uint32_t seq, const void *data,
index 8777974eb9e6ea048fd88fb7038512520a50d584..2de6f03a7a4c2a33da465ccf0632d1791306a13c 100644 (file)
@@ -134,6 +134,11 @@ bool mail_cache_field_exists_any(struct mail_cache_view *view, uint32_t seq);
 /* Returns current caching decision for given field. */
 enum mail_cache_decision_type
 mail_cache_field_get_decision(struct mail_cache *cache, unsigned int field_idx);
+/* Notify the decision handling code when field is committed to cache.
+   If this is the first time the field is added to cache, its caching decision
+   is updated to TEMP. */
+void mail_cache_decision_add(struct mail_cache_view *view, uint32_t seq,
+                            unsigned int field);
 
 /* Set data_r and size_r to point to wanted field in cache file.
    Returns 1 if field was found, 0 if not, -1 if error. */