diff options
Diffstat (limited to 'src/plugins/fts-lucene/fts-lucene-plugin.h')
-rw-r--r-- | src/plugins/fts-lucene/fts-lucene-plugin.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/plugins/fts-lucene/fts-lucene-plugin.h b/src/plugins/fts-lucene/fts-lucene-plugin.h new file mode 100644 index 0000000..69440fb --- /dev/null +++ b/src/plugins/fts-lucene/fts-lucene-plugin.h @@ -0,0 +1,36 @@ +#ifndef FTS_LUCENE_PLUGIN_H +#define FTS_LUCENE_PLUGIN_H + +#include "module-context.h" +#include "mail-user.h" +#include "fts-api-private.h" + +#define FTS_LUCENE_USER_CONTEXT(obj) \ + MODULE_CONTEXT(obj, fts_lucene_user_module) +#define FTS_LUCENE_USER_CONTEXT_REQUIRE(obj) \ + MODULE_CONTEXT_REQUIRE(obj, fts_lucene_user_module) + +struct fts_lucene_settings { + const char *default_language; + const char *textcat_conf, *textcat_dir; + const char *whitespace_chars; + bool normalize; + bool no_snowball; + bool mime_parts; + bool use_libfts; +}; + +struct fts_lucene_user { + union mail_user_module_context module_ctx; + struct fts_lucene_settings set; +}; + +extern struct fts_backend fts_backend_lucene; +extern MODULE_CONTEXT_DEFINE(fts_lucene_user_module, &mail_user_module_register); + +uint32_t fts_lucene_settings_checksum(const struct fts_lucene_settings *set); + +void fts_lucene_plugin_init(struct module *module); +void fts_lucene_plugin_deinit(void); + +#endif |