home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / bin / p205.zip / exesrc / brw.h < prev    next >
C/C++ Source or Header  |  1994-12-18  |  789b  |  29 lines

  1. /*****************************************************************************/
  2. /*           Copyright (c) 1994 by Jyrki Salmi <jytasa@jyu.fi>             */
  3. /*        You may modify, recompile and distribute this file freely.         */
  4. /*****************************************************************************/
  5.  
  6. #ifndef _BRW_H_
  7. #define _BRW_H_
  8.  
  9. typedef struct _BRWF {
  10.  
  11.   S32 fd;
  12.   U8 *inbuf;
  13.   U32 inbuf_size;
  14.   U32 inbuf_idx;
  15.   U32 inbuf_len;
  16.   U8 *outbuf;
  17.   U32 outbuf_size;
  18.   U32 outbuf_idx;
  19. } BRWF;
  20.  
  21. extern BRWF *brw_open(U8 *, U32, U32, S32, S32, ...);
  22. extern void brw_close(BRWF **);
  23. extern S32 brw_read(BRWF *, U8 *, U32);
  24. extern S32 brw_flush(BRWF *);
  25. extern S32 brw_write(BRWF *, U8 *, U32);
  26. extern S32 brw_seek(BRWF *, U32);
  27.  
  28. #endif /* _BRW_H_ */
  29.