mail-stats.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 2011-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "time-util.h"
#include "stats.h"
#include "stats-parser.h"
#include "mail-stats.h"
static struct stats_parser_field mail_stats_fields[] = {
#define E(parsename, name, type) { parsename, offsetof(struct mail_stats, name), sizeof(((struct mail_stats *)0)->name), type }
/*EN("mopen", trans_stats.open_lookup_count),
EN("mstat", trans_stats.stat_lookup_count),
EN("mfstat", trans_stats.fstat_lookup_count),*/
};
static size_t mail_stats_alloc_size(void)
{
return sizeof(struct mail_stats);
}
static unsigned int mail_stats_field_count(void)
{
return N_ELEMENTS(mail_stats_fields);
}
static const char *mail_stats_field_name(unsigned int n)
{
return mail_stats_fields[n].name;
}
static void
unsigned int n)
{
}
static bool
{
}
{
}
static bool
{
return TRUE;
/* allow a tiny bit of changes that are caused by this
timeout handling */
return TRUE;
return TRUE;
return TRUE;
return TRUE;
changed by stats checking itself */
return FALSE;
}
{
}
static bool
{
*error_r = "mail_stats too small";
return FALSE;
}
return TRUE;
}
const struct mailbox_transaction_stats *trans_stats)
{
}
const struct stats_vfuncs mail_stats_vfuncs = {
"mail",
};
/* for the stats_mail plugin: */
void stats_mail_init(void);
void stats_mail_deinit(void);
static struct stats_item *mail_stats_item;
void stats_mail_init(void)
{
}
void stats_mail_deinit(void)
{
}