cydir-storage.h revision c6a57378d3c54988f525f81e19c0c5d132a0770d
#ifndef __CYDIR_STORAGE_H
#define __CYDIR_STORAGE_H
#include "index-storage.h"
#include "mailbox-list-private.h"
#define CYDIR_STORAGE_NAME "cydir"
#define CYDIR_SUBSCRIPTION_FILE_NAME "subscriptions."
#define CYDIR_INDEX_PREFIX "dovecot.index"
#define STORAGE(mbox_storage) \
#define INDEX_STORAGE(mbox_storage) \
(&(mbox_storage)->storage)
struct cydir_storage {
struct index_storage storage;
};
struct cydir_mailbox {
struct index_mailbox ibox;
struct cydir_storage *storage;
const char *path;
};
struct cydir_transaction_context {
struct index_transaction_context ictx;
struct cydir_save_context *save_ctx;
};
extern struct mail_vfuncs cydir_mail_vfuncs;
void cydir_transaction_created(struct mail_index_transaction *t);
void cydir_transaction_class_init(void);
void cydir_transaction_class_deinit(void);
#endif