diff options
Diffstat (limited to 'src/plugins/fts-solr/fts-solr-plugin.h')
-rw-r--r-- | src/plugins/fts-solr/fts-solr-plugin.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/fts-solr/fts-solr-plugin.h b/src/plugins/fts-solr/fts-solr-plugin.h new file mode 100644 index 0000000..abc1b66 --- /dev/null +++ b/src/plugins/fts-solr/fts-solr-plugin.h @@ -0,0 +1,35 @@ +#ifndef FTS_SOLR_PLUGIN_H +#define FTS_SOLR_PLUGIN_H + +#include "module-context.h" +#include "mail-user.h" +#include "fts-api-private.h" + +#define FTS_SOLR_USER_CONTEXT(obj) \ + MODULE_CONTEXT(obj, fts_solr_user_module) +#define FTS_SOLR_USER_CONTEXT_REQUIRE(obj) \ + MODULE_CONTEXT_REQUIRE(obj, fts_solr_user_module) + +struct fts_solr_settings { + const char *url, *default_ns_prefix, *rawlog_dir; + unsigned int batch_size; + bool use_libfts; + bool debug; + bool soft_commit; +}; + +struct fts_solr_user { + union mail_user_module_context module_ctx; + struct fts_solr_settings set; +}; + +extern const char *fts_solr_plugin_dependencies[]; +extern struct fts_backend fts_backend_solr; +extern struct fts_backend fts_backend_solr_old; +extern MODULE_CONTEXT_DEFINE(fts_solr_user_module, &mail_user_module_register); +extern struct http_client *solr_http_client; + +void fts_solr_plugin_init(struct module *module); +void fts_solr_plugin_deinit(void); + +#endif |