421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen/* Initialize indexing the given mailbox via indexer service. Returns 1 if
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen indexing started, 0 if there was no need to index or -1 if error. */
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainenint fts_indexer_init(struct fts_backend *backend, struct mailbox *box,
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen/* Returns 0 if ok, -1 if error. */
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainenint fts_indexer_deinit(struct fts_indexer_context **ctx);
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen/* Build more. Returns 1 if finished, 0 if this function needs to be called
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen again, -1 if error. */
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainenint fts_indexer_more(struct fts_indexer_context *ctx);
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen/* Returns fd, which you can either read from or close. */
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainenint fts_indexer_cmd(struct mail_user *user, const char *cmd,
421d30619384e72a27e2a5d13ff6525aff4d17feTimo Sirainen const char **path_r);