mail-index-view-private.h revision 3b80595fcf2001cf7b2fcc6290823e38f4a142fc
#ifndef __MAIL_INDEX_VIEW_PRIVATE_H
#define __MAIL_INDEX_VIEW_PRIVATE_H
#include "mail-index-private.h"
struct mail_index_view_log_sync_area {
unsigned int length;
};
struct mail_index_view_vfuncs {
const struct mail_index_header *
const struct mail_index_record *
const void **data_r, bool *expunged_r);
struct mail_index_map *map,
};
union mail_index_view_module_context {
struct mail_index_module_register *reg;
};
struct mail_index_view {
int refcount;
struct mail_index_view_vfuncs v;
struct mail_index *index;
struct mail_transaction_log_view *log_view;
unsigned int inconsistency_id;
struct mail_index_map *map;
/* After syncing view, map is replaced with sync_new_map. */
struct mail_index_map *sync_new_map;
/* All mappings where we have returned records. They need to be kept
valid until view is synchronized. */
/* expunge <= head */
/* Transaction log offsets which we don't want to return in view sync */
/* Module-specific contexts. */
int transactions;
unsigned int inconsistent:1;
/* this view was created by mail_index_sync_begin() */
unsigned int index_sync_view:1;
/* this view is being synced */
unsigned int syncing:1;
};
struct mail_index_view *
struct mail_index_map *map);
const struct mail_index_view *src);
unsigned int length);
#endif