4
struct fts_indexer_context;
6
/* Initialize indexing the given mailbox via indexer service. Returns 1 if
7
indexing started, 0 if there was no need to index or -1 if error. */
8
int fts_indexer_init(struct fts_backend *backend, struct mailbox *box,
9
struct fts_indexer_context **ctx_r);
10
/* Returns 0 if ok, -1 if error. */
11
int fts_indexer_deinit(struct fts_indexer_context **ctx);
13
/* Build more. Returns 1 if finished, 0 if this function needs to be called
14
again, -1 if error. */
15
int fts_indexer_more(struct fts_indexer_context *ctx);
17
/* Returns fd, which you can either read from or close. */
18
int fts_indexer_cmd(struct mail_user *user, const char *cmd,