view src/director/director-request.h @ 22536:5f09f6aa089b

director: doveadm HOST-* commands now wait for ring sync before returning OK This should make it easier for tests and maybe for scripts in general, so they won't think the command failed when it just takes a while to finish.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 14 Aug 2017 10:29:47 +0300
parents 7f718c840aff
children 2ed6735ffc7a
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 ip_addr *ip, 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