]> git.proxmox.com Git - rustc.git/blob - vendor/sysinfo/src/apple/ffi.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / sysinfo / src / apple / ffi.rs
1 // Take a look at the license at the top of the repository in the LICENSE file.
2
3 use libc::c_void;
4
5 // Reexport items defined in either macos or ios ffi module.
6 pub use crate::sys::inner::ffi::*;
7
8 #[repr(C)]
9 pub struct __DADisk(c_void);
10 #[repr(C)]
11 pub struct __DASession(c_void);
12
13 // #[allow(non_camel_case_types)]
14 // pub type io_name_t = [u8; 128];
15 // #[allow(non_camel_case_types)]
16 // pub type io_registry_entry_t = io_object_t;
17
18 // pub type IOOptionBits = u32;
19
20 #[cfg_attr(feature = "debug", derive(Eq, Hash, PartialEq))]
21 #[derive(Clone)]
22 #[repr(C)]
23 pub struct Val_t {
24 pub key: [i8; 5],
25 pub data_size: u32,
26 pub data_type: [i8; 5], // UInt32Char_t
27 pub bytes: [i8; 32], // SMCBytes_t
28 }