mail-index-view-private.h revision fa5957ffc9b676bfd649fa9953e63e72ee4ebeb4
#ifndef __MAIL_INDEX_VIEW_PRIVATE_H
#define __MAIL_INDEX_VIEW_PRIVATE_H
#include "mail-index-private.h"
struct mail_index_view_methods {
const struct mail_index_header *
struct mail_index_map **map_r,
const struct mail_index_record **rec_r);
const void **data_r);
};
struct mail_index_view {
int refcount;
struct mail_index_view_methods methods;
struct mail_index *index;
struct mail_transaction_log_view *log_view;
unsigned int indexid;
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. */
struct mail_index_header hdr;
/* Contains a list of transaction log offsets which we don't want to
return when syncing. */
int transactions;
unsigned int lock_id;
unsigned int inconsistent:1;
unsigned int syncing:1;
unsigned int broken_counters:1;
};
const struct mail_index_view *src);
#endif