mail-hash.h revision 6141d8c6260c3dfaeb9dd4ed09197e4122fd017e
#ifndef __MAIL_HASH_H
#define __MAIL_HASH_H
typedef struct _MailHashHeader MailHashHeader;
typedef struct _MailHashRecord MailHashRecord;
struct _MailHashHeader {
unsigned int indexid;
unsigned int used_records;
};
struct _MailHashRecord {
unsigned int uid;
};
/* Open or create a hash file for index. If the hash needs to be created,
it's also immediately built from the given index. */
/* Synchronize the hash file with memory map */
/* Rebuild hash from index and reset the FLAG_REBUILD_HASH in header.
The index must have an exclusive lock before this function is called. */
/* Returns position in index file to given UID, or 0 if not found. */
/* Update hash file. If pos is 0, the record is deleted. This call may
rebuild the hash if it's too full. */
#endif