view src/master/master-interface.h @ 91:dc0891523276 HEAD

bugfix for sync fix
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Aug 2002 01:42:00 +0300
parents 3b1985cbc908
children ab3590c3a7d9
line wrap: on
line source

#ifndef __MASTER_INTERFACE_H
#define __MASTER_INTERFACE_H

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

#define LOGIN_TAG_SIZE 32

#define LOGIN_MASTER_SOCKET_FD 0
#define LOGIN_IMAP_LISTEN_FD 1
#define LOGIN_IMAPS_LISTEN_FD 2

typedef enum {
	MASTER_RESULT_INTERNAL_FAILURE,
	MASTER_RESULT_SUCCESS,
	MASTER_RESULT_FAILURE
} MasterReplyResult;

typedef struct {
	int id;

	int auth_process;
	unsigned char cookie[AUTH_COOKIE_SIZE];

	char login_tag[LOGIN_TAG_SIZE];
} MasterRequest;

typedef struct {
	int id;
        MasterReplyResult result;
} MasterReply;

#endif