]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Move struct client_sync_context to imap-sync-private.h and add imap_ prefix
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 19 May 2017 14:44:30 +0000 (17:44 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 22 May 2017 12:12:59 +0000 (15:12 +0300)
src/imap/imap-client.h
src/imap/imap-sync-private.h
src/imap/imap-sync.c

index 8ea9e5b9e1a3722b38bc94538c9ff60839fcf1ca..5cde0d6e6ee6ac93277c3d4e0cb702aa4b52422b 100644 (file)
@@ -105,7 +105,7 @@ struct client_command_context {
        struct client_command_stats stats;
        struct client_command_stats_start stats_start;
 
-       struct client_sync_context *sync;
+       struct imap_client_sync_context *sync;
 
        unsigned int uid:1; /* used UID command */
        unsigned int cancel:1; /* command is wanted to be cancelled */
index a153bc8c704b5cd86f87844d8f95a6410e230193..4d97bcc70f33add0df805490b751da9d02996bba 100644 (file)
@@ -3,6 +3,15 @@
 
 #include "imap-sync.h"
 
+struct imap_client_sync_context {
+       /* if multiple commands are in progress, we may need to wait for them
+          to finish before syncing mailbox. */
+       unsigned int counter;
+       enum mailbox_sync_flags flags;
+       enum imap_sync_flags imap_flags;
+       const char *tagline;
+};
+
 struct imap_sync_context {
        struct client *client;
        struct mailbox *box;
index e856b625e4f2d853746a1735d4a2c68b6c08dfcf..9698353e15cbd73ed093210bd83a98fd60be2985 100644 (file)
 #include "imap-commands.h"
 #include "imap-sync-private.h"
 
-struct client_sync_context {
-       /* if multiple commands are in progress, we may need to wait for them
-          to finish before syncing mailbox. */
-       unsigned int counter;
-       enum mailbox_sync_flags flags;
-       enum imap_sync_flags imap_flags;
-       const char *tagline;
-};
-
 static void uids_to_seqs(struct mailbox *box, ARRAY_TYPE(seq_range) *uids)
 {
        T_BEGIN {
@@ -755,7 +746,7 @@ bool cmd_sync(struct client_command_context *cmd, enum mailbox_sync_flags flags,
        }
        cmd->tagline_reply = p_strdup(cmd->pool, tagline);
 
-       cmd->sync = p_new(cmd->pool, struct client_sync_context, 1);
+       cmd->sync = p_new(cmd->pool, struct imap_client_sync_context, 1);
        cmd->sync->counter = client->sync_counter;
        cmd->sync->flags = flags;
        cmd->sync->imap_flags = imap_flags;