mail-index-data.h revision 448492d8317140da884089c1e1f54a004db80f77
#ifndef __MAIL_INDEX_DATA_H
#define __MAIL_INDEX_DATA_H
#define DATA_FILE_PREFIX ".data"
/* Truncate the data file and update it's indexid */
/* Set indexid to 0 to notify other processes using this file that they should
re-open it. */
/* Append new data at the end of the file. Returns the position in file
where the data begins, or 0 if error occured. */
/* Increase header->deleted_space field */
/* Synchronize the data into disk */
/* Looks up a field from data file. If field is 0, returns the first field
found. 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. */
/* "Error in index data file %s: ...". Also marks the index file as
corrupted. */
#endif