mail-storage-hooks.c revision 1382a978f06181d68151194ee4569378df16416a
/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "module-dir.h"
#include "mail-user.h"
#include "mail-namespace.h"
#include "mail-storage-private.h"
#include "mailbox-list-private.h"
struct mail_storage_module_hooks {
const struct mail_storage_hooks *hooks;
};
static ARRAY_DEFINE(module_hooks,
struct mail_storage_module_hooks) = ARRAY_INIT;
static ARRAY_DEFINE(internal_hooks,
const struct mail_storage_hooks *) = ARRAY_INIT;
void mail_storage_hooks_init(void)
{
}
void mail_storage_hooks_deinit(void)
{
}
const struct mail_storage_hooks *hooks)
{
struct mail_storage_module_hooks new_hook;
}
{
const struct mail_storage_module_hooks *module_hook;
unsigned int idx = -1U;
break;
}
}
}
{
}
{
const struct mail_storage_hooks *const *old_hooks;
unsigned int idx = -1U;
break;
}
}
}
static int
const struct mail_storage_module_hooks *h2)
{
s1 += 3;
s2 += 3;
}
{
const struct mail_storage_module_hooks *module_hook;
/* first get all hooks wanted by the user */
}
/* next we have to sort them by the modules' priority (based on name) */
/* now that we have them in order, save them to user's hooks */
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}
{
const struct mail_storage_hooks *const *hooks;
}
}