46 #if PRAGMA_STRUCT_ALIGN
47 #pragma options align = mac68k
48 #elif PRAGMA_STRUCT_PACKPUSH
50 #elif PRAGMA_STRUCT_PACK
56 typedef struct OpaqueCMProfileRef *CMProfileRef;
58 typedef struct OpaqueCMProfileSearchRef *CMProfileSearchRef;
60 typedef struct OpaqueCMMatchRef *CMMatchRef;
62 typedef struct OpaqueCMWorldRef *CMWorldRef;
66 typedef UInt32 CMDisplayIDType;
69 typedef CALLBACK_API(OSErr, CMFlattenProcPtr)(
long command,
long *size,
70 void *data,
void *refCon);
72 typedef CALLBACK_API(
Boolean, CMBitmapCallBackProcPtr)(
long progress,
76 typedef CALLBACK_API(
Boolean, CMConcatCallBackProcPtr)(
long progress,
79 typedef CALLBACK_API(
Boolean, CMProfileFilterProcPtr)(CMProfileRef prof,
82 typedef CALLBACK_API(OSErr, CMProfileAccessProcPtr)(
long command,
long offset,
83 long *size,
void *data,
86 typedef STACK_UPP_TYPE(CMBitmapCallBackProcPtr) CMBitmapCallBackUPP;
87 typedef STACK_UPP_TYPE(CMConcatCallBackProcPtr) CMConcatCallBackUPP;
100 #if !OPAQUE_UPP_TYPES
103 uppCMFlattenProcInfo = 0x00003FE0
109 (ProcPtr)(userRoutine), uppCMFlattenProcInfo, GetCurrentArchitecture());
112 #define NewCMFlattenUPP(userRoutine) \
113 (CMFlattenUPP) NewRoutineDescriptor( \
114 (ProcPtr)(userRoutine), uppCMFlattenProcInfo, GetCurrentArchitecture())
128 #if !OPAQUE_UPP_TYPES
131 uppCMBitmapCallBackProcInfo = 0x000003D0
134 inline CMBitmapCallBackUPP
138 uppCMBitmapCallBackProcInfo,
139 GetCurrentArchitecture());
142 #define NewCMBitmapCallBackUPP(userRoutine) \
143 (CMBitmapCallBackUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
144 uppCMBitmapCallBackProcInfo, \
145 GetCurrentArchitecture())
159 #if !OPAQUE_UPP_TYPES
162 uppCMConcatCallBackProcInfo = 0x000003D0
165 inline CMConcatCallBackUPP
169 uppCMConcatCallBackProcInfo,
170 GetCurrentArchitecture());
173 #define NewCMConcatCallBackUPP(userRoutine) \
174 (CMConcatCallBackUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
175 uppCMConcatCallBackProcInfo, \
176 GetCurrentArchitecture())
190 #if !OPAQUE_UPP_TYPES
193 uppCMProfileFilterProcInfo = 0x000003D0
196 inline CMProfileFilterUPP
200 uppCMProfileFilterProcInfo,
201 GetCurrentArchitecture());
204 #define NewCMProfileFilterUPP(userRoutine) \
205 (CMProfileFilterUPP) \
206 NewRoutineDescriptor((ProcPtr)(userRoutine), uppCMProfileFilterProcInfo, \
207 GetCurrentArchitecture())
221 #if !OPAQUE_UPP_TYPES
224 uppCMProfileAccessProcInfo = 0x0000FFE0
227 inline CMProfileAccessUPP
231 uppCMProfileAccessProcInfo,
232 GetCurrentArchitecture());
235 #define NewCMProfileAccessUPP(userRoutine) \
236 (CMProfileAccessUPP) \
237 NewRoutineDescriptor((ProcPtr)(userRoutine), uppCMProfileAccessProcInfo, \
238 GetCurrentArchitecture())
252 #if !OPAQUE_UPP_TYPES
259 #define DisposeCMFlattenUPP(userUPP) DisposeRoutineDescriptor(userUPP)
273 #if !OPAQUE_UPP_TYPES
280 #define DisposeCMBitmapCallBackUPP(userUPP) DisposeRoutineDescriptor(userUPP)
294 #if !OPAQUE_UPP_TYPES
301 #define DisposeCMConcatCallBackUPP(userUPP) DisposeRoutineDescriptor(userUPP)
315 #if !OPAQUE_UPP_TYPES
322 #define DisposeCMProfileFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
336 #if !OPAQUE_UPP_TYPES
343 #define DisposeCMProfileAccessUPP(userUPP) DisposeRoutineDescriptor(userUPP)
357 CMFlattenUPP userUPP);
358 #if !OPAQUE_UPP_TYPES
361 void *refCon, CMFlattenUPP userUPP)
363 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppCMFlattenProcInfo, command,
367 #define InvokeCMFlattenUPP(command, size, data, refCon, userUPP) \
368 (OSErr) CALL_FOUR_PARAMETER_UPP((userUPP), uppCMFlattenProcInfo, (command), \
369 (size), (data), (refCon))
383 CMBitmapCallBackUPP userUPP);
384 #if !OPAQUE_UPP_TYPES
387 CMBitmapCallBackUPP userUPP)
389 return (
Boolean)CALL_TWO_PARAMETER_UPP(userUPP, uppCMBitmapCallBackProcInfo,
393 #define InvokeCMBitmapCallBackUPP(progress, refCon, userUPP) \
394 (Boolean) CALL_TWO_PARAMETER_UPP((userUPP), uppCMBitmapCallBackProcInfo, \
395 (progress), (refCon))
409 CMConcatCallBackUPP userUPP);
410 #if !OPAQUE_UPP_TYPES
413 CMConcatCallBackUPP userUPP)
415 return (
Boolean)CALL_TWO_PARAMETER_UPP(userUPP, uppCMConcatCallBackProcInfo,
419 #define InvokeCMConcatCallBackUPP(progress, refCon, userUPP) \
420 (Boolean) CALL_TWO_PARAMETER_UPP((userUPP), uppCMConcatCallBackProcInfo, \
421 (progress), (refCon))
435 CMProfileFilterUPP userUPP);
436 #if !OPAQUE_UPP_TYPES
439 CMProfileFilterUPP userUPP)
441 return (
Boolean)CALL_TWO_PARAMETER_UPP(userUPP, uppCMProfileFilterProcInfo,
445 #define InvokeCMProfileFilterUPP(prof, refCon, userUPP) \
446 (Boolean) CALL_TWO_PARAMETER_UPP((userUPP), uppCMProfileFilterProcInfo, \
461 void *refCon, CMProfileAccessUPP userUPP);
462 #if !OPAQUE_UPP_TYPES
465 void *data,
void *refCon,
466 CMProfileAccessUPP userUPP)
468 return (OSErr)CALL_FIVE_PARAMETER_UPP(userUPP, uppCMProfileAccessProcInfo,
469 command, offset, size, data, refCon);
472 #define InvokeCMProfileAccessUPP(command, offset, size, data, refCon, userUPP) \
474 CALL_FIVE_PARAMETER_UPP((userUPP), uppCMProfileAccessProcInfo, \
475 (command), (offset), (size), (data), (refCon))
479 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
481 #define NewCMFlattenProc(userRoutine) NewCMFlattenUPP(userRoutine)
482 #define NewCMBitmapCallBackProc(userRoutine) NewCMBitmapCallBackUPP(userRoutine)
483 #define NewCMConcatCallBackProc(userRoutine) NewCMConcatCallBackUPP(userRoutine)
484 #define NewCMProfileFilterProc(userRoutine) NewCMProfileFilterUPP(userRoutine)
485 #define NewCMProfileAccessProc(userRoutine) NewCMProfileAccessUPP(userRoutine)
486 #define CallCMFlattenProc(userRoutine, command, size, data, refCon) \
487 InvokeCMFlattenUPP(command, size, data, refCon, userRoutine)
488 #define CallCMBitmapCallBackProc(userRoutine, progress, refCon) \
489 InvokeCMBitmapCallBackUPP(progress, refCon, userRoutine)
490 #define CallCMConcatCallBackProc(userRoutine, progress, refCon) \
491 InvokeCMConcatCallBackUPP(progress, refCon, userRoutine)
492 #define CallCMProfileFilterProc(userRoutine, prof, refCon) \
493 InvokeCMProfileFilterUPP(prof, refCon, userRoutine)
494 #define CallCMProfileAccessProc(userRoutine, command, offset, size, data, \
496 InvokeCMProfileAccessUPP(command, offset, size, data, refCon, userRoutine)
499 #if PRAGMA_STRUCT_ALIGN
500 #pragma options align = reset
501 #elif PRAGMA_STRUCT_PACKPUSH
503 #elif PRAGMA_STRUCT_PACK
507 #ifdef PRAGMA_IMPORT_OFF
void DisposeCMBitmapCallBackUPP(CMBitmapCallBackUPP userUPP)
OSErr InvokeCMFlattenUPP(long command, long *size, void *data, void *refCon, CMFlattenUPP userUPP)
CMProfileFilterUPP NewCMProfileFilterUPP(CMProfileFilterProcPtr userRoutine)
CMBitmapCallBackUPP NewCMBitmapCallBackUPP(CMBitmapCallBackProcPtr userRoutine)
void DisposeCMProfileAccessUPP(CMProfileAccessUPP userUPP)
CMProfileAccessUPP NewCMProfileAccessUPP(CMProfileAccessProcPtr userRoutine)
void DisposeCMProfileFilterUPP(CMProfileFilterUPP userUPP)
Boolean InvokeCMConcatCallBackUPP(long progress, void *refCon, CMConcatCallBackUPP userUPP)
Boolean InvokeCMProfileFilterUPP(CMProfileRef prof, void *refCon, CMProfileFilterUPP userUPP)
OSErr InvokeCMProfileAccessUPP(long command, long offset, long *size, void *data, void *refCon, CMProfileAccessUPP userUPP)
void DisposeCMConcatCallBackUPP(CMConcatCallBackUPP userUPP)
Boolean InvokeCMBitmapCallBackUPP(long progress, void *refCon, CMBitmapCallBackUPP userUPP)
CMFlattenUPP NewCMFlattenUPP(CMFlattenProcPtr userRoutine)
void DisposeCMFlattenUPP(CMFlattenUPP userUPP)
CMConcatCallBackUPP NewCMConcatCallBackUPP(CMConcatCallBackProcPtr userRoutine)
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)