summaryrefslogtreecommitdiffstats
path: root/src/lib-storage/index/index-sort.h
blob: b0e2770779ef0f4deb841a0a27b4558f919648ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef INDEX_SORT_H
#define INDEX_SORT_H

struct mail_search_sort_program;

struct mail_search_sort_program *
index_sort_program_init(struct mailbox_transaction_context *t,
			const enum mail_sort_type *sort_program);
int index_sort_program_deinit(struct mail_search_sort_program **program);

void index_sort_list_add(struct mail_search_sort_program *program,
			 struct mail *mail);
void index_sort_list_finish(struct mail_search_sort_program *program);

bool index_sort_list_next(struct mail_search_sort_program *program,
			  uint32_t *seq_r);

#endif