master.h revision c8ffea67272a9893d7d03860746371eb2490c255
#ifndef __MASTER_H
#define __MASTER_H
#include "../master/master-interface.h"
typedef void (*MasterCallback)(MasterReplyResult result, void *context);
/* Request IMAP process for given cookie. */
void master_request_imap(int fd, unsigned int auth_process,
const char *login_tag,
unsigned char cookie[AUTH_COOKIE_SIZE], IPADDR *ip,
MasterCallback callback, void *context);
/* Notify master that we're not listening for new connections anymore. */
void master_notify_finished(void);
/* Close connection to master process */
void master_close(void);
void master_init(void);
void master_deinit(void);
#endif