home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / k95source / p_brw.h < prev    next >
C/C++ Source or Header  |  2002-01-20  |  807b  |  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. _PROTOTYP( BRWF *brw_open, (U8 *, U32, U32, S32, S32, S32));
  22. _PROTOTYP( VOID brw_close, (BRWF **));
  23. _PROTOTYP( S32 brw_read, (BRWF *, U8 *, U32));
  24. _PROTOTYP( S32 brw_flush,(BRWF *));
  25. _PROTOTYP( S32 brw_write, (BRWF *, U8 *, U32));
  26. _PROTOTYP( S32 brw_seek, (BRWF *, U32));
  27.  
  28. #endif /* _BRW_H_ */
  29.