Mercurial > dovecot > core-2.2
changeset 21999:69d9e016d975
imap: Move struct imap_sync_context to imap-sync-private.h
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 26 Apr 2017 14:57:40 +0300 |
parents | e49253c049b3 |
children | 641bf40ea9ee |
files | src/imap/Makefile.am src/imap/imap-sync-private.h src/imap/imap-sync.c |
diffstat | 3 files changed, 38 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/Makefile.am Tue Apr 18 15:55:08 2017 +0300 +++ b/src/imap/Makefile.am Wed Apr 26 14:57:40 2017 +0300 @@ -103,7 +103,8 @@ imap-settings.h \ imap-status.h \ imap-state.h \ - imap-sync.h + imap-sync.h \ + imap-sync-private.h pkginc_libdir=$(pkgincludedir) pkginc_lib_HEADERS = $(headers)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/imap/imap-sync-private.h Wed Apr 26 14:57:40 2017 +0300 @@ -0,0 +1,35 @@ +#ifndef IMAP_SYNC_PRIVATE_H +#define IMAP_SYNC_PRIVATE_H + +#include "imap-sync.h" + +struct imap_sync_context { + struct client *client; + struct mailbox *box; + enum imap_sync_flags imap_flags; + + struct mailbox_transaction_context *t; + struct mailbox_sync_context *sync_ctx; + struct mail *mail; + + struct mailbox_status status; + struct mailbox_sync_status sync_status; + + struct mailbox_sync_rec sync_rec; + ARRAY_TYPE(keywords) tmp_keywords; + ARRAY_TYPE(seq_range) expunges; + uint32_t seq; + + ARRAY_TYPE(seq_range) search_adds, search_removes; + unsigned int search_update_idx; + + unsigned int messages_count; + + unsigned int failed:1; + unsigned int finished:1; + unsigned int no_newmail:1; + unsigned int have_new_mails:1; + unsigned int search_update_notifying:1; +}; + +#endif
--- a/src/imap/imap-sync.c Tue Apr 18 15:55:08 2017 +0300 +++ b/src/imap/imap-sync.c Wed Apr 26 14:57:40 2017 +0300 @@ -11,7 +11,7 @@ #include "imap-fetch.h" #include "imap-notify.h" #include "imap-commands.h" -#include "imap-sync.h" +#include "imap-sync-private.h" struct client_sync_context { /* if multiple commands are in progress, we may need to wait for them @@ -22,35 +22,6 @@ const char *tagline; }; -struct imap_sync_context { - struct client *client; - struct mailbox *box; - enum imap_sync_flags imap_flags; - - struct mailbox_transaction_context *t; - struct mailbox_sync_context *sync_ctx; - struct mail *mail; - - struct mailbox_status status; - struct mailbox_sync_status sync_status; - - struct mailbox_sync_rec sync_rec; - ARRAY_TYPE(keywords) tmp_keywords; - ARRAY_TYPE(seq_range) expunges; - uint32_t seq; - - ARRAY_TYPE(seq_range) search_adds, search_removes; - unsigned int search_update_idx; - - unsigned int messages_count; - - unsigned int failed:1; - unsigned int finished:1; - unsigned int no_newmail:1; - unsigned int have_new_mails:1; - unsigned int search_update_notifying:1; -}; - static void uids_to_seqs(struct mailbox *box, ARRAY_TYPE(seq_range) *uids) { T_BEGIN {