ADC Home > Reference Library > Reference > Graphics & Imaging > Hardware & Drivers > 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.
ICDDisposeObject |
A function to dispose an object.
extern ICAError ICDDisposeObject( ICD_DisposeObjectPB *pb, ICDCompletion completion );
pb
ICD_DisposeObjectPB
structure.completion
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.
ICDDisposeProperty |
A function to dispose a property.
extern ICAError ICDDisposeProperty( ICD_DisposePropertyPB *pb, ICDCompletion completion );
pb
ICD_DisposePropertyPB
structure.completion
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 a property.
ICDNewObject |
A function to create a new object.
extern ICAError ICDNewObject( ICD_NewObjectPB *pb, ICDCompletion completion );
pb
ICD_NewObjectPB
structure.completion
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.
ICDNewProperty |
A function to create a new property.
extern ICAError ICDNewProperty( ICD_NewPropertyPB *pb, ICDCompletion completion );
pb
ICD_NewPropertyPB
structure.completion
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 property.
ICD_DisposeObjectPB |
typedef struct ICD_DisposeObjectPB { ICDHeader header; ICAObject object; } ICD_DisposeObjectPB;
header
- The function returns error code in the
err
field of this structure. Therefcon
field of this structure is used to pass a pointer to the callback function ifICDDisposeObject
is called asynchronously.object
- Object to be disposed.
Parameter block passed to function ICDDisposeObject
.
ICD_DisposePropertyPB |
typedef struct ICD_DisposePropertyPB { ICDHeader header; ICAProperty property; } ICD_DisposePropertyPB;
header
- The function returns error code in the
err
field of this structure. Therefcon
field of this structure is used to pass a pointer to the callback function ifICDDisposeProperty
is called asynchronously.property
- Property to be disposed.
Parameter block passed to function ICDDisposeProperty
.
ICD_NewObjectPB |
typedef struct ICD_NewObjectPB { ICDHeader header; ICAObject parentObject; ICAObjectInfo objectInfo; ICAObject object; } ICD_NewObjectPB;
header
- The function returns error code in the
err
field of this structure. Therefcon
field of this structure is used to pass a pointer to the callback function ifICDNewObject
is called asynchronously.parentObject
- Parent object of the new object.
objectInfo
ICAObjectInfo
struct filled with information about the new object.object
- New object.
Parameter block passed to function ICDNewObject
.
ICD_NewPropertyPB |
typedef struct ICD_NewPropertyPB { ICDHeader header; ICAObject object; ICAPropertyInfo propertyInfo; ICAProperty property; } ICD_NewPropertyPB;
header
- The function returns error code in the
err
field of this structure. Therefcon
field of this structure is used to pass a pointer to the callback function ifICDNewProperty
is called asynchronously.object
- Object for which the property will be created.
propertyInfo
ICAPropertyInfo
struct filled with information about the new property.property
- New property.
Parameter block passed to function ICDNewProperty
.
ICDCompletion |
- void
typedef CALLBACK_API_C( void, ICDCompletion )( ICDHeader *pb);
pb
- The 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;
err
- Error returned by an API. -->
refcon
- An 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 |
- ICDCompletion
typedef CALLBACK_API_C( void, ICDCompletion )( ICDHeader *pb);
pb
- The parameter pb is a pointer to the parameter block passed to the API.
Type of callback function used by APIs defined in ICADevices.h.
|