mail-transaction-log-private.h revision 37598dd7a0613a03b12170c450b53c70f2b3d438
#ifndef __MAIL_TRANSACTION_LOG_VIEW_H
#define __MAIL_TRANSACTION_LOG_VIEW_H
#include "file-dotlock.h"
#include "mail-transaction-log.h"
struct mail_transaction_log_file {
struct mail_transaction_log *log;
struct mail_transaction_log_file *next;
int refcount;
char *filepath;
int fd;
void *mmap_base;
struct mail_transaction_log_header hdr;
unsigned int locked:1;
};
struct mail_transaction_log {
struct mail_index *index;
struct mail_transaction_log_view *views;
/* head is the latest log file. tail is a linked list of older
files. head isn't part of that linked list at all (ugh) */
unsigned int dotlock_count;
};
void
const char *fmt, ...)
struct mail_transaction_log_file **file_r);
#endif