Important: The information in this document is obsolete and should not be used for new development.
Commands for Caller-Supplied ColorSync Data Transfer Functions
When your application calls theCMFlattenProfile
function (page 3-82), theCMUnflattenProfile
function (page 3-84), or the PostScript-related functions (page 3-158), the selected CMM--and also the ColorSync dispatcher for theCMUnflattenProfile
function--calls the flatten function you supply to transform profile data. The call passes one of the command constants defined by this enumeration.Your application provides a pointer to your ColorSync data transfer function as a parameter to the functions. The dispatcher or the CMM calls your data transfer function, passing the command in the
command
parameter. For more information on the flatten function, seeCMFlattenProfile
(page 3-82).
enum { openReadSpool = 1,/* start read data process */ openWriteSpool= 2,/* start write data process */ readSpool = 3, /* read specified number of bytes */ writeSpool = 4, /* write specified number of bytes */ closeSpool = 5 /* complete data transfer process */ };Enumerator descriptions
openReadSpool
- Directs the function to begin the process of reading data.
openWriteSpool
- Directs the function to begin the process of writing data.
readSpool
- Directs the function to read the number of bytes specified by the
MyColorSyncDataTransfer
function'ssize
parameter.writeSpool
- Directs the function to write the number of bytes specified by the
MyColorSyncDataTransfer
function'ssize
parameter.closeSpool
- Directs the function to complete the data transfer.