cydir-transaction.c revision 26af8fb913367d40a821d8713980cb1731ad6fcb
/* Copyright (c) 2007 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "cydir-sync.h"
#include "cydir-storage.h"
static void (*next_hook_mail_index_transaction_created)
(struct mail_index_transaction *t) = NULL;
static int cydir_transaction_commit(struct mail_index_transaction *t,
{
struct cydir_save_context *save_ctx;
int ret = 0;
ret = -1;
}
}
if (ret < 0)
else {
log_file_offset_r) < 0)
ret = -1;
}
/* transaction is destroyed now. */
/* unlock uidlist file after writing to transaction log,
to make sure we don't write uids in wrong order. */
}
return ret;
}
static void cydir_transaction_rollback(struct mail_index_transaction *t)
{
}
static void cydir_transaction_created(struct mail_index_transaction *t)
{
/* index can be for mailbox list index, in which case box=NULL */
struct cydir_transaction_context *mt;
t->v.commit = cydir_transaction_commit;
t->v.rollback = cydir_transaction_rollback;
}
}
void cydir_transaction_class_init(void)
{
}
void cydir_transaction_class_deinit(void)
{
}