#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 {
struct mail_index_transaction_commit_result *result_r);
};
};
struct mail_index_flag_update {
};
struct mail_index_transaction {
int refcount;
/* NOTE: If you add anything new, remember to update
mail_index_transaction_reset_v() to reset it. */
/* Module-specific contexts. */
/* 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. */
/* extension updates */
};
#define MAIL_INDEX_TRANSACTION_HAS_CHANGES(t) \
((t)->log_updates || (t)->log_ext_updates || \
(t)->index_deleted || (t)->index_undeleted)
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_reset_v(struct mail_index_transaction *t);
void mail_index_transaction_sort_appends(struct mail_index_transaction *t);
void mail_index_transaction_sort_expunges(struct mail_index_transaction *t);
void mail_index_transaction_set_log_updates(struct mail_index_transaction *t);
unsigned int
unsigned int left_idx,
unsigned int right_idx,
void mail_index_transaction_lookup_latest_keywords(struct mail_index_transaction *t,
bool mail_index_cancel_flag_updates(struct mail_index_transaction *t,
bool mail_index_cancel_keyword_updates(struct mail_index_transaction *t,
/* As input the array's each element starts with struct seq_range where
uid1..uid2 are actually sequences within the transaction view. This function
changes the sequences into UIDs. If the transaction has any appends, they
must have already been assigned UIDs. */
void mail_index_transaction_seq_range_to_uid(struct mail_index_transaction *t,
void mail_index_transaction_finish_so_far(struct mail_index_transaction *t);
void mail_index_transaction_finish(struct mail_index_transaction *t);
void mail_index_transaction_export(struct mail_index_transaction *t,
const struct mail_transaction_expunge_guid *e2);
unsigned int
unsigned int left_idx,
unsigned int right_idx,
void mail_index_ext_using_reset_id(struct mail_index_transaction *t,
#endif