~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/dsync/dsync-brain-private.h

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2015-05-24 15:01:19 UTC
  • mto: (4.1.53 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20150524150119-hsh6cbr1fqseapga
Tags: upstream-2.2.18
ImportĀ upstreamĀ versionĀ 2.2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
           after the mails are synced, another mailbox is synced. */
33
33
        DSYNC_STATE_SYNC_MAILS,
34
34
 
 
35
        DSYNC_STATE_FINISH,
35
36
        DSYNC_STATE_DONE
36
37
};
37
38
 
94
95
        /* new states for synced mailboxes */
95
96
        ARRAY_TYPE(dsync_mailbox_state) remote_mailbox_states;
96
97
 
 
98
        enum mail_error mail_error;
 
99
 
97
100
        unsigned int master_brain:1;
98
101
        unsigned int mail_requests:1;
99
102
        unsigned int backup_send:1;
118
121
bool dsync_brain_recv_mailbox_tree(struct dsync_brain *brain);
119
122
bool dsync_brain_recv_mailbox_tree_deletes(struct dsync_brain *brain);
120
123
int dsync_brain_mailbox_tree_sync_change(struct dsync_brain *brain,
121
 
                        const struct dsync_mailbox_tree_sync_change *change);
 
124
                        const struct dsync_mailbox_tree_sync_change *change,
 
125
                        enum mail_error *error_r);
122
126
 
123
127
void dsync_brain_sync_mailbox_deinit(struct dsync_brain *brain);
124
128
int dsync_brain_mailbox_alloc(struct dsync_brain *brain, const guid_128_t guid,
125
 
                              struct mailbox **box_r, const char **error_r);
 
129
                              struct mailbox **box_r, const char **errstr_r,
 
130
                              enum mail_error *error_r);
126
131
bool dsync_brain_mailbox_update_pre(struct dsync_brain *brain,
127
132
                                    struct mailbox *box,
128
133
                                    const struct dsync_mailbox *local_box,