quota-dict.c revision 19e8858fad5128326481e6cd85c9070b1345bad8
/* Copyright (C) 2005-2006 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "dict.h"
#include "quota-private.h"
#include <stdlib.h>
struct dict_quota_root {
struct quota_root root;
};
extern struct quota_backend quota_backend_dict;
static struct quota_root *dict_quota_alloc(void)
{
struct dict_quota_root *root;
}
{
const char *username, *p;
if (p == NULL) {
i_error("dict quota: URI missing from parameters");
return -1;
}
args = p+1;
if (*username == '\0')
}
{
}
static const char *const *
{
static const char *resources[] = {
};
return resources;
}
static int
{
const char *value;
int ret;
t_push();
t_pop();
t_push();
t_pop();
} else {
return 0;
}
return ret;
}
static int
struct quota_transaction_context *ctx)
{
struct dict_transaction_context *dt;
ctx->bytes_used);
ctx->count_used);
if (dict_transaction_commit(dt) < 0)
return -1;
return 0;
}
struct quota_backend quota_backend_dict = {
"dict",
{
NULL,
}
};