-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMPRComponent.h
171 lines (133 loc) · 3.61 KB
/
CMPRComponent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
File: CMPRComponent.h
Contains: ColorSync ProfileResponder Component API
Version: Technology: ColorSync 1.0
Release: Universal Interfaces 3.4
Copyright: © 1993-2001 by Apple Computer, Inc. All rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __CMPRCOMPONENT__
#define __CMPRCOMPONENT__
#ifndef __MACTYPES__
#include <MacTypes.h>
#endif
#ifndef __QUICKDRAW__
#include <Quickdraw.h>
#endif
#ifndef __COMPONENTS__
#include <Components.h>
#endif
#ifndef __CMAPPLICATION__
#include <CMApplication.h>
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
enum {
CMPRInterfaceVersion = 0
};
/* Component function selectors */
enum {
kCMPRGetProfile = 0,
kCMPRSetProfile = 1,
kCMPRSetProfileDescription = 2,
kCMPRGetIndexedProfile = 3,
kCMPRDeleteDeviceProfile = 4
};
#if CALL_NOT_IN_CARBON
/*
* CMGetProfile()
*
* Availability:
* Non-Carbon CFM: in ColorSyncLibPriv 2.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( CMError )
CMGetProfile(
ComponentInstance pr,
CMProfileHandle aProfile,
CMProfileHandle * returnedProfile) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0000, 0x7000, 0xA82A);
/*
* CMSetProfile()
*
* Availability:
* Non-Carbon CFM: in ColorSyncLibPriv 2.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( CMError )
CMSetProfile(
ComponentInstance pr,
CMProfileHandle newProfile) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
/*
* CMSetProfileDescription()
*
* Availability:
* Non-Carbon CFM: in ColorSyncLibPriv 2.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( CMError )
CMSetProfileDescription(
ComponentInstance pr,
long DeviceData,
CMProfileHandle hProfile) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
/*
* CMGetIndexedProfile()
*
* Availability:
* Non-Carbon CFM: in ColorSyncLibPriv 2.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( CMError )
CMGetIndexedProfile(
ComponentInstance pr,
CMProfileSearchRecordHandle search,
CMProfileHandle * returnProfile,
long * index) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
/*
* CMDeleteDeviceProfile()
*
* Availability:
* Non-Carbon CFM: in ColorSyncLibPriv 2.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( CMError )
CMDeleteDeviceProfile(
ComponentInstance pr,
CMProfileHandle deleteMe) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
#if PRAGMA_STRUCT_ALIGN
#pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
#pragma pack()
#endif
#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
#ifdef __cplusplus
}
#endif
#endif /* __CMPRCOMPONENT__ */