mail-index-data.h revision d5aa01c4d7cc8b099f47cf011cba850b1759eb2d
#ifndef __MAIL_INDEX_DATA_H
#define __MAIL_INDEX_DATA_H
#define DATA_FILE_PREFIX ".data"
/* Truncate the data file and update it's indexid */
/* Needs to be called whenever new messages are added. File must never
be shrinked while it's open. */
/* Append new data at the end of the file. Returns the position in file
where the data begins, or (off_t)-1 if error occured. */
/* Increase header->deleted_space field */
unsigned int data_size);
/* Synchronize the data into disk */
/* Looks up a field from data file. Returns NULL if not found or
if error occured. */
/* Returns the next record in data file, or NULL if there's no more. */
/* Returns TRUE if rec->data is a valid \0-terminated string */
/* Return the whole data file mmap()ed. */
#endif