summaryrefslogtreecommitdiffstats
path: root/src/lib-storage/list/mailbox-list-notify-tree.h
blob: 3666ac8b4294df875111721f276f991b70539588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef MAILBOX_LIST_NOTIFY_TREE_H
#define MAILBOX_LIST_NOTIFY_TREE_H

#include "mailbox-tree.h"

struct mailbox_notify_node {
	struct mailbox_node node;

	guid_128_t guid;
	uint32_t index_uid;

	uint32_t uidvalidity;
	uint32_t uidnext;
	uint32_t messages;
	uint32_t unseen;
	uint64_t highest_modseq;
};

struct mailbox_list_notify_tree *
mailbox_list_notify_tree_init(struct mailbox_list *list);
void mailbox_list_notify_tree_deinit(struct mailbox_list_notify_tree **tree);

struct mailbox_notify_node *
mailbox_list_notify_tree_lookup(struct mailbox_list_notify_tree *tree,
				const char *storage_name);

#endif