mail-index-transaction-private.h revision 1aa80711dcef7f193038b1f3ff65f331b43a4beb
#ifndef MAIL_INDEX_TRANSACTION_PRIVATE_H
#define MAIL_INDEX_TRANSACTION_PRIVATE_H
#include "seq-range-array.h"
#include "mail-transaction-log.h"
};
/* mask is in bytes, not bits */
unsigned char *mask;
unsigned char *data;
};
struct mail_index_transaction_vfuncs {
int (*commit)(struct mail_index_transaction *t,
void (*rollback)(struct mail_index_transaction *t);
};
struct mail_index_module_register *reg;
};
struct mail_index_transaction {
int refcount;
struct mail_index_transaction_vfuncs v;
struct mail_index_view *view;
/* NOTE: If you add anything new, remember to update
mail_index_transaction_reset() to reset it. */
unsigned char pre_hdr_change[sizeof(struct mail_index_header)];
unsigned char pre_hdr_mask[sizeof(struct mail_index_header)];
unsigned char post_hdr_change[sizeof(struct mail_index_header)];
unsigned char post_hdr_mask[sizeof(struct mail_index_header)];
/* Module-specific contexts. */
union mail_index_transaction_module_context *);
unsigned int no_appends:1;
unsigned int appends_nonsorted:1;
unsigned int pre_hdr_changed:1;
unsigned int post_hdr_changed:1;
unsigned int reset:1;
/* non-extension updates. flag updates don't change this because
they may be added and removed, so be sure to check that the updates
array is non-empty also. */
unsigned int log_updates:1;
/* extension updates */
unsigned int log_ext_updates:1;
};
extern void (*hook_mail_index_transaction_created)
(struct mail_index_transaction *t);
struct mail_index_record *
void mail_index_transaction_ref(struct mail_index_transaction *t);
void mail_index_transaction_unref(struct mail_index_transaction **t);
void mail_index_transaction_sort_appends(struct mail_index_transaction *t);
void mail_index_transaction_convert_to_uids(struct mail_index_transaction *t);
void mail_index_transaction_check_conflicts(struct mail_index_transaction *t);
unsigned int
unsigned int left_idx,
unsigned int right_idx,
#endif