view src/director/director-request.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 <timo.sirainen@dovecot.fi>
date Sun, 05 Nov 2017 23:51:56 +0200
parents 2ed6735ffc7a
children
line wrap: on
line source

#ifndef DIRECTOR_REQUEST_H
#define DIRECTOR_REQUEST_H

struct director;
struct director_request;

typedef void
director_request_callback(const struct mail_host *host, const char *hostname,
			  const char *errormsg, void *context);

void director_request(struct director *dir, const char *username,
		      const char *tag,
		      director_request_callback *callback, void *context);
bool director_request_continue(struct director_request *request);

#endif