1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
|
/*
File: ICAApplication.h
Contains: General purpose Image Capture definitions
Version: QuickTime 7.3
Copyright: (c) 2007 (c) 2000-2001 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __ICAAPPLICATION__
#define __ICAAPPLICATION__
#ifndef __MACTYPES__
#include <MacTypes.h>
#endif
#ifndef __FILES__
#include <Files.h>
#endif
#ifndef __CFDICTIONARY__
#include <CFDictionary.h>
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
typedef struct OpaqueICAObject* ICAObject;
typedef struct OpaqueICAProperty* ICAProperty;
typedef struct OpaqueICAConnectionID* ICAConnectionID;
typedef struct OpaqueICAEventDataCookie* ICAEventDataCookie;
typedef struct OpaqueICAScannerSessionID* ICAScannerSessionID;
/*
--------------- Defines ---------------
*/
/* Error codes (Image Capture range = -9900...-9949)*/
enum {
kICACommunicationErr = -9900,
kICADeviceNotFoundErr = -9901,
kICADeviceNotOpenErr = -9902,
kICAFileCorruptedErr = -9903,
kICAIOPendingErr = -9904,
kICAInvalidObjectErr = -9905,
kICAInvalidPropertyErr = -9906,
kICAIndexOutOfRangeErr = -9907,
kICAPropertyTypeNotFoundErr = -9908
};
/* ICAObject types and subtypes */
enum {
kICADevice = FOUR_CHAR_CODE('icdv'), /* Also creator of device library files */
kICADeviceCamera = FOUR_CHAR_CODE('cmra'), /* Also file type of device library files */
kICADeviceScanner = FOUR_CHAR_CODE('scan'), /* Also file type of device library files */
kICADeviceMFP = FOUR_CHAR_CODE('mfp '), /* Also file type of device library files */
kICAList = FOUR_CHAR_CODE('objl'),
kICADirectory = FOUR_CHAR_CODE('dire'),
kICAFile = FOUR_CHAR_CODE('file'),
kICAFileImage = FOUR_CHAR_CODE('imag'),
kICAFileMovie = FOUR_CHAR_CODE('moov'),
kICAFileAudio = FOUR_CHAR_CODE('audo'),
kICAFileFirmware = FOUR_CHAR_CODE('firm'),
kICAFileOther = FOUR_CHAR_CODE('othe')
};
/* ICAProperties */
enum {
kICAProperty = FOUR_CHAR_CODE('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 = FOUR_CHAR_CODE('0100'), /* UInt32 */
kICAPropertyImageHeight = FOUR_CHAR_CODE('0101'), /* UInt32 */
kICAPropertyImageBitDepth = FOUR_CHAR_CODE('0102'), /* UInt32 */
kICAPropertyImageDPI = FOUR_CHAR_CODE('011A'), /* UInt32 */
kICAPropertyImageExposureTime = FOUR_CHAR_CODE('829A'),
kICAPropertyImageFNumber = FOUR_CHAR_CODE('829D'),
kICAPropertyImageDateOriginal = FOUR_CHAR_CODE('9003'), /* null terminated string (YYYYMMDDThhmmss.s) */
kICAPropertyImageDateDigitized = FOUR_CHAR_CODE('9004'), /* null terminated string (YYYYMMDDThhmmss.s) */
kICAPropertyImageShutterSpeed = FOUR_CHAR_CODE('9201'), /* */
kICAPropertyImageAperture = FOUR_CHAR_CODE('9202'), /* */
kICAPropertyImageFlash = FOUR_CHAR_CODE('9209'), /* UInt16*/
kICAPropertyColorSpace = FOUR_CHAR_CODE('A001'), /* UInt16*/
kICAPropertyImageFilename = FOUR_CHAR_CODE('ifil'), /* null terminated string */
kICAPropertyImageSize = FOUR_CHAR_CODE('isiz'), /* UInt32 */
kICAPropertyImageData = FOUR_CHAR_CODE('idat'), /* void * */
kICAPropertyImageThumbnail = FOUR_CHAR_CODE('thum'), /* void * */
kICAPropertyColorSyncProfile = FOUR_CHAR_CODE('prof')
};
/* Messages */
enum {
kICAMessageConnect = FOUR_CHAR_CODE('open'),
kICAMessageDisconnect = FOUR_CHAR_CODE('clos'),
kICAMessageReset = FOUR_CHAR_CODE('rese'),
kICAMessageCheckDevice = FOUR_CHAR_CODE('chkd')
};
/* Data type definitions, mapped to AppleEvent types */
enum {
kICATypeUInt16 = FOUR_CHAR_CODE('ui16'), /* UInt16 */
kICATypeUInt32 = FOUR_CHAR_CODE('ui32'), /* UInt32 */
kICATypeUInt64 = FOUR_CHAR_CODE('ui64'), /* UInt64 */
kICATypeSInt16 = FOUR_CHAR_CODE('si16'), /* SInt16 */
kICATypeSInt32 = FOUR_CHAR_CODE('si32'), /* SInt32 */
kICATypeSInt64 = FOUR_CHAR_CODE('si64'), /* SInt64 */
kICATypeFixed = FOUR_CHAR_CODE('sing'), /* typeIEEE32BitFloatingPoint */
kICATypeBoolean = FOUR_CHAR_CODE('bool'), /* typeBoolean */
kICATypeString = FOUR_CHAR_CODE('TEXT'), /* typeChar */
kICATypeData = FOUR_CHAR_CODE('data'), /* void * */
kICATypeThumbnail = FOUR_CHAR_CODE('thum') /* ICAThumbnail*/
};
/* Flags for PropertyInfo flag element */
enum {
kICAFlagReadWriteAccess = 1L << 0,
kICAFlagReadAccess = 1L << 1
};
/* Notification types (Refer to section 12.4 of PTP spec) */
enum {
kICAEventCancelTransaction = FOUR_CHAR_CODE('ecnt'),
kICAEventObjectAdded = FOUR_CHAR_CODE('eoba'),
kICAEventObjectRemoved = FOUR_CHAR_CODE('eobr'),
kICAEventStoreAdded = FOUR_CHAR_CODE('esta'),
kICAEventStoreRemoved = FOUR_CHAR_CODE('estr'),
kICAEventDeviceAdded = FOUR_CHAR_CODE('edea'),
kICAEventDeviceRemoved = FOUR_CHAR_CODE('eder'),
kICAEventDevicePropChanged = FOUR_CHAR_CODE('edpc'),
kICAEventObjectInfoChanged = FOUR_CHAR_CODE('eoic'),
kICAEventDeviceInfoChanged = FOUR_CHAR_CODE('edic'),
kICAEventRequestObjectTransfer = FOUR_CHAR_CODE('erot'),
kICAEventStoreFull = FOUR_CHAR_CODE('estf'),
kICAEventDeviceReset = FOUR_CHAR_CODE('edvr'),
kICAEventStorageInfoChanged = FOUR_CHAR_CODE('esic'),
kICAEventCaptureComplete = FOUR_CHAR_CODE('ecpc'),
kICAEventUnreportedStatus = FOUR_CHAR_CODE('eurs')
};
/* Used for partial reads via ICAGetPropertyData */
enum {
kICAStartAtBeginning = 0,
kICAEntireLength = -1
};
/* ICADownloadFile flags */
enum {
kDeleteAfterDownload = 0x00000001,
kCreateCustomIcon = 0x00000002,
kAddMetaDataToFinderComment = 0x00000004,
kAdjustCreationDate = 0x00000008,
kSetFileTypeAndCreator = 0x00000010,
kEmbedColorSyncProfile = 0x00000020,
kRotateImage = 0x00000040
};
/* extended notification */
enum {
kExtendedNotificationPB = FOUR_CHAR_CODE('extd'),
kMessageGetEventData = FOUR_CHAR_CODE('mged'),
kEventClassPTPStandard = FOUR_CHAR_CODE('PTPs'),
kEventClassPTPVendor = FOUR_CHAR_CODE('PTPv')
};
/*
--------------- Structures ---------------
*/
struct ICAObjectInfo {
OSType objectType; /* i.e. kICAFile*/
OSType objectSubtype; /* i.e. kICAFileImage */
};
typedef struct ICAObjectInfo ICAObjectInfo;
struct ICAPropertyInfo {
OSType propertyType;
OSType dataType;
UInt32 dataSize;
UInt32 dataFlags;
};
typedef struct ICAPropertyInfo ICAPropertyInfo;
struct ICAMessage {
OSType messageType; /* <-- i.e. kICAMessageCameraCaptureNewImage */
UInt32 startByte; /* <-- */
void * dataPtr; /* <-- */
UInt32 dataSize; /* <-- */
OSType dataType; /* <-- */
};
typedef struct ICAMessage ICAMessage;
struct ICAThumbnail {
UInt32 width;
UInt32 height;
UInt32 dataSize;
UInt8 data[1]; /* 8-bit RGB data (RGBRGBRGB...)*/
};
typedef struct ICAThumbnail ICAThumbnail;
enum {
kICAPBVersion = 0x00010000
};
/*
--------------- Completion Procs ---------------
*/
/*
NOTE: the parameter for the completion proc (ICAHeader*) has to be casted to the appropriate type
e.g. (ICAGetChildCountPB*), ...
*/
typedef struct ICAHeader ICAHeader;
typedef CALLBACK_API_C( void , ICACompletion )(ICAHeader * pb);
/*
--------------- ICAHeader ---------------
*/
struct ICAHeader {
OSErr err; /* --> */
UInt32 refcon; /* <-- */
};
/*
--------------- Object parameter blocks ---------------
*/
struct ICAGetChildCountPB {
ICAHeader header;
ICAObject object; /* <-- */
UInt32 count; /* --> */
};
typedef struct ICAGetChildCountPB ICAGetChildCountPB;
struct ICAGetNthChildPB {
ICAHeader header;
ICAObject parentObject; /* <-- */
UInt32 index; /* <-- zero based */
ICAObject childObject; /* --> */
ICAObjectInfo childInfo; /* --> */
};
typedef struct ICAGetNthChildPB ICAGetNthChildPB;
struct ICAGetObjectInfoPB {
ICAHeader header;
ICAObject object; /* <-- */
ICAObjectInfo objectInfo; /* --> */
};
typedef struct ICAGetObjectInfoPB ICAGetObjectInfoPB;
struct ICAGetParentOfObjectPB {
ICAHeader header;
ICAObject object; /* <-- */
ICAObject parentObject; /* --> */
ICAObjectInfo parentInfo; /* --> */
};
typedef struct ICAGetParentOfObjectPB ICAGetParentOfObjectPB;
struct ICAGetRootOfObjectPB {
ICAHeader header;
ICAObject object; /* <-- */
ICAObject rootObject; /* --> */
ICAObjectInfo rootInfo; /* --> */
};
typedef struct ICAGetRootOfObjectPB ICAGetRootOfObjectPB;
struct ICAGetObjectRefConPB {
ICAHeader header;
ICAObject object; /* <-- */
UInt32 objectRefCon; /* --> */
};
typedef struct ICAGetObjectRefConPB ICAGetObjectRefConPB;
struct ICASetObjectRefConPB {
ICAHeader header;
ICAObject object; /* <-- */
UInt32 objectRefCon; /* <-- */
};
typedef struct ICASetObjectRefConPB ICASetObjectRefConPB;
/*
--------------- Property parameter blocks ---------------
*/
struct ICAGetPropertyCountPB {
ICAHeader header;
ICAObject object; /* <-- */
UInt32 count; /* --> */
};
typedef struct ICAGetPropertyCountPB ICAGetPropertyCountPB;
struct ICAGetNthPropertyPB {
ICAHeader header;
ICAObject object; /* <-- */
UInt32 index; /* <-- zero based */
ICAProperty property; /* --> */
ICAPropertyInfo propertyInfo; /* --> */
};
typedef struct ICAGetNthPropertyPB ICAGetNthPropertyPB;
struct ICAGetPropertyByTypePB {
ICAHeader header;
ICAObject object; /* <-- */
OSType propertyType; /* <-- */
ICAProperty property; /* --> */
ICAPropertyInfo propertyInfo; /* --> */
};
typedef struct ICAGetPropertyByTypePB ICAGetPropertyByTypePB;
struct ICAGetPropertyInfoPB {
ICAHeader header;
ICAProperty property; /* <-- */
ICAPropertyInfo propertyInfo; /* --> */
};
typedef struct ICAGetPropertyInfoPB ICAGetPropertyInfoPB;
struct ICAGetPropertyDataPB {
ICAHeader header;
ICAProperty property; /* <-- */
UInt32 startByte; /* <-- */
UInt32 requestedSize; /* <-- */
void * dataPtr; /* <-> */
UInt32 actualSize; /* --> */
OSType dataType; /* --> */
};
typedef struct ICAGetPropertyDataPB ICAGetPropertyDataPB;
struct ICASetPropertyDataPB {
ICAHeader header;
ICAProperty property; /* <-- */
UInt32 startByte; /* <-- */
void * dataPtr; /* <-- */
UInt32 dataSize; /* <-- */
OSType dataType; /* <-- */
};
typedef struct ICASetPropertyDataPB ICASetPropertyDataPB;
struct ICAGetParentOfPropertyPB {
ICAHeader header;
ICAProperty property; /* <-- */
ICAObject parentObject; /* --> */
ICAObjectInfo parentInfo; /* --> */
};
typedef struct ICAGetParentOfPropertyPB ICAGetParentOfPropertyPB;
struct ICAGetRootOfPropertyPB {
ICAHeader header;
ICAProperty property; /* <-- */
ICAObject rootObject; /* --> */
ICAObjectInfo rootInfo; /* --> */
};
typedef struct ICAGetRootOfPropertyPB ICAGetRootOfPropertyPB;
struct ICAGetPropertyRefConPB {
ICAHeader header;
ICAProperty property; /* <-- */
UInt32 propertyRefCon; /* --> */
};
typedef struct ICAGetPropertyRefConPB ICAGetPropertyRefConPB;
struct ICASetPropertyRefConPB {
ICAHeader header;
ICAProperty property; /* <-- */
UInt32 propertyRefCon; /* <-- */
};
typedef struct ICASetPropertyRefConPB ICASetPropertyRefConPB;
/*
--------------- Device parameter blocks ---------------
*/
struct ICAGetDeviceListPB {
ICAHeader header;
ICAObject object; /* --> */
};
typedef struct ICAGetDeviceListPB ICAGetDeviceListPB;
struct ICAObjectSendMessagePB {
ICAHeader header;
ICAObject object; /* <-- */
ICAMessage message; /* <-- */
UInt32 result; /* --> message specific result*/
};
typedef struct ICAObjectSendMessagePB ICAObjectSendMessagePB;
struct ICARegisterEventNotificationPB {
ICAHeader header;
ICAObject object; /* <-> */
OSType notifyType; /* <-> */
ICACompletion notifyProc; /* <-- */
};
typedef struct ICARegisterEventNotificationPB ICARegisterEventNotificationPB;
struct ICAExtendedRegisterEventNotificationPB {
ICAHeader header;
ICAObject object; /* <-> */
OSType extd; /* <-- */
ICACompletion notifyProc; /* <-- */
UInt32 rawEventType; /* -->*/
OSType eventType; /* <->*/
OSType eventClass; /* -->*/
UInt32 eventDataSize; /* -->*/
ICAEventDataCookie eventDataCookie; /* -->*/
ICAObject deviceObject; /* -->*/
};
typedef struct ICAExtendedRegisterEventNotificationPB ICAExtendedRegisterEventNotificationPB;
struct ICADownloadFilePB {
ICAHeader header;
ICAObject object; /* <-- */
FSRef * dirFSRef; /* <-- */
UInt32 flags; /* <-- */
OSType fileType; /* <-- */
OSType fileCreator; /* <-- */
Fixed rotationAngle; /* <-- */
FSRef * fileFSRef; /* --> can be NULL*/
};
typedef struct ICADownloadFilePB ICADownloadFilePB;
struct ICACopyObjectPropertyDictionaryPB {
ICAHeader header;
ICAObject object; /* <-- */
CFDictionaryRef * theDict; /* --> */
};
typedef struct ICACopyObjectPropertyDictionaryPB ICACopyObjectPropertyDictionaryPB;
/*
NOTE: for all APIs - pass NULL as completion parameter to make a synchronous call
*/
/*
--------------- Object functions ---------------
*/
/*
* ICAGetChildCount()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetChildCount(
ICAGetChildCountPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetNthChild()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetNthChild(
ICAGetNthChildPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetObjectInfo()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetObjectInfo(
ICAGetObjectInfoPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetParentOfObject()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetParentOfObject(
ICAGetParentOfObjectPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetRootOfObject()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetRootOfObject(
ICAGetRootOfObjectPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetObjectRefCon()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetObjectRefCon(
ICAGetObjectRefConPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICASetObjectRefCon()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICASetObjectRefCon(
ICASetObjectRefConPB * pb,
ICACompletion completion); /* can be NULL */
/*
--------------- Property functions ---------------
*/
/*
* ICAGetPropertyCount()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetPropertyCount(
ICAGetPropertyCountPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetNthProperty()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetNthProperty(
ICAGetNthPropertyPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetPropertyByType()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetPropertyByType(
ICAGetPropertyByTypePB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetPropertyInfo()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetPropertyInfo(
ICAGetPropertyInfoPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetPropertyData()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetPropertyData(
ICAGetPropertyDataPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICASetPropertyData()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICASetPropertyData(
ICASetPropertyDataPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetParentOfProperty()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetParentOfProperty(
ICAGetParentOfPropertyPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetRootOfProperty()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetRootOfProperty(
ICAGetRootOfPropertyPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAGetPropertyRefCon()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetPropertyRefCon(
ICAGetPropertyRefConPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICASetPropertyRefCon()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICASetPropertyRefCon(
ICASetPropertyRefConPB * pb,
ICACompletion completion); /* can be NULL */
/*
--------------- Device functions ---------------
*/
/*
* ICAGetDeviceList()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAGetDeviceList(
ICAGetDeviceListPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAObjectSendMessage()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICAObjectSendMessage(
ICAObjectSendMessagePB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICARegisterEventNotification()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.1 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API( OSErr )
ICARegisterEventNotification(
ICARegisterEventNotificationPB * pb,
ICACompletion completion); /* can be NULL */
/*
------------------------------------------------
*/
/*
* ICADownloadFile()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.4 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICADownloadFile(
ICADownloadFilePB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICACopyObjectPropertyDictionary()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.4 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICACopyObjectPropertyDictionary(
ICACopyObjectPropertyDictionaryPB * pb,
ICACompletion completion); /* can be NULL */
/*
--- scanner support ---------------------------------------------
*/
struct ICAScannerOpenSessionPB {
ICAHeader header;
ICAObject object; /* <-- */
ICAScannerSessionID sessionID; /* --> */
};
typedef struct ICAScannerOpenSessionPB ICAScannerOpenSessionPB;
struct ICAScannerCloseSessionPB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
};
typedef struct ICAScannerCloseSessionPB ICAScannerCloseSessionPB;
struct ICAScannerInitializePB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
};
typedef struct ICAScannerInitializePB ICAScannerInitializePB;
struct ICAScannerGetParametersPB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
CFMutableDictionaryRef theDict; /* --> */
};
typedef struct ICAScannerGetParametersPB ICAScannerGetParametersPB;
struct ICAScannerSetParametersPB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
CFMutableDictionaryRef theDict; /* <-> */
};
typedef struct ICAScannerSetParametersPB ICAScannerSetParametersPB;
struct ICAScannerStatusPB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
UInt32 status; /* --> */
};
typedef struct ICAScannerStatusPB ICAScannerStatusPB;
struct ICAScannerStartPB {
ICAHeader header;
ICAScannerSessionID sessionID; /* <-- */
};
typedef struct ICAScannerStartPB ICAScannerStartPB;
/*
* ICAScannerOpenSession()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerOpenSession(
ICAScannerOpenSessionPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerCloseSession()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerCloseSession(
ICAScannerCloseSessionPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerInitialize()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerInitialize(
ICAScannerInitializePB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerGetParameters()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerGetParameters(
ICAScannerGetParametersPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerSetParameters()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerSetParameters(
ICAScannerSetParametersPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerStatus()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerStatus(
ICAScannerStatusPB * pb,
ICACompletion completion); /* can be NULL */
/*
* ICAScannerStart()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: in CarbonLib 1.6 and later
* Mac OS X: in version 10.1 and later
*/
EXTERN_API( OSErr )
ICAScannerStart(
ICAScannerStartPB * pb,
ICACompletion completion); /* can be NULL */
#if PRAGMA_STRUCT_ALIGN
#pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
#pragma pack()
#endif
#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
#ifdef __cplusplus
}
#endif
#endif /* __ICAAPPLICATION__ */
|