mail-tree.h revision d8bbb406a4a394b0109d4d5318cf0b02a57e7407
#ifndef __MAIL_TREE_H
#define __MAIL_TREE_H
typedef struct _MailTreeHeader MailTreeHeader;
typedef struct _MailTreeNode MailTreeNode;
struct _MailTree {
int fd;
char *filepath;
void *mmap_base;
unsigned int anon_mmap:1;
unsigned int modified:1;
};
struct _MailTreeHeader {
unsigned int indexid;
unsigned int root;
unsigned int unused_root;
unsigned int alignment;
};
struct _MailTreeNode {
unsigned int left;
unsigned int right;
unsigned int up;
unsigned int color;
/* number of child nodes + 1, used to figure out message
sequence numbers */
unsigned int node_count;
unsigned int key;
};
/* Find first existing UID in range. */
unsigned int first_uid,
unsigned int last_uid);
/* Find message by sequence number. */
/* Insert a new record in tree. */
/* Update existing record in tree. */
/* Delete record from tree. */
/* private: */
#endif