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
use crate::define_opts;
mod session;
pub use session::Session;
mod disk;
pub use disk::Disk;
define_opts!(
#[doc(alias = "DADiskMountOptions")]
pub DiskMountOpts(u32)
);
impl DiskMountOpts {
pub const WHOLE: Self = Self(0x00000001);
}
define_opts!(
#[doc(alias = "DADiskRenameOptions")]
pub DiskRenameOpts(u32)
);
define_opts!(
#[doc(alias = "DADiskUnmountOptions")]
pub DiskUnmountOpts(u32)
);
impl DiskUnmountOpts {
pub const FORCE: Self = Self(0x00080000);
pub const WHOLE: Self = Self(0x00000001);
}
define_opts!(
#[doc(alias = "DADiskEjectOptions")]
pub DiskEjectOpts(u32)
);
define_opts!(
#[doc(alias = "DADiskClaimOptions")]
pub DiskClaimOpts(u32)
);
define_opts!(
#[doc(alias = "DADiskOptions")]
pub DiskOpts(u32)
);
// #[link(name = "DiskArbitration", kind = "framework")]
// extern "C" {
// static kDADiskDescriptionMatchMediaUnformatted: &'static cf::DictionaryOf<cf::String, cf::Type>;
// static kDADiskDescriptionMatchMediaWhole: &'static cf::DictionaryOf<cf::String, cf::Type>;
// static kDADiskDescriptionMatchVolumeMountable: &'static cf::DictionaryOf<cf::String, cf::Type>;
// static kDADiskDescriptionMatchVolumeUnrecognized:
// &'static cf::DictionaryOf<cf::String, cf::Type>;
// static kDADiskDescriptionWatchVolumeName: &'static cf::ArrayOf<cf::String>;
// static kDADiskDescriptionWatchVolumePath: &'static cf::ArrayOf<cf::String>;
// }