home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / DiskInit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  2.3 KB  |  89 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        DiskInit.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __DISKINIT__
  18. #define __DISKINIT__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #if GENERATINGPOWERPC
  31. #pragma options align=mac68k
  32. #endif
  33.  
  34. #ifdef __CFM68K__
  35. #pragma lib_export on
  36. #endif
  37.  
  38. struct HFSDefaults {
  39.     char                            sigWord[2];                    /* signature word */
  40.     long                            abSize;                        /* allocation block size in bytes */
  41.     long                            clpSize;                    /* clump size in bytes */
  42.     long                            nxFreeFN;                    /* next free file number */
  43.     long                            btClpSize;                    /* B-Tree clump size in bytes */
  44.     short                            rsrv1;                        /* reserved */
  45.     short                            rsrv2;                        /* reserved */
  46.     short                            rsrv3;                        /* reserved */
  47. };
  48. typedef struct HFSDefaults HFSDefaults;
  49.  
  50. #if SystemSevenOrLater
  51. extern pascal void DILoad(void)
  52.  THREEWORDINLINE(0x7002, 0x3F00, 0xA9E9);
  53. extern pascal void DIUnload(void)
  54.  THREEWORDINLINE(0x7004, 0x3F00, 0xA9E9);
  55. extern pascal short DIBadMount(Point where, long evtMessage)
  56.  THREEWORDINLINE(0x7000, 0x3F00, 0xA9E9);
  57. extern pascal OSErr DIFormat(short drvNum)
  58.  THREEWORDINLINE(0x7006, 0x3F00, 0xA9E9);
  59. extern pascal OSErr DIVerify(short drvNum)
  60.  THREEWORDINLINE(0x7008, 0x3F00, 0xA9E9);
  61. extern pascal OSErr DIZero(short drvNum, ConstStr255Param volName)
  62.  THREEWORDINLINE(0x700A, 0x3F00, 0xA9E9);
  63. #else
  64. extern pascal void DILoad(void);
  65. extern pascal void DIUnload(void);
  66. extern pascal short DIBadMount(Point where, long evtMessage);
  67. extern pascal OSErr DIFormat(short drvNum);
  68. extern pascal OSErr DIVerify(short drvNum);
  69. extern pascal OSErr DIZero(short drvNum, ConstStr255Param volName);
  70. #endif
  71. #if CGLUESUPPORTED
  72. extern OSErr dibadmount(Point *where, long evtMessage);
  73. extern OSErr dizero(short drvnum, const char *volName);
  74. #endif
  75.  
  76. #ifdef __CFM68K__
  77. #pragma lib_export off
  78. #endif
  79.  
  80. #if GENERATINGPOWERPC
  81. #pragma options align=reset
  82. #endif
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif /* __DISKINIT__ */
  89.