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
#![allow(non_snake_case)]
extern crate bitflags;
#[cfg(target_os = "macos")]
extern crate cocoa;
#[cfg(target_os = "macos")]
extern crate core_foundation;
#[cfg(target_os = "macos")]
extern crate core_graphics;
extern crate objc;
extern crate libc;
#[cfg(target_os = "macos")]
pub mod camera_device;
#[cfg(target_os = "macos")]
pub mod camera_item;
#[cfg(target_os = "macos")]
pub mod device;
#[cfg(target_os = "macos")]
pub mod device_browser;
#[cfg(target_os = "macos")]
pub mod scanner_band_data;
#[cfg(target_os = "macos")]
pub mod scanner_device;
#[cfg(target_os = "macos")]
pub mod scanner_functional_units;
pub mod constants {
#[repr(u64)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ICEXIFOrientationType {
ICEXIFOrientation1 = 1,
ICEXIFOrientation2 = 2,
ICEXIFOrientation3 = 3,
ICEXIFOrientation4 = 4,
ICEXIFOrientation5 = 5,
ICEXIFOrientation6 = 6,
ICEXIFOrientation7 = 7,
ICEXIFOrientation8 = 8,
}
#[repr(i64)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ICReturnCode {
ICReturnSuccess = 0,
ICReturnInvalidParam = -9922,
ICReturnCommunicationTimedOut = -9923,
ICReturnScanOperationCanceled = -9924,
ICReturnScannerInUseByLocalUser = -9925,
ICReturnScannerInUseByRemoteUser = -9926,
ICReturnDeviceFailedToOpenSession = -9927,
ICReturnDeviceFailedToCloseSession = -9928,
ICReturnScannerFailedToSelectFunctionalUnit = -9929,
ICReturnScannerFailedToCompleteOverviewScan = -9930,
ICReturnScannerFailedToCompleteScan = -9931,
ICReturnReceivedUnsolicitedScannerStatusInfo = -9932,
ICReturnReceivedUnsolicitedScannerErrorInfo = -9933,
ICReturnDownloadFailed = -9934,
ICReturnUploadFailed = -9935,
ICReturnFailedToCompletePassThroughCommand = -9936,
ICReturnDownloadCanceled = -9937,
ICReturnFailedToEnabeTethering = -9938,
ICReturnFailedToDisabeTethering = -9939,
ICReturnFailedToCompleteSendMessageRequest = -9940,
ICReturnDeleteFilesFailed = -9941,
ICReturnDeleteFilesCanceled = -9942,
ICReturnDeviceIsPasscodeLocked = -9943,
ICReturnDeviceFailedToTakePicture = -9944,
ICReturnDeviceSoftwareNotInstalled = -9945,
ICReturnDeviceSoftwareIsBeingInstalled = -9946,
ICReturnDeviceSoftwareInstallationCompleted = -9947,
ICReturnDeviceSoftwareInstallationCanceled = -9948,
ICReturnDeviceSoftwareInstallationFailed = -9949,
ICReturnDeviceSoftwareNotAvailable = -9950,
ICReturnDeviceCouldNotPair = -9951,
ICReturnDeviceCouldNotUnpair = -9952,
ICReturnDeviceNeedsCredentials = -9953,
ICReturnDeviceIsBusyEnumerating = -9954,
ICReturnDeviceCommandGeneralFailure = -9955,
}
}