view src/login/master.h @ 1000:0fbafade2d85 HEAD

If auth/login process died unexpectedly, the exit status or killing signal wasn't logged.
author Timo Sirainen <tss@iki.fi>
date Tue, 21 Jan 2003 09:58:49 +0200
parents 411006be3c66
children fe49ece0f3ea
line wrap: on
line source

#ifndef __MASTER_H
#define __MASTER_H

#include "../master/master-interface.h"

typedef void (*master_callback_t)(enum master_reply_result 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],
			 struct ip_addr *ip,
			 master_callback_t 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