mail-index-sync-private.h revision 190237ce467d2389dfb809874b0fec86d3c7968d
#ifndef __MAIL_INDEX_SYNC_PRIVATE_H
#define __MAIL_INDEX_SYNC_PRIVATE_H
#include "mail-transaction-log.h"
struct uid_range {
};
struct mail_index_sync_ctx {
struct mail_index *index;
struct mail_index_view *view;
struct mail_index_transaction *trans;
const struct mail_transaction_header *hdr;
const void *data;
unsigned int lock_id;
unsigned int sync_appends:1;
unsigned int sync_recent:1;
unsigned int sync_dirty:1;
};
struct mail_index_sync_list {
unsigned int idx;
unsigned int keyword_idx:31;
unsigned int keyword_remove:1;
};
struct mail_index_expunge_handler {
void *context;
void **sync_context;
};
struct mail_index_sync_map_ctx {
struct mail_index_view *view;
ARRAY_DEFINE(extra_contexts, void *);
unsigned int sync_handlers_initialized:1;
unsigned int expunge_handlers_set:1;
unsigned int expunge_handlers_used:1;
unsigned int cur_ext_ignore:1;
unsigned int unreliable_flags:1;
};
extern struct mail_transaction_map_functions mail_index_map_sync_funcs;
struct mail_index_view *view,
enum mail_index_sync_handler_type type);
bool sync_only_external);
const struct mail_transaction_header *hdr,
const void *data);
struct mail_index_map *map);
void
const struct mail_transaction_ext_intro *u);
const struct mail_transaction_ext_reset *u);
int
const struct mail_transaction_ext_hdr_update *u);
int
const struct mail_transaction_ext_rec_update *u);
const struct mail_transaction_header *hdr,
const struct mail_transaction_keyword_update *rec);
int
const struct mail_transaction_header *hdr,
const struct mail_transaction_keyword_reset *r);
#endif