blob: 043f4e1106092a1386f13acf9aa8e464bbf86d89 (
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 FTS_USER_H
#define FTS_USER_H
struct fts_user_language {
const struct fts_language *lang;
struct fts_filter *filter;
struct fts_tokenizer *index_tokenizer, *search_tokenizer;
};
ARRAY_DEFINE_TYPE(fts_user_language, struct fts_user_language *);
struct fts_user_language *
fts_user_language_find(struct mail_user *user,
const struct fts_language *lang);
struct fts_language_list *fts_user_get_language_list(struct mail_user *user);
const ARRAY_TYPE(fts_user_language) *
fts_user_get_all_languages(struct mail_user *user);
struct fts_user_language *fts_user_get_data_lang(struct mail_user *user);
const ARRAY_TYPE(fts_user_language) *
fts_user_get_data_languages(struct mail_user *user);
bool fts_user_autoindex_exclude(struct mailbox *box);
int fts_mail_user_init(struct mail_user *user, bool initialize_libfts,
const char **error_r);
void fts_mail_user_deinit(struct mail_user *user);
#endif
|