home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 6 / Sonderheft_6-96.iso / demo-versionen / stormc_v1.05-demo / include / filedefs.h < prev    next >
C/C++ Source or Header  |  1996-11-03  |  874b  |  37 lines

  1. #ifndef _INCLUDE_FILEDEFS_H
  2. #define _INCLUDE_FILEDEFS_H
  3.  
  4. /*
  5. **  $VER: filedefs.h 1.0 (18.1.96)
  6. **  StormC Release 1.0
  7. **
  8. **  '(C) Copyright 1995 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. struct filehandle { 
  13.     struct filehandle *next;
  14.     struct filehandle *pred;
  15.     unsigned int handle;
  16.     int ungetC;
  17.     unsigned int mode;
  18.     unsigned int flags;
  19.     int error;
  20.     void *buffer;
  21.     unsigned int size;
  22.     unsigned int fill;
  23.     unsigned int pos;
  24.     unsigned int bufmode;
  25.     int (*read)(struct filehandle *, void *, unsigned int, unsigned int);
  26.     int (*write)(struct filehandle *, void *, unsigned int);
  27.     int (*eof)(struct filehandle *);
  28.     int (*seek)(struct filehandle *, int, int);
  29.     int (*getch)(struct filehandle *);
  30.     int (*ungetch)(struct filehandle *, int); 
  31.     int (*putch)(struct filehandle *, int);
  32.     int (*flush)(struct filehandle *);
  33.     int (*close)(struct filehandle *);
  34. };
  35.  
  36. #endif
  37.