view src/stats/mail-user.h @ 13294:c51fbe64eae1

Initial implementation of statistics gathering daemon and plugins to feed it. Some statistics are still missing, some of the code is a bit ugly and the internal protocols will probably still change.
author Timo Sirainen <tss@iki.fi>
date Fri, 26 Aug 2011 05:15:12 +0300
parents
children c93ca5e46a8a
line wrap: on
line source

#ifndef MAIL_USER_H
#define MAIL_USER_H

struct mail_stats;

extern struct mail_user *stable_mail_users;

struct mail_user *mail_user_login(const char *username);
struct mail_user *mail_user_lookup(const char *username);

void mail_user_refresh(struct mail_user *user,
		       const struct mail_stats *diff_stats);

void mail_user_ref(struct mail_user *user);
void mail_user_unref(struct mail_user **user);

void mail_users_free_memory(void);
void mail_users_init(void);
void mail_users_deinit(void);

#endif