summaryrefslogtreecommitdiffstats
path: root/src/old-stats/mail-domain.h
blob: 23e2fbed44b2a906ac5b69958f9dda1ea509e086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MAIL_DOMAIN_H
#define MAIL_DOMAIN_H

struct stats;

extern struct mail_domain *stable_mail_domains;

struct mail_domain *mail_domain_login_create(const char *name);
void mail_domain_login(struct mail_domain *domain);
void mail_domain_disconnected(struct mail_domain *domain);
struct mail_domain *mail_domain_lookup(const char *name);
void mail_domain_refresh(struct mail_domain *domain,
			 const struct stats *diff_stats) ATTR_NULL(2);

void mail_domain_ref(struct mail_domain *domain);
void mail_domain_unref(struct mail_domain **domain);

void mail_domains_free_memory(void);
void mail_domains_init(void);
void mail_domains_deinit(void);

#endif