view src/plugins/quota/quota-plugin.h @ 8958:16c286aee307 HEAD

Implemented support for per-namespace quotas. Can be used with public namespaces.
author Timo Sirainen <tss@iki.fi>
date Thu, 16 Apr 2009 21:31:30 -0400
parents db66611fd195
children 5e2206e3c750
line wrap: on
line source

#ifndef QUOTA_PLUGIN_H
#define QUOTA_PLUGIN_H

struct mail_storage;

extern void (*quota_next_hook_mail_user_created)(struct mail_user *user);
extern void (*quota_next_hook_mail_storage_created)
	(struct mail_storage *storage);
extern void (*quota_next_hook_mailbox_list_created)(struct mailbox_list *list);

extern struct quota_settings *quota_set;

void quota_mail_user_created(struct mail_user *user);
void quota_mail_storage_created(struct mail_storage *storage);
void quota_mailbox_list_created(struct mailbox_list *list);
void quota_mail_namespaces_created(struct mail_namespace *namespaces);

void quota_plugin_init(void);
void quota_plugin_deinit(void);

#endif