#ifndef _XFER_LOADER_OS2
#define _XFER_LOADER_OS2

/* named_xfer exit codes */
#define	XFER_UPTODATE	0		/* zone is up-to-date */
#define	XFER_SUCCESS	1		/* performed transfer successfully */
#define	XFER_TIMEOUT	2		/* no server reachable/xfer timeout */
#define	XFER_FAIL	3		/* other failure, has been logged */
#define XFER_SUCCESSAXFR 4              /* named-xfr recived a xfr */
#define XFER_SUCCESSIXFR 5              /* named-xfr recived a ixfr */
#define XFER_SUCCESSAXFRIXFRFILE 6      /* named-xfr received AXFR for IXFR */
#define XFER_ISAXFR     -1              /* the last XFR is AXFR */
#define XFER_ISIXFR     -2              /* the last XFR is IXFR */
#define XFER_ISAXFRIXFR	-3		/* the last XFR is AXFR but we must create IXFR base */


#ifndef BOOL
#define BOOL unsigned int
#endif

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#define READBUFFSIZE  512
#define WRITEBUFFSIZE 512
#define PIPE_TIMEOUT  20

struct _TUBO {
	HPIPE Hdl;
	char Name[80];
	ULONG OpenMode;
	ULONG Mode;
	unsigned char *ReadBuff;
	unsigned char *WriteBuff;
	ULONG TimeOut;
};

typedef struct _TUBO TUBO;

#endif _XFER_LOADER_OS2

