home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / CRMSerialDevices.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.7 KB  |  84 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CRMSerialDevices.p
  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. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CRMSerialDevices;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CRMSERIALDEVICES__}
  27. {$SETC __CRMSERIALDEVICES__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CRMSerialDevicesIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. CONST
  44. {     for the crmDeviceType field of the CRMRec data structure    }
  45.     crmSerialDevice                = 1;
  46. {    version of the CRMSerialRecord below    }
  47.     curCRMSerRecVers            = 1;
  48.  
  49. { Maintains compatibility w/ apps & tools that expect an old style icon    }
  50.  
  51. TYPE
  52.     CRMIconRecord = RECORD
  53.         oldIcon:                ARRAY [0..31] OF LONGINT;                { ICN#    }
  54.         oldMask:                ARRAY [0..31] OF LONGINT;
  55.         theSuite:                Handle;                                    { Handle to an IconSuite    }
  56.         reserved:                LONGINT;
  57.     END;
  58.     CRMIconPtr = ^CRMIconRecord;
  59.     CRMIconHandle = ^CRMIconPtr;
  60.  
  61.     CRMSerialRecord = RECORD
  62.         version:                INTEGER;
  63.         inputDriverName:        StringHandle;
  64.         outputDriverName:        StringHandle;
  65.         name:                    StringHandle;
  66.         deviceIcon:                CRMIconHandle;
  67.         ratedSpeed:                LONGINT;
  68.         maxSpeed:                LONGINT;
  69.         reserved:                LONGINT;
  70.     END;
  71.     CRMSerialPtr = ^CRMSerialRecord;
  72.  
  73.  
  74. {$ALIGN RESET}
  75. {$POP}
  76.  
  77. {$SETC UsingIncludes := CRMSerialDevicesIncludes}
  78.  
  79. {$ENDC} {__CRMSERIALDEVICES__}
  80.  
  81. {$IFC NOT UsingIncludes}
  82.  END.
  83. {$ENDC}
  84.