8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen#ifndef MAILBOX_LIST_NOTIFY_TREE_H
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen#define MAILBOX_LIST_NOTIFY_TREE_H
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen#include "mailbox-tree.h"
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenstruct mailbox_notify_node {
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen struct mailbox_node node;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen guid_128_t guid;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint32_t index_uid;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint32_t uidvalidity;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint32_t uidnext;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint32_t messages;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint32_t unseen;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen uint64_t highest_modseq;
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen};
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenstruct mailbox_list_notify_tree *
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenmailbox_list_notify_tree_init(struct mailbox_list *list);
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenvoid mailbox_list_notify_tree_deinit(struct mailbox_list_notify_tree **tree);
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenstruct mailbox_notify_node *
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainenmailbox_list_notify_tree_lookup(struct mailbox_list_notify_tree *tree,
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen const char *storage_name);
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen
8854395cdd21ca521b37ce669f3acb8445792b20Timo Sirainen#endif