Mac OS 9
CMPRComponent.h
Go to the documentation of this file.
1 
19 #ifndef __CMPRCOMPONENT__
20 #define __CMPRCOMPONENT__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __QUICKDRAW__
27 #include <Quickdraw.h>
28 #endif
29 
30 #ifndef __COMPONENTS__
31 #include <Components.h>
32 #endif
33 
34 #ifndef __CMAPPLICATION__
35 #include <CMApplication.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 #if PRAGMA_IMPORT
48 #pragma import on
49 #endif
50 
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
54 #pragma pack(push, 2)
55 #elif PRAGMA_STRUCT_PACK
56 #pragma pack(2)
57 #endif
58 
59  enum
60  {
61  CMPRInterfaceVersion = 0
62  };
63 
64  /* Component function selectors */
65  enum
66  {
67  kCMPRGetProfile = 0,
68  kCMPRSetProfile = 1,
69  kCMPRSetProfileDescription = 2,
70  kCMPRGetIndexedProfile = 3,
71  kCMPRDeleteDeviceProfile = 4
72  };
73 
74 #if CALL_NOT_IN_CARBON
83  CMError
85  CMProfileHandle *returnedProfile);
86 
95  CMError
97 
106  CMError
108  CMProfileHandle hProfile);
109 
118  CMError
120  CMProfileHandle *returnProfile, long *index);
121 
130  CMError
132 
133 #endif /* CALL_NOT_IN_CARBON */
134 
135 #if PRAGMA_STRUCT_ALIGN
136 #pragma options align = reset
137 #elif PRAGMA_STRUCT_PACKPUSH
138 #pragma pack(pop)
139 #elif PRAGMA_STRUCT_PACK
140 #pragma pack()
141 #endif
142 
143 #ifdef PRAGMA_IMPORT_OFF
144 #pragma import off
145 #elif PRAGMA_IMPORT
146 #pragma import reset
147 #endif
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif /* __CMPRCOMPONENT__ */
Color Matching Interfaces.
CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
Component Manager Interfaces.
Basic Macintosh data types.
Interface to Quickdraw Graphics.
Definition: CMApplication.h:350
Definition: CMICCProfile.h:821
Definition: Components.h:220