index-storage.h revision e34d170f8f0e084bd94bfbc1a7085ece67e508df
#ifndef INDEX_STORAGE_H
#define INDEX_STORAGE_H
#include "file-dotlock.h"
#include "mail-storage-private.h"
#include "mail-index-private.h"
#define MAILBOX_FULL_SYNC_INTERVAL 5
enum mailbox_lock_notify_type {
/* Mailbox is locked, will abort in secs_left */
/* Mailbox lock looks stale, will override in secs_left */
};
struct index_vsize_header {
};
struct index_mailbox_context {
union mailbox_module_context module_ctx;
struct index_notify_file *notify_files;
struct index_notify_io *notify_ios;
struct mail_cache_field *cache_fields;
};
#define INDEX_STORAGE_CONTEXT(obj) \
unsigned int secs_left);
enum mailbox_flags flags,
const char *index_prefix);
enum mailbox_existence *existence_r);
enum mailbox_existence *existence_r)
ATTR_NULL(2);
enum mailbox_feature feature);
const struct mailbox_update *update);
const struct mailbox_update *update);
bool rename_children);
struct mail_index_view *view,
enum mailbox_sync_flags flags);
struct mailbox_sync_context *
bool failed);
struct mailbox_sync_rec *sync_rec_r);
struct mailbox_sync_status *status_r);
enum mailbox_status_items items,
struct mailbox_status *status_r);
enum mailbox_status_items items,
struct mailbox_status *status_r);
enum mailbox_metadata_items items,
struct mailbox_metadata *metadata_r);
struct mail_search_context *
struct mail_search_args *args,
const enum mail_sort_type *sort_program,
struct mailbox_header_lookup_ctx *wanted_headers);
struct mailbox_transaction_context *
enum mailbox_transaction_flags flags);
void index_transaction_init(struct mailbox_transaction_context *t,
enum mailbox_transaction_flags flags);
void index_transaction_init_pvt(struct mailbox_transaction_context *t);
int index_transaction_commit(struct mailbox_transaction_context *t,
struct mail_transaction_commit_changes *changes_r);
void index_transaction_rollback(struct mailbox_transaction_context *t);
struct mail_index_view *list_view,
struct mail_index_transaction *trans,
#endif