view src/imap-hibernate/imap-master-connection.h @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <>
date Sun, 05 Nov 2017 23:51:56 +0200
parents cc06003a338b
line wrap: on
line source


struct imap_master_connection;

typedef void
imap_master_connection_send_callback_t(void *context, struct ostream *output);
typedef void
imap_master_connection_read_callback_t(void *context, const char *reply);

/* Returns 1 = success, 0 = retry later, -1 = error */
int imap_master_connection_init(const char *path,
				imap_master_connection_send_callback_t *send_callback,
				imap_master_connection_read_callback_t *read_callback,
				void *context,
				struct imap_master_connection **conn_r,
				const char **error_r);
void imap_master_connection_deinit(struct imap_master_connection **conn);

void imap_master_connections_init(void);
void imap_master_connections_deinit(void);