home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / Guide.lzx / Guide / pDOS / IOStruct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-11  |  2.7 KB  |  66 lines

  1. @DATABASE "pDOS/IOStruct.h"
  2. @MASTER   "Work2:AD/IInc/pDOS/IOStruct.h"
  3. @REMARK   This file was created by ADtoHT 2.0 on 11-Mär-97  13:34:08
  4. @REMARK   Do not edit
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "pDOS/IOStruct.h"
  8. @TOC "__pOS_Dev.guide/MAIN"
  9.  
  10. @{"pDOS/IOStruct.h" LINK File}
  11.  
  12.  
  13. @{b}Structures@{ub}
  14.  
  15. @{"pOS_IOStruct" LINK "pDOS/IOStruct.h/File" 18}
  16.  
  17.  
  18. @{b}#defines@{ub}
  19.  
  20. @{"_IOSTEXAMINE()" LINK "pDOS/IOStruct.h/File" 37}  @{"_IOSTFLUSH()" LINK "pDOS/IOStruct.h/File" 38}  @{"_IOSTREAD()" LINK "pDOS/IOStruct.h/File" 34}  @{"_IOSTSEEK()" LINK "pDOS/IOStruct.h/File" 36}  @{"_IOSTWRITE()" LINK "pDOS/IOStruct.h/File" 35}
  21.  
  22. @ENDNODE
  23. @NODE File "pDOS/IOStruct.h"
  24. #ifndef __INC_POS_PDOS_IOSTRUCT_H
  25. #define __INC_POS_PDOS_IOSTRUCT_H
  26. /*******************************************************************
  27.  Includes Release 24
  28.  (C) Copyright 1995-1997 proDAD
  29.      All Rights Reserved
  30.  
  31.  $AUT Holger Burkarth
  32.  $DAT >>IOStruct.h<<   23 Jan 1997    14:35:29 - (C) ProDAD
  33. *******************************************************************/
  34. #ifndef __INC_POS_PDOS_DOSTYPES_H
  35. #include <@{"pDOS/DosTypes.h" LINK "pDOS/DosTypes.h/File"}>
  36. #endif
  37.  
  38.  
  39. /*----------------------------------
  40. -----------------------------------*/
  41. struct pOS_IOStruct
  42. {
  43.   @{"UWORD" LINK "pExec/Types.h/File" 93}  iost_StructSize;
  44.   @{"ULONG" LINK "pExec/Types.h/File" 91}  iost_UserData[2];
  45.  
  46.   @{"UBYTE" LINK "pExec/Types.h/File" 95}  iost_Reserved[16];
  47.  
  48.   @{"dossize_t" LINK "pDOS/DosTypes.h/File" 15} (*iost_Read_func)   (@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*,_R_A1 VOID* buf,_R_D0 dossize_t size);
  49.   @{"dossize_t" LINK "pDOS/DosTypes.h/File" 15} (*iost_Write_func)  (@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*,_R_A1 const VOID* buf,_R_D0 dossize_t size);
  50.   @{"dospos_t" LINK "pDOS/DosTypes.h/File" 17}  (*iost_Seek_func)   (@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*,_R_D0 dospos_t pos,_R_D1 ULONG mode);
  51.   @{"BOOL" LINK "pExec/Types.h/File" 99}      (*iost_Examine_func)(@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*,_R_A1 struct pOS_FileInfoBlock*);
  52.   @{"BOOL" LINK "pExec/Types.h/File" 99}      (*iost_Flush_func)  (@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*);
  53.   @{"ULONG" LINK "pExec/Types.h/File" 91}     (*iost_Reserved_func[8])(@{"_R_A0" LINK "pExec/Types.h/File" 28} struct pOS_IOStruct*);
  54. };
  55.  
  56.  
  57. #define _IOSTREAD(io,buf,size)   ( (io)->iost_Read_func(io,buf,size) )
  58. #define _IOSTWRITE(io,buf,size)  ( (io)->iost_Write_func(io,buf,size) )
  59. #define _IOSTSEEK(io,pos,mode)   ( (io)->iost_Seek_func(io,pos,mode) )
  60. #define _IOSTEXAMINE(io,fib)     ( (io)->iost_Examine_func(io,fib) )
  61. #define _IOSTFLUSH(io)           ( (io)->iost_Flush_func(io) )
  62.  
  63.  
  64. #endif
  65. @ENDNODE
  66.