mail_storage_service_user_module_register = { 0 };
struct module *mail_storage_service_modules = NULL;
+struct metacache_service_user_module metacache_service_user_module =
+ MODULE_CONTEXT_INIT(&mail_storage_service_user_module_register);
+
static void set_keyvalue(struct mail_storage_service_user *user,
const char *key, const char *value)
{
#define MAIL_STORAGE_SERVICE_H
#include "net.h"
+#include "module-context.h"
struct master_service;
struct ssl_iostream_settings;
mail_storage_service_user_module_register;
extern struct module *mail_storage_service_modules;
+/* Stored here, since it's used by both obox and fts_dovecot plugins.
+ It's better not to have to link fts_dovecot with obox plugin. */
+extern MODULE_CONTEXT_DEFINE(metacache_service_user_module,
+ &mail_storage_service_user_module_register);
+
struct mail_storage_service_ctx *
mail_storage_service_init(struct master_service *service,
enum mail_storage_service_flags flags);