Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-storage/index/dbox/dbox-sync.h @ 6502:c4cb7f25bf09 HEAD
Don't forward declare enums. It doesn't seem to work with all compilers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 25 Sep 2007 21:57:32 +0300 |
parents | e4eb71ae8e96 |
children | 9d8c00d4c467 |
line wrap: on
line source
#ifndef DBOX_SYNC_H #define DBOX_SYNC_H struct mailbox; struct dbox_sync_file_entry { uint32_t file_id; ARRAY_TYPE(seq_range) changes; ARRAY_TYPE(seq_range) expunges; }; struct dbox_sync_context { struct dbox_mailbox *mbox; struct mail_index_sync_ctx *index_sync_ctx; struct mail_index_view *sync_view; struct mail_index_transaction *trans; string_t *path; unsigned int path_dir_prefix_len; pool_t pool; struct hash_table *syncs; /* struct dbox_sync_file_entry */ ARRAY_TYPE(seq_range) expunge_files; ARRAY_TYPE(seq_range) locked_files; unsigned int flush_dirty_flags:1; }; int dbox_sync_begin(struct dbox_mailbox *mbox, struct dbox_sync_context **ctx_r, bool close_flush_dirty_flags); int dbox_sync_finish(struct dbox_sync_context **ctx, bool success); int dbox_sync(struct dbox_mailbox *mbox, bool close_flush_dirty_flags); int dbox_sync_file(struct dbox_sync_context *ctx, const struct dbox_sync_file_entry *entry); int dbox_sync_index_rebuild(struct dbox_mailbox *mbox); struct mailbox_sync_context * dbox_storage_sync_init(struct mailbox *box, enum mailbox_sync_flags flags); #endif