summaryrefslogtreecommitdiffstats
path: root/src/plugins/old-stats/mail-stats-connection.h
blob: f98b691b0f7b1344b9066fe3d1587660ab24613d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MAIL_STATS_CONNECTION_H
#define MAIL_STATS_CONNECTION_H

#include "stats-connection.h"

struct mail_stats;
struct mail_user;

int mail_stats_connection_connect(struct stats_connection *conn,
				  struct mail_user *user);
void mail_stats_connection_disconnect(struct stats_connection *conn,
				      struct mail_user *user);

void mail_stats_connection_send_session(struct stats_connection *conn,
					struct mail_user *user,
					const struct stats *stats);
void mail_stats_connection_send(struct stats_connection *conn, const string_t *str);

#endif