|
Mac Dev Center
Mac OS X Reference Library Drivers, Kernel, & Hardware: User-Space Device Access Image Capture Device Modules Reference
|
ICADevice.h |
| Includes: | <ImageCapture/ICAApplication.h> <AvailabilityMacros.h> |
ICADevice.h defines structures and functions that are used by native Image Capture device modules.
A function to dispose an object.
A function to create a new object.
ICDDisposeObject |
A function to dispose an object.
extern ICAError ICDDisposeObject( ICD_DisposeObjectPB *pb, ICDCompletion completion );
pbAn ICD_DisposeObjectPB structure.
completionA pointer to a callback function that conforms to the interface of ICDCompletion. Pass NULL to make a synchronous call.
Returns an error code. If the function is called asynchronously, it returns 0 if the the call is accepted for asynchronous
processing and returns an error code in the header passed to the callback function.
Call this function to dispose an object.
ICDNewObject |
A function to create a new object.
extern ICAError ICDNewObject( ICD_NewObjectPB *pb, ICDCompletion completion );
pbAn ICD_NewObjectPB structure.
completionA pointer to a callback function that conforms to the interface of ICDCompletion. Pass NULL to make a synchronous call.
Returns an error code. If the function is called asynchronously, it returns 0 if the the call is accepted for asynchronous
processing and returns an error code in the header passed to the callback function.
Call this function to create a new object.
ICD_DisposeObjectPB |
typedef struct ICD_DisposeObjectPB { ICDHeader header; ICAObject object; } ICD_DisposeObjectPB;
headerThe function returns error code in the err field of this structure.
The refcon field of this structure is used to pass a pointer to the callback function if ICDDisposeObject is called asynchronously.
objectObject to be disposed.
Parameter block passed to function ICDDisposeObject.
ICD_NewObjectPB |
typedef struct ICD_NewObjectPB { ICDHeader header; ICAObject parentObject; ICAObjectInfo objectInfo; ICAObject object; } ICD_NewObjectPB;
headerThe function returns error code in the err field of this structure.
The refcon field of this structure is used to pass a pointer to the callback function if ICDNewObject is called asynchronously.
parentObjectParent object of the new object.
objectInfoICAObjectInfo struct filled with information about the new object.
objectNew object.
Parameter block passed to function ICDNewObject.
ICDCompletion |
typedef CALLBACK_API_C( void, ICDCompletion )( ICDHeader *pb);
pbThe parameter pb is a pointer to the parameter block passed to the API.
Type of callback function used by APIs defined in ICADevices.h.
ICDHeader |
typedef struct ICDHeader { ICAError err; unsigned long refcon; } ICDHeader;
errError returned by an API. -->
refconAn arbitrary refcon value passed to the callback. <--
This is the first field in all parameter blocks used by APIs defined in ICADevices.h. Type of parameter passed to a callback function used by APIs defined in ICADevices.h. The parameter for the completion proc should to be casted to an appropriate type such as ICD_NewObjectPB* for it to be useful.
void |
typedef CALLBACK_API_C( void, ICDCompletion )( ICDHeader *pb);
pbThe parameter pb is a pointer to the parameter block passed to the API.
Type of callback function used by APIs defined in ICADevices.h.
Last Updated: 2009-08-12