mail-index-sync-private.h revision 20b9283d4af31e45e588014da427fb2dbcd3227a
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey ShabalinARRAY_DEFINE_TYPE(uid_range, struct uid_range);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin unsigned int idx;
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalin uoff_t ext_intro_offset, ext_intro_end_offset;
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin ARRAY_DEFINE(expunge_handlers, struct mail_index_expunge_handler);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin unsigned int internal_update:1; /* used by keywords for ext_intro */
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinextern struct mail_transaction_map_functions mail_index_map_sync_funcs;
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinvoid mail_index_sync_map_init(struct mail_index_sync_map_ctx *sync_map_ctx,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinvoid mail_index_sync_map_deinit(struct mail_index_sync_map_ctx *sync_map_ctx);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinint mail_index_sync_map(struct mail_index_map **map,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin enum mail_index_sync_handler_type type, bool force);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinint mail_index_sync_record(struct mail_index_sync_map_ctx *ctx,
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalin const void *data);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinmail_index_sync_get_atomic_map(struct mail_index_sync_map_ctx *ctx);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinvoid mail_index_sync_write_seq_update(struct mail_index_sync_map_ctx *ctx,
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinvoid mail_index_sync_init_expunge_handlers(struct mail_index_sync_map_ctx *ctx);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinmail_index_sync_deinit_expunge_handlers(struct mail_index_sync_map_ctx *ctx);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinvoid mail_index_sync_init_handlers(struct mail_index_sync_map_ctx *ctx);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinvoid mail_index_sync_deinit_handlers(struct mail_index_sync_map_ctx *ctx);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinint mail_index_sync_ext_intro(struct mail_index_sync_map_ctx *ctx,
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalin const struct mail_transaction_ext_intro *u);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinint mail_index_sync_ext_reset(struct mail_index_sync_map_ctx *ctx,
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalin const struct mail_transaction_ext_reset *u);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinmail_index_sync_ext_hdr_update(struct mail_index_sync_map_ctx *ctx,
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalin const struct mail_transaction_ext_hdr_update *u);
b031f0d2ca1b40eab86286b82d3c5e8b379122e6Alexey Shabalinmail_index_sync_ext_rec_update(struct mail_index_sync_map_ctx *ctx,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin const struct mail_transaction_ext_rec_update *u);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinint mail_index_sync_keywords(struct mail_index_sync_map_ctx *ctx,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin const struct mail_transaction_keyword_update *rec);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinmail_index_sync_keywords_reset(struct mail_index_sync_map_ctx *ctx,
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalin const struct mail_transaction_keyword_reset *r);
262f4e48a51a55ad9cee06abbcfe4a6ad6166f49Alexey Shabalinvoid mail_index_sync_set_corrupted(struct mail_index_sync_map_ctx *ctx,