/*
 * $Id: pkts.h,v 1.1 2000/10/26 12:12:16 nobody Exp $
 *
 * Simplified double buffered AmigaDOS I/O.
 *
 * Author: Tomi Ollila <Tomi.Ollila@nsdi.fi>
 *
 * 	Copyright (c) 1994 Network Solutions Development Inc.
 *			All rights reserved
 *
 * HISTORY
 * $Log: pkts.h,v $
 * Revision 1.1  2000/10/26 12:12:16  nobody
 * initial
 *
 * Revision 1.1  1996/01/21 01:14:57  jraja
 * Initial revision
 *
 */

#ifndef PKTS_H
#define PKTS_H

struct pktinfo {
  struct MsgPort * fhType;
  struct MsgPort * port;
  struct DosPacket * pkt;
  char * bufs[2];
  int    whichbuf;
};

#ifdef __cplusplus
extern "C" {
#endif

int initPktInfo(struct pktinfo * pkti, int fd,
		char * buf1, char * buf2, int size);
int deInitPktInfo(struct pktinfo * pkti);
int readPkt(struct pktinfo * pkti, char ** buf);
int writePkt(struct pktinfo * pkti, char ** buf, int len);

#ifdef __cplusplus
}
#endif

#endif /*  PKTS_H */
