Important: The information in this document is obsolete and should not be used for new development.
Specification for a Procedure-Based Profile
Your application uses the CMProcedureLocation structure to provide a universal procedure pointer to a profile access procedure. You provide this structure in theCMProfileLocation
structure'su
field. The CMProcedureLocation structure also contains a pointer field to specify data associated with the profile access procedure.The ColorSync Manager calls your profile access procedure when the profile is created, initialized, opened, read, updated, or closed.
struct CMProcedureLocation { CMProfileAccessUPP proc;/* profile access function universal procedure pointer */ void * refCon;/* pointer to access procedure's private data, if any */ };The ColorSync Manager defines the CMProfileAccessUPP type as follows:
Field Description
- proc
- A universal procedure pointer to a profile access procedure. For a description of the procedure, see the
MyCMProfileAccessProc
function (page 3-172).- refCon
- A pointer to the profile access procedure's private data, such as a file or resource name, a pointer to a current offset, and so on.
typedef UniversalProcPtr CMProfileAccessUPP;