123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733 |
- {
- File: ICAApplication.p
-
- Contains: General purpose Image Capture definitions
-
- Version: Technology: 1.0
- Release: Universal Interfaces 3.4.2
-
- Copyright: © 2000-2002 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://www.freepascal.org/bugs.html
-
- }
- {
- Modified for use with Free Pascal
- Version 200
- Please report any bugs to <[email protected]>
- }
- {$mode macpas}
- {$packenum 1}
- {$macro on}
- {$inline on}
- {$CALLING MWPASCAL}
- unit ICAApplication;
- interface
- {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
- {$setc GAP_INTERFACES_VERSION := $0200}
- {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
- {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
- {$endc}
- {$ifc defined CPUPOWERPC and defined CPUI386}
- {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
- {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
- {$endc}
- {$ifc not defined __ppc__ and defined CPUPOWERPC}
- {$setc __ppc__ := 1}
- {$elsec}
- {$setc __ppc__ := 0}
- {$endc}
- {$ifc not defined __i386__ and defined CPUI386}
- {$setc __i386__ := 1}
- {$elsec}
- {$setc __i386__ := 0}
- {$endc}
- {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
- {$error Conflicting definitions for __ppc__ and __i386__}
- {$endc}
- {$ifc defined __ppc__ and __ppc__}
- {$setc TARGET_CPU_PPC := TRUE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$elifc defined __i386__ and __i386__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_X86 := TRUE}
- {$elsec}
- {$error Neither __ppc__ nor __i386__ is defined.}
- {$endc}
- {$setc TARGET_CPU_PPC_64 := FALSE}
- {$ifc defined FPC_BIG_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := TRUE}
- {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
- {$elifc defined FPC_LITTLE_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := FALSE}
- {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
- {$elsec}
- {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
- {$endc}
- {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
- {$setc CALL_NOT_IN_CARBON := FALSE}
- {$setc OLDROUTINENAMES := FALSE}
- {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
- {$setc OPAQUE_UPP_TYPES := TRUE}
- {$setc OTCARBONAPPLICATION := TRUE}
- {$setc OTKERNEL := FALSE}
- {$setc PM_USE_SESSION_APIS := TRUE}
- {$setc TARGET_API_MAC_CARBON := TRUE}
- {$setc TARGET_API_MAC_OS8 := FALSE}
- {$setc TARGET_API_MAC_OSX := TRUE}
- {$setc TARGET_CARBON := TRUE}
- {$setc TARGET_CPU_68K := FALSE}
- {$setc TARGET_CPU_MIPS := FALSE}
- {$setc TARGET_CPU_SPARC := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_UNIX := FALSE}
- {$setc TARGET_OS_WIN32 := FALSE}
- {$setc TARGET_RT_MAC_68881 := FALSE}
- {$setc TARGET_RT_MAC_CFM := FALSE}
- {$setc TARGET_RT_MAC_MACHO := TRUE}
- {$setc TYPED_FUNCTION_POINTERS := TRUE}
- {$setc TYPE_BOOL := FALSE}
- {$setc TYPE_EXTENDED := FALSE}
- {$setc TYPE_LONGLONG := TRUE}
- uses MacTypes,AEDataModel,Files,CFDictionary;
- {$ALIGN MAC68K}
- type
- ICAObject = ^SInt32; { an opaque 32-bit type }
- ICAObjectPtr = ^ICAObject; { when a var xx:ICAObject parameter can be nil, it is changed to xx: ICAObjectPtr }
- ICAProperty = ^SInt32; { an opaque 32-bit type }
- ICAPropertyPtr = ^ICAProperty; { when a var xx:ICAProperty parameter can be nil, it is changed to xx: ICAPropertyPtr }
- ICAConnectionID = ^SInt32; { an opaque 32-bit type }
- ICAConnectionIDPtr = ^ICAConnectionID; { when a var xx:ICAConnectionID parameter can be nil, it is changed to xx: ICAConnectionIDPtr }
- {
- --------------- Defines ---------------
- }
- { Error codes (Image Capture range = -9900...-9949) }
- const
- kICACommunicationErr = -9900;
- kICADeviceNotFoundErr = -9901;
- kICADeviceNotOpenErr = -9902;
- kICAFileCorruptedErr = -9903;
- kICAIOPendingErr = -9904;
- kICAInvalidObjectErr = -9905;
- kICAInvalidPropertyErr = -9906;
- kICAIndexOutOfRangeErr = -9907;
- kICAPropertyTypeNotFoundErr = -9908;
- {
- NOTE: vendor specific constants are UPPERCASE (exception: 'TEXT')
- }
- { ICAObject types and subtypes }
- kICADevice = $69636476 (* 'icdv' *); { Also creator of device library files }
- kICADeviceCamera = $636D7261 (* 'cmra' *); { Also file type of device library files }
- kICADeviceScanner = $7363616E (* 'scan' *); { Also file type of device library files }
- kICADeviceMFP = $6D667020 (* 'mfp ' *); { Also file type of device library files }
- kICAList = $6F626A6C (* 'objl' *);
- kICADirectory = $64697265 (* 'dire' *);
- kICAFile = $66696C65 (* 'file' *);
- kICAFileImage = $696D6167 (* 'imag' *);
- kICAFileMovie = $6D6F6F76 (* 'moov' *);
- kICAFileAudio = $6175646F (* 'audo' *);
- kICAFileFirmware = $6669726D (* 'firm' *);
- kICAFileOther = $6F746865 (* 'othe' *);
- { ICAProperties }
- kICAProperty = $70726F70 (* 'prop' *); { }
- { file properties }
- { }
- { for images, refer to 'Digital Still Camera Image File Format Standard' Exif Version 2.1 section 2.6.4. and 2.6.5. }
- kICAPropertyImageWidth = $30313030 (* '0100' *); { UInt32 }
- kICAPropertyImageHeight = $30313031 (* '0101' *); { UInt32 }
- kICAPropertyImageBitDepth = $30313032 (* '0102' *); { UInt32 }
- kICAPropertyImageDPI = $30313141 (* '011A' *); { UInt32 }
- kICAPropertyImageExposureTime = $38323941 (* '829A' *);
- kICAPropertyImageFNumber = $38323944 (* '829D' *);
- kICAPropertyImageDateOriginal = $39303033 (* '9003' *); { null terminated string (YYYYMMDDThhmmss.s) }
- kICAPropertyImageDateDigitized = $39303034 (* '9004' *); { null terminated string (YYYYMMDDThhmmss.s) }
- kICAPropertyImageShutterSpeed = $39323031 (* '9201' *); { }
- kICAPropertyImageAperture = $39323032 (* '9202' *); { }
- kICAPropertyImageFlash = $39323039 (* '9209' *); { UInt16 }
- kICAPropertyColorSpace = $41303031 (* 'A001' *); { UInt16 }
- kICAPropertyImageFilename = $6966696C (* 'ifil' *); { null terminated string }
- kICAPropertyImageSize = $6973697A (* 'isiz' *); { UInt32 }
- kICAPropertyImageData = $69646174 (* 'idat' *); { void * }
- kICAPropertyImageThumbnail = $7468756D (* 'thum' *); { void * }
- kICAPropertyColorSyncProfile = $70726F66 (* 'prof' *);
- { Messages }
- kICAMessageConnect = $6F70656E (* 'open' *);
- kICAMessageDisconnect = $636C6F73 (* 'clos' *);
- kICAMessageReset = $72657365 (* 'rese' *);
- kICAMessageCheckDevice = $63686B64 (* 'chkd' *);
- { Data type definitions, mapped to AppleEvent types }
- kICATypeUInt16 = $75693136 (* 'ui16' *); { UInt16 }
- kICATypeUInt32 = $75693332 (* 'ui32' *); { UInt32 }
- kICATypeUInt64 = $75693634 (* 'ui64' *); { UInt64 }
- kICATypeSInt16 = $73693136 (* 'si16' *); { SInt16 }
- kICATypeSInt32 = $73693332 (* 'si32' *); { SInt32 }
- kICATypeSInt64 = $73693634 (* 'si64' *); { SInt64 }
- kICATypeFixed = $73696E67 (* 'sing' *); { typeIEEE32BitFloatingPoint }
- kICATypeBoolean = $626F6F6C (* 'bool' *); { typeBoolean }
- kICATypeString = $54455854 (* 'TEXT' *); { typeChar }
- kICATypeData = $64617461 (* 'data' *); { void * }
- kICATypeThumbnail = $7468756D (* 'thum' *); { ICAThumbnail }
- { Flags for PropertyInfo flag element }
- kICAFlagReadWriteAccess = $00000001;
- kICAFlagReadAccess = $00000002;
- { Notification types (Refer to section 12.4 of PTP spec) }
- kICAEventCancelTransaction = $65636E74 (* 'ecnt' *);
- kICAEventObjectAdded = $656F6261 (* 'eoba' *);
- kICAEventObjectRemoved = $656F6272 (* 'eobr' *);
- kICAEventStoreAdded = $65737461 (* 'esta' *);
- kICAEventStoreRemoved = $65737472 (* 'estr' *);
- kICAEventDeviceAdded = $65646561 (* 'edea' *);
- kICAEventDeviceRemoved = $65646572 (* 'eder' *);
- kICAEventDevicePropChanged = $65647063 (* 'edpc' *);
- kICAEventObjectInfoChanged = $656F6963 (* 'eoic' *);
- kICAEventDeviceInfoChanged = $65646963 (* 'edic' *);
- kICAEventRequestObjectTransfer = $65726F74 (* 'erot' *);
- kICAEventStoreFull = $65737466 (* 'estf' *);
- kICAEventDeviceReset = $65647672 (* 'edvr' *);
- kICAEventStorageInfoChanged = $65736963 (* 'esic' *);
- kICAEventCaptureComplete = $65637063 (* 'ecpc' *);
- kICAEventUnreportedStatus = $65757273 (* 'eurs' *);
- { Used for partial reads via ICAGetPropertyData }
- kICAStartAtBeginning = 0;
- kICAEntireLength = -1;
- { ICADownloadFile flags }
- kDeleteAfterDownload = $00000001;
- kCreateCustomIcon = $00000002;
- kAddMetaDataToFinderComment = $00000004;
- kAdjustCreationDate = $00000008;
- kSetFileTypeAndCreator = $00000010;
- kEmbedColorSyncProfile = $00000020;
- kRotateImage = $00000040;
- {
- --------------- Structures ---------------
- }
- type
- ICAObjectInfoPtr = ^ICAObjectInfo;
- ICAObjectInfo = record
- objectType: OSType; { i.e. kICAFile }
- objectSubtype: OSType; { i.e. kICAFileImage }
- end;
- ICAPropertyInfoPtr = ^ICAPropertyInfo;
- ICAPropertyInfo = record
- propertyType: OSType;
- dataType: OSType;
- dataSize: UInt32;
- dataFlags: UInt32;
- end;
- ICAMessagePtr = ^ICAMessage;
- ICAMessage = record
- messageType: OSType; { <-- i.e. kICAMessageCameraCaptureNewImage }
- startByte: UInt32; { <-- }
- dataPtr: Ptr; { <-- }
- dataSize: UInt32; { <-- }
- dataType: OSType; { <-- }
- end;
- ICAThumbnailPtr = ^ICAThumbnail;
- ICAThumbnail = record
- width: UInt32;
- height: UInt32;
- dataSize: UInt32;
- data: SInt8; { 8-bit RGB data (RGBRGBRGB...) }
- end;
- const
- kICAPBVersion = $00010000;
- {
- --------------- Completion Procs ---------------
- }
- {
-
- NOTE: the parameter for the completion proc (ICAHeader*) has to be casted to the appropriate type
- e.g. (ICAGetChildCountPB*), ...
-
- }
- type
- ICAHeaderPtr = ^ICAHeader;
- {$ifc TYPED_FUNCTION_POINTERS}
- ICACompletion = procedure(pb: ICAHeaderPtr);
- {$elsec}
- ICACompletion = ProcPtr;
- {$endc}
- {
- --------------- ICAHeader ---------------
- }
- ICAHeader = record
- err: OSErr; { --> }
- refcon: UInt32; { <-- }
- end;
- {
- --------------- Object parameter blocks ---------------
- }
- ICAGetChildCountPBPtr = ^ICAGetChildCountPB;
- ICAGetChildCountPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- count: UInt32; { --> }
- end;
- ICAGetNthChildPBPtr = ^ICAGetNthChildPB;
- ICAGetNthChildPB = record
- header: ICAHeader;
- parentObject: ICAObject; { <-- }
- index: UInt32; { <-- zero based }
- childObject: ICAObject; { --> }
- childInfo: ICAObjectInfo; { --> }
- end;
- ICAGetObjectInfoPBPtr = ^ICAGetObjectInfoPB;
- ICAGetObjectInfoPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- objectInfo: ICAObjectInfo; { --> }
- end;
- ICAGetParentOfObjectPBPtr = ^ICAGetParentOfObjectPB;
- ICAGetParentOfObjectPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- parentObject: ICAObject; { --> }
- parentInfo: ICAObjectInfo; { --> }
- end;
- ICAGetRootOfObjectPBPtr = ^ICAGetRootOfObjectPB;
- ICAGetRootOfObjectPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- rootObject: ICAObject; { --> }
- rootInfo: ICAObjectInfo; { --> }
- end;
- ICAGetObjectRefConPBPtr = ^ICAGetObjectRefConPB;
- ICAGetObjectRefConPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- objectRefCon: UInt32; { --> }
- end;
- ICASetObjectRefConPBPtr = ^ICASetObjectRefConPB;
- ICASetObjectRefConPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- objectRefCon: UInt32; { <-- }
- end;
- {
- --------------- Property parameter blocks ---------------
- }
- ICAGetPropertyCountPBPtr = ^ICAGetPropertyCountPB;
- ICAGetPropertyCountPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- count: UInt32; { --> }
- end;
- ICAGetNthPropertyPBPtr = ^ICAGetNthPropertyPB;
- ICAGetNthPropertyPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- index: UInt32; { <-- zero based }
- proprty: ICAProperty; { --> }
- propertyInfo: ICAPropertyInfo; { --> }
- end;
- ICAGetPropertyByTypePBPtr = ^ICAGetPropertyByTypePB;
- ICAGetPropertyByTypePB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- propertyType: OSType; { <-- }
- proprty: ICAProperty; { --> }
- propertyInfo: ICAPropertyInfo; { --> }
- end;
- ICAGetPropertyInfoPBPtr = ^ICAGetPropertyInfoPB;
- ICAGetPropertyInfoPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- propertyInfo: ICAPropertyInfo; { --> }
- end;
- ICAGetPropertyDataPBPtr = ^ICAGetPropertyDataPB;
- ICAGetPropertyDataPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- startByte: UInt32; { <-- }
- requestedSize: UInt32; { <-- }
- dataPtr: Ptr; { <-> }
- actualSize: UInt32; { --> }
- dataType: OSType; { --> }
- end;
- ICASetPropertyDataPBPtr = ^ICASetPropertyDataPB;
- ICASetPropertyDataPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- startByte: UInt32; { <-- }
- dataPtr: Ptr; { <-- }
- dataSize: UInt32; { <-- }
- dataType: OSType; { <-- }
- end;
- ICAGetParentOfPropertyPBPtr = ^ICAGetParentOfPropertyPB;
- ICAGetParentOfPropertyPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- parentObject: ICAObject; { --> }
- parentInfo: ICAObjectInfo; { --> }
- end;
- ICAGetRootOfPropertyPBPtr = ^ICAGetRootOfPropertyPB;
- ICAGetRootOfPropertyPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- rootObject: ICAObject; { --> }
- rootInfo: ICAObjectInfo; { --> }
- end;
- ICAGetPropertyRefConPBPtr = ^ICAGetPropertyRefConPB;
- ICAGetPropertyRefConPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- propertyRefCon: UInt32; { --> }
- end;
- ICASetPropertyRefConPBPtr = ^ICASetPropertyRefConPB;
- ICASetPropertyRefConPB = record
- header: ICAHeader;
- proprty: ICAProperty; { <-- }
- propertyRefCon: UInt32; { <-- }
- end;
- {
- --------------- Device parameter blocks ---------------
- }
- ICAGetDeviceListPBPtr = ^ICAGetDeviceListPB;
- ICAGetDeviceListPB = record
- header: ICAHeader;
- objct: ICAObject; { --> }
- end;
- ICAObjectSendMessagePBPtr = ^ICAObjectSendMessagePB;
- ICAObjectSendMessagePB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- message: ICAMessage; { <-- }
- result: UInt32; { --> message specific result }
- end;
- ICARegisterEventNotificationPBPtr = ^ICARegisterEventNotificationPB;
- ICARegisterEventNotificationPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- notifyType: OSType; { <-- }
- notifyProc: ICACompletion; { <-- }
- end;
- ICADownloadFilePBPtr = ^ICADownloadFilePB;
- ICADownloadFilePB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- dirFSRef: FSRefPtr; { <-- }
- flags: UInt32; { <-- }
- fileType: OSType; { <-- }
- fileCreator: OSType; { <-- }
- rotationAngle: Fixed; { <-- }
- fileFSRef: FSRefPtr; { --> can be NULL }
- end;
- ICACopyObjectPropertyDictionaryPBPtr = ^ICACopyObjectPropertyDictionaryPB;
- ICACopyObjectPropertyDictionaryPB = record
- header: ICAHeader;
- objct: ICAObject; { <-- }
- theDict: ^CFDictionaryRef; { --> }
- end;
- {
-
- NOTE: for all APIs - pass NULL as completion parameter to make a synchronous call
-
- }
- {
- --------------- Object functions ---------------
- }
- {
- * ICAGetChildCount()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetChildCount(var pb: ICAGetChildCountPB; completion: ICACompletion): OSErr; external name '_ICAGetChildCount';
- {
- * ICAGetNthChild()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetNthChild(var pb: ICAGetNthChildPB; completion: ICACompletion): OSErr; external name '_ICAGetNthChild';
- {
- * ICAGetObjectInfo()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetObjectInfo(var pb: ICAGetObjectInfoPB; completion: ICACompletion): OSErr; external name '_ICAGetObjectInfo';
- {
- * ICAGetParentOfObject()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetParentOfObject(var pb: ICAGetParentOfObjectPB; completion: ICACompletion): OSErr; external name '_ICAGetParentOfObject';
- {
- * ICAGetRootOfObject()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetRootOfObject(var pb: ICAGetRootOfObjectPB; completion: ICACompletion): OSErr; external name '_ICAGetRootOfObject';
- {
- * ICAGetObjectRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetObjectRefCon(var pb: ICAGetObjectRefConPB; completion: ICACompletion): OSErr; external name '_ICAGetObjectRefCon';
- {
- * ICASetObjectRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICASetObjectRefCon(var pb: ICASetObjectRefConPB; completion: ICACompletion): OSErr; external name '_ICASetObjectRefCon';
- {
- --------------- Property functions ---------------
- }
- {
- * ICAGetPropertyCount()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetPropertyCount(var pb: ICAGetPropertyCountPB; completion: ICACompletion): OSErr; external name '_ICAGetPropertyCount';
- {
- * ICAGetNthProperty()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetNthProperty(var pb: ICAGetNthPropertyPB; completion: ICACompletion): OSErr; external name '_ICAGetNthProperty';
- {
- * ICAGetPropertyByType()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetPropertyByType(var pb: ICAGetPropertyByTypePB; completion: ICACompletion): OSErr; external name '_ICAGetPropertyByType';
- {
- * ICAGetPropertyInfo()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetPropertyInfo(var pb: ICAGetPropertyInfoPB; completion: ICACompletion): OSErr; external name '_ICAGetPropertyInfo';
- {
- * ICAGetPropertyData()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetPropertyData(var pb: ICAGetPropertyDataPB; completion: ICACompletion): OSErr; external name '_ICAGetPropertyData';
- {
- * ICASetPropertyData()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICASetPropertyData(var pb: ICASetPropertyDataPB; completion: ICACompletion): OSErr; external name '_ICASetPropertyData';
- {
- * ICAGetParentOfProperty()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetParentOfProperty(var pb: ICAGetParentOfPropertyPB; completion: ICACompletion): OSErr; external name '_ICAGetParentOfProperty';
- {
- * ICAGetRootOfProperty()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetRootOfProperty(var pb: ICAGetRootOfPropertyPB; completion: ICACompletion): OSErr; external name '_ICAGetRootOfProperty';
- {
- * ICAGetPropertyRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetPropertyRefCon(var pb: ICAGetPropertyRefConPB; completion: ICACompletion): OSErr; external name '_ICAGetPropertyRefCon';
- {
- * ICASetPropertyRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICASetPropertyRefCon(var pb: ICASetPropertyRefConPB; completion: ICACompletion): OSErr; external name '_ICASetPropertyRefCon';
- {
- --------------- Device functions ---------------
- }
- {
- * ICAGetDeviceList()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAGetDeviceList(var pb: ICAGetDeviceListPB; completion: ICACompletion): OSErr; external name '_ICAGetDeviceList';
- {
- * ICAObjectSendMessage()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICAObjectSendMessage(var pb: ICAObjectSendMessagePB; completion: ICACompletion): OSErr; external name '_ICAObjectSendMessage';
- {
- * ICARegisterEventNotification()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- }
- function ICARegisterEventNotification(var pb: ICARegisterEventNotificationPB; completion: ICACompletion): OSErr; external name '_ICARegisterEventNotification';
- {
- ------------------------------------------------
- }
- {
- * ICADownloadFile()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.4 and later
- * Mac OS X: in version 10.1 and later
- }
- function ICADownloadFile(var pb: ICADownloadFilePB; completion: ICACompletion): OSErr; external name '_ICADownloadFile';
- {
- * ICACopyObjectPropertyDictionary()
- *
- * Availability:
- * Non-Carbon CFM: in ImageCaptureLib 1.0 and later
- * CarbonLib: in CarbonLib 1.4 and later
- * Mac OS X: in version 10.1 and later
- }
- function ICACopyObjectPropertyDictionary(var pb: ICACopyObjectPropertyDictionaryPB; completion: ICACompletion): OSErr; external name '_ICACopyObjectPropertyDictionary';
- {$ALIGN MAC68K}
- end.
|