Important: The information in this document is obsolete and should not be used for new development.
Profile Location Union
You use a union of typeCMProfLoc
to identify the location of a profile. You specify the union in theu
field of theCMProfileLocation
data type (page 3-40). Your application passes a pointer to aCMProfileLocation
structure when it calls theCMOpenProfile
function to identify the location of a profile or theCMNewProfile
,CWNewLinkProfile
, orCMCopyProfile
functions to specify the location for a newly created profile. You also pass a pointer to aCMProfileLocation
structure to theCMGetProfileLocation
function to get the location of an existing profile.
union CMProfLoc { CMFileLocation fileLoc; /* specifies location on disk */ CMHandleLocation handleLoc;/* specifies location in relocatable memory */ CMPtrLocation ptrLoc; /* specifies location in nonrelocatable memory */ CMProcedureLocation procLoc;/* specifies access procedure */ };
Field Description
fileLoc
- A data structure containing a file system specification record specifying the location of a profile disk file.
handleLoc
- A data structure containing a handle that indicates the location of a profile in relocatable memory.
ptrLoc
- A data structure containing a pointer that points to a profile in nonrelocatable memory.
- procLoc
- A data structure containing a universal procedure pointer that points to a profile access procedure supplied by you. The ColorSync Manager calls your procedure when the profile is created, initialized, opened, read, updated, or closed.