view src/plugins/stats/mail-stats-connection.h @ 19713:aad2bfc8cbd3

stats: Split stats-connection.[ch] to lib-stats/ and plugin's mail-specific parts.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Fri, 05 Feb 2016 15:07:00 +0200
parents
children a9bdefa7d022
line wrap: on
line source

#ifndef MAIL_STATS_CONNECTION_H
#define MAIL_STATS_CONNECTION_H

#include "stats-connection.h"

struct mail_stats;
struct mail_user;

void 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