home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / opus / v5 / opussdk / amigaguide / dopus / diskio.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  2KB  |  60 lines

  1. @DATABASE "dopus/diskio.h"
  2. @MASTER   "opussdk:include/dopus/diskio.h"
  3. @REMARK   (c) Dr Greg Perry and Jonathan Potter, GPSoftware 1996
  4. @REMARK   This file was initially created by ADtoHT 2.1 on 07-Sep-96 18:20:14
  5. @REMARK   ADtoHT is © 1993-1995 Christian Stieber
  6.  
  7. @NODE MAIN "dopus/diskio.h"
  8. @TOC "DopusSDK/MAIN"
  9.  
  10. @{"dopus/diskio.h" LINK File}
  11.  
  12.  
  13. @{b}Typedefs@{ub}
  14.  
  15. @{"DiskHandle" LINK "dopus/diskio.h/File" 10}
  16.  
  17.  
  18. @{b}#defines@{ub}
  19.  
  20. @{"ID_AFS_MULTI" LINK "dopus/diskio.h/File" 28}  @{"ID_AFS_PRO" LINK "dopus/diskio.h/File" 26}  @{"ID_AFS_USER" LINK "dopus/diskio.h/File" 27}  @{"ID_PFS_FLOPPY" LINK "dopus/diskio.h/File" 29}
  21. @{"ID_PFS_HARD" LINK "dopus/diskio.h/File" 30}   
  22.  
  23. @ENDNODE
  24. @NODE File "dopus/diskio.h"
  25. #ifndef _DOPUS_DISKIO
  26. #define _DOPUS_DISKIO
  27.  
  28. /*****************************************************************************
  29.  
  30.  Disk I/O
  31.  
  32.  *****************************************************************************/
  33.  
  34. typedef struct
  35.         struct MsgPort                  *dh_Port;       // Message port
  36.         struct IOExtTD                  *dh_IO;         // IO request
  37.         struct FileSysStartupMsg        *dh_Startup;    // Startup message
  38.         struct DosEnvec                 *dh_Geo;        // Disk geometry
  39.         char                            dh_Name[32];    // Disk name
  40.         char                            dh_Device[32];  // Device name
  41.         struct InfoData                 dh_Info;        // Disk information
  42.         unsigned long                   dh_Result;      // dh_Info is valid
  43.         unsigned long                   dh_Root;        // Root block
  44.         unsigned long                   dh_BlockSize;   // Block size
  45.         struct DateStamp                dh_Stamp;       // not used
  46. } DiskHandle;
  47.  
  48. // Some third-party DOS types
  49. #define ID_AFS_PRO              0x41465301
  50. #define ID_AFS_USER             0x41465302
  51. #define ID_AFS_MULTI            0x6D754146
  52. #define ID_PFS_FLOPPY           0x50465300
  53. #define ID_PFS_HARD             0x50465301
  54.  
  55. @{"DiskHandle" LINK File 10} *OpenDisk(char *,struct MsgPort *);
  56. void CloseDisk(@{"DiskHandle" LINK File 10} *);
  57.  
  58. #endif
  59. @ENDNODE
  60.