index-sync-private.h revision 2d05af5ce21d020aba7368746d936827033a2b8b
0075dcb5aeeee4864fe9f64db82c8a8202bbe6d6henning mueller#ifndef INDEX_SYNC_PRIVATE_H
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller#define INDEX_SYNC_PRIVATE_H
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller
0075dcb5aeeee4864fe9f64db82c8a8202bbe6d6henning mueller#include "index-storage.h"
0075dcb5aeeee4864fe9f64db82c8a8202bbe6d6henning mueller
3cd45197413df1ff1401697720f1ac9ccef8f8eehenning muellerstruct index_mailbox_sync_context {
3cd45197413df1ff1401697720f1ac9ccef8f8eehenning mueller struct mailbox_sync_context ctx;
3cd45197413df1ff1401697720f1ac9ccef8f8eehenning mueller
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller struct mail_index_view_sync_ctx *sync_ctx;
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller uint32_t messages_count;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller ARRAY_TYPE(seq_range) flag_updates;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller ARRAY_TYPE(seq_range) hidden_updates;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller ARRAY_TYPE(seq_range) all_flag_update_uids;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller const ARRAY_TYPE(seq_range) *expunges;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller unsigned int flag_update_idx, hidden_update_idx, expunge_pos;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller bool failed;
d12cf3a51e30d69a53108694ba68ba584942dbb8henning mueller};
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning muellervoid index_sync_search_results_uidify(struct index_mailbox_sync_context *ctx);
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning muellervoid index_sync_search_results_update(struct index_mailbox_sync_context *ctx);
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning muellervoid index_sync_search_results_expunge(struct index_mailbox_sync_context *ctx);
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning muellerint index_storage_mailbox_sync_pvt(struct mailbox *box,
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller ARRAY_TYPE(seq_range) *flag_updates,
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller ARRAY_TYPE(seq_range) *hidden_updates);
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller#endif
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller