Copy as Markdown

Other Tools

/* automatically generated by rust-bindgen 0.69.4 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
*byte |= mask;
} else {
*byte &= !mask;
}
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
}
pub const AUDIO_UNIT_VERSION: u32 = 1070;
pub const DYNAMIC_TARGETS_ENABLED: u32 = 0;
pub const TARGET_OS_MAC: u32 = 1;
pub const TARGET_OS_OSX: u32 = 1;
pub const TARGET_OS_IPHONE: u32 = 0;
pub const TARGET_OS_IOS: u32 = 0;
pub const TARGET_OS_WATCH: u32 = 0;
pub const TARGET_OS_TV: u32 = 0;
pub const TARGET_OS_MACCATALYST: u32 = 0;
pub const TARGET_OS_UIKITFORMAC: u32 = 0;
pub const TARGET_OS_SIMULATOR: u32 = 0;
pub const TARGET_OS_EMBEDDED: u32 = 0;
pub const TARGET_OS_UNIX: u32 = 0;
pub const TARGET_OS_RTKIT: u32 = 0;
pub const TARGET_RT_LITTLE_ENDIAN: u32 = 1;
pub const TARGET_RT_BIG_ENDIAN: u32 = 0;
pub const TARGET_RT_64_BIT: u32 = 1;
pub const TARGET_RT_MAC_CFM: u32 = 0;
pub const TARGET_RT_MAC_MACHO: u32 = 1;
pub const TARGET_CPU_X86_64: u32 = 1;
pub const TARGET_OS_VISION: u32 = 0;
pub const TARGET_OS_DRIVERKIT: u32 = 0;
pub const TARGET_OS_WIN32: u32 = 0;
pub const TARGET_OS_WINDOWS: u32 = 0;
pub const TARGET_OS_LINUX: u32 = 0;
pub const TARGET_CPU_PPC: u32 = 0;
pub const TARGET_CPU_PPC64: u32 = 0;
pub const TARGET_CPU_68K: u32 = 0;
pub const TARGET_CPU_X86: u32 = 0;
pub const TARGET_CPU_ARM: u32 = 0;
pub const TARGET_CPU_ARM64: u32 = 0;
pub const TARGET_CPU_MIPS: u32 = 0;
pub const TARGET_CPU_SPARC: u32 = 0;
pub const TARGET_CPU_ALPHA: u32 = 0;
pub const TARGET_IPHONE_SIMULATOR: u32 = 0;
pub const TARGET_OS_NANO: u32 = 0;
pub const __API_TO_BE_DEPRECATED: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __MAC_10_13: u32 = 101300;
pub const __MAC_10_13_1: u32 = 101301;
pub const __MAC_10_13_2: u32 = 101302;
pub const __MAC_10_13_4: u32 = 101304;
pub const __MAC_10_14: u32 = 101400;
pub const __MAC_10_14_1: u32 = 101401;
pub const __MAC_10_14_4: u32 = 101404;
pub const __MAC_10_14_5: u32 = 101405;
pub const __MAC_10_14_6: u32 = 101406;
pub const __MAC_10_15: u32 = 101500;
pub const __MAC_10_15_1: u32 = 101501;
pub const __MAC_10_15_4: u32 = 101504;
pub const __MAC_10_16: u32 = 101600;
pub const __MAC_11_0: u32 = 110000;
pub const __MAC_11_1: u32 = 110100;
pub const __MAC_11_3: u32 = 110300;
pub const __MAC_11_4: u32 = 110400;
pub const __MAC_11_5: u32 = 110500;
pub const __MAC_11_6: u32 = 110600;
pub const __MAC_12_0: u32 = 120000;
pub const __MAC_12_1: u32 = 120100;
pub const __MAC_12_2: u32 = 120200;
pub const __MAC_12_3: u32 = 120300;
pub const __MAC_12_4: u32 = 120400;
pub const __MAC_12_5: u32 = 120500;
pub const __MAC_12_6: u32 = 120600;
pub const __MAC_12_7: u32 = 120700;
pub const __MAC_13_0: u32 = 130000;
pub const __MAC_13_1: u32 = 130100;
pub const __MAC_13_2: u32 = 130200;
pub const __MAC_13_3: u32 = 130300;
pub const __MAC_13_4: u32 = 130400;
pub const __MAC_13_5: u32 = 130500;
pub const __MAC_13_6: u32 = 130600;
pub const __MAC_14_0: u32 = 140000;
pub const __MAC_14_1: u32 = 140100;
pub const __MAC_14_2: u32 = 140200;
pub const __MAC_14_3: u32 = 140300;
pub const __MAC_14_4: u32 = 140400;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __IPHONE_11_0: u32 = 110000;
pub const __IPHONE_11_1: u32 = 110100;
pub const __IPHONE_11_2: u32 = 110200;
pub const __IPHONE_11_3: u32 = 110300;
pub const __IPHONE_11_4: u32 = 110400;
pub const __IPHONE_12_0: u32 = 120000;
pub const __IPHONE_12_1: u32 = 120100;
pub const __IPHONE_12_2: u32 = 120200;
pub const __IPHONE_12_3: u32 = 120300;
pub const __IPHONE_12_4: u32 = 120400;
pub const __IPHONE_13_0: u32 = 130000;
pub const __IPHONE_13_1: u32 = 130100;
pub const __IPHONE_13_2: u32 = 130200;
pub const __IPHONE_13_3: u32 = 130300;
pub const __IPHONE_13_4: u32 = 130400;
pub const __IPHONE_13_5: u32 = 130500;
pub const __IPHONE_13_6: u32 = 130600;
pub const __IPHONE_13_7: u32 = 130700;
pub const __IPHONE_14_0: u32 = 140000;
pub const __IPHONE_14_1: u32 = 140100;
pub const __IPHONE_14_2: u32 = 140200;
pub const __IPHONE_14_3: u32 = 140300;
pub const __IPHONE_14_5: u32 = 140500;
pub const __IPHONE_14_4: u32 = 140400;
pub const __IPHONE_14_6: u32 = 140600;
pub const __IPHONE_14_7: u32 = 140700;
pub const __IPHONE_14_8: u32 = 140800;
pub const __IPHONE_15_0: u32 = 150000;
pub const __IPHONE_15_1: u32 = 150100;
pub const __IPHONE_15_2: u32 = 150200;
pub const __IPHONE_15_3: u32 = 150300;
pub const __IPHONE_15_4: u32 = 150400;
pub const __IPHONE_15_5: u32 = 150500;
pub const __IPHONE_15_6: u32 = 150600;
pub const __IPHONE_15_7: u32 = 150700;
pub const __IPHONE_15_8: u32 = 150800;
pub const __IPHONE_16_0: u32 = 160000;
pub const __IPHONE_16_1: u32 = 160100;
pub const __IPHONE_16_2: u32 = 160200;
pub const __IPHONE_16_3: u32 = 160300;
pub const __IPHONE_16_4: u32 = 160400;
pub const __IPHONE_16_5: u32 = 160500;
pub const __IPHONE_16_6: u32 = 160600;
pub const __IPHONE_16_7: u32 = 160700;
pub const __IPHONE_17_0: u32 = 170000;
pub const __IPHONE_17_1: u32 = 170100;
pub const __IPHONE_17_2: u32 = 170200;
pub const __IPHONE_17_3: u32 = 170300;
pub const __IPHONE_17_4: u32 = 170400;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __WATCHOS_4_0: u32 = 40000;
pub const __WATCHOS_4_1: u32 = 40100;
pub const __WATCHOS_4_2: u32 = 40200;
pub const __WATCHOS_4_3: u32 = 40300;
pub const __WATCHOS_5_0: u32 = 50000;
pub const __WATCHOS_5_1: u32 = 50100;
pub const __WATCHOS_5_2: u32 = 50200;
pub const __WATCHOS_5_3: u32 = 50300;
pub const __WATCHOS_6_0: u32 = 60000;
pub const __WATCHOS_6_1: u32 = 60100;
pub const __WATCHOS_6_2: u32 = 60200;
pub const __WATCHOS_7_0: u32 = 70000;
pub const __WATCHOS_7_1: u32 = 70100;
pub const __WATCHOS_7_2: u32 = 70200;
pub const __WATCHOS_7_3: u32 = 70300;
pub const __WATCHOS_7_4: u32 = 70400;
pub const __WATCHOS_7_5: u32 = 70500;
pub const __WATCHOS_7_6: u32 = 70600;
pub const __WATCHOS_8_0: u32 = 80000;
pub const __WATCHOS_8_1: u32 = 80100;
pub const __WATCHOS_8_3: u32 = 80300;
pub const __WATCHOS_8_4: u32 = 80400;
pub const __WATCHOS_8_5: u32 = 80500;
pub const __WATCHOS_8_6: u32 = 80600;
pub const __WATCHOS_8_7: u32 = 80700;
pub const __WATCHOS_8_8: u32 = 80800;
pub const __WATCHOS_9_0: u32 = 90000;
pub const __WATCHOS_9_1: u32 = 90100;
pub const __WATCHOS_9_2: u32 = 90200;
pub const __WATCHOS_9_3: u32 = 90300;
pub const __WATCHOS_9_4: u32 = 90400;
pub const __WATCHOS_9_5: u32 = 90500;
pub const __WATCHOS_9_6: u32 = 90600;
pub const __WATCHOS_10_0: u32 = 100000;
pub const __WATCHOS_10_1: u32 = 100100;
pub const __WATCHOS_10_2: u32 = 100200;
pub const __WATCHOS_10_3: u32 = 100300;
pub const __WATCHOS_10_4: u32 = 100400;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __TVOS_11_0: u32 = 110000;
pub const __TVOS_11_1: u32 = 110100;
pub const __TVOS_11_2: u32 = 110200;
pub const __TVOS_11_3: u32 = 110300;
pub const __TVOS_11_4: u32 = 110400;
pub const __TVOS_12_0: u32 = 120000;
pub const __TVOS_12_1: u32 = 120100;
pub const __TVOS_12_2: u32 = 120200;
pub const __TVOS_12_3: u32 = 120300;
pub const __TVOS_12_4: u32 = 120400;
pub const __TVOS_13_0: u32 = 130000;
pub const __TVOS_13_2: u32 = 130200;
pub const __TVOS_13_3: u32 = 130300;
pub const __TVOS_13_4: u32 = 130400;
pub const __TVOS_14_0: u32 = 140000;
pub const __TVOS_14_1: u32 = 140100;
pub const __TVOS_14_2: u32 = 140200;
pub const __TVOS_14_3: u32 = 140300;
pub const __TVOS_14_5: u32 = 140500;
pub const __TVOS_14_6: u32 = 140600;
pub const __TVOS_14_7: u32 = 140700;
pub const __TVOS_15_0: u32 = 150000;
pub const __TVOS_15_1: u32 = 150100;
pub const __TVOS_15_2: u32 = 150200;
pub const __TVOS_15_3: u32 = 150300;
pub const __TVOS_15_4: u32 = 150400;
pub const __TVOS_15_5: u32 = 150500;
pub const __TVOS_15_6: u32 = 150600;
pub const __TVOS_16_0: u32 = 160000;
pub const __TVOS_16_1: u32 = 160100;
pub const __TVOS_16_2: u32 = 160200;
pub const __TVOS_16_3: u32 = 160300;
pub const __TVOS_16_4: u32 = 160400;
pub const __TVOS_16_5: u32 = 160500;
pub const __TVOS_16_6: u32 = 160600;
pub const __TVOS_17_0: u32 = 170000;
pub const __TVOS_17_1: u32 = 170100;
pub const __TVOS_17_2: u32 = 170200;
pub const __TVOS_17_3: u32 = 170300;
pub const __TVOS_17_4: u32 = 170400;
pub const __BRIDGEOS_2_0: u32 = 20000;
pub const __BRIDGEOS_3_0: u32 = 30000;
pub const __BRIDGEOS_3_1: u32 = 30100;
pub const __BRIDGEOS_3_4: u32 = 30400;
pub const __BRIDGEOS_4_0: u32 = 40000;
pub const __BRIDGEOS_4_1: u32 = 40100;
pub const __BRIDGEOS_5_0: u32 = 50000;
pub const __BRIDGEOS_5_1: u32 = 50100;
pub const __BRIDGEOS_5_3: u32 = 50300;
pub const __BRIDGEOS_6_0: u32 = 60000;
pub const __BRIDGEOS_6_2: u32 = 60200;
pub const __BRIDGEOS_6_4: u32 = 60400;
pub const __BRIDGEOS_6_5: u32 = 60500;
pub const __BRIDGEOS_6_6: u32 = 60600;
pub const __BRIDGEOS_7_0: u32 = 70000;
pub const __BRIDGEOS_7_1: u32 = 70100;
pub const __BRIDGEOS_7_2: u32 = 70200;
pub const __BRIDGEOS_7_3: u32 = 70300;
pub const __BRIDGEOS_7_4: u32 = 70400;
pub const __BRIDGEOS_7_6: u32 = 70600;
pub const __BRIDGEOS_8_0: u32 = 80000;
pub const __BRIDGEOS_8_1: u32 = 80100;
pub const __BRIDGEOS_8_2: u32 = 80200;
pub const __BRIDGEOS_8_3: u32 = 80300;
pub const __BRIDGEOS_8_4: u32 = 80400;
pub const __DRIVERKIT_19_0: u32 = 190000;
pub const __DRIVERKIT_20_0: u32 = 200000;
pub const __DRIVERKIT_21_0: u32 = 210000;
pub const __DRIVERKIT_22_0: u32 = 220000;
pub const __DRIVERKIT_22_4: u32 = 220400;
pub const __DRIVERKIT_22_5: u32 = 220500;
pub const __DRIVERKIT_22_6: u32 = 220600;
pub const __DRIVERKIT_23_0: u32 = 230000;
pub const __DRIVERKIT_23_1: u32 = 230100;
pub const __DRIVERKIT_23_2: u32 = 230200;
pub const __DRIVERKIT_23_3: u32 = 230300;
pub const __DRIVERKIT_23_4: u32 = 230400;
pub const __VISIONOS_1_0: u32 = 10000;
pub const __VISIONOS_1_1: u32 = 10100;
pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
pub const MAC_OS_VERSION_11_0: u32 = 110000;
pub const MAC_OS_VERSION_11_1: u32 = 110100;
pub const MAC_OS_VERSION_11_3: u32 = 110300;
pub const MAC_OS_VERSION_11_4: u32 = 110400;
pub const MAC_OS_VERSION_11_5: u32 = 110500;
pub const MAC_OS_VERSION_11_6: u32 = 110600;
pub const MAC_OS_VERSION_12_0: u32 = 120000;
pub const MAC_OS_VERSION_12_1: u32 = 120100;
pub const MAC_OS_VERSION_12_2: u32 = 120200;
pub const MAC_OS_VERSION_12_3: u32 = 120300;
pub const MAC_OS_VERSION_12_4: u32 = 120400;
pub const MAC_OS_VERSION_12_5: u32 = 120500;
pub const MAC_OS_VERSION_12_6: u32 = 120600;
pub const MAC_OS_VERSION_12_7: u32 = 120700;
pub const MAC_OS_VERSION_13_0: u32 = 130000;
pub const MAC_OS_VERSION_13_1: u32 = 130100;
pub const MAC_OS_VERSION_13_2: u32 = 130200;
pub const MAC_OS_VERSION_13_3: u32 = 130300;
pub const MAC_OS_VERSION_13_4: u32 = 130400;
pub const MAC_OS_VERSION_13_5: u32 = 130500;
pub const MAC_OS_VERSION_13_6: u32 = 130600;
pub const MAC_OS_VERSION_14_0: u32 = 140000;
pub const MAC_OS_VERSION_14_1: u32 = 140100;
pub const MAC_OS_VERSION_14_2: u32 = 140200;
pub const MAC_OS_VERSION_14_3: u32 = 140300;
pub const MAC_OS_VERSION_14_4: u32 = 140400;
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 140400;
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
pub const COREAUDIOTYPES_VERSION: u32 = 20211130;
pub const __COREFOUNDATION_CFBASE__: u32 = 1;
pub const __COREFOUNDATION_CFAVAILABILITY__: u32 = 1;
pub const API_TO_BE_DEPRECATED: u32 = 100000;
pub const API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __AVAILABILITY_MACROS_USES_AVAILABILITY: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __has_safe_buffers: u32 = 1;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 0;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9] = b"$INODE64\0";
pub const __DARWIN_SUF_1050: &[u8; 6] = b"$1050\0";
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const __DARWIN_NO_LONG_LONG: u32 = 0;
pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __has_ptrcheck: u32 = 0;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const UINTPTR_MAX: i32 = -1;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const UNIVERSAL_INTERFACES_VERSION: u32 = 1024;
pub const PRAGMA_IMPORT: u32 = 0;
pub const PRAGMA_ONCE: u32 = 0;
pub const PRAGMA_STRUCT_PACK: u32 = 1;
pub const PRAGMA_STRUCT_PACKPUSH: u32 = 1;
pub const PRAGMA_STRUCT_ALIGN: u32 = 0;
pub const PRAGMA_ENUM_PACK: u32 = 0;
pub const PRAGMA_ENUM_ALWAYSINT: u32 = 0;
pub const PRAGMA_ENUM_OPTIONS: u32 = 0;
pub const TYPE_EXTENDED: u32 = 0;
pub const TYPE_LONGDOUBLE_IS_DOUBLE: u32 = 0;
pub const TYPE_LONGLONG: u32 = 1;
pub const FUNCTION_PASCAL: u32 = 0;
pub const FUNCTION_DECLSPEC: u32 = 0;
pub const FUNCTION_WIN32CC: u32 = 0;
pub const TARGET_API_MAC_OS8: u32 = 0;
pub const TARGET_API_MAC_CARBON: u32 = 1;
pub const TARGET_API_MAC_OSX: u32 = 1;
pub const TARGET_CARBON: u32 = 1;
pub const OLDROUTINENAMES: u32 = 0;
pub const OPAQUE_TOOLBOX_STRUCTS: u32 = 1;
pub const OPAQUE_UPP_TYPES: u32 = 1;
pub const ACCESSOR_CALLS_ARE_FUNCTIONS: u32 = 1;
pub const CALL_NOT_IN_CARBON: u32 = 0;
pub const MIXEDMODE_CALLS_ARE_FUNCTIONS: u32 = 1;
pub const _QUAD_HIGHWORD: u32 = 1;
pub const _QUAD_LOWWORD: u32 = 0;
pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
pub const __DARWIN_BYTE_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const __DARWIN_FD_SETSIZE: u32 = 1024;
pub const __DARWIN_NBBY: u32 = 8;
pub const NBBY: u32 = 8;
pub const FD_SETSIZE: u32 = 1024;
pub const ALLOW_OBSOLETE_CARBON_MACMEMORY: u32 = 0;
pub const ALLOW_OBSOLETE_CARBON_OSUTILS: u32 = 0;
pub const kInvalidID: u32 = 0;
pub const TRUE: u32 = 1;
pub const FALSE: u32 = 0;
pub const kCFCoreFoundationVersionNumber10_0: f64 = 196.4;
pub const kCFCoreFoundationVersionNumber10_0_3: f64 = 196.5;
pub const kCFCoreFoundationVersionNumber10_1: f64 = 226.0;
pub const kCFCoreFoundationVersionNumber10_1_1: f64 = 226.0;
pub const kCFCoreFoundationVersionNumber10_1_2: f64 = 227.2;
pub const kCFCoreFoundationVersionNumber10_1_3: f64 = 227.2;
pub const kCFCoreFoundationVersionNumber10_1_4: f64 = 227.3;
pub const kCFCoreFoundationVersionNumber10_2: f64 = 263.0;
pub const kCFCoreFoundationVersionNumber10_2_1: f64 = 263.1;
pub const kCFCoreFoundationVersionNumber10_2_2: f64 = 263.1;
pub const kCFCoreFoundationVersionNumber10_2_3: f64 = 263.3;
pub const kCFCoreFoundationVersionNumber10_2_4: f64 = 263.3;
pub const kCFCoreFoundationVersionNumber10_2_5: f64 = 263.5;
pub const kCFCoreFoundationVersionNumber10_2_6: f64 = 263.5;
pub const kCFCoreFoundationVersionNumber10_2_7: f64 = 263.5;
pub const kCFCoreFoundationVersionNumber10_2_8: f64 = 263.5;
pub const kCFCoreFoundationVersionNumber10_3: f64 = 299.0;
pub const kCFCoreFoundationVersionNumber10_3_1: f64 = 299.0;
pub const kCFCoreFoundationVersionNumber10_3_2: f64 = 299.0;
pub const kCFCoreFoundationVersionNumber10_3_3: f64 = 299.3;
pub const kCFCoreFoundationVersionNumber10_3_4: f64 = 299.31;
pub const kCFCoreFoundationVersionNumber10_3_5: f64 = 299.31;
pub const kCFCoreFoundationVersionNumber10_3_6: f64 = 299.32;
pub const kCFCoreFoundationVersionNumber10_3_7: f64 = 299.33;
pub const kCFCoreFoundationVersionNumber10_3_8: f64 = 299.33;
pub const kCFCoreFoundationVersionNumber10_3_9: f64 = 299.35;
pub const kCFCoreFoundationVersionNumber10_4: f64 = 368.0;
pub const kCFCoreFoundationVersionNumber10_4_1: f64 = 368.1;
pub const kCFCoreFoundationVersionNumber10_4_2: f64 = 368.11;
pub const kCFCoreFoundationVersionNumber10_4_3: f64 = 368.18;
pub const kCFCoreFoundationVersionNumber10_4_4_Intel: f64 = 368.26;
pub const kCFCoreFoundationVersionNumber10_4_4_PowerPC: f64 = 368.25;
pub const kCFCoreFoundationVersionNumber10_4_5_Intel: f64 = 368.26;
pub const kCFCoreFoundationVersionNumber10_4_5_PowerPC: f64 = 368.25;
pub const kCFCoreFoundationVersionNumber10_4_6_Intel: f64 = 368.26;
pub const kCFCoreFoundationVersionNumber10_4_6_PowerPC: f64 = 368.25;
pub const kCFCoreFoundationVersionNumber10_4_7: f64 = 368.27;
pub const kCFCoreFoundationVersionNumber10_4_8: f64 = 368.27;
pub const kCFCoreFoundationVersionNumber10_4_9: f64 = 368.28;
pub const kCFCoreFoundationVersionNumber10_4_10: f64 = 368.28;
pub const kCFCoreFoundationVersionNumber10_4_11: f64 = 368.31;
pub const kCFCoreFoundationVersionNumber10_5: f64 = 476.0;
pub const kCFCoreFoundationVersionNumber10_5_1: f64 = 476.0;
pub const kCFCoreFoundationVersionNumber10_5_2: f64 = 476.1;
pub const kCFCoreFoundationVersionNumber10_5_3: f64 = 476.13;
pub const kCFCoreFoundationVersionNumber10_5_4: f64 = 476.14;
pub const kCFCoreFoundationVersionNumber10_5_5: f64 = 476.15;
pub const kCFCoreFoundationVersionNumber10_5_6: f64 = 476.17;
pub const kCFCoreFoundationVersionNumber10_5_7: f64 = 476.18;
pub const kCFCoreFoundationVersionNumber10_5_8: f64 = 476.19;
pub const kCFCoreFoundationVersionNumber10_6: f64 = 550.0;
pub const kCFCoreFoundationVersionNumber10_6_1: f64 = 550.0;
pub const kCFCoreFoundationVersionNumber10_6_2: f64 = 550.13;
pub const kCFCoreFoundationVersionNumber10_6_3: f64 = 550.19;
pub const kCFCoreFoundationVersionNumber10_6_4: f64 = 550.29;
pub const kCFCoreFoundationVersionNumber10_6_5: f64 = 550.42;
pub const kCFCoreFoundationVersionNumber10_6_6: f64 = 550.42;
pub const kCFCoreFoundationVersionNumber10_6_7: f64 = 550.42;
pub const kCFCoreFoundationVersionNumber10_6_8: f64 = 550.43;
pub const kCFCoreFoundationVersionNumber10_7: f64 = 635.0;
pub const kCFCoreFoundationVersionNumber10_7_1: f64 = 635.0;
pub const kCFCoreFoundationVersionNumber10_7_2: f64 = 635.15;
pub const kCFCoreFoundationVersionNumber10_7_3: f64 = 635.19;
pub const kCFCoreFoundationVersionNumber10_7_4: f64 = 635.21;
pub const kCFCoreFoundationVersionNumber10_7_5: f64 = 635.21;
pub const kCFCoreFoundationVersionNumber10_8: f64 = 744.0;
pub const kCFCoreFoundationVersionNumber10_8_1: f64 = 744.0;
pub const kCFCoreFoundationVersionNumber10_8_2: f64 = 744.12;
pub const kCFCoreFoundationVersionNumber10_8_3: f64 = 744.18;
pub const kCFCoreFoundationVersionNumber10_8_4: f64 = 744.19;
pub const kCFCoreFoundationVersionNumber10_9: f64 = 855.11;
pub const kCFCoreFoundationVersionNumber10_9_1: f64 = 855.11;
pub const kCFCoreFoundationVersionNumber10_9_2: f64 = 855.14;
pub const kCFCoreFoundationVersionNumber10_10: f64 = 1151.16;
pub const kCFCoreFoundationVersionNumber10_10_1: f64 = 1151.16;
pub const kCFCoreFoundationVersionNumber10_10_2: u32 = 1152;
pub const kCFCoreFoundationVersionNumber10_10_3: f64 = 1153.18;
pub const kCFCoreFoundationVersionNumber10_10_4: f64 = 1153.18;
pub const kCFCoreFoundationVersionNumber10_10_5: f64 = 1153.18;
pub const kCFCoreFoundationVersionNumber10_10_Max: u32 = 1199;
pub const kCFCoreFoundationVersionNumber10_11: u32 = 1253;
pub const kCFCoreFoundationVersionNumber10_11_1: f64 = 1255.1;
pub const kCFCoreFoundationVersionNumber10_11_2: f64 = 1256.14;
pub const kCFCoreFoundationVersionNumber10_11_3: f64 = 1256.14;
pub const kCFCoreFoundationVersionNumber10_11_4: f64 = 1258.1;
pub const kCFCoreFoundationVersionNumber10_11_Max: u32 = 1299;
pub const ISA_PTRAUTH_DISCRIMINATOR: u32 = 27361;
pub const __COREFOUNDATION_COREFOUNDATION__: u32 = 1;
pub const __COREFOUNDATION__: u32 = 1;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 2;
pub const _CACHED_RUNES: u32 = 256;
pub const _CRMASK: i32 = -256;
pub const _RUNE_MAGIC_A: &[u8; 9] = b"RuneMagA\0";
pub const _CTYPE_A: u32 = 256;
pub const _CTYPE_C: u32 = 512;
pub const _CTYPE_D: u32 = 1024;
pub const _CTYPE_G: u32 = 2048;
pub const _CTYPE_L: u32 = 4096;
pub const _CTYPE_P: u32 = 8192;
pub const _CTYPE_S: u32 = 16384;
pub const _CTYPE_U: u32 = 32768;
pub const _CTYPE_X: u32 = 65536;
pub const _CTYPE_B: u32 = 131072;
pub const _CTYPE_R: u32 = 262144;
pub const _CTYPE_I: u32 = 524288;
pub const _CTYPE_T: u32 = 1048576;
pub const _CTYPE_Q: u32 = 2097152;
pub const _CTYPE_SW0: u32 = 536870912;
pub const _CTYPE_SW1: u32 = 1073741824;
pub const _CTYPE_SW2: u32 = 2147483648;
pub const _CTYPE_SW3: u32 = 3221225472;
pub const _CTYPE_SWM: u32 = 3758096384;
pub const _CTYPE_SWS: u32 = 30;
pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
pub const ESRCH: u32 = 3;
pub const EINTR: u32 = 4;
pub const EIO: u32 = 5;
pub const ENXIO: u32 = 6;
pub const E2BIG: u32 = 7;
pub const ENOEXEC: u32 = 8;
pub const EBADF: u32 = 9;
pub const ECHILD: u32 = 10;
pub const EDEADLK: u32 = 11;
pub const ENOMEM: u32 = 12;
pub const EACCES: u32 = 13;
pub const EFAULT: u32 = 14;
pub const ENOTBLK: u32 = 15;
pub const EBUSY: u32 = 16;
pub const EEXIST: u32 = 17;
pub const EXDEV: u32 = 18;
pub const ENODEV: u32 = 19;
pub const ENOTDIR: u32 = 20;
pub const EISDIR: u32 = 21;
pub const EINVAL: u32 = 22;
pub const ENFILE: u32 = 23;
pub const EMFILE: u32 = 24;
pub const ENOTTY: u32 = 25;
pub const ETXTBSY: u32 = 26;
pub const EFBIG: u32 = 27;
pub const ENOSPC: u32 = 28;
pub const ESPIPE: u32 = 29;
pub const EROFS: u32 = 30;
pub const EMLINK: u32 = 31;
pub const EPIPE: u32 = 32;
pub const EDOM: u32 = 33;
pub const ERANGE: u32 = 34;
pub const EAGAIN: u32 = 35;
pub const EWOULDBLOCK: u32 = 35;
pub const EINPROGRESS: u32 = 36;
pub const EALREADY: u32 = 37;
pub const ENOTSOCK: u32 = 38;
pub const EDESTADDRREQ: u32 = 39;
pub const EMSGSIZE: u32 = 40;
pub const EPROTOTYPE: u32 = 41;
pub const ENOPROTOOPT: u32 = 42;
pub const EPROTONOSUPPORT: u32 = 43;
pub const ESOCKTNOSUPPORT: u32 = 44;
pub const ENOTSUP: u32 = 45;
pub const EPFNOSUPPORT: u32 = 46;
pub const EAFNOSUPPORT: u32 = 47;
pub const EADDRINUSE: u32 = 48;
pub const EADDRNOTAVAIL: u32 = 49;
pub const ENETDOWN: u32 = 50;
pub const ENETUNREACH: u32 = 51;
pub const ENETRESET: u32 = 52;
pub const ECONNABORTED: u32 = 53;
pub const ECONNRESET: u32 = 54;
pub const ENOBUFS: u32 = 55;
pub const EISCONN: u32 = 56;
pub const ENOTCONN: u32 = 57;
pub const ESHUTDOWN: u32 = 58;
pub const ETOOMANYREFS: u32 = 59;
pub const ETIMEDOUT: u32 = 60;
pub const ECONNREFUSED: u32 = 61;
pub const ELOOP: u32 = 62;
pub const ENAMETOOLONG: u32 = 63;
pub const EHOSTDOWN: u32 = 64;
pub const EHOSTUNREACH: u32 = 65;
pub const ENOTEMPTY: u32 = 66;
pub const EPROCLIM: u32 = 67;
pub const EUSERS: u32 = 68;
pub const EDQUOT: u32 = 69;
pub const ESTALE: u32 = 70;
pub const EREMOTE: u32 = 71;
pub const EBADRPC: u32 = 72;
pub const ERPCMISMATCH: u32 = 73;
pub const EPROGUNAVAIL: u32 = 74;
pub const EPROGMISMATCH: u32 = 75;
pub const EPROCUNAVAIL: u32 = 76;
pub const ENOLCK: u32 = 77;
pub const ENOSYS: u32 = 78;
pub const EFTYPE: u32 = 79;
pub const EAUTH: u32 = 80;
pub const ENEEDAUTH: u32 = 81;
pub const EPWROFF: u32 = 82;
pub const EDEVERR: u32 = 83;
pub const EOVERFLOW: u32 = 84;
pub const EBADEXEC: u32 = 85;
pub const EBADARCH: u32 = 86;
pub const ESHLIBVERS: u32 = 87;
pub const EBADMACHO: u32 = 88;
pub const ECANCELED: u32 = 89;
pub const EIDRM: u32 = 90;
pub const ENOMSG: u32 = 91;
pub const EILSEQ: u32 = 92;
pub const ENOATTR: u32 = 93;
pub const EBADMSG: u32 = 94;
pub const EMULTIHOP: u32 = 95;
pub const ENODATA: u32 = 96;
pub const ENOLINK: u32 = 97;
pub const ENOSR: u32 = 98;
pub const ENOSTR: u32 = 99;
pub const EPROTO: u32 = 100;
pub const ETIME: u32 = 101;
pub const EOPNOTSUPP: u32 = 102;
pub const ENOPOLICY: u32 = 103;
pub const ENOTRECOVERABLE: u32 = 104;
pub const EOWNERDEAD: u32 = 105;
pub const EQFULL: u32 = 106;
pub const ELAST: u32 = 106;
pub const FLT_HAS_SUBNORM: u32 = 1;
pub const DBL_HAS_SUBNORM: u32 = 1;
pub const LDBL_HAS_SUBNORM: u32 = 1;
pub const __DARWIN_CLK_TCK: u32 = 100;
pub const MB_LEN_MAX: u32 = 6;
pub const CLK_TCK: u32 = 100;
pub const CHAR_BIT: u32 = 8;
pub const SCHAR_MAX: u32 = 127;
pub const SCHAR_MIN: i32 = -128;
pub const UCHAR_MAX: u32 = 255;
pub const CHAR_MAX: u32 = 127;
pub const CHAR_MIN: i32 = -128;
pub const USHRT_MAX: u32 = 65535;
pub const SHRT_MAX: u32 = 32767;
pub const SHRT_MIN: i32 = -32768;
pub const UINT_MAX: u32 = 4294967295;
pub const INT_MAX: u32 = 2147483647;
pub const INT_MIN: i32 = -2147483648;
pub const ULONG_MAX: i32 = -1;
pub const LONG_MAX: u64 = 9223372036854775807;
pub const LONG_MIN: i64 = -9223372036854775808;
pub const ULLONG_MAX: i32 = -1;
pub const LLONG_MAX: u64 = 9223372036854775807;
pub const LLONG_MIN: i64 = -9223372036854775808;
pub const LONG_BIT: u32 = 64;
pub const SSIZE_MAX: u64 = 9223372036854775807;
pub const WORD_BIT: u32 = 32;
pub const SIZE_T_MAX: i32 = -1;
pub const UQUAD_MAX: i32 = -1;
pub const QUAD_MAX: u64 = 9223372036854775807;
pub const QUAD_MIN: i64 = -9223372036854775808;
pub const ARG_MAX: u32 = 1048576;
pub const CHILD_MAX: u32 = 266;
pub const GID_MAX: u32 = 2147483647;
pub const LINK_MAX: u32 = 32767;
pub const MAX_CANON: u32 = 1024;
pub const MAX_INPUT: u32 = 1024;
pub const NAME_MAX: u32 = 255;
pub const NGROUPS_MAX: u32 = 16;
pub const UID_MAX: u32 = 2147483647;
pub const OPEN_MAX: u32 = 10240;
pub const PATH_MAX: u32 = 1024;
pub const PIPE_BUF: u32 = 512;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const CHARCLASS_NAME_MAX: u32 = 14;
pub const COLL_WEIGHTS_MAX: u32 = 2;
pub const EQUIV_CLASS_MAX: u32 = 2;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 255;
pub const NZERO: u32 = 20;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
pub const _POSIX_NAME_MAX: u32 = 14;
pub const _POSIX_NGROUPS_MAX: u32 = 8;
pub const _POSIX_OPEN_MAX: u32 = 20;
pub const _POSIX_PATH_MAX: u32 = 256;
pub const _POSIX_PIPE_BUF: u32 = 512;
pub const _POSIX_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_TZNAME_MAX: u32 = 6;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_EQUIV_CLASS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
pub const _POSIX_RTSIG_MAX: u32 = 8;
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_KEYS_MAX: u32 = 512;
pub const PTHREAD_STACK_MIN: u32 = 8192;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_SS_REPL_MAX: u32 = 4;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30;
pub const _POSIX_TRACE_NAME_MAX: u32 = 8;
pub const _POSIX_TRACE_SYS_MAX: u32 = 8;
pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const OFF_MIN: i64 = -9223372036854775808;
pub const OFF_MAX: u64 = 9223372036854775807;
pub const PASS_MAX: u32 = 128;
pub const NL_ARGMAX: u32 = 9;
pub const NL_LANGMAX: u32 = 14;
pub const NL_MSGMAX: u32 = 32767;
pub const NL_NMAX: u32 = 1;
pub const NL_SETMAX: u32 = 255;
pub const NL_TEXTMAX: u32 = 2048;
pub const _XOPEN_IOV_MAX: u32 = 16;
pub const IOV_MAX: u32 = 1024;
pub const _XOPEN_NAME_MAX: u32 = 255;
pub const _XOPEN_PATH_MAX: u32 = 1024;
pub const LC_ALL: u32 = 0;
pub const LC_COLLATE: u32 = 1;
pub const LC_CTYPE: u32 = 2;
pub const LC_MONETARY: u32 = 3;
pub const LC_NUMERIC: u32 = 4;
pub const LC_TIME: u32 = 5;
pub const LC_MESSAGES: u32 = 6;
pub const _LC_LAST: u32 = 7;
pub const FP_NAN: u32 = 1;
pub const FP_INFINITE: u32 = 2;
pub const FP_ZERO: u32 = 3;
pub const FP_NORMAL: u32 = 4;
pub const FP_SUBNORMAL: u32 = 5;
pub const FP_SUPERNORMAL: u32 = 6;
pub const FP_ILOGB0: i32 = -2147483648;
pub const FP_ILOGBNAN: i32 = -2147483648;
pub const MATH_ERRNO: u32 = 1;
pub const MATH_ERREXCEPT: u32 = 2;
pub const M_E: f64 = 2.718281828459045;
pub const M_LOG2E: f64 = 1.4426950408889634;
pub const M_LOG10E: f64 = 0.4342944819032518;
pub const M_LN2: f64 = 0.6931471805599453;
pub const M_LN10: f64 = 2.302585092994046;
pub const M_PI: f64 = 3.141592653589793;
pub const M_PI_2: f64 = 1.5707963267948966;
pub const M_PI_4: f64 = 0.7853981633974483;
pub const M_1_PI: f64 = 0.3183098861837907;
pub const M_2_PI: f64 = 0.6366197723675814;
pub const M_2_SQRTPI: f64 = 1.1283791670955126;
pub const M_SQRT2: f64 = 1.4142135623730951;
pub const M_SQRT1_2: f64 = 0.7071067811865476;
pub const FP_SNAN: u32 = 1;
pub const FP_QNAN: u32 = 1;
pub const DOMAIN: u32 = 1;
pub const SING: u32 = 2;
pub const OVERFLOW: u32 = 3;
pub const UNDERFLOW: u32 = 4;
pub const TLOSS: u32 = 5;
pub const PLOSS: u32 = 6;
pub const _JBLEN: u32 = 37;
pub const __DARWIN_NSIG: u32 = 32;
pub const NSIG: u32 = 32;
pub const _I386_SIGNAL_H_: u32 = 1;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGEMT: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGIO: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGINFO: u32 = 29;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const FP_PREC_24B: u32 = 0;
pub const FP_PREC_53B: u32 = 2;
pub const FP_PREC_64B: u32 = 3;
pub const FP_RND_NEAR: u32 = 0;
pub const FP_RND_DOWN: u32 = 1;
pub const FP_RND_UP: u32 = 2;
pub const FP_CHOP: u32 = 3;
pub const FP_STATE_BYTES: u32 = 512;
pub const _X86_INSTRUCTION_STATE_MAX_INSN_BYTES: u32 = 2380;
pub const _X86_INSTRUCTION_STATE_CACHELINE_SIZE: u32 = 64;
pub const __LASTBRANCH_MAX: u32 = 32;
pub const SIGEV_NONE: u32 = 0;
pub const SIGEV_SIGNAL: u32 = 1;
pub const SIGEV_THREAD: u32 = 3;
pub const ILL_NOOP: u32 = 0;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLTRP: u32 = 2;
pub const ILL_PRVOPC: u32 = 3;
pub const ILL_ILLOPN: u32 = 4;
pub const ILL_ILLADR: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const FPE_NOOP: u32 = 0;
pub const FPE_FLTDIV: u32 = 1;
pub const FPE_FLTOVF: u32 = 2;
pub const FPE_FLTUND: u32 = 3;
pub const FPE_FLTRES: u32 = 4;
pub const FPE_FLTINV: u32 = 5;
pub const FPE_FLTSUB: u32 = 6;
pub const FPE_INTDIV: u32 = 7;
pub const FPE_INTOVF: u32 = 8;
pub const SEGV_NOOP: u32 = 0;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const BUS_NOOP: u32 = 0;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const CLD_NOOP: u32 = 0;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SA_ONSTACK: u32 = 1;
pub const SA_RESTART: u32 = 2;
pub const SA_RESETHAND: u32 = 4;
pub const SA_NOCLDSTOP: u32 = 8;
pub const SA_NODEFER: u32 = 16;
pub const SA_NOCLDWAIT: u32 = 32;
pub const SA_SIGINFO: u32 = 64;
pub const SA_USERTRAMP: u32 = 256;
pub const SA_64REGSET: u32 = 512;
pub const SA_USERSPACE_MASK: u32 = 127;
pub const SIG_BLOCK: u32 = 1;
pub const SIG_UNBLOCK: u32 = 2;
pub const SIG_SETMASK: u32 = 3;
pub const SI_USER: u32 = 65537;
pub const SI_QUEUE: u32 = 65538;
pub const SI_TIMER: u32 = 65539;
pub const SI_ASYNCIO: u32 = 65540;
pub const SI_MESGQ: u32 = 65541;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 4;
pub const MINSIGSTKSZ: u32 = 32768;
pub const SIGSTKSZ: u32 = 131072;
pub const SV_ONSTACK: u32 = 1;
pub const SV_INTERRUPT: u32 = 2;
pub const SV_RESETHAND: u32 = 4;
pub const SV_NODEFER: u32 = 16;
pub const SV_NOCLDSTOP: u32 = 8;
pub const SV_SIGINFO: u32 = 64;
pub const RENAME_SECLUDE: u32 = 1;
pub const RENAME_SWAP: u32 = 2;
pub const RENAME_EXCL: u32 = 4;
pub const RENAME_RESERVED1: u32 = 8;
pub const RENAME_NOFOLLOW_ANY: u32 = 16;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const SEEK_HOLE: u32 = 3;
pub const SEEK_DATA: u32 = 4;
pub const __SLBF: u32 = 1;
pub const __SNBF: u32 = 2;
pub const __SRD: u32 = 4;
pub const __SWR: u32 = 8;
pub const __SRW: u32 = 16;
pub const __SEOF: u32 = 32;
pub const __SERR: u32 = 64;
pub const __SMBF: u32 = 128;
pub const __SAPP: u32 = 256;
pub const __SSTR: u32 = 512;
pub const __SOPT: u32 = 1024;
pub const __SNPT: u32 = 2048;
pub const __SOFF: u32 = 4096;
pub const __SMOD: u32 = 8192;
pub const __SALC: u32 = 16384;
pub const __SIGN: u32 = 32768;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 1024;
pub const EOF: i32 = -1;
pub const FOPEN_MAX: u32 = 20;
pub const FILENAME_MAX: u32 = 1024;
pub const P_tmpdir: &[u8; 10] = b"/var/tmp/\0";
pub const L_tmpnam: u32 = 1024;
pub const TMP_MAX: u32 = 308915776;
pub const L_ctermid: u32 = 1024;
pub const _USE_FORTIFY_LEVEL: u32 = 2;
pub const PRIO_PROCESS: u32 = 0;
pub const PRIO_PGRP: u32 = 1;
pub const PRIO_USER: u32 = 2;
pub const PRIO_DARWIN_THREAD: u32 = 3;
pub const PRIO_DARWIN_PROCESS: u32 = 4;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: u32 = 20;
pub const PRIO_DARWIN_BG: u32 = 4096;
pub const PRIO_DARWIN_NONUI: u32 = 4097;
pub const RUSAGE_SELF: u32 = 0;
pub const RUSAGE_CHILDREN: i32 = -1;
pub const RUSAGE_INFO_V0: u32 = 0;
pub const RUSAGE_INFO_V1: u32 = 1;
pub const RUSAGE_INFO_V2: u32 = 2;
pub const RUSAGE_INFO_V3: u32 = 3;
pub const RUSAGE_INFO_V4: u32 = 4;
pub const RUSAGE_INFO_V5: u32 = 5;
pub const RUSAGE_INFO_V6: u32 = 6;
pub const RUSAGE_INFO_CURRENT: u32 = 6;
pub const RU_PROC_RUNS_RESLIDE: u32 = 1;
pub const RLIMIT_CPU: u32 = 0;
pub const RLIMIT_FSIZE: u32 = 1;
pub const RLIMIT_DATA: u32 = 2;
pub const RLIMIT_STACK: u32 = 3;
pub const RLIMIT_CORE: u32 = 4;
pub const RLIMIT_AS: u32 = 5;
pub const RLIMIT_RSS: u32 = 5;
pub const RLIMIT_MEMLOCK: u32 = 6;
pub const RLIMIT_NPROC: u32 = 7;
pub const RLIMIT_NOFILE: u32 = 8;
pub const RLIM_NLIMITS: u32 = 9;
pub const _RLIMIT_POSIX_FLAG: u32 = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2;
pub const RLIMIT_THREAD_CPULIMITS: u32 = 3;
pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4;
pub const WAKEMON_ENABLE: u32 = 1;
pub const WAKEMON_DISABLE: u32 = 2;
pub const WAKEMON_GET_PARAMS: u32 = 4;
pub const WAKEMON_SET_DEFAULTS: u32 = 8;
pub const WAKEMON_MAKE_FATAL: u32 = 16;
pub const CPUMON_MAKE_FATAL: u32 = 4096;
pub const FOOTPRINT_INTERVAL_RESET: u32 = 1;
pub const IOPOL_TYPE_DISK: u32 = 0;
pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2;
pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3;
pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4;
pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5;
pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6;
pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7;
pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8;
pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9;
pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10;
pub const IOPOL_SCOPE_PROCESS: u32 = 0;
pub const IOPOL_SCOPE_THREAD: u32 = 1;
pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2;
pub const IOPOL_DEFAULT: u32 = 0;
pub const IOPOL_IMPORTANT: u32 = 1;
pub const IOPOL_PASSIVE: u32 = 2;
pub const IOPOL_THROTTLE: u32 = 3;
pub const IOPOL_UTILITY: u32 = 4;
pub const IOPOL_STANDARD: u32 = 5;
pub const IOPOL_APPLICATION: u32 = 5;
pub const IOPOL_NORMAL: u32 = 1;
pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0;
pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2;
pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0;
pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1;
pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1;
pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0;
pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WCOREFLAG: u32 = 128;
pub const _WSTOPPED: u32 = 127;
pub const WEXITED: u32 = 4;
pub const WSTOPPED: u32 = 8;
pub const WCONTINUED: u32 = 16;
pub const WNOWAIT: u32 = 32;
pub const WAIT_ANY: i32 = -1;
pub const WAIT_MYPGRP: u32 = 0;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub const __HAS_FIXED_CHK_PROTOTYPES: u32 = 1;
pub const TIME_UTC: u32 = 1;
pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3] = b"hh\0";
pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const PRId8: &[u8; 4] = b"hhd\0";
pub const PRIi8: &[u8; 4] = b"hhi\0";
pub const PRIo8: &[u8; 4] = b"hho\0";
pub const PRIu8: &[u8; 4] = b"hhu\0";
pub const PRIx8: &[u8; 4] = b"hhx\0";
pub const PRIX8: &[u8; 4] = b"hhX\0";
pub const PRId16: &[u8; 3] = b"hd\0";
pub const PRIi16: &[u8; 3] = b"hi\0";
pub const PRIo16: &[u8; 3] = b"ho\0";
pub const PRIu16: &[u8; 3] = b"hu\0";
pub const PRIx16: &[u8; 3] = b"hx\0";
pub const PRIX16: &[u8; 3] = b"hX\0";
pub const PRId32: &[u8; 2] = b"d\0";
pub const PRIi32: &[u8; 2] = b"i\0";
pub const PRIo32: &[u8; 2] = b"o\0";
pub const PRIu32: &[u8; 2] = b"u\0";
pub const PRIx32: &[u8; 2] = b"x\0";
pub const PRIX32: &[u8; 2] = b"X\0";
pub const PRId64: &[u8; 4] = b"lld\0";
pub const PRIi64: &[u8; 4] = b"lli\0";
pub const PRIo64: &[u8; 4] = b"llo\0";
pub const PRIu64: &[u8; 4] = b"llu\0";
pub const PRIx64: &[u8; 4] = b"llx\0";
pub const PRIX64: &[u8; 4] = b"llX\0";
pub const PRIdLEAST8: &[u8; 4] = b"hhd\0";
pub const PRIiLEAST8: &[u8; 4] = b"hhi\0";
pub const PRIoLEAST8: &[u8; 4] = b"hho\0";
pub const PRIuLEAST8: &[u8; 4] = b"hhu\0";
pub const PRIxLEAST8: &[u8; 4] = b"hhx\0";
pub const PRIXLEAST8: &[u8; 4] = b"hhX\0";
pub const PRIdLEAST16: &[u8; 3] = b"hd\0";
pub const PRIiLEAST16: &[u8; 3] = b"hi\0";
pub const PRIoLEAST16: &[u8; 3] = b"ho\0";
pub const PRIuLEAST16: &[u8; 3] = b"hu\0";
pub const PRIxLEAST16: &[u8; 3] = b"hx\0";
pub const PRIXLEAST16: &[u8; 3] = b"hX\0";
pub const PRIdLEAST32: &[u8; 2] = b"d\0";
pub const PRIiLEAST32: &[u8; 2] = b"i\0";
pub const PRIoLEAST32: &[u8; 2] = b"o\0";
pub const PRIuLEAST32: &[u8; 2] = b"u\0";
pub const PRIxLEAST32: &[u8; 2] = b"x\0";
pub const PRIXLEAST32: &[u8; 2] = b"X\0";
pub const PRIdLEAST64: &[u8; 4] = b"lld\0";
pub const PRIiLEAST64: &[u8; 4] = b"lli\0";
pub const PRIoLEAST64: &[u8; 4] = b"llo\0";
pub const PRIuLEAST64: &[u8; 4] = b"llu\0";
pub const PRIxLEAST64: &[u8; 4] = b"llx\0";
pub const PRIXLEAST64: &[u8; 4] = b"llX\0";
pub const PRIdFAST8: &[u8; 4] = b"hhd\0";
pub const PRIiFAST8: &[u8; 4] = b"hhi\0";
pub const PRIoFAST8: &[u8; 4] = b"hho\0";
pub const PRIuFAST8: &[u8; 4] = b"hhu\0";
pub const PRIxFAST8: &[u8; 4] = b"hhx\0";
pub const PRIXFAST8: &[u8; 4] = b"hhX\0";
pub const PRIdFAST16: &[u8; 3] = b"hd\0";
pub const PRIiFAST16: &[u8; 3] = b"hi\0";
pub const PRIoFAST16: &[u8; 3] = b"ho\0";
pub const PRIuFAST16: &[u8; 3] = b"hu\0";
pub const PRIxFAST16: &[u8; 3] = b"hx\0";
pub const PRIXFAST16: &[u8; 3] = b"hX\0";
pub const PRIdFAST32: &[u8; 2] = b"d\0";
pub const PRIiFAST32: &[u8; 2] = b"i\0";
pub const PRIoFAST32: &[u8; 2] = b"o\0";
pub const PRIuFAST32: &[u8; 2] = b"u\0";
pub const PRIxFAST32: &[u8; 2] = b"x\0";
pub const PRIXFAST32: &[u8; 2] = b"X\0";
pub const PRIdFAST64: &[u8; 4] = b"lld\0";
pub const PRIiFAST64: &[u8; 4] = b"lli\0";
pub const PRIoFAST64: &[u8; 4] = b"llo\0";
pub const PRIuFAST64: &[u8; 4] = b"llu\0";
pub const PRIxFAST64: &[u8; 4] = b"llx\0";
pub const PRIXFAST64: &[u8; 4] = b"llX\0";
pub const PRIdPTR: &[u8; 3] = b"ld\0";
pub const PRIiPTR: &[u8; 3] = b"li\0";
pub const PRIoPTR: &[u8; 3] = b"lo\0";
pub const PRIuPTR: &[u8; 3] = b"lu\0";
pub const PRIxPTR: &[u8; 3] = b"lx\0";
pub const PRIXPTR: &[u8; 3] = b"lX\0";
pub const PRIdMAX: &[u8; 3] = b"jd\0";
pub const PRIiMAX: &[u8; 3] = b"ji\0";
pub const PRIoMAX: &[u8; 3] = b"jo\0";
pub const PRIuMAX: &[u8; 3] = b"ju\0";
pub const PRIxMAX: &[u8; 3] = b"jx\0";
pub const PRIXMAX: &[u8; 3] = b"jX\0";
pub const SCNd8: &[u8; 4] = b"hhd\0";
pub const SCNi8: &[u8; 4] = b"hhi\0";
pub const SCNo8: &[u8; 4] = b"hho\0";
pub const SCNu8: &[u8; 4] = b"hhu\0";
pub const SCNx8: &[u8; 4] = b"hhx\0";
pub const SCNd16: &[u8; 3] = b"hd\0";
pub const SCNi16: &[u8; 3] = b"hi\0";
pub const SCNo16: &[u8; 3] = b"ho\0";
pub const SCNu16: &[u8; 3] = b"hu\0";
pub const SCNx16: &[u8; 3] = b"hx\0";
pub const SCNd32: &[u8; 2] = b"d\0";
pub const SCNi32: &[u8; 2] = b"i\0";
pub const SCNo32: &[u8; 2] = b"o\0";
pub const SCNu32: &[u8; 2] = b"u\0";
pub const SCNx32: &[u8; 2] = b"x\0";
pub const SCNd64: &[u8; 4] = b"lld\0";
pub const SCNi64: &[u8; 4] = b"lli\0";
pub const SCNo64: &[u8; 4] = b"llo\0";
pub const SCNu64: &[u8; 4] = b"llu\0";
pub const SCNx64: &[u8; 4] = b"llx\0";
pub const SCNdLEAST8: &[u8; 4] = b"hhd\0";
pub const SCNiLEAST8: &[u8; 4] = b"hhi\0";
pub const SCNoLEAST8: &[u8; 4] = b"hho\0";
pub const SCNuLEAST8: &[u8; 4] = b"hhu\0";
pub const SCNxLEAST8: &[u8; 4] = b"hhx\0";
pub const SCNdLEAST16: &[u8; 3] = b"hd\0";
pub const SCNiLEAST16: &[u8; 3] = b"hi\0";
pub const SCNoLEAST16: &[u8; 3] = b"ho\0";
pub const SCNuLEAST16: &[u8; 3] = b"hu\0";
pub const SCNxLEAST16: &[u8; 3] = b"hx\0";
pub const SCNdLEAST32: &[u8; 2] = b"d\0";
pub const SCNiLEAST32: &[u8; 2] = b"i\0";
pub const SCNoLEAST32: &[u8; 2] = b"o\0";
pub const SCNuLEAST32: &[u8; 2] = b"u\0";
pub const SCNxLEAST32: &[u8; 2] = b"x\0";
pub const SCNdLEAST64: &[u8; 4] = b"lld\0";
pub const SCNiLEAST64: &[u8; 4] = b"lli\0";
pub const SCNoLEAST64: &[u8; 4] = b"llo\0";
pub const SCNuLEAST64: &[u8; 4] = b"llu\0";
pub const SCNxLEAST64: &[u8; 4] = b"llx\0";
pub const SCNdFAST8: &[u8; 4] = b"hhd\0";
pub const SCNiFAST8: &[u8; 4] = b"hhi\0";
pub const SCNoFAST8: &[u8; 4] = b"hho\0";
pub const SCNuFAST8: &[u8; 4] = b"hhu\0";
pub const SCNxFAST8: &[u8; 4] = b"hhx\0";
pub const SCNdFAST16: &[u8; 3] = b"hd\0";
pub const SCNiFAST16: &[u8; 3] = b"hi\0";
pub const SCNoFAST16: &[u8; 3] = b"ho\0";
pub const SCNuFAST16: &[u8; 3] = b"hu\0";
pub const SCNxFAST16: &[u8; 3] = b"hx\0";
pub const SCNdFAST32: &[u8; 2] = b"d\0";
pub const SCNiFAST32: &[u8; 2] = b"i\0";
pub const SCNoFAST32: &[u8; 2] = b"o\0";
pub const SCNuFAST32: &[u8; 2] = b"u\0";
pub const SCNxFAST32: &[u8; 2] = b"x\0";
pub const SCNdFAST64: &[u8; 4] = b"lld\0";
pub const SCNiFAST64: &[u8; 4] = b"lli\0";
pub const SCNoFAST64: &[u8; 4] = b"llo\0";
pub const SCNuFAST64: &[u8; 4] = b"llu\0";
pub const SCNxFAST64: &[u8; 4] = b"llx\0";
pub const SCNdPTR: &[u8; 3] = b"ld\0";
pub const SCNiPTR: &[u8; 3] = b"li\0";
pub const SCNoPTR: &[u8; 3] = b"lo\0";
pub const SCNuPTR: &[u8; 3] = b"lu\0";
pub const SCNxPTR: &[u8; 3] = b"lx\0";
pub const SCNdMAX: &[u8; 3] = b"jd\0";
pub const SCNiMAX: &[u8; 3] = b"ji\0";
pub const SCNoMAX: &[u8; 3] = b"jo\0";
pub const SCNuMAX: &[u8; 3] = b"ju\0";
pub const SCNxMAX: &[u8; 3] = b"jx\0";
pub const __COREFOUNDATION_CFARRAY__: u32 = 1;
pub const __COREFOUNDATION_CFBAG__: u32 = 1;
pub const __COREFOUNDATION_CFBINARYHEAP__: u32 = 1;
pub const __COREFOUNDATION_CFBITVECTOR__: u32 = 1;
pub const __COREFOUNDATION_CFBYTEORDER__: u32 = 1;
pub const CF_USE_OSBYTEORDER_H: u32 = 1;
pub const __COREFOUNDATION_CFCALENDAR__: u32 = 1;
pub const __COREFOUNDATION_CFLOCALE__: u32 = 1;
pub const __COREFOUNDATION_CFDICTIONARY__: u32 = 1;
pub const __COREFOUNDATION_CFNOTIFICATIONCENTER__: u32 = 1;
pub const __COREFOUNDATION_CFDATE__: u32 = 1;
pub const __COREFOUNDATION_CFTIMEZONE__: u32 = 1;
pub const __COREFOUNDATION_CFDATA__: u32 = 1;
pub const __COREFOUNDATION_CFSTRING__: u32 = 1;
pub const __COREFOUNDATION_CFCHARACTERSET__: u32 = 1;
pub const __COREFOUNDATION_CFERROR__: u32 = 1;
pub const kCFStringEncodingInvalidId: u32 = 4294967295;
pub const __kCFStringInlineBufferLength: u32 = 64;
pub const __COREFOUNDATION_CFCGTYPES__: u32 = 1;
pub const CGFLOAT_IS_DOUBLE: u32 = 1;
pub const CGFLOAT_DEFINED: u32 = 1;
pub const CGVECTOR_DEFINED: u32 = 1;
pub const __COREFOUNDATION_CFDATEFORMATTER__: u32 = 1;
pub const __COREFOUNDATION_CFNUMBER__: u32 = 1;
pub const __COREFOUNDATION_CFNUMBERFORMATTER__: u32 = 1;
pub const __COREFOUNDATION_CFPREFERENCES__: u32 = 1;
pub const __COREFOUNDATION_CFPROPERTYLIST__: u32 = 1;
pub const __COREFOUNDATION_CFSTREAM__: u32 = 1;
pub const __COREFOUNDATION_CFURL__: u32 = 1;
pub const __COREFOUNDATION_CFRUNLOOP__: u32 = 1;
pub const MACH_PORT_NULL: u32 = 0;
pub const MACH_PORT_TYPE_DNREQUEST: u32 = 2147483648;
pub const MACH_PORT_TYPE_SPREQUEST: u32 = 1073741824;
pub const MACH_PORT_TYPE_SPREQUEST_DELAYED: u32 = 536870912;
pub const MACH_PORT_SRIGHTS_NONE: u32 = 0;
pub const MACH_PORT_SRIGHTS_PRESENT: u32 = 1;
pub const MACH_PORT_QLIMIT_ZERO: u32 = 0;
pub const MACH_PORT_QLIMIT_BASIC: u32 = 5;
pub const MACH_PORT_QLIMIT_SMALL: u32 = 16;
pub const MACH_PORT_QLIMIT_LARGE: u32 = 1024;
pub const MACH_PORT_QLIMIT_KERNEL: u32 = 65534;
pub const MACH_PORT_QLIMIT_MIN: u32 = 0;
pub const MACH_PORT_QLIMIT_DEFAULT: u32 = 5;
pub const MACH_PORT_QLIMIT_MAX: u32 = 1024;
pub const MACH_PORT_STATUS_FLAG_TEMPOWNER: u32 = 1;
pub const MACH_PORT_STATUS_FLAG_GUARDED: u32 = 2;
pub const MACH_PORT_STATUS_FLAG_STRICT_GUARD: u32 = 4;
pub const MACH_PORT_STATUS_FLAG_IMP_DONATION: u32 = 8;
pub const MACH_PORT_STATUS_FLAG_REVIVE: u32 = 16;
pub const MACH_PORT_STATUS_FLAG_TASKPTR: u32 = 32;
pub const MACH_PORT_STATUS_FLAG_GUARD_IMMOVABLE_RECEIVE: u32 = 64;
pub const MACH_PORT_STATUS_FLAG_NO_GRANT: u32 = 128;
pub const MACH_PORT_LIMITS_INFO: u32 = 1;
pub const MACH_PORT_RECEIVE_STATUS: u32 = 2;
pub const MACH_PORT_DNREQUESTS_SIZE: u32 = 3;
pub const MACH_PORT_TEMPOWNER: u32 = 4;
pub const MACH_PORT_IMPORTANCE_RECEIVER: u32 = 5;
pub const MACH_PORT_DENAP_RECEIVER: u32 = 6;
pub const MACH_PORT_INFO_EXT: u32 = 7;
pub const MACH_PORT_GUARD_INFO: u32 = 8;
pub const MACH_PORT_SERVICE_THROTTLED: u32 = 9;
pub const MACH_PORT_DNREQUESTS_SIZE_COUNT: u32 = 1;
pub const MACH_PORT_SERVICE_THROTTLED_COUNT: u32 = 1;
pub const MACH_SERVICE_PORT_INFO_STRING_NAME_MAX_BUF_LEN: u32 = 255;
pub const MPO_CONTEXT_AS_GUARD: u32 = 1;
pub const MPO_QLIMIT: u32 = 2;
pub const MPO_TEMPOWNER: u32 = 4;
pub const MPO_IMPORTANCE_RECEIVER: u32 = 8;
pub const MPO_INSERT_SEND_RIGHT: u32 = 16;
pub const MPO_STRICT: u32 = 32;
pub const MPO_DENAP_RECEIVER: u32 = 64;
pub const MPO_IMMOVABLE_RECEIVE: u32 = 128;
pub const MPO_FILTER_MSG: u32 = 256;
pub const MPO_TG_BLOCK_TRACKING: u32 = 512;
pub const MPO_SERVICE_PORT: u32 = 1024;
pub const MPO_CONNECTION_PORT: u32 = 2048;
pub const MPO_REPLY_PORT: u32 = 4096;
pub const MPO_ENFORCE_REPLY_PORT_SEMANTICS: u32 = 8192;
pub const MPO_PROVISIONAL_REPLY_PORT: u32 = 16384;
pub const MPO_PROVISIONAL_ID_PROT_OPTOUT: u32 = 32768;
pub const GUARD_TYPE_MACH_PORT: u32 = 1;
pub const MAX_FATAL_kGUARD_EXC_CODE: u32 = 128;
pub const MPG_FLAGS_NONE: u32 = 0;
pub const MAX_OPTIONAL_kGUARD_EXC_CODE: u32 = 524288;
pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_DISP: u64 = 72057594037927936;
pub const MPG_FLAGS_STRICT_REPLY_INVALID_REPLY_PORT: u64 = 144115188075855872;
pub const MPG_FLAGS_STRICT_REPLY_INVALID_VOUCHER: u64 = 288230376151711744;
pub const MPG_FLAGS_STRICT_REPLY_NO_BANK_ATTR: u64 = 576460752303423488;
pub const MPG_FLAGS_STRICT_REPLY_MISMATCHED_PERSONA: u64 = 1152921504606846976;
pub const MPG_FLAGS_STRICT_REPLY_MASK: i64 = -72057594037927936;
pub const MPG_FLAGS_MOD_REFS_PINNED_DEALLOC: u64 = 72057594037927936;
pub const MPG_FLAGS_MOD_REFS_PINNED_DESTROY: u64 = 144115188075855872;
pub const MPG_FLAGS_MOD_REFS_PINNED_COPYIN: u64 = 288230376151711744;
pub const MPG_FLAGS_IMMOVABLE_PINNED: u64 = 72057594037927936;
pub const MPG_STRICT: u32 = 1;
pub const MPG_IMMOVABLE_RECEIVE: u32 = 2;
pub const __COREFOUNDATION_CFSOCKET__: u32 = 1;
pub const _POSIX_VERSION: u32 = 200112;
pub const _POSIX2_VERSION: u32 = 200112;
pub const F_OK: u32 = 0;
pub const X_OK: u32 = 1;
pub const W_OK: u32 = 2;
pub const R_OK: u32 = 4;
pub const _READ_OK: u32 = 512;
pub const _WRITE_OK: u32 = 1024;
pub const _EXECUTE_OK: u32 = 2048;
pub const _DELETE_OK: u32 = 4096;
pub const _APPEND_OK: u32 = 8192;
pub const _RMFILE_OK: u32 = 16384;
pub const _RATTR_OK: u32 = 32768;
pub const _WATTR_OK: u32 = 65536;
pub const _REXT_OK: u32 = 131072;
pub const _WEXT_OK: u32 = 262144;
pub const _RPERM_OK: u32 = 524288;
pub const _WPERM_OK: u32 = 1048576;
pub const _CHOWN_OK: u32 = 2097152;
pub const _ACCESS_EXTENDED_MASK: u32 = 4193792;
pub const L_SET: u32 = 0;
pub const L_INCR: u32 = 1;
pub const L_XTND: u32 = 2;
pub const ACCESSX_MAX_DESCRIPTORS: u32 = 100;
pub const ACCESSX_MAX_TABLESIZE: u32 = 16384;
pub const _PC_LINK_MAX: u32 = 1;
pub const _PC_MAX_CANON: u32 = 2;
pub const _PC_MAX_INPUT: u32 = 3;
pub const _PC_NAME_MAX: u32 = 4;
pub const _PC_PATH_MAX: u32 = 5;
pub const _PC_PIPE_BUF: u32 = 6;
pub const _PC_CHOWN_RESTRICTED: u32 = 7;
pub const _PC_NO_TRUNC: u32 = 8;
pub const _PC_VDISABLE: u32 = 9;
pub const _PC_NAME_CHARS_MAX: u32 = 10;
pub const _PC_CASE_SENSITIVE: u32 = 11;
pub const _PC_CASE_PRESERVING: u32 = 12;
pub const _PC_EXTENDED_SECURITY_NP: u32 = 13;
pub const _PC_AUTH_OPAQUE_NP: u32 = 14;
pub const _PC_2_SYMLINKS: u32 = 15;
pub const _PC_ALLOC_SIZE_MIN: u32 = 16;
pub const _PC_ASYNC_IO: u32 = 17;
pub const _PC_FILESIZEBITS: u32 = 18;
pub const _PC_PRIO_IO: u32 = 19;
pub const _PC_REC_INCR_XFER_SIZE: u32 = 20;
pub const _PC_REC_MAX_XFER_SIZE: u32 = 21;
pub const _PC_REC_MIN_XFER_SIZE: u32 = 22;
pub const _PC_REC_XFER_ALIGN: u32 = 23;
pub const _PC_SYMLINK_MAX: u32 = 24;
pub const _PC_SYNC_IO: u32 = 25;
pub const _PC_XATTR_SIZE_BITS: u32 = 26;
pub const _PC_MIN_HOLE_SIZE: u32 = 27;
pub const _CS_PATH: u32 = 1;
pub const STDIN_FILENO: u32 = 0;
pub const STDOUT_FILENO: u32 = 1;
pub const STDERR_FILENO: u32 = 2;
pub const _XOPEN_VERSION: u32 = 600;
pub const _XOPEN_XCU_VERSION: u32 = 4;
pub const _POSIX_ADVISORY_INFO: i32 = -1;
pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1;
pub const _POSIX_BARRIERS: i32 = -1;
pub const _POSIX_CHOWN_RESTRICTED: u32 = 200112;
pub const _POSIX_CLOCK_SELECTION: i32 = -1;
pub const _POSIX_CPUTIME: i32 = -1;
pub const _POSIX_FSYNC: u32 = 200112;
pub const _POSIX_IPV6: u32 = 200112;
pub const _POSIX_JOB_CONTROL: u32 = 200112;
pub const _POSIX_MAPPED_FILES: u32 = 200112;
pub const _POSIX_MEMLOCK: i32 = -1;
pub const _POSIX_MEMLOCK_RANGE: i32 = -1;
pub const _POSIX_MEMORY_PROTECTION: u32 = 200112;
pub const _POSIX_MESSAGE_PASSING: i32 = -1;
pub const _POSIX_MONOTONIC_CLOCK: i32 = -1;
pub const _POSIX_NO_TRUNC: u32 = 200112;
pub const _POSIX_PRIORITIZED_IO: i32 = -1;
pub const _POSIX_PRIORITY_SCHEDULING: i32 = -1;
pub const _POSIX_RAW_SOCKETS: i32 = -1;
pub const _POSIX_READER_WRITER_LOCKS: u32 = 200112;
pub const _POSIX_REALTIME_SIGNALS: i32 = -1;
pub const _POSIX_REGEXP: u32 = 200112;
pub const _POSIX_SAVED_IDS: u32 = 200112;
pub const _POSIX_SEMAPHORES: i32 = -1;
pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1;
pub const _POSIX_SHELL: u32 = 200112;
pub const _POSIX_SPAWN: u32 = 200112;
pub const _POSIX_SPIN_LOCKS: i32 = -1;
pub const _POSIX_SPORADIC_SERVER: i32 = -1;
pub const _POSIX_SYNCHRONIZED_IO: i32 = -1;
pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200112;
pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200112;
pub const _POSIX_THREAD_CPUTIME: i32 = -1;
pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1;
pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1;
pub const _POSIX_THREAD_PRIORITY_SCHEDULING: i32 = -1;
pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200112;
pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200112;
pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1;
pub const _POSIX_THREADS: u32 = 200112;
pub const _POSIX_TIMEOUTS: i32 = -1;
pub const _POSIX_TIMERS: i32 = -1;
pub const _POSIX_TRACE: i32 = -1;
pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1;
pub const _POSIX_TRACE_INHERIT: i32 = -1;
pub const _POSIX_TRACE_LOG: i32 = -1;
pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1;
pub const _POSIX2_C_BIND: u32 = 200112;
pub const _POSIX2_C_DEV: u32 = 200112;
pub const _POSIX2_CHAR_TERM: u32 = 200112;
pub const _POSIX2_FORT_DEV: i32 = -1;
pub const _POSIX2_FORT_RUN: u32 = 200112;
pub const _POSIX2_LOCALEDEF: u32 = 200112;
pub const _POSIX2_PBS: i32 = -1;
pub const _POSIX2_PBS_ACCOUNTING: i32 = -1;
pub const _POSIX2_PBS_CHECKPOINT: i32 = -1;
pub const _POSIX2_PBS_LOCATE: i32 = -1;
pub const _POSIX2_PBS_MESSAGE: i32 = -1;
pub const _POSIX2_PBS_TRACK: i32 = -1;
pub const _POSIX2_SW_DEV: u32 = 200112;
pub const _POSIX2_UPE: u32 = 200112;
pub const __ILP32_OFF32: i32 = -1;
pub const __ILP32_OFFBIG: i32 = -1;
pub const __LP64_OFF64: u32 = 1;
pub const __LPBIG_OFFBIG: u32 = 1;
pub const _POSIX_V6_ILP32_OFF32: i32 = -1;
pub const _POSIX_V6_ILP32_OFFBIG: i32 = -1;
pub const _POSIX_V6_LP64_OFF64: u32 = 1;
pub const _POSIX_V6_LPBIG_OFFBIG: u32 = 1;
pub const _POSIX_V7_ILP32_OFF32: i32 = -1;
pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1;
pub const _POSIX_V7_LP64_OFF64: u32 = 1;
pub const _POSIX_V7_LPBIG_OFFBIG: u32 = 1;
pub const _V6_ILP32_OFF32: i32 = -1;
pub const _V6_ILP32_OFFBIG: i32 = -1;
pub const _V6_LP64_OFF64: u32 = 1;
pub const _V6_LPBIG_OFFBIG: u32 = 1;
pub const _XBS5_ILP32_OFF32: i32 = -1;
pub const _XBS5_ILP32_OFFBIG: i32 = -1;
pub const _XBS5_LP64_OFF64: u32 = 1;
pub const _XBS5_LPBIG_OFFBIG: u32 = 1;
pub const _XOPEN_CRYPT: u32 = 1;
pub const _XOPEN_ENH_I18N: u32 = 1;
pub const _XOPEN_LEGACY: i32 = -1;
pub const _XOPEN_REALTIME: i32 = -1;
pub const _XOPEN_REALTIME_THREADS: i32 = -1;
pub const _XOPEN_SHM: u32 = 1;
pub const _XOPEN_STREAMS: i32 = -1;
pub const _XOPEN_UNIX: u32 = 1;
pub const _SC_ARG_MAX: u32 = 1;
pub const _SC_CHILD_MAX: u32 = 2;
pub const _SC_CLK_TCK: u32 = 3;
pub const _SC_NGROUPS_MAX: u32 = 4;
pub const _SC_OPEN_MAX: u32 = 5;
pub const _SC_JOB_CONTROL: u32 = 6;
pub const _SC_SAVED_IDS: u32 = 7;
pub const _SC_VERSION: u32 = 8;
pub const _SC_BC_BASE_MAX: u32 = 9;
pub const _SC_BC_DIM_MAX: u32 = 10;
pub const _SC_BC_SCALE_MAX: u32 = 11;
pub const _SC_BC_STRING_MAX: u32 = 12;
pub const _SC_COLL_WEIGHTS_MAX: u32 = 13;
pub const _SC_EXPR_NEST_MAX: u32 = 14;
pub const _SC_LINE_MAX: u32 = 15;
pub const _SC_RE_DUP_MAX: u32 = 16;
pub const _SC_2_VERSION: u32 = 17;
pub const _SC_2_C_BIND: u32 = 18;
pub const _SC_2_C_DEV: u32 = 19;
pub const _SC_2_CHAR_TERM: u32 = 20;
pub const _SC_2_FORT_DEV: u32 = 21;
pub const _SC_2_FORT_RUN: u32 = 22;
pub const _SC_2_LOCALEDEF: u32 = 23;
pub const _SC_2_SW_DEV: u32 = 24;
pub const _SC_2_UPE: u32 = 25;
pub const _SC_STREAM_MAX: u32 = 26;
pub const _SC_TZNAME_MAX: u32 = 27;
pub const _SC_ASYNCHRONOUS_IO: u32 = 28;
pub const _SC_PAGESIZE: u32 = 29;
pub const _SC_MEMLOCK: u32 = 30;
pub const _SC_MEMLOCK_RANGE: u32 = 31;
pub const _SC_MEMORY_PROTECTION: u32 = 32;
pub const _SC_MESSAGE_PASSING: u32 = 33;
pub const _SC_PRIORITIZED_IO: u32 = 34;
pub const _SC_PRIORITY_SCHEDULING: u32 = 35;
pub const _SC_REALTIME_SIGNALS: u32 = 36;
pub const _SC_SEMAPHORES: u32 = 37;
pub const _SC_FSYNC: u32 = 38;
pub const _SC_SHARED_MEMORY_OBJECTS: u32 = 39;
pub const _SC_SYNCHRONIZED_IO: u32 = 40;
pub const _SC_TIMERS: u32 = 41;
pub const _SC_AIO_LISTIO_MAX: u32 = 42;
pub const _SC_AIO_MAX: u32 = 43;
pub const _SC_AIO_PRIO_DELTA_MAX: u32 = 44;
pub const _SC_DELAYTIMER_MAX: u32 = 45;
pub const _SC_MQ_OPEN_MAX: u32 = 46;
pub const _SC_MAPPED_FILES: u32 = 47;
pub const _SC_RTSIG_MAX: u32 = 48;
pub const _SC_SEM_NSEMS_MAX: u32 = 49;
pub const _SC_SEM_VALUE_MAX: u32 = 50;
pub const _SC_SIGQUEUE_MAX: u32 = 51;
pub const _SC_TIMER_MAX: u32 = 52;
pub const _SC_NPROCESSORS_CONF: u32 = 57;
pub const _SC_NPROCESSORS_ONLN: u32 = 58;
pub const _SC_2_PBS: u32 = 59;
pub const _SC_2_PBS_ACCOUNTING: u32 = 60;
pub const _SC_2_PBS_CHECKPOINT: u32 = 61;
pub const _SC_2_PBS_LOCATE: u32 = 62;
pub const _SC_2_PBS_MESSAGE: u32 = 63;
pub const _SC_2_PBS_TRACK: u32 = 64;
pub const _SC_ADVISORY_INFO: u32 = 65;
pub const _SC_BARRIERS: u32 = 66;
pub const _SC_CLOCK_SELECTION: u32 = 67;
pub const _SC_CPUTIME: u32 = 68;
pub const _SC_FILE_LOCKING: u32 = 69;
pub const _SC_GETGR_R_SIZE_MAX: u32 = 70;
pub const _SC_GETPW_R_SIZE_MAX: u32 = 71;
pub const _SC_HOST_NAME_MAX: u32 = 72;
pub const _SC_LOGIN_NAME_MAX: u32 = 73;
pub const _SC_MONOTONIC_CLOCK: u32 = 74;
pub const _SC_MQ_PRIO_MAX: u32 = 75;
pub const _SC_READER_WRITER_LOCKS: u32 = 76;
pub const _SC_REGEXP: u32 = 77;
pub const _SC_SHELL: u32 = 78;
pub const _SC_SPAWN: u32 = 79;
pub const _SC_SPIN_LOCKS: u32 = 80;
pub const _SC_SPORADIC_SERVER: u32 = 81;
pub const _SC_THREAD_ATTR_STACKADDR: u32 = 82;
pub const _SC_THREAD_ATTR_STACKSIZE: u32 = 83;
pub const _SC_THREAD_CPUTIME: u32 = 84;
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: u32 = 85;
pub const _SC_THREAD_KEYS_MAX: u32 = 86;
pub const _SC_THREAD_PRIO_INHERIT: u32 = 87;
pub const _SC_THREAD_PRIO_PROTECT: u32 = 88;
pub const _SC_THREAD_PRIORITY_SCHEDULING: u32 = 89;
pub const _SC_THREAD_PROCESS_SHARED: u32 = 90;
pub const _SC_THREAD_SAFE_FUNCTIONS: u32 = 91;
pub const _SC_THREAD_SPORADIC_SERVER: u32 = 92;
pub const _SC_THREAD_STACK_MIN: u32 = 93;
pub const _SC_THREAD_THREADS_MAX: u32 = 94;
pub const _SC_TIMEOUTS: u32 = 95;
pub const _SC_THREADS: u32 = 96;
pub const _SC_TRACE: u32 = 97;
pub const _SC_TRACE_EVENT_FILTER: u32 = 98;
pub const _SC_TRACE_INHERIT: u32 = 99;
pub const _SC_TRACE_LOG: u32 = 100;
pub const _SC_TTY_NAME_MAX: u32 = 101;
pub const _SC_TYPED_MEMORY_OBJECTS: u32 = 102;
pub const _SC_V6_ILP32_OFF32: u32 = 103;
pub const _SC_V6_ILP32_OFFBIG: u32 = 104;
pub const _SC_V6_LP64_OFF64: u32 = 105;
pub const _SC_V6_LPBIG_OFFBIG: u32 = 106;
pub const _SC_IPV6: u32 = 118;
pub const _SC_RAW_SOCKETS: u32 = 119;
pub const _SC_SYMLOOP_MAX: u32 = 120;
pub const _SC_ATEXIT_MAX: u32 = 107;
pub const _SC_IOV_MAX: u32 = 56;
pub const _SC_PAGE_SIZE: u32 = 29;
pub const _SC_XOPEN_CRYPT: u32 = 108;
pub const _SC_XOPEN_ENH_I18N: u32 = 109;
pub const _SC_XOPEN_LEGACY: u32 = 110;
pub const _SC_XOPEN_REALTIME: u32 = 111;
pub const _SC_XOPEN_REALTIME_THREADS: u32 = 112;
pub const _SC_XOPEN_SHM: u32 = 113;
pub const _SC_XOPEN_STREAMS: u32 = 114;
pub const _SC_XOPEN_UNIX: u32 = 115;
pub const _SC_XOPEN_VERSION: u32 = 116;
pub const _SC_XOPEN_XCU_VERSION: u32 = 121;
pub const _SC_XBS5_ILP32_OFF32: u32 = 122;
pub const _SC_XBS5_ILP32_OFFBIG: u32 = 123;
pub const _SC_XBS5_LP64_OFF64: u32 = 124;
pub const _SC_XBS5_LPBIG_OFFBIG: u32 = 125;
pub const _SC_SS_REPL_MAX: u32 = 126;
pub const _SC_TRACE_EVENT_NAME_MAX: u32 = 127;
pub const _SC_TRACE_NAME_MAX: u32 = 128;
pub const _SC_TRACE_SYS_MAX: u32 = 129;
pub const _SC_TRACE_USER_EVENT_MAX: u32 = 130;
pub const _SC_PASS_MAX: u32 = 131;
pub const _SC_PHYS_PAGES: u32 = 200;
pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS: u32 = 2;
pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS: u32 = 3;
pub const _CS_POSIX_V6_ILP32_OFF32_LIBS: u32 = 4;
pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: u32 = 5;
pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: u32 = 6;
pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS: u32 = 7;
pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS: u32 = 8;
pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS: u32 = 9;
pub const _CS_POSIX_V6_LP64_OFF64_LIBS: u32 = 10;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: u32 = 11;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: u32 = 12;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS: u32 = 13;
pub const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS: u32 = 14;
pub const _CS_XBS5_ILP32_OFF32_CFLAGS: u32 = 20;
pub const _CS_XBS5_ILP32_OFF32_LDFLAGS: u32 = 21;
pub const _CS_XBS5_ILP32_OFF32_LIBS: u32 = 22;
pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS: u32 = 23;
pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS: u32 = 24;
pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS: u32 = 25;
pub const _CS_XBS5_ILP32_OFFBIG_LIBS: u32 = 26;
pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS: u32 = 27;
pub const _CS_XBS5_LP64_OFF64_CFLAGS: u32 = 28;
pub const _CS_XBS5_LP64_OFF64_LDFLAGS: u32 = 29;
pub const _CS_XBS5_LP64_OFF64_LIBS: u32 = 30;
pub const _CS_XBS5_LP64_OFF64_LINTFLAGS: u32 = 31;
pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS: u32 = 32;
pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS: u32 = 33;
pub const _CS_XBS5_LPBIG_OFFBIG_LIBS: u32 = 34;
pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS: u32 = 35;
pub const _CS_DARWIN_USER_DIR: u32 = 65536;
pub const _CS_DARWIN_USER_TEMP_DIR: u32 = 65537;
pub const _CS_DARWIN_USER_CACHE_DIR: u32 = 65538;
pub const F_ULOCK: u32 = 0;
pub const F_LOCK: u32 = 1;
pub const F_TLOCK: u32 = 2;
pub const F_TEST: u32 = 3;
pub const SYNC_VOLUME_FULLSYNC: u32 = 1;
pub const SYNC_VOLUME_WAIT: u32 = 2;
pub const O_RDONLY: u32 = 0;
pub const O_WRONLY: u32 = 1;
pub const O_RDWR: u32 = 2;
pub const O_ACCMODE: u32 = 3;
pub const FREAD: u32 = 1;
pub const FWRITE: u32 = 2;
pub const O_NONBLOCK: u32 = 4;
pub const O_APPEND: u32 = 8;
pub const O_SYNC: u32 = 128;
pub const O_SHLOCK: u32 = 16;
pub const O_EXLOCK: u32 = 32;
pub const O_ASYNC: u32 = 64;
pub const O_FSYNC: u32 = 128;
pub const O_NOFOLLOW: u32 = 256;
pub const O_CREAT: u32 = 512;
pub const O_TRUNC: u32 = 1024;
pub const O_EXCL: u32 = 2048;
pub const O_EVTONLY: u32 = 32768;
pub const O_NOCTTY: u32 = 131072;
pub const O_DIRECTORY: u32 = 1048576;
pub const O_SYMLINK: u32 = 2097152;
pub const O_DSYNC: u32 = 4194304;
pub const O_CLOEXEC: u32 = 16777216;
pub const O_NOFOLLOW_ANY: u32 = 536870912;
pub const O_EXEC: u32 = 1073741824;
pub const O_SEARCH: u32 = 1074790400;
pub const AT_FDCWD: i32 = -2;
pub const AT_EACCESS: u32 = 16;
pub const AT_SYMLINK_NOFOLLOW: u32 = 32;
pub const AT_SYMLINK_FOLLOW: u32 = 64;
pub const AT_REMOVEDIR: u32 = 128;
pub const AT_REALDEV: u32 = 512;
pub const AT_FDONLY: u32 = 1024;
pub const AT_SYMLINK_NOFOLLOW_ANY: u32 = 2048;
pub const O_DP_GETRAWENCRYPTED: u32 = 1;
pub const O_DP_GETRAWUNENCRYPTED: u32 = 2;
pub const O_DP_AUTHENTICATE: u32 = 4;
pub const AUTH_OPEN_NOAUTHFD: i32 = -1;
pub const FAPPEND: u32 = 8;
pub const FASYNC: u32 = 64;
pub const FFSYNC: u32 = 128;
pub const FFDSYNC: u32 = 4194304;
pub const FNONBLOCK: u32 = 4;
pub const FNDELAY: u32 = 4;
pub const O_NDELAY: u32 = 4;
pub const CPF_OVERWRITE: u32 = 1;
pub const CPF_IGNORE_MODE: u32 = 2;
pub const CPF_MASK: u32 = 3;
pub const F_DUPFD: u32 = 0;
pub const F_GETFD: u32 = 1;
pub const F_SETFD: u32 = 2;
pub const F_GETFL: u32 = 3;
pub const F_SETFL: u32 = 4;
pub const F_GETOWN: u32 = 5;
pub const F_SETOWN: u32 = 6;
pub const F_GETLK: u32 = 7;
pub const F_SETLK: u32 = 8;
pub const F_SETLKW: u32 = 9;
pub const F_SETLKWTIMEOUT: u32 = 10;
pub const F_FLUSH_DATA: u32 = 40;
pub const F_CHKCLEAN: u32 = 41;
pub const F_PREALLOCATE: u32 = 42;
pub const F_SETSIZE: u32 = 43;
pub const F_RDADVISE: u32 = 44;
pub const F_RDAHEAD: u32 = 45;
pub const F_NOCACHE: u32 = 48;
pub const F_LOG2PHYS: u32 = 49;
pub const F_GETPATH: u32 = 50;
pub const F_FULLFSYNC: u32 = 51;
pub const F_PATHPKG_CHECK: u32 = 52;
pub const F_FREEZE_FS: u32 = 53;
pub const F_THAW_FS: u32 = 54;
pub const F_GLOBAL_NOCACHE: u32 = 55;
pub const F_ADDSIGS: u32 = 59;
pub const F_ADDFILESIGS: u32 = 61;
pub const F_NODIRECT: u32 = 62;
pub const F_GETPROTECTIONCLASS: u32 = 63;
pub const F_SETPROTECTIONCLASS: u32 = 64;
pub const F_LOG2PHYS_EXT: u32 = 65;
pub const F_GETLKPID: u32 = 66;
pub const F_SETBACKINGSTORE: u32 = 70;
pub const F_GETPATH_MTMINFO: u32 = 71;
pub const F_GETCODEDIR: u32 = 72;
pub const F_SETNOSIGPIPE: u32 = 73;
pub const F_GETNOSIGPIPE: u32 = 74;
pub const F_TRANSCODEKEY: u32 = 75;
pub const F_SINGLE_WRITER: u32 = 76;
pub const F_GETPROTECTIONLEVEL: u32 = 77;
pub const F_FINDSIGS: u32 = 78;
pub const F_ADDFILESIGS_FOR_DYLD_SIM: u32 = 83;
pub const F_BARRIERFSYNC: u32 = 85;
pub const F_OFD_SETLK: u32 = 90;
pub const F_OFD_SETLKW: u32 = 91;
pub const F_OFD_GETLK: u32 = 92;
pub const F_OFD_SETLKWTIMEOUT: u32 = 93;
pub const F_ADDFILESIGS_RETURN: u32 = 97;
pub const F_CHECK_LV: u32 = 98;
pub const F_PUNCHHOLE: u32 = 99;
pub const F_TRIM_ACTIVE_FILE: u32 = 100;
pub const F_SPECULATIVE_READ: u32 = 101;
pub const F_GETPATH_NOFIRMLINK: u32 = 102;
pub const F_ADDFILESIGS_INFO: u32 = 103;
pub const F_ADDFILESUPPL: u32 = 104;
pub const F_GETSIGSINFO: u32 = 105;
pub const F_SETLEASE: u32 = 106;
pub const F_GETLEASE: u32 = 107;
pub const F_TRANSFEREXTENTS: u32 = 110;
pub const F_ATTRIBUTION_TAG: u32 = 111;
pub const FCNTL_FS_SPECIFIC_BASE: u32 = 65536;
pub const F_DUPFD_CLOEXEC: u32 = 67;
pub const FD_CLOEXEC: u32 = 1;
pub const F_RDLCK: u32 = 1;
pub const F_UNLCK: u32 = 2;
pub const F_WRLCK: u32 = 3;
pub const S_IFMT: u32 = 61440;
pub const S_IFIFO: u32 = 4096;
pub const S_IFCHR: u32 = 8192;
pub const S_IFDIR: u32 = 16384;
pub const S_IFBLK: u32 = 24576;
pub const S_IFREG: u32 = 32768;
pub const S_IFLNK: u32 = 40960;
pub const S_IFSOCK: u32 = 49152;
pub const S_IFWHT: u32 = 57344;
pub const S_IRWXU: u32 = 448;
pub const S_IRUSR: u32 = 256;
pub const S_IWUSR: u32 = 128;
pub const S_IXUSR: u32 = 64;
pub const S_IRWXG: u32 = 56;
pub const S_IRGRP: u32 = 32;
pub const S_IWGRP: u32 = 16;
pub const S_IXGRP: u32 = 8;
pub const S_IRWXO: u32 = 7;
pub const S_IROTH: u32 = 4;
pub const S_IWOTH: u32 = 2;
pub const S_IXOTH: u32 = 1;
pub const S_ISUID: u32 = 2048;
pub const S_ISGID: u32 = 1024;
pub const S_ISVTX: u32 = 512;
pub const S_ISTXT: u32 = 512;
pub const S_IREAD: u32 = 256;
pub const S_IWRITE: u32 = 128;
pub const S_IEXEC: u32 = 64;
pub const F_ALLOCATECONTIG: u32 = 2;
pub const F_ALLOCATEALL: u32 = 4;
pub const F_ALLOCATEPERSIST: u32 = 8;
pub const F_PEOFPOSMODE: u32 = 3;
pub const F_VOLPOSMODE: u32 = 4;
pub const USER_FSIGNATURES_CDHASH_LEN: u32 = 20;
pub const GETSIGSINFO_PLATFORM_BINARY: u32 = 1;
pub const LOCK_SH: u32 = 1;
pub const LOCK_EX: u32 = 2;
pub const LOCK_NB: u32 = 4;
pub const LOCK_UN: u32 = 8;
pub const ATTRIBUTION_NAME_MAX: u32 = 255;
pub const F_CREATE_TAG: u32 = 1;
pub const F_DELETE_TAG: u32 = 2;
pub const F_QUERY_TAG: u32 = 4;
pub const O_POPUP: u32 = 2147483648;
pub const O_ALERT: u32 = 536870912;
pub const DISPATCH_API_VERSION: u32 = 20181008;
pub const OS_OBJECT_HAVE_OBJC_SUPPORT: u32 = 0;
pub const OS_OBJECT_USE_OBJC: u32 = 0;
pub const OS_OBJECT_SWIFT3: u32 = 0;
pub const OS_OBJECT_USE_OBJC_RETAIN_RELEASE: u32 = 0;
pub const __OS_WORKGROUP_ATTR_SIZE__: u32 = 60;
pub const __OS_WORKGROUP_INTERVAL_DATA_SIZE__: u32 = 56;
pub const __OS_WORKGROUP_JOIN_TOKEN_SIZE__: u32 = 36;
pub const _OS_WORKGROUP_ATTR_SIG_DEFAULT_INIT: u32 = 799564724;
pub const _OS_WORKGROUP_ATTR_SIG_EMPTY_INIT: u32 = 799564740;
pub const _OS_WORKGROUP_INTERVAL_DATA_SIG_INIT: u32 = 1386695757;
pub const DISPATCH_SWIFT3_OVERLAY: u32 = 0;
pub const TIME_MICROS_MAX: u32 = 1000000;
pub const SYSTEM_CLOCK: u32 = 0;
pub const CALENDAR_CLOCK: u32 = 1;
pub const REALTIME_CLOCK: u32 = 0;
pub const CLOCK_GET_TIME_RES: u32 = 1;
pub const CLOCK_ALARM_CURRES: u32 = 3;
pub const CLOCK_ALARM_MINRES: u32 = 4;
pub const CLOCK_ALARM_MAXRES: u32 = 5;
pub const NSEC_PER_USEC: u32 = 1000;
pub const USEC_PER_SEC: u32 = 1000000;
pub const NSEC_PER_SEC: u32 = 1000000000;
pub const NSEC_PER_MSEC: u32 = 1000000;
pub const ALRMTYPE: u32 = 255;
pub const TIME_ABSOLUTE: u32 = 0;
pub const TIME_RELATIVE: u32 = 1;
pub const MSEC_PER_SEC: u32 = 1000;
pub const DISPATCH_TIME_NOW: u32 = 0;
pub const DISPATCH_TIME_FOREVER: i32 = -1;
pub const QOS_MIN_RELATIVE_PRIORITY: i32 = -15;
pub const DISPATCH_APPLY_AUTO_AVAILABLE: u32 = 1;
pub const DISPATCH_QUEUE_PRIORITY_HIGH: u32 = 2;
pub const DISPATCH_QUEUE_PRIORITY_DEFAULT: u32 = 0;
pub const DISPATCH_QUEUE_PRIORITY_LOW: i32 = -2;
pub const DISPATCH_QUEUE_PRIORITY_BACKGROUND: i32 = -32768;
pub const KERN_SUCCESS: u32 = 0;
pub const KERN_INVALID_ADDRESS: u32 = 1;
pub const KERN_PROTECTION_FAILURE: u32 = 2;
pub const KERN_NO_SPACE: u32 = 3;
pub const KERN_INVALID_ARGUMENT: u32 = 4;
pub const KERN_FAILURE: u32 = 5;
pub const KERN_RESOURCE_SHORTAGE: u32 = 6;
pub const KERN_NOT_RECEIVER: u32 = 7;
pub const KERN_NO_ACCESS: u32 = 8;
pub const KERN_MEMORY_FAILURE: u32 = 9;
pub const KERN_MEMORY_ERROR: u32 = 10;
pub const KERN_ALREADY_IN_SET: u32 = 11;
pub const KERN_NOT_IN_SET: u32 = 12;
pub const KERN_NAME_EXISTS: u32 = 13;
pub const KERN_ABORTED: u32 = 14;
pub const KERN_INVALID_NAME: u32 = 15;
pub const KERN_INVALID_TASK: u32 = 16;
pub const KERN_INVALID_RIGHT: u32 = 17;
pub const KERN_INVALID_VALUE: u32 = 18;
pub const KERN_UREFS_OVERFLOW: u32 = 19;
pub const KERN_INVALID_CAPABILITY: u32 = 20;
pub const KERN_RIGHT_EXISTS: u32 = 21;
pub const KERN_INVALID_HOST: u32 = 22;
pub const KERN_MEMORY_PRESENT: u32 = 23;
pub const KERN_MEMORY_DATA_MOVED: u32 = 24;
pub const KERN_MEMORY_RESTART_COPY: u32 = 25;
pub const KERN_INVALID_PROCESSOR_SET: u32 = 26;
pub const KERN_POLICY_LIMIT: u32 = 27;
pub const KERN_INVALID_POLICY: u32 = 28;
pub const KERN_INVALID_OBJECT: u32 = 29;
pub const KERN_ALREADY_WAITING: u32 = 30;
pub const KERN_DEFAULT_SET: u32 = 31;
pub const KERN_EXCEPTION_PROTECTED: u32 = 32;
pub const KERN_INVALID_LEDGER: u32 = 33;
pub const KERN_INVALID_MEMORY_CONTROL: u32 = 34;
pub const KERN_INVALID_SECURITY: u32 = 35;
pub const KERN_NOT_DEPRESSED: u32 = 36;
pub const KERN_TERMINATED: u32 = 37;
pub const KERN_LOCK_SET_DESTROYED: u32 = 38;
pub const KERN_LOCK_UNSTABLE: u32 = 39;
pub const KERN_LOCK_OWNED: u32 = 40;
pub const KERN_LOCK_OWNED_SELF: u32 = 41;
pub const KERN_SEMAPHORE_DESTROYED: u32 = 42;
pub const KERN_RPC_SERVER_TERMINATED: u32 = 43;
pub const KERN_RPC_TERMINATE_ORPHAN: u32 = 44;
pub const KERN_RPC_CONTINUE_ORPHAN: u32 = 45;
pub const KERN_NOT_SUPPORTED: u32 = 46;
pub const KERN_NODE_DOWN: u32 = 47;
pub const KERN_NOT_WAITING: u32 = 48;
pub const KERN_OPERATION_TIMED_OUT: u32 = 49;
pub const KERN_CODESIGN_ERROR: u32 = 50;
pub const KERN_POLICY_STATIC: u32 = 51;
pub const KERN_INSUFFICIENT_BUFFER_SIZE: u32 = 52;
pub const KERN_DENIED: u32 = 53;
pub const KERN_MISSING_KC: u32 = 54;
pub const KERN_INVALID_KC: u32 = 55;
pub const KERN_NOT_FOUND: u32 = 56;
pub const KERN_RETURN_MAX: u32 = 256;
pub const MACH_MSGH_BITS_ZERO: u32 = 0;
pub const MACH_MSGH_BITS_REMOTE_MASK: u32 = 31;
pub const MACH_MSGH_BITS_LOCAL_MASK: u32 = 7936;
pub const MACH_MSGH_BITS_VOUCHER_MASK: u32 = 2031616;
pub const MACH_MSGH_BITS_PORTS_MASK: u32 = 2039583;
pub const MACH_MSGH_BITS_COMPLEX: u32 = 2147483648;
pub const MACH_MSGH_BITS_USER: u32 = 2149523231;
pub const MACH_MSGH_BITS_RAISEIMP: u32 = 536870912;
pub const MACH_MSGH_BITS_DENAP: u32 = 536870912;
pub const MACH_MSGH_BITS_IMPHOLDASRT: u32 = 268435456;
pub const MACH_MSGH_BITS_DENAPHOLDASRT: u32 = 268435456;
pub const MACH_MSGH_BITS_CIRCULAR: u32 = 268435456;
pub const MACH_MSGH_BITS_USED: u32 = 2954829599;
pub const MACH_MSG_TYPE_MOVE_RECEIVE: u32 = 16;
pub const MACH_MSG_TYPE_MOVE_SEND: u32 = 17;
pub const MACH_MSG_TYPE_MOVE_SEND_ONCE: u32 = 18;
pub const MACH_MSG_TYPE_COPY_SEND: u32 = 19;
pub const MACH_MSG_TYPE_MAKE_SEND: u32 = 20;
pub const MACH_MSG_TYPE_MAKE_SEND_ONCE: u32 = 21;
pub const MACH_MSG_TYPE_COPY_RECEIVE: u32 = 22;
pub const MACH_MSG_TYPE_DISPOSE_RECEIVE: u32 = 24;
pub const MACH_MSG_TYPE_DISPOSE_SEND: u32 = 25;
pub const MACH_MSG_TYPE_DISPOSE_SEND_ONCE: u32 = 26;
pub const MACH_MSG_PHYSICAL_COPY: u32 = 0;
pub const MACH_MSG_VIRTUAL_COPY: u32 = 1;
pub const MACH_MSG_ALLOCATE: u32 = 2;
pub const MACH_MSG_OVERWRITE: u32 = 3;
pub const MACH_MSG_GUARD_FLAGS_NONE: u32 = 0;
pub const MACH_MSG_GUARD_FLAGS_IMMOVABLE_RECEIVE: u32 = 1;
pub const MACH_MSG_GUARD_FLAGS_UNGUARDED_ON_SEND: u32 = 2;
pub const MACH_MSG_GUARD_FLAGS_MASK: u32 = 3;
pub const MACH_MSG_PORT_DESCRIPTOR: u32 = 0;
pub const MACH_MSG_OOL_DESCRIPTOR: u32 = 1;
pub const MACH_MSG_OOL_PORTS_DESCRIPTOR: u32 = 2;
pub const MACH_MSG_OOL_VOLATILE_DESCRIPTOR: u32 = 3;
pub const MACH_MSG_GUARDED_PORT_DESCRIPTOR: u32 = 4;
pub const MACH_MSG_DESCRIPTOR_MAX: u32 = 4;
pub const MACH_MSG_TRAILER_FORMAT_0: u32 = 0;
pub const MACH_MSGH_KIND_NORMAL: u32 = 0;
pub const MACH_MSGH_KIND_NOTIFICATION: u32 = 1;
pub const MACH_MSG_TYPE_PORT_NONE: u32 = 0;
pub const MACH_MSG_TYPE_PORT_NAME: u32 = 15;
pub const MACH_MSG_TYPE_PORT_RECEIVE: u32 = 16;
pub const MACH_MSG_TYPE_PORT_SEND: u32 = 17;
pub const MACH_MSG_TYPE_PORT_SEND_ONCE: u32 = 18;
pub const MACH_MSG_TYPE_LAST: u32 = 22;
pub const MACH_MSG_OPTION_NONE: u32 = 0;
pub const MACH_SEND_MSG: u32 = 1;
pub const MACH_RCV_MSG: u32 = 2;
pub const MACH_RCV_LARGE: u32 = 4;
pub const MACH_RCV_LARGE_IDENTITY: u32 = 8;
pub const MACH_SEND_TIMEOUT: u32 = 16;
pub const MACH_SEND_OVERRIDE: u32 = 32;
pub const MACH_SEND_INTERRUPT: u32 = 64;
pub const MACH_SEND_NOTIFY: u32 = 128;
pub const MACH_SEND_ALWAYS: u32 = 65536;
pub const MACH_SEND_FILTER_NONFATAL: u32 = 65536;
pub const MACH_SEND_TRAILER: u32 = 131072;
pub const MACH_SEND_NOIMPORTANCE: u32 = 262144;
pub const MACH_SEND_NODENAP: u32 = 262144;
pub const MACH_SEND_IMPORTANCE: u32 = 524288;
pub const MACH_SEND_SYNC_OVERRIDE: u32 = 1048576;
pub const MACH_SEND_PROPAGATE_QOS: u32 = 2097152;
pub const MACH_SEND_SYNC_USE_THRPRI: u32 = 2097152;
pub const MACH_SEND_KERNEL: u32 = 4194304;
pub const MACH_SEND_SYNC_BOOTSTRAP_CHECKIN: u32 = 8388608;
pub const MACH_RCV_TIMEOUT: u32 = 256;
pub const MACH_RCV_NOTIFY: u32 = 0;
pub const MACH_RCV_INTERRUPT: u32 = 1024;
pub const MACH_RCV_VOUCHER: u32 = 2048;
pub const MACH_RCV_OVERWRITE: u32 = 0;
pub const MACH_RCV_GUARDED_DESC: u32 = 4096;
pub const MACH_RCV_SYNC_WAIT: u32 = 16384;
pub const MACH_RCV_SYNC_PEEK: u32 = 32768;
pub const MACH_MSG_STRICT_REPLY: u32 = 512;
pub const MACH_RCV_TRAILER_NULL: u32 = 0;
pub const MACH_RCV_TRAILER_SEQNO: u32 = 1;
pub const MACH_RCV_TRAILER_SENDER: u32 = 2;
pub const MACH_RCV_TRAILER_AUDIT: u32 = 3;
pub const MACH_RCV_TRAILER_CTX: u32 = 4;
pub const MACH_RCV_TRAILER_AV: u32 = 7;
pub const MACH_RCV_TRAILER_LABELS: u32 = 8;
pub const MACH_RCV_TRAILER_MASK: u32 = 251658240;
pub const MACH_MSG_SUCCESS: u32 = 0;
pub const MACH_MSG_MASK: u32 = 15872;
pub const MACH_MSG_IPC_SPACE: u32 = 8192;
pub const MACH_MSG_VM_SPACE: u32 = 4096;
pub const MACH_MSG_IPC_KERNEL: u32 = 2048;
pub const MACH_MSG_VM_KERNEL: u32 = 1024;
pub const MACH_SEND_IN_PROGRESS: u32 = 268435457;
pub const MACH_SEND_INVALID_DATA: u32 = 268435458;
pub const MACH_SEND_INVALID_DEST: u32 = 268435459;
pub const MACH_SEND_TIMED_OUT: u32 = 268435460;
pub const MACH_SEND_INVALID_VOUCHER: u32 = 268435461;
pub const MACH_SEND_INTERRUPTED: u32 = 268435463;
pub const MACH_SEND_MSG_TOO_SMALL: u32 = 268435464;
pub const MACH_SEND_INVALID_REPLY: u32 = 268435465;
pub const MACH_SEND_INVALID_RIGHT: u32 = 268435466;
pub const MACH_SEND_INVALID_NOTIFY: u32 = 268435467;
pub const MACH_SEND_INVALID_MEMORY: u32 = 268435468;
pub const MACH_SEND_NO_BUFFER: u32 = 268435469;
pub const MACH_SEND_TOO_LARGE: u32 = 268435470;
pub const MACH_SEND_INVALID_TYPE: u32 = 268435471;
pub const MACH_SEND_INVALID_HEADER: u32 = 268435472;
pub const MACH_SEND_INVALID_TRAILER: u32 = 268435473;
pub const MACH_SEND_INVALID_CONTEXT: u32 = 268435474;
pub const MACH_SEND_INVALID_OPTIONS: u32 = 268435475;
pub const MACH_SEND_INVALID_RT_OOL_SIZE: u32 = 268435477;
pub const MACH_SEND_NO_GRANT_DEST: u32 = 268435478;
pub const MACH_SEND_MSG_FILTERED: u32 = 268435479;
pub const MACH_SEND_AUX_TOO_SMALL: u32 = 268435480;
pub const MACH_SEND_AUX_TOO_LARGE: u32 = 268435481;
pub const MACH_RCV_IN_PROGRESS: u32 = 268451841;
pub const MACH_RCV_INVALID_NAME: u32 = 268451842;
pub const MACH_RCV_TIMED_OUT: u32 = 268451843;
pub const MACH_RCV_TOO_LARGE: u32 = 268451844;
pub const MACH_RCV_INTERRUPTED: u32 = 268451845;
pub const MACH_RCV_PORT_CHANGED: u32 = 268451846;
pub const MACH_RCV_INVALID_NOTIFY: u32 = 268451847;
pub const MACH_RCV_INVALID_DATA: u32 = 268451848;
pub const MACH_RCV_PORT_DIED: u32 = 268451849;
pub const MACH_RCV_IN_SET: u32 = 268451850;
pub const MACH_RCV_HEADER_ERROR: u32 = 268451851;
pub const MACH_RCV_BODY_ERROR: u32 = 268451852;
pub const MACH_RCV_INVALID_TYPE: u32 = 268451853;
pub const MACH_RCV_SCATTER_SMALL: u32 = 268451854;
pub const MACH_RCV_INVALID_TRAILER: u32 = 268451855;
pub const MACH_RCV_IN_PROGRESS_TIMED: u32 = 268451857;
pub const MACH_RCV_INVALID_REPLY: u32 = 268451858;
pub const MACH_RCV_INVALID_ARGUMENTS: u32 = 268451859;
pub const DISPATCH_MACH_SEND_DEAD: u32 = 1;
pub const DISPATCH_MEMORYPRESSURE_NORMAL: u32 = 1;
pub const DISPATCH_MEMORYPRESSURE_WARN: u32 = 2;
pub const DISPATCH_MEMORYPRESSURE_CRITICAL: u32 = 4;
pub const DISPATCH_PROC_EXIT: u32 = 2147483648;
pub const DISPATCH_PROC_FORK: u32 = 1073741824;
pub const DISPATCH_PROC_EXEC: u32 = 536870912;
pub const DISPATCH_PROC_SIGNAL: u32 = 134217728;
pub const DISPATCH_VNODE_DELETE: u32 = 1;
pub const DISPATCH_VNODE_WRITE: u32 = 2;
pub const DISPATCH_VNODE_EXTEND: u32 = 4;
pub const DISPATCH_VNODE_ATTRIB: u32 = 8;
pub const DISPATCH_VNODE_LINK: u32 = 16;
pub const DISPATCH_VNODE_RENAME: u32 = 32;
pub const DISPATCH_VNODE_REVOKE: u32 = 64;
pub const DISPATCH_VNODE_FUNLOCK: u32 = 256;
pub const DISPATCH_TIMER_STRICT: u32 = 1;
pub const DISPATCH_ONCE_INLINE_FASTPATH: u32 = 1;
pub const DISPATCH_IO_STREAM: u32 = 0;
pub const DISPATCH_IO_RANDOM: u32 = 1;
pub const DISPATCH_IO_STOP: u32 = 1;
pub const DISPATCH_IO_STRICT_INTERVAL: u32 = 1;
pub const __COREFOUNDATION_CFSET__: u32 = 1;
pub const __COREFOUNDATION_CFSTRINGENCODINGEXT__: u32 = 1;
pub const __COREFOUNDATION_CFTREE__: u32 = 1;
pub const __COREFOUNDATION_CFURLACCESS__: u32 = 1;
pub const __COREFOUNDATION_CFUUID__: u32 = 1;
pub const __COREFOUNDATION_CFUTILITIES__: u32 = 1;
pub const __COREFOUNDATION_CFBUNDLE__: u32 = 1;
pub const CPU_STATE_MAX: u32 = 4;
pub const CPU_STATE_USER: u32 = 0;
pub const CPU_STATE_SYSTEM: u32 = 1;
pub const CPU_STATE_IDLE: u32 = 2;
pub const CPU_STATE_NICE: u32 = 3;
pub const CPU_ARCH_MASK: u32 = 4278190080;
pub const CPU_ARCH_ABI64: u32 = 16777216;
pub const CPU_ARCH_ABI64_32: u32 = 33554432;
pub const CPU_SUBTYPE_MASK: u32 = 4278190080;
pub const CPU_SUBTYPE_LIB64: u32 = 2147483648;
pub const CPU_SUBTYPE_PTRAUTH_ABI: u32 = 2147483648;
pub const CPU_SUBTYPE_INTEL_FAMILY_MAX: u32 = 15;
pub const CPU_SUBTYPE_INTEL_MODEL_ALL: u32 = 0;
pub const CPU_SUBTYPE_ARM64_PTR_AUTH_MASK: u32 = 251658240;
pub const CPUFAMILY_UNKNOWN: u32 = 0;
pub const CPUFAMILY_POWERPC_G3: u32 = 3471054153;
pub const CPUFAMILY_POWERPC_G4: u32 = 2009171118;
pub const CPUFAMILY_POWERPC_G5: u32 = 3983988906;
pub const CPUFAMILY_INTEL_6_13: u32 = 2855483691;
pub const CPUFAMILY_INTEL_PENRYN: u32 = 2028621756;
pub const CPUFAMILY_INTEL_NEHALEM: u32 = 1801080018;
pub const CPUFAMILY_INTEL_WESTMERE: u32 = 1463508716;
pub const CPUFAMILY_INTEL_SANDYBRIDGE: u32 = 1418770316;
pub const CPUFAMILY_INTEL_IVYBRIDGE: u32 = 526772277;
pub const CPUFAMILY_INTEL_HASWELL: u32 = 280134364;
pub const CPUFAMILY_INTEL_BROADWELL: u32 = 1479463068;
pub const CPUFAMILY_INTEL_SKYLAKE: u32 = 939270559;
pub const CPUFAMILY_INTEL_KABYLAKE: u32 = 260141638;
pub const CPUFAMILY_INTEL_ICELAKE: u32 = 943936839;
pub const CPUFAMILY_INTEL_COMETLAKE: u32 = 486055998;
pub const CPUFAMILY_ARM_9: u32 = 3878847406;
pub const CPUFAMILY_ARM_11: u32 = 2415272152;
pub const CPUFAMILY_ARM_XSCALE: u32 = 1404044789;
pub const CPUFAMILY_ARM_12: u32 = 3172666089;
pub const CPUFAMILY_ARM_13: u32 = 214503012;
pub const CPUFAMILY_ARM_14: u32 = 2517073649;
pub const CPUFAMILY_ARM_15: u32 = 2823887818;
pub const CPUFAMILY_ARM_SWIFT: u32 = 506291073;
pub const CPUFAMILY_ARM_CYCLONE: u32 = 933271106;
pub const CPUFAMILY_ARM_TYPHOON: u32 = 747742334;
pub const CPUFAMILY_ARM_TWISTER: u32 = 2465937352;
pub const CPUFAMILY_ARM_HURRICANE: u32 = 1741614739;
pub const CPUFAMILY_ARM_MONSOON_MISTRAL: u32 = 3894312694;
pub const CPUFAMILY_ARM_VORTEX_TEMPEST: u32 = 131287967;
pub const CPUFAMILY_ARM_LIGHTNING_THUNDER: u32 = 1176831186;
pub const CPUFAMILY_ARM_FIRESTORM_ICESTORM: u32 = 458787763;
pub const CPUFAMILY_ARM_BLIZZARD_AVALANCHE: u32 = 3660830781;
pub const CPUFAMILY_ARM_EVEREST_SAWTOOTH: u32 = 2271604202;
pub const CPUFAMILY_ARM_IBIZA: u32 = 4197663070;
pub const CPUFAMILY_ARM_PALMA: u32 = 1912690738;
pub const CPUFAMILY_ARM_COLL: u32 = 678884789;
pub const CPUFAMILY_ARM_LOBOS: u32 = 1598941843;
pub const CPUSUBFAMILY_UNKNOWN: u32 = 0;
pub const CPUSUBFAMILY_ARM_HP: u32 = 1;
pub const CPUSUBFAMILY_ARM_HG: u32 = 2;
pub const CPUSUBFAMILY_ARM_M: u32 = 3;
pub const CPUSUBFAMILY_ARM_HS: u32 = 4;
pub const CPUSUBFAMILY_ARM_HC_HD: u32 = 5;
pub const CPUSUBFAMILY_ARM_HA: u32 = 6;
pub const CPUFAMILY_INTEL_6_23: u32 = 2028621756;
pub const CPUFAMILY_INTEL_6_26: u32 = 1801080018;
pub const __COREFOUNDATION_CFMESSAGEPORT__: u32 = 1;
pub const __COREFOUNDATION_CFPLUGIN__: u32 = 1;
pub const COREFOUNDATION_CFPLUGINCOM_SEPARATE: u32 = 1;
pub const __COREFOUNDATION_CFMACHPORT__: u32 = 1;
pub const __COREFOUNDATION_CFATTRIBUTEDSTRING__: u32 = 1;
pub const __COREFOUNDATION_CFURLENUMERATOR__: u32 = 1;
pub const __COREFOUNDATION_CFFILESECURITY__: u32 = 1;
pub const KAUTH_GUID_SIZE: u32 = 16;
pub const KAUTH_NTSID_MAX_AUTHORITIES: u32 = 16;
pub const KAUTH_NTSID_HDRSIZE: u32 = 8;
pub const KAUTH_EXTLOOKUP_SUCCESS: u32 = 0;
pub const KAUTH_EXTLOOKUP_BADRQ: u32 = 1;
pub const KAUTH_EXTLOOKUP_FAILURE: u32 = 2;
pub const KAUTH_EXTLOOKUP_FATAL: u32 = 3;
pub const KAUTH_EXTLOOKUP_INPROG: u32 = 100;
pub const KAUTH_EXTLOOKUP_VALID_UID: u32 = 1;
pub const KAUTH_EXTLOOKUP_VALID_UGUID: u32 = 2;
pub const KAUTH_EXTLOOKUP_VALID_USID: u32 = 4;
pub const KAUTH_EXTLOOKUP_VALID_GID: u32 = 8;
pub const KAUTH_EXTLOOKUP_VALID_GGUID: u32 = 16;
pub const KAUTH_EXTLOOKUP_VALID_GSID: u32 = 32;
pub const KAUTH_EXTLOOKUP_WANT_UID: u32 = 64;
pub const KAUTH_EXTLOOKUP_WANT_UGUID: u32 = 128;
pub const KAUTH_EXTLOOKUP_WANT_USID: u32 = 256;
pub const KAUTH_EXTLOOKUP_WANT_GID: u32 = 512;
pub const KAUTH_EXTLOOKUP_WANT_GGUID: u32 = 1024;
pub const KAUTH_EXTLOOKUP_WANT_GSID: u32 = 2048;
pub const KAUTH_EXTLOOKUP_WANT_MEMBERSHIP: u32 = 4096;
pub const KAUTH_EXTLOOKUP_VALID_MEMBERSHIP: u32 = 8192;
pub const KAUTH_EXTLOOKUP_ISMEMBER: u32 = 16384;
pub const KAUTH_EXTLOOKUP_VALID_PWNAM: u32 = 32768;
pub const KAUTH_EXTLOOKUP_WANT_PWNAM: u32 = 65536;
pub const KAUTH_EXTLOOKUP_VALID_GRNAM: u32 = 131072;
pub const KAUTH_EXTLOOKUP_WANT_GRNAM: u32 = 262144;
pub const KAUTH_EXTLOOKUP_VALID_SUPGRPS: u32 = 524288;
pub const KAUTH_EXTLOOKUP_WANT_SUPGRPS: u32 = 1048576;
pub const KAUTH_EXTLOOKUP_REGISTER: u32 = 0;
pub const KAUTH_EXTLOOKUP_RESULT: u32 = 1;
pub const KAUTH_EXTLOOKUP_WORKER: u32 = 2;
pub const KAUTH_EXTLOOKUP_DEREGISTER: u32 = 4;
pub const KAUTH_GET_CACHE_SIZES: u32 = 8;
pub const KAUTH_SET_CACHE_SIZES: u32 = 16;
pub const KAUTH_CLEAR_CACHES: u32 = 32;
pub const IDENTITYSVC_ENTITLEMENT: &[u8; 30] = b"com.apple.private.identitysvc\0";
pub const KAUTH_ACE_KINDMASK: u32 = 15;
pub const KAUTH_ACE_PERMIT: u32 = 1;
pub const KAUTH_ACE_DENY: u32 = 2;
pub const KAUTH_ACE_AUDIT: u32 = 3;
pub const KAUTH_ACE_ALARM: u32 = 4;
pub const KAUTH_ACE_INHERITED: u32 = 16;
pub const KAUTH_ACE_FILE_INHERIT: u32 = 32;
pub const KAUTH_ACE_DIRECTORY_INHERIT: u32 = 64;
pub const KAUTH_ACE_LIMIT_INHERIT: u32 = 128;
pub const KAUTH_ACE_ONLY_INHERIT: u32 = 256;
pub const KAUTH_ACE_SUCCESS: u32 = 512;
pub const KAUTH_ACE_FAILURE: u32 = 1024;
pub const KAUTH_ACE_INHERIT_CONTROL_FLAGS: u32 = 480;
pub const KAUTH_ACE_GENERIC_ALL: u32 = 2097152;
pub const KAUTH_ACE_GENERIC_EXECUTE: u32 = 4194304;
pub const KAUTH_ACE_GENERIC_WRITE: u32 = 8388608;
pub const KAUTH_ACE_GENERIC_READ: u32 = 16777216;
pub const KAUTH_ACL_MAX_ENTRIES: u32 = 128;
pub const KAUTH_ACL_FLAGS_PRIVATE: u32 = 65535;
pub const KAUTH_ACL_DEFER_INHERIT: u32 = 65536;
pub const KAUTH_ACL_NO_INHERIT: u32 = 131072;
pub const KAUTH_FILESEC_MAGIC: u32 = 19710317;
pub const KAUTH_FILESEC_FLAGS_PRIVATE: u32 = 65535;
pub const KAUTH_FILESEC_DEFER_INHERIT: u32 = 65536;
pub const KAUTH_FILESEC_NO_INHERIT: u32 = 131072;
pub const KAUTH_FILESEC_XATTR: &[u8; 26] = b"com.apple.system.Security\0";
pub const KAUTH_ENDIAN_HOST: u32 = 1;
pub const KAUTH_ENDIAN_DISK: u32 = 2;
pub const KAUTH_VNODE_READ_DATA: u32 = 2;
pub const KAUTH_VNODE_LIST_DIRECTORY: u32 = 2;
pub const KAUTH_VNODE_WRITE_DATA: u32 = 4;
pub const KAUTH_VNODE_ADD_FILE: u32 = 4;
pub const KAUTH_VNODE_EXECUTE: u32 = 8;
pub const KAUTH_VNODE_SEARCH: u32 = 8;
pub const KAUTH_VNODE_DELETE: u32 = 16;
pub const KAUTH_VNODE_APPEND_DATA: u32 = 32;
pub const KAUTH_VNODE_ADD_SUBDIRECTORY: u32 = 32;
pub const KAUTH_VNODE_DELETE_CHILD: u32 = 64;
pub const KAUTH_VNODE_READ_ATTRIBUTES: u32 = 128;
pub const KAUTH_VNODE_WRITE_ATTRIBUTES: u32 = 256;
pub const KAUTH_VNODE_READ_EXTATTRIBUTES: u32 = 512;
pub const KAUTH_VNODE_WRITE_EXTATTRIBUTES: u32 = 1024;
pub const KAUTH_VNODE_READ_SECURITY: u32 = 2048;
pub const KAUTH_VNODE_WRITE_SECURITY: u32 = 4096;
pub const KAUTH_VNODE_TAKE_OWNERSHIP: u32 = 8192;
pub const KAUTH_VNODE_CHANGE_OWNER: u32 = 8192;
pub const KAUTH_VNODE_SYNCHRONIZE: u32 = 1048576;
pub const KAUTH_VNODE_LINKTARGET: u32 = 33554432;
pub const KAUTH_VNODE_CHECKIMMUTABLE: u32 = 67108864;
pub const KAUTH_VNODE_ACCESS: u32 = 2147483648;
pub const KAUTH_VNODE_NOIMMUTABLE: u32 = 1073741824;
pub const KAUTH_VNODE_SEARCHBYANYONE: u32 = 536870912;
pub const KAUTH_VNODE_GENERIC_READ_BITS: u32 = 2690;
pub const KAUTH_VNODE_GENERIC_WRITE_BITS: u32 = 5492;
pub const KAUTH_VNODE_GENERIC_EXECUTE_BITS: u32 = 8;
pub const KAUTH_VNODE_GENERIC_ALL_BITS: u32 = 8190;
pub const KAUTH_VNODE_WRITE_RIGHTS: u32 = 100676980;
pub const __DARWIN_ACL_READ_DATA: u32 = 2;
pub const __DARWIN_ACL_LIST_DIRECTORY: u32 = 2;
pub const __DARWIN_ACL_WRITE_DATA: u32 = 4;
pub const __DARWIN_ACL_ADD_FILE: u32 = 4;
pub const __DARWIN_ACL_EXECUTE: u32 = 8;
pub const __DARWIN_ACL_SEARCH: u32 = 8;
pub const __DARWIN_ACL_DELETE: u32 = 16;
pub const __DARWIN_ACL_APPEND_DATA: u32 = 32;
pub const __DARWIN_ACL_ADD_SUBDIRECTORY: u32 = 32;
pub const __DARWIN_ACL_DELETE_CHILD: u32 = 64;
pub const __DARWIN_ACL_READ_ATTRIBUTES: u32 = 128;
pub const __DARWIN_ACL_WRITE_ATTRIBUTES: u32 = 256;
pub const __DARWIN_ACL_READ_EXTATTRIBUTES: u32 = 512;
pub const __DARWIN_ACL_WRITE_EXTATTRIBUTES: u32 = 1024;
pub const __DARWIN_ACL_READ_SECURITY: u32 = 2048;
pub const __DARWIN_ACL_WRITE_SECURITY: u32 = 4096;
pub const __DARWIN_ACL_CHANGE_OWNER: u32 = 8192;
pub const __DARWIN_ACL_SYNCHRONIZE: u32 = 1048576;
pub const __DARWIN_ACL_EXTENDED_ALLOW: u32 = 1;
pub const __DARWIN_ACL_EXTENDED_DENY: u32 = 2;
pub const __DARWIN_ACL_ENTRY_INHERITED: u32 = 16;
pub const __DARWIN_ACL_ENTRY_FILE_INHERIT: u32 = 32;
pub const __DARWIN_ACL_ENTRY_DIRECTORY_INHERIT: u32 = 64;
pub const __DARWIN_ACL_ENTRY_LIMIT_INHERIT: u32 = 128;
pub const __DARWIN_ACL_ENTRY_ONLY_INHERIT: u32 = 256;
pub const __DARWIN_ACL_FLAG_NO_INHERIT: u32 = 131072;
pub const ACL_MAX_ENTRIES: u32 = 128;
pub const __COREFOUNDATION_CFSTRINGTOKENIZER__: u32 = 1;
pub const __COREFOUNDATION_CFFILEDESCRIPTOR__: u32 = 1;
pub const __COREFOUNDATION_CFUSERNOTIFICATION__: u32 = 1;
pub const __COREFOUNDATION_CFXMLNODE__: u32 = 1;
pub const __CFXMLNode_DEPRECATION_MSG: &[u8; 83] =
b"CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead\0";
pub const __COREFOUNDATION_CFXMLPARSER__: u32 = 1;
pub const __CFXMLParser_DEPRECATION_MSG: &[u8; 85] =
b"CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead\0";
pub const kAudioComponentConfigurationInfo_ValidationResult: &[u8; 17] = b"ValidationResult\0";
pub const kAudioComponentValidationParameter_TimeOut: &[u8; 8] = b"TimeOut\0";
pub const kAudioComponentValidationParameter_ForceValidation: &[u8; 16] = b"ForceValidation\0";
pub const kAudioComponentValidationParameter_LoadOutOfProcess: &[u8; 17] = b"LoadOutOfProcess\0";
pub const AU_SUPPORT_INTERAPP_AUDIO: u32 = 1;
pub const kAudioSettings_TopLevelKey: &[u8; 5] = b"name\0";
pub const kAudioSettings_Version: &[u8; 8] = b"version\0";
pub const kAudioSettings_Parameters: &[u8; 11] = b"parameters\0";
pub const kAudioSettings_SettingKey: &[u8; 4] = b"key\0";
pub const kAudioSettings_SettingName: &[u8; 5] = b"name\0";
pub const kAudioSettings_ValueType: &[u8; 11] = b"value type\0";
pub const kAudioSettings_AvailableValues: &[u8; 17] = b"available values\0";
pub const kAudioSettings_LimitedValues: &[u8; 15] = b"limited values\0";
pub const kAudioSettings_CurrentValue: &[u8; 14] = b"current value\0";
pub const kAudioSettings_Summary: &[u8; 8] = b"summary\0";
pub const kAudioSettings_Hint: &[u8; 5] = b"hint\0";
pub const kAudioSettings_Unit: &[u8; 5] = b"unit\0";
pub const kAUPresetVersionKey: &[u8; 8] = b"version\0";
pub const kAUPresetTypeKey: &[u8; 5] = b"type\0";
pub const kAUPresetSubtypeKey: &[u8; 8] = b"subtype\0";
pub const kAUPresetManufacturerKey: &[u8; 13] = b"manufacturer\0";
pub const kAUPresetDataKey: &[u8; 5] = b"data\0";
pub const kAUPresetNameKey: &[u8; 5] = b"name\0";
pub const kAUPresetNumberKey: &[u8; 14] = b"preset-number\0";
pub const kAUPresetRenderQualityKey: &[u8; 15] = b"render-quality\0";
pub const kAUPresetCPULoadKey: &[u8; 9] = b"cpu-load\0";
pub const kAUPresetElementNameKey: &[u8; 13] = b"element-name\0";
pub const kAUPresetExternalFileRefs: &[u8; 16] = b"file-references\0";
pub const kAUPresetVSTDataKey: &[u8; 8] = b"vstdata\0";
pub const kAUPresetVSTPresetKey: &[u8; 10] = b"vstpreset\0";
pub const kAUPresetMASDataKey: &[u8; 8] = b"masdata\0";
pub const kAUPresetPartKey: &[u8; 5] = b"part\0";
pub const kAudioUnitConfigurationInfo_HasCustomView: &[u8; 14] = b"HasCustomView\0";
pub const kAudioUnitConfigurationInfo_ChannelConfigurations: &[u8; 22] = b"ChannelConfigurations\0";
pub const kAudioUnitConfigurationInfo_InitialInputs: &[u8; 14] = b"InitialInputs\0";
pub const kAudioUnitConfigurationInfo_InitialOutputs: &[u8; 15] = b"InitialOutputs\0";
pub const kAudioUnitConfigurationInfo_IconURL: &[u8; 8] = b"IconURL\0";
pub const kAudioUnitConfigurationInfo_BusCountWritable: &[u8; 17] = b"BusCountWritable\0";
pub const kAudioUnitConfigurationInfo_SupportedChannelLayoutTags: &[u8; 27] =
b"SupportedChannelLayoutTags\0";
pub const kAudioUnitConfigurationInfo_MIDIProtocol: &[u8; 13] = b"MIDIProtocol\0";
pub const kAudioUnitConfigurationInfo_MigrateFromPlugin: &[u8; 18] = b"MigrateFromPlugin\0";
pub const kAudioUnitConfigurationInfo_AvailableArchitectures: &[u8; 23] =
b"AvailableArchitectures\0";
pub const kAudioEndPointDeviceUIDKey: &[u8; 4] = b"uid\0";
pub const kAudioEndPointDeviceNameKey: &[u8; 5] = b"name\0";
pub const kAudioEndPointDeviceEndPointListKey: &[u8; 10] = b"endpoints\0";
pub const kAudioEndPointDeviceMainEndPointKey: &[u8; 5] = b"main\0";
pub const kAudioEndPointDeviceMasterEndPointKey: &[u8; 7] = b"master\0";
pub const kAudioEndPointDeviceIsPrivateKey: &[u8; 8] = b"private\0";
pub const kAudioEndPointUIDKey: &[u8; 4] = b"uid\0";
pub const kAudioEndPointNameKey: &[u8; 5] = b"name\0";
pub const kAudioEndPointInputChannelsKey: &[u8; 12] = b"channels-in\0";
pub const kAudioEndPointOutputChannelsKey: &[u8; 13] = b"channels-out\0";
pub const kAudioAggregateDeviceUIDKey: &[u8; 4] = b"uid\0";
pub const kAudioAggregateDeviceNameKey: &[u8; 5] = b"name\0";
pub const kAudioAggregateDeviceSubDeviceListKey: &[u8; 11] = b"subdevices\0";
pub const kAudioAggregateDeviceMainSubDeviceKey: &[u8; 7] = b"master\0";
pub const kAudioAggregateDeviceClockDeviceKey: &[u8; 6] = b"clock\0";
pub const kAudioAggregateDeviceIsPrivateKey: &[u8; 8] = b"private\0";
pub const kAudioAggregateDeviceIsStackedKey: &[u8; 8] = b"stacked\0";
pub const kAudioAggregateDeviceTapListKey: &[u8; 5] = b"taps\0";
pub const kAudioAggregateDeviceTapAutoStartKey: &[u8; 13] = b"tapautostart\0";
pub const kAudioSubDeviceUIDKey: &[u8; 4] = b"uid\0";
pub const kAudioSubDeviceNameKey: &[u8; 5] = b"name\0";
pub const kAudioSubDeviceInputChannelsKey: &[u8; 12] = b"channels-in\0";
pub const kAudioSubDeviceOutputChannelsKey: &[u8; 13] = b"channels-out\0";
pub const kAudioSubDeviceExtraInputLatencyKey: &[u8; 11] = b"latency-in\0";
pub const kAudioSubDeviceExtraOutputLatencyKey: &[u8; 12] = b"latency-out\0";
pub const kAudioSubDeviceDriftCompensationKey: &[u8; 6] = b"drift\0";
pub const kAudioSubDeviceDriftCompensationQualityKey: &[u8; 14] = b"drift quality\0";
pub const kAudioSubTapUIDKey: &[u8; 4] = b"uid\0";
pub const kAudioSubTapExtraInputLatencyKey: &[u8; 11] = b"latency-in\0";
pub const kAudioSubTapExtraOutputLatencyKey: &[u8; 12] = b"latency-out\0";
pub const kAudioSubTapDriftCompensationKey: &[u8; 6] = b"drift\0";
pub const kAudioSubTapDriftCompensationQualityKey: &[u8; 14] = b"drift quality\0";
pub const kAudioHardwareRunLoopMode: &[u8; 26] = b"com.apple.audio.CoreAudio\0";
pub const kAudioAggregateDeviceMasterSubDeviceKey: &[u8; 7] = b"master\0";
pub const OSTYPES_K64_REV: u32 = 2;
pub const kIOAudioEngineNumCalls: u32 = 6;
pub const kIOAudioEngineCurrentStatusStructVersion: u32 = 2;
pub const kFormatExtensionInvalidVersion: u32 = 0;
pub const kFormatExtensionCurrentVersion: u32 = 1;
pub const kStreamDataDescriptorInvalidVersion: u32 = 0;
pub const kStreamDataDescriptorCurrentVersion: u32 = 1;
pub const kIOAudioControlNumCalls: u32 = 2;
pub const kNoIdleAudioPowerDown: i32 = -1;
pub const kIOAudioChannelLabel_Discrete_field_ba: u32 = 16;
pub type wchar_t = ::std::os::raw::c_int;
pub type max_align_t = u128;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
pub __mbstate8: [::std::os::raw::c_char; 128usize],
pub _mbstateL: ::std::os::raw::c_longlong,
}
impl Default for __mbstate_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __next: *mut __darwin_pthread_handler_rec,
}
impl Default for __darwin_pthread_handler_rec {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_attr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
impl Default for _opaque_pthread_attr_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_cond_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 40usize],
}
impl Default for _opaque_pthread_cond_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
impl Default for _opaque_pthread_mutex_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_once_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 192usize],
}
impl Default for _opaque_pthread_rwlock_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_t {
pub __sig: ::std::os::raw::c_long,
pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
pub __opaque: [::std::os::raw::c_char; 8176usize],
}
impl Default for _opaque_pthread_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulonglong;
pub type register_t = i64;
pub type user_addr_t = u_int64_t;
pub type user_size_t = u_int64_t;
pub type user_ssize_t = i64;
pub type user_long_t = i64;
pub type user_ulong_t = u_int64_t;
pub type user_time_t = i64;
pub type user_off_t = i64;
pub type syscall_arg_t = u_int64_t;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn _Block_copy(aBlock: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn _Block_release(aBlock: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn _Block_object_assign(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn _Block_object_dispose(arg1: *const ::std::os::raw::c_void, arg2: ::std::os::raw::c_int);
}
extern "C" {
pub static mut _NSConcreteGlobalBlock: [*mut ::std::os::raw::c_void; 32usize];
}
extern "C" {
pub static mut _NSConcreteStackBlock: [*mut ::std::os::raw::c_void; 32usize];
}
pub type u_char = ::std::os::raw::c_uchar;
pub type u_short = ::std::os::raw::c_ushort;
pub type u_int = ::std::os::raw::c_uint;
pub type u_long = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_quad_t = u_int64_t;
pub type quad_t = i64;
pub type qaddr_t = *mut quad_t;
pub type caddr_t = *mut ::std::os::raw::c_char;
pub type daddr_t = i32;
pub type dev_t = __darwin_dev_t;
pub type fixpt_t = u_int32_t;
pub type blkcnt_t = __darwin_blkcnt_t;
pub type blksize_t = __darwin_blksize_t;
pub type gid_t = __darwin_gid_t;
pub type in_addr_t = __uint32_t;
pub type in_port_t = __uint16_t;
pub type ino_t = __darwin_ino_t;
pub type ino64_t = __darwin_ino64_t;
pub type key_t = __int32_t;
pub type mode_t = __darwin_mode_t;
pub type nlink_t = __uint16_t;
pub type id_t = __darwin_id_t;
pub type pid_t = __darwin_pid_t;
pub type off_t = __darwin_off_t;
pub type segsz_t = i32;
pub type swblk_t = i32;
pub type uid_t = __darwin_uid_t;
pub type clock_t = __darwin_clock_t;
pub type time_t = __darwin_time_t;
pub type useconds_t = __darwin_useconds_t;
pub type suseconds_t = __darwin_suseconds_t;
pub type rsize_t = __darwin_size_t;
pub type errno_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fd_set {
pub fds_bits: [__int32_t; 32usize],
}
extern "C" {
pub fn __darwin_check_fd_set_overflow(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub type fd_mask = __int32_t;
pub type pthread_attr_t = __darwin_pthread_attr_t;
pub type pthread_cond_t = __darwin_pthread_cond_t;
pub type pthread_condattr_t = __darwin_pthread_condattr_t;
pub type pthread_mutex_t = __darwin_pthread_mutex_t;
pub type pthread_mutexattr_t = __darwin_pthread_mutexattr_t;
pub type pthread_once_t = __darwin_pthread_once_t;
pub type pthread_rwlock_t = __darwin_pthread_rwlock_t;
pub type pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t;
pub type pthread_t = __darwin_pthread_t;
pub type pthread_key_t = __darwin_pthread_key_t;
pub type fsblkcnt_t = __darwin_fsblkcnt_t;
pub type fsfilcnt_t = __darwin_fsfilcnt_t;
pub type UInt8 = ::std::os::raw::c_uchar;
pub type SInt8 = ::std::os::raw::c_schar;
pub type UInt16 = ::std::os::raw::c_ushort;
pub type SInt16 = ::std::os::raw::c_short;
pub type UInt32 = ::std::os::raw::c_uint;
pub type SInt32 = ::std::os::raw::c_int;
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wide {
pub lo: UInt32,
pub hi: SInt32,
}
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct UnsignedWide {
pub lo: UInt32,
pub hi: UInt32,
}
pub type SInt64 = ::std::os::raw::c_longlong;
pub type UInt64 = ::std::os::raw::c_ulonglong;
pub type Fixed = SInt32;
pub type FixedPtr = *mut Fixed;
pub type Fract = SInt32;
pub type FractPtr = *mut Fract;
pub type UnsignedFixed = UInt32;
pub type UnsignedFixedPtr = *mut UnsignedFixed;
pub type ShortFixed = ::std::os::raw::c_short;
pub type ShortFixedPtr = *mut ShortFixed;
pub type Float32 = f32;
pub type Float64 = f64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct Float80 {
pub exp: SInt16,
pub man: [UInt16; 4usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct Float96 {
pub exp: [SInt16; 2usize],
pub man: [UInt16; 4usize],
}
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct Float32Point {
pub x: Float32,
pub y: Float32,
}
pub type Ptr = *mut ::std::os::raw::c_char;
pub type Handle = *mut Ptr;
pub type Size = ::std::os::raw::c_long;
pub type OSErr = SInt16;
pub type OSStatus = SInt32;
pub type LogicalAddress = *mut ::std::os::raw::c_void;
pub type ConstLogicalAddress = *const ::std::os::raw::c_void;
pub type PhysicalAddress = *mut ::std::os::raw::c_void;
pub type BytePtr = *mut UInt8;
pub type ByteCount = ::std::os::raw::c_ulong;
pub type ByteOffset = ::std::os::raw::c_ulong;
pub type Duration = SInt32;
pub type AbsoluteTime = UnsignedWide;
pub type OptionBits = UInt32;
pub type ItemCount = ::std::os::raw::c_ulong;
pub type PBVersion = UInt32;
pub type ScriptCode = SInt16;
pub type LangCode = SInt16;
pub type RegionCode = SInt16;
pub type FourCharCode = UInt32;
pub type OSType = FourCharCode;
pub type ResType = FourCharCode;
pub type OSTypePtr = *mut OSType;
pub type ResTypePtr = *mut ResType;
pub type Boolean = ::std::os::raw::c_uchar;
pub type ProcPtr = ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_long>;
pub type Register68kProcPtr = ::std::option::Option<unsafe extern "C" fn()>;
pub type UniversalProcPtr = ProcPtr;
pub type ProcHandle = *mut ProcPtr;
pub type UniversalProcHandle = *mut UniversalProcPtr;
pub type PRefCon = *mut ::std::os::raw::c_void;
pub type URefCon = *mut ::std::os::raw::c_void;
pub type SRefCon = *mut ::std::os::raw::c_void;
pub const noErr: _bindgen_ty_1 = 0;
pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
pub const kNilOptions: _bindgen_ty_2 = 0;
pub type _bindgen_ty_2 = ::std::os::raw::c_uint;
pub const kVariableLengthArray: _bindgen_ty_3 = 1;
pub type _bindgen_ty_3 = ::std::os::raw::c_uint;
pub const kUnknownType: _bindgen_ty_4 = 1061109567;
pub type _bindgen_ty_4 = ::std::os::raw::c_uint;
pub type UnicodeScalarValue = UInt32;
pub type UTF32Char = UInt32;
pub type UniChar = UInt16;
pub type UTF16Char = UInt16;
pub type UTF8Char = UInt8;
pub type UniCharPtr = *mut UniChar;
pub type UniCharCount = ::std::os::raw::c_ulong;
pub type UniCharCountPtr = *mut UniCharCount;
pub type Str255 = [::std::os::raw::c_uchar; 256usize];
pub type Str63 = [::std::os::raw::c_uchar; 64usize];
pub type Str32 = [::std::os::raw::c_uchar; 33usize];
pub type Str31 = [::std::os::raw::c_uchar; 32usize];
pub type Str27 = [::std::os::raw::c_uchar; 28usize];
pub type Str15 = [::std::os::raw::c_uchar; 16usize];
pub type Str32Field = [::std::os::raw::c_uchar; 34usize];
pub type StrFileName = Str63;
pub type StringPtr = *mut ::std::os::raw::c_uchar;
pub type StringHandle = *mut StringPtr;
pub type ConstStringPtr = *const ::std::os::raw::c_uchar;
pub type ConstStr255Param = *const ::std::os::raw::c_uchar;
pub type ConstStr63Param = *const ::std::os::raw::c_uchar;
pub type ConstStr32Param = *const ::std::os::raw::c_uchar;
pub type ConstStr31Param = *const ::std::os::raw::c_uchar;
pub type ConstStr27Param = *const ::std::os::raw::c_uchar;
pub type ConstStr15Param = *const ::std::os::raw::c_uchar;
pub type ConstStrFileNameParam = ConstStr63Param;
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct ProcessSerialNumber {
pub highLongOfPSN: UInt32,
pub lowLongOfPSN: UInt32,
}
pub type ProcessSerialNumberPtr = *mut ProcessSerialNumber;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct Point {
pub v: ::std::os::raw::c_short,
pub h: ::std::os::raw::c_short,
}
pub type PointPtr = *mut Point;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct Rect {
pub top: ::std::os::raw::c_short,
pub left: ::std::os::raw::c_short,
pub bottom: ::std::os::raw::c_short,
pub right: ::std::os::raw::c_short,
}
pub type RectPtr = *mut Rect;
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct FixedPoint {
pub x: Fixed,
pub y: Fixed,
}
#[repr(C, packed(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct FixedRect {
pub left: Fixed,
pub top: Fixed,
pub right: Fixed,
pub bottom: Fixed,
}
pub type CharParameter = ::std::os::raw::c_short;
pub const normal: _bindgen_ty_5 = 0;
pub const bold: _bindgen_ty_5 = 1;
pub const italic: _bindgen_ty_5 = 2;
pub const underline: _bindgen_ty_5 = 4;
pub const outline: _bindgen_ty_5 = 8;
pub const shadow: _bindgen_ty_5 = 16;
pub const condense: _bindgen_ty_5 = 32;
pub const extend: _bindgen_ty_5 = 64;
pub type _bindgen_ty_5 = ::std::os::raw::c_uint;
pub type Style = ::std::os::raw::c_uchar;
pub type StyleParameter = ::std::os::raw::c_short;
pub type StyleField = Style;
pub type TimeValue = SInt32;
pub type TimeScale = SInt32;
pub type CompTimeValue = wide;
pub type TimeValue64 = SInt64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TimeBaseRecord {
_unused: [u8; 0],
}
pub type TimeBase = *mut TimeBaseRecord;
#[repr(C, packed(2))]
#[derive(Debug, Copy, Clone)]
pub struct TimeRecord {
pub value: CompTimeValue,
pub scale: TimeScale,
pub base: TimeBase,
}
impl Default for TimeRecord {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct NumVersion {
pub nonRelRev: UInt8,
pub stage: UInt8,
pub minorAndBugRev: UInt8,
pub majorRev: UInt8,
}
pub const developStage: _bindgen_ty_6 = 32;
pub const alphaStage: _bindgen_ty_6 = 64;
pub const betaStage: _bindgen_ty_6 = 96;
pub const finalStage: _bindgen_ty_6 = 128;
pub type _bindgen_ty_6 = ::std::os::raw::c_uint;
#[repr(C, packed(2))]
#[derive(Copy, Clone)]
pub union NumVersionVariant {
pub parts: NumVersion,
pub whole: UInt32,
}
impl Default for NumVersionVariant {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type NumVersionVariantPtr = *mut NumVersionVariant;
pub type NumVersionVariantHandle = *mut NumVersionVariantPtr;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VersRec {
pub numericVersion: NumVersion,
pub countryCode: ::std::os::raw::c_short,
pub shortVersion: Str255,
pub reserved: Str255,
}
impl Default for VersRec {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type VersRecPtr = *mut VersRec;
pub type VersRecHndl = *mut VersRecPtr;
pub type Byte = UInt8;
pub type SignedByte = SInt8;
pub type WidePtr = *mut wide;
pub type UnsignedWidePtr = *mut UnsignedWide;
pub type extended80 = Float80;
pub type extended96 = Float96;
pub type VHSelect = SInt8;
extern "C" {
pub fn Debugger();
}
extern "C" {
pub fn DebugStr(debuggerMsg: ConstStr255Param);
}
extern "C" {
pub fn SysBreak();
}
extern "C" {
pub fn SysBreakStr(debuggerMsg: ConstStr255Param);
}
extern "C" {
pub fn SysBreakFunc(debuggerMsg: ConstStr255Param);
}
extern "C" {
pub static mut kCFCoreFoundationVersionNumber: f64;
}
pub type CFTypeID = ::std::os::raw::c_ulong;
pub type CFOptionFlags = ::std::os::raw::c_ulong;
pub type CFHashCode = ::std::os::raw::c_ulong;
pub type CFIndex = ::std::os::raw::c_long;
pub type CFTypeRef = *const ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFString {
_unused: [u8; 0],
}
pub type CFStringRef = *const __CFString;
pub type CFMutableStringRef = *mut __CFString;
pub type CFPropertyListRef = CFTypeRef;
pub type CFComparisonResult = CFIndex;
pub const kCFCompareLessThan: _bindgen_ty_7 = -1;
pub const kCFCompareEqualTo: _bindgen_ty_7 = 0;
pub const kCFCompareGreaterThan: _bindgen_ty_7 = 1;
pub type _bindgen_ty_7 = ::std::os::raw::c_int;
pub type CFComparatorFunction = ::std::option::Option<
unsafe extern "C" fn(
val1: *const ::std::os::raw::c_void,
val2: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
) -> CFComparisonResult,
>;
pub const kCFNotFound: CFIndex = -1;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFRange {
pub location: CFIndex,
pub length: CFIndex,
}
extern "C" {
pub fn __CFRangeMake(loc: CFIndex, len: CFIndex) -> CFRange;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFNull {
_unused: [u8; 0],
}
pub type CFNullRef = *const __CFNull;
extern "C" {
pub fn CFNullGetTypeID() -> CFTypeID;
}
extern "C" {
pub static kCFNull: CFNullRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFAllocator {
_unused: [u8; 0],
}
pub type CFAllocatorRef = *const __CFAllocator;
extern "C" {
pub static kCFAllocatorDefault: CFAllocatorRef;
}
extern "C" {
pub static kCFAllocatorSystemDefault: CFAllocatorRef;
}
extern "C" {
pub static kCFAllocatorMalloc: CFAllocatorRef;
}
extern "C" {
pub static kCFAllocatorMallocZone: CFAllocatorRef;
}
extern "C" {
pub static kCFAllocatorNull: CFAllocatorRef;
}
extern "C" {
pub static kCFAllocatorUseContext: CFAllocatorRef;
}
pub type CFAllocatorRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>;
pub type CFAllocatorReleaseCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>;
pub type CFAllocatorCopyDescriptionCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef>;
pub type CFAllocatorAllocateCallBack = ::std::option::Option<
unsafe extern "C" fn(
allocSize: CFIndex,
hint: CFOptionFlags,
info: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type CFAllocatorReallocateCallBack = ::std::option::Option<
unsafe extern "C" fn(
ptr: *mut ::std::os::raw::c_void,
newsize: CFIndex,
hint: CFOptionFlags,
info: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type CFAllocatorDeallocateCallBack = ::std::option::Option<
unsafe extern "C" fn(ptr: *mut ::std::os::raw::c_void, info: *mut ::std::os::raw::c_void),
>;
pub type CFAllocatorPreferredSizeCallBack = ::std::option::Option<
unsafe extern "C" fn(
size: CFIndex,
hint: CFOptionFlags,
info: *mut ::std::os::raw::c_void,
) -> CFIndex,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFAllocatorContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: CFAllocatorRetainCallBack,
pub release: CFAllocatorReleaseCallBack,
pub copyDescription: CFAllocatorCopyDescriptionCallBack,
pub allocate: CFAllocatorAllocateCallBack,
pub reallocate: CFAllocatorReallocateCallBack,
pub deallocate: CFAllocatorDeallocateCallBack,
pub preferredSize: CFAllocatorPreferredSizeCallBack,
}
impl Default for CFAllocatorContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn CFAllocatorGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFAllocatorSetDefault(allocator: CFAllocatorRef);
}
extern "C" {
pub fn CFAllocatorGetDefault() -> CFAllocatorRef;
}
extern "C" {
pub fn CFAllocatorCreate(
allocator: CFAllocatorRef,
context: *mut CFAllocatorContext,
) -> CFAllocatorRef;
}
extern "C" {
pub fn CFAllocatorAllocate(
allocator: CFAllocatorRef,
size: CFIndex,
hint: CFOptionFlags,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFAllocatorReallocate(
allocator: CFAllocatorRef,
ptr: *mut ::std::os::raw::c_void,
newsize: CFIndex,
hint: CFOptionFlags,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFAllocatorDeallocate(allocator: CFAllocatorRef, ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn CFAllocatorGetPreferredSizeForSize(
allocator: CFAllocatorRef,
size: CFIndex,
hint: CFOptionFlags,
) -> CFIndex;
}
extern "C" {
pub fn CFAllocatorGetContext(allocator: CFAllocatorRef, context: *mut CFAllocatorContext);
}
extern "C" {
pub fn CFGetTypeID(cf: CFTypeRef) -> CFTypeID;
}
extern "C" {
pub fn CFCopyTypeIDDescription(type_id: CFTypeID) -> CFStringRef;
}
extern "C" {
pub fn CFRetain(cf: CFTypeRef) -> CFTypeRef;
}
extern "C" {
pub fn CFRelease(cf: CFTypeRef);
}
extern "C" {
pub fn CFAutorelease(arg: CFTypeRef) -> CFTypeRef;
}
extern "C" {
pub fn CFGetRetainCount(cf: CFTypeRef) -> CFIndex;
}
extern "C" {
pub fn CFEqual(cf1: CFTypeRef, cf2: CFTypeRef) -> Boolean;
}
extern "C" {
pub fn CFHash(cf: CFTypeRef) -> CFHashCode;
}
extern "C" {
pub fn CFCopyDescription(cf: CFTypeRef) -> CFStringRef;
}
extern "C" {
pub fn CFGetAllocator(cf: CFTypeRef) -> CFAllocatorRef;
}
extern "C" {
pub fn CFMakeCollectable(cf: CFTypeRef) -> CFTypeRef;
}
pub const kAudio_NoError: _bindgen_ty_8 = 0;
pub const kAudio_UnimplementedError: _bindgen_ty_8 = -4;
pub const kAudio_FileNotFoundError: _bindgen_ty_8 = -43;
pub const kAudio_FilePermissionError: _bindgen_ty_8 = -54;
pub const kAudio_TooManyFilesOpenError: _bindgen_ty_8 = -42;
pub const kAudio_BadFilePathError: _bindgen_ty_8 = 561017960;
pub const kAudio_ParamError: _bindgen_ty_8 = -50;
pub const kAudio_MemFullError: _bindgen_ty_8 = -108;
pub type _bindgen_ty_8 = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioValueRange {
pub mMinimum: Float64,
pub mMaximum: Float64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioValueTranslation {
pub mInputData: *mut ::std::os::raw::c_void,
pub mInputDataSize: UInt32,
pub mOutputData: *mut ::std::os::raw::c_void,
pub mOutputDataSize: UInt32,
}
impl Default for AudioValueTranslation {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioBuffer {
pub mNumberChannels: UInt32,
pub mDataByteSize: UInt32,
pub mData: *mut ::std::os::raw::c_void,
}
impl Default for AudioBuffer {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioBufferList {
pub mNumberBuffers: UInt32,
pub mBuffers: [AudioBuffer; 1usize],
}
impl Default for AudioBufferList {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AudioSampleType = Float32;
pub type AudioUnitSampleType = Float32;
pub type AudioFormatID = UInt32;
pub type AudioFormatFlags = UInt32;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioStreamBasicDescription {
pub mSampleRate: Float64,
pub mFormatID: AudioFormatID,
pub mFormatFlags: AudioFormatFlags,
pub mBytesPerPacket: UInt32,
pub mFramesPerPacket: UInt32,
pub mBytesPerFrame: UInt32,
pub mChannelsPerFrame: UInt32,
pub mBitsPerChannel: UInt32,
pub mReserved: UInt32,
}
pub const kAudioStreamAnyRate: Float64 = 0.0;
pub const kAudioFormatLinearPCM: _bindgen_ty_9 = 1819304813;
pub const kAudioFormatAC3: _bindgen_ty_9 = 1633889587;
pub const kAudioFormat60958AC3: _bindgen_ty_9 = 1667326771;
pub const kAudioFormatAppleIMA4: _bindgen_ty_9 = 1768775988;
pub const kAudioFormatMPEG4AAC: _bindgen_ty_9 = 1633772320;
pub const kAudioFormatMPEG4CELP: _bindgen_ty_9 = 1667591280;
pub const kAudioFormatMPEG4HVXC: _bindgen_ty_9 = 1752594531;
pub const kAudioFormatMPEG4TwinVQ: _bindgen_ty_9 = 1953986161;
pub const kAudioFormatMACE3: _bindgen_ty_9 = 1296122675;
pub const kAudioFormatMACE6: _bindgen_ty_9 = 1296122678;
pub const kAudioFormatULaw: _bindgen_ty_9 = 1970037111;
pub const kAudioFormatALaw: _bindgen_ty_9 = 1634492791;
pub const kAudioFormatQDesign: _bindgen_ty_9 = 1363430723;
pub const kAudioFormatQDesign2: _bindgen_ty_9 = 1363430706;
pub const kAudioFormatQUALCOMM: _bindgen_ty_9 = 1365470320;
pub const kAudioFormatMPEGLayer1: _bindgen_ty_9 = 778924081;
pub const kAudioFormatMPEGLayer2: _bindgen_ty_9 = 778924082;
pub const kAudioFormatMPEGLayer3: _bindgen_ty_9 = 778924083;
pub const kAudioFormatTimeCode: _bindgen_ty_9 = 1953066341;
pub const kAudioFormatMIDIStream: _bindgen_ty_9 = 1835623529;
pub const kAudioFormatParameterValueStream: _bindgen_ty_9 = 1634760307;
pub const kAudioFormatAppleLossless: _bindgen_ty_9 = 1634492771;
pub const kAudioFormatMPEG4AAC_HE: _bindgen_ty_9 = 1633772392;
pub const kAudioFormatMPEG4AAC_LD: _bindgen_ty_9 = 1633772396;
pub const kAudioFormatMPEG4AAC_ELD: _bindgen_ty_9 = 1633772389;
pub const kAudioFormatMPEG4AAC_ELD_SBR: _bindgen_ty_9 = 1633772390;
pub const kAudioFormatMPEG4AAC_ELD_V2: _bindgen_ty_9 = 1633772391;
pub const kAudioFormatMPEG4AAC_HE_V2: _bindgen_ty_9 = 1633772400;
pub const kAudioFormatMPEG4AAC_Spatial: _bindgen_ty_9 = 1633772403;
pub const kAudioFormatMPEGD_USAC: _bindgen_ty_9 = 1970495843;
pub const kAudioFormatAMR: _bindgen_ty_9 = 1935764850;
pub const kAudioFormatAMR_WB: _bindgen_ty_9 = 1935767394;
pub const kAudioFormatAudible: _bindgen_ty_9 = 1096107074;
pub const kAudioFormatiLBC: _bindgen_ty_9 = 1768710755;
pub const kAudioFormatDVIIntelIMA: _bindgen_ty_9 = 1836253201;
pub const kAudioFormatMicrosoftGSM: _bindgen_ty_9 = 1836253233;
pub const kAudioFormatAES3: _bindgen_ty_9 = 1634038579;
pub const kAudioFormatEnhancedAC3: _bindgen_ty_9 = 1700998451;
pub const kAudioFormatFLAC: _bindgen_ty_9 = 1718378851;
pub const kAudioFormatOpus: _bindgen_ty_9 = 1869641075;
pub type _bindgen_ty_9 = ::std::os::raw::c_uint;
pub const kAudioFormatFlagIsFloat: _bindgen_ty_10 = 1;
pub const kAudioFormatFlagIsBigEndian: _bindgen_ty_10 = 2;
pub const kAudioFormatFlagIsSignedInteger: _bindgen_ty_10 = 4;
pub const kAudioFormatFlagIsPacked: _bindgen_ty_10 = 8;
pub const kAudioFormatFlagIsAlignedHigh: _bindgen_ty_10 = 16;
pub const kAudioFormatFlagIsNonInterleaved: _bindgen_ty_10 = 32;
pub const kAudioFormatFlagIsNonMixable: _bindgen_ty_10 = 64;
pub const kAudioFormatFlagsAreAllClear: _bindgen_ty_10 = 2147483648;
pub const kLinearPCMFormatFlagIsFloat: _bindgen_ty_10 = 1;
pub const kLinearPCMFormatFlagIsBigEndian: _bindgen_ty_10 = 2;
pub const kLinearPCMFormatFlagIsSignedInteger: _bindgen_ty_10 = 4;
pub const kLinearPCMFormatFlagIsPacked: _bindgen_ty_10 = 8;
pub const kLinearPCMFormatFlagIsAlignedHigh: _bindgen_ty_10 = 16;
pub const kLinearPCMFormatFlagIsNonInterleaved: _bindgen_ty_10 = 32;
pub const kLinearPCMFormatFlagIsNonMixable: _bindgen_ty_10 = 64;
pub const kLinearPCMFormatFlagsSampleFractionShift: _bindgen_ty_10 = 7;
pub const kLinearPCMFormatFlagsSampleFractionMask: _bindgen_ty_10 = 8064;
pub const kLinearPCMFormatFlagsAreAllClear: _bindgen_ty_10 = 2147483648;
pub const kAppleLosslessFormatFlag_16BitSourceData: _bindgen_ty_10 = 1;
pub const kAppleLosslessFormatFlag_20BitSourceData: _bindgen_ty_10 = 2;
pub const kAppleLosslessFormatFlag_24BitSourceData: _bindgen_ty_10 = 3;
pub const kAppleLosslessFormatFlag_32BitSourceData: _bindgen_ty_10 = 4;
pub type _bindgen_ty_10 = ::std::os::raw::c_uint;
pub const kAudioFormatFlagsNativeEndian: _bindgen_ty_11 = 0;
pub const kAudioFormatFlagsCanonical: _bindgen_ty_11 = 9;
pub const kAudioFormatFlagsAudioUnitCanonical: _bindgen_ty_11 = 41;
pub const kAudioFormatFlagsNativeFloatPacked: _bindgen_ty_11 = 9;
pub type _bindgen_ty_11 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioStreamPacketDescription {
pub mStartOffset: SInt64,
pub mVariableFramesInPacket: UInt32,
pub mDataByteSize: UInt32,
}
pub type SMPTETimeType = UInt32;
pub const kSMPTETimeType24: _bindgen_ty_12 = 0;
pub const kSMPTETimeType25: _bindgen_ty_12 = 1;
pub const kSMPTETimeType30Drop: _bindgen_ty_12 = 2;
pub const kSMPTETimeType30: _bindgen_ty_12 = 3;
pub const kSMPTETimeType2997: _bindgen_ty_12 = 4;
pub const kSMPTETimeType2997Drop: _bindgen_ty_12 = 5;
pub const kSMPTETimeType60: _bindgen_ty_12 = 6;
pub const kSMPTETimeType5994: _bindgen_ty_12 = 7;
pub const kSMPTETimeType60Drop: _bindgen_ty_12 = 8;
pub const kSMPTETimeType5994Drop: _bindgen_ty_12 = 9;
pub const kSMPTETimeType50: _bindgen_ty_12 = 10;
pub const kSMPTETimeType2398: _bindgen_ty_12 = 11;
pub type _bindgen_ty_12 = ::std::os::raw::c_uint;
pub type SMPTETimeFlags = UInt32;
pub const kSMPTETimeUnknown: _bindgen_ty_13 = 0;
pub const kSMPTETimeValid: _bindgen_ty_13 = 1;
pub const kSMPTETimeRunning: _bindgen_ty_13 = 2;
pub type _bindgen_ty_13 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct SMPTETime {
pub mSubframes: SInt16,
pub mSubframeDivisor: SInt16,
pub mCounter: UInt32,
pub mType: SMPTETimeType,
pub mFlags: SMPTETimeFlags,
pub mHours: SInt16,
pub mMinutes: SInt16,
pub mSeconds: SInt16,
pub mFrames: SInt16,
}
pub type AudioTimeStampFlags = UInt32;
pub const kAudioTimeStampNothingValid: _bindgen_ty_14 = 0;
pub const kAudioTimeStampSampleTimeValid: _bindgen_ty_14 = 1;
pub const kAudioTimeStampHostTimeValid: _bindgen_ty_14 = 2;
pub const kAudioTimeStampRateScalarValid: _bindgen_ty_14 = 4;
pub const kAudioTimeStampWordClockTimeValid: _bindgen_ty_14 = 8;
pub const kAudioTimeStampSMPTETimeValid: _bindgen_ty_14 = 16;
pub const kAudioTimeStampSampleHostTimeValid: _bindgen_ty_14 = 3;
pub type _bindgen_ty_14 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioTimeStamp {
pub mSampleTime: Float64,
pub mHostTime: UInt64,
pub mRateScalar: Float64,
pub mWordClockTime: UInt64,
pub mSMPTETime: SMPTETime,
pub mFlags: AudioTimeStampFlags,
pub mReserved: UInt32,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioClassDescription {
pub mType: OSType,
pub mSubType: OSType,
pub mManufacturer: OSType,
}
pub type AudioChannelLabel = UInt32;
pub type AudioChannelLayoutTag = UInt32;
pub const kAudioChannelLabel_Unknown: _bindgen_ty_15 = 4294967295;
pub const kAudioChannelLabel_Unused: _bindgen_ty_15 = 0;
pub const kAudioChannelLabel_UseCoordinates: _bindgen_ty_15 = 100;
pub const kAudioChannelLabel_Left: _bindgen_ty_15 = 1;
pub const kAudioChannelLabel_Right: _bindgen_ty_15 = 2;
pub const kAudioChannelLabel_Center: _bindgen_ty_15 = 3;
pub const kAudioChannelLabel_LFEScreen: _bindgen_ty_15 = 4;
pub const kAudioChannelLabel_LeftSurround: _bindgen_ty_15 = 5;
pub const kAudioChannelLabel_RightSurround: _bindgen_ty_15 = 6;
pub const kAudioChannelLabel_LeftCenter: _bindgen_ty_15 = 7;
pub const kAudioChannelLabel_RightCenter: _bindgen_ty_15 = 8;
pub const kAudioChannelLabel_CenterSurround: _bindgen_ty_15 = 9;
pub const kAudioChannelLabel_LeftSurroundDirect: _bindgen_ty_15 = 10;
pub const kAudioChannelLabel_RightSurroundDirect: _bindgen_ty_15 = 11;
pub const kAudioChannelLabel_TopCenterSurround: _bindgen_ty_15 = 12;
pub const kAudioChannelLabel_VerticalHeightLeft: _bindgen_ty_15 = 13;
pub const kAudioChannelLabel_VerticalHeightCenter: _bindgen_ty_15 = 14;
pub const kAudioChannelLabel_VerticalHeightRight: _bindgen_ty_15 = 15;
pub const kAudioChannelLabel_TopBackLeft: _bindgen_ty_15 = 16;
pub const kAudioChannelLabel_TopBackCenter: _bindgen_ty_15 = 17;
pub const kAudioChannelLabel_TopBackRight: _bindgen_ty_15 = 18;
pub const kAudioChannelLabel_RearSurroundLeft: _bindgen_ty_15 = 33;
pub const kAudioChannelLabel_RearSurroundRight: _bindgen_ty_15 = 34;
pub const kAudioChannelLabel_LeftWide: _bindgen_ty_15 = 35;
pub const kAudioChannelLabel_RightWide: _bindgen_ty_15 = 36;
pub const kAudioChannelLabel_LFE2: _bindgen_ty_15 = 37;
pub const kAudioChannelLabel_LeftTotal: _bindgen_ty_15 = 38;
pub const kAudioChannelLabel_RightTotal: _bindgen_ty_15 = 39;
pub const kAudioChannelLabel_HearingImpaired: _bindgen_ty_15 = 40;
pub const kAudioChannelLabel_Narration: _bindgen_ty_15 = 41;
pub const kAudioChannelLabel_Mono: _bindgen_ty_15 = 42;
pub const kAudioChannelLabel_DialogCentricMix: _bindgen_ty_15 = 43;
pub const kAudioChannelLabel_CenterSurroundDirect: _bindgen_ty_15 = 44;
pub const kAudioChannelLabel_Haptic: _bindgen_ty_15 = 45;
pub const kAudioChannelLabel_LeftTopFront: _bindgen_ty_15 = 13;
pub const kAudioChannelLabel_CenterTopFront: _bindgen_ty_15 = 14;
pub const kAudioChannelLabel_RightTopFront: _bindgen_ty_15 = 15;
pub const kAudioChannelLabel_LeftTopMiddle: _bindgen_ty_15 = 49;
pub const kAudioChannelLabel_CenterTopMiddle: _bindgen_ty_15 = 12;
pub const kAudioChannelLabel_RightTopMiddle: _bindgen_ty_15 = 51;
pub const kAudioChannelLabel_LeftTopRear: _bindgen_ty_15 = 52;
pub const kAudioChannelLabel_CenterTopRear: _bindgen_ty_15 = 53;
pub const kAudioChannelLabel_RightTopRear: _bindgen_ty_15 = 54;
pub const kAudioChannelLabel_LeftSideSurround: _bindgen_ty_15 = 55;
pub const kAudioChannelLabel_RightSideSurround: _bindgen_ty_15 = 56;
pub const kAudioChannelLabel_LeftBottom: _bindgen_ty_15 = 57;
pub const kAudioChannelLabel_RightBottom: _bindgen_ty_15 = 58;
pub const kAudioChannelLabel_CenterBottom: _bindgen_ty_15 = 59;
pub const kAudioChannelLabel_LeftTopSurround: _bindgen_ty_15 = 60;
pub const kAudioChannelLabel_RightTopSurround: _bindgen_ty_15 = 61;
pub const kAudioChannelLabel_LFE3: _bindgen_ty_15 = 62;
pub const kAudioChannelLabel_LeftBackSurround: _bindgen_ty_15 = 63;
pub const kAudioChannelLabel_RightBackSurround: _bindgen_ty_15 = 64;
pub const kAudioChannelLabel_LeftEdgeOfScreen: _bindgen_ty_15 = 65;
pub const kAudioChannelLabel_RightEdgeOfScreen: _bindgen_ty_15 = 66;
pub const kAudioChannelLabel_Ambisonic_W: _bindgen_ty_15 = 200;
pub const kAudioChannelLabel_Ambisonic_X: _bindgen_ty_15 = 201;
pub const kAudioChannelLabel_Ambisonic_Y: _bindgen_ty_15 = 202;
pub const kAudioChannelLabel_Ambisonic_Z: _bindgen_ty_15 = 203;
pub const kAudioChannelLabel_MS_Mid: _bindgen_ty_15 = 204;
pub const kAudioChannelLabel_MS_Side: _bindgen_ty_15 = 205;
pub const kAudioChannelLabel_XY_X: _bindgen_ty_15 = 206;
pub const kAudioChannelLabel_XY_Y: _bindgen_ty_15 = 207;
pub const kAudioChannelLabel_BinauralLeft: _bindgen_ty_15 = 208;
pub const kAudioChannelLabel_BinauralRight: _bindgen_ty_15 = 209;
pub const kAudioChannelLabel_HeadphonesLeft: _bindgen_ty_15 = 301;
pub const kAudioChannelLabel_HeadphonesRight: _bindgen_ty_15 = 302;
pub const kAudioChannelLabel_ClickTrack: _bindgen_ty_15 = 304;
pub const kAudioChannelLabel_ForeignLanguage: _bindgen_ty_15 = 305;
pub const kAudioChannelLabel_Discrete: _bindgen_ty_15 = 400;
pub const kAudioChannelLabel_Discrete_0: _bindgen_ty_15 = 65536;
pub const kAudioChannelLabel_Discrete_1: _bindgen_ty_15 = 65537;
pub const kAudioChannelLabel_Discrete_2: _bindgen_ty_15 = 65538;
pub const kAudioChannelLabel_Discrete_3: _bindgen_ty_15 = 65539;
pub const kAudioChannelLabel_Discrete_4: _bindgen_ty_15 = 65540;
pub const kAudioChannelLabel_Discrete_5: _bindgen_ty_15 = 65541;
pub const kAudioChannelLabel_Discrete_6: _bindgen_ty_15 = 65542;
pub const kAudioChannelLabel_Discrete_7: _bindgen_ty_15 = 65543;
pub const kAudioChannelLabel_Discrete_8: _bindgen_ty_15 = 65544;
pub const kAudioChannelLabel_Discrete_9: _bindgen_ty_15 = 65545;
pub const kAudioChannelLabel_Discrete_10: _bindgen_ty_15 = 65546;
pub const kAudioChannelLabel_Discrete_11: _bindgen_ty_15 = 65547;
pub const kAudioChannelLabel_Discrete_12: _bindgen_ty_15 = 65548;
pub const kAudioChannelLabel_Discrete_13: _bindgen_ty_15 = 65549;
pub const kAudioChannelLabel_Discrete_14: _bindgen_ty_15 = 65550;
pub const kAudioChannelLabel_Discrete_15: _bindgen_ty_15 = 65551;
pub const kAudioChannelLabel_Discrete_65535: _bindgen_ty_15 = 131071;
pub const kAudioChannelLabel_HOA_ACN: _bindgen_ty_15 = 500;
pub const kAudioChannelLabel_HOA_ACN_0: _bindgen_ty_15 = 131072;
pub const kAudioChannelLabel_HOA_ACN_1: _bindgen_ty_15 = 131073;
pub const kAudioChannelLabel_HOA_ACN_2: _bindgen_ty_15 = 131074;
pub const kAudioChannelLabel_HOA_ACN_3: _bindgen_ty_15 = 131075;
pub const kAudioChannelLabel_HOA_ACN_4: _bindgen_ty_15 = 131076;
pub const kAudioChannelLabel_HOA_ACN_5: _bindgen_ty_15 = 131077;
pub const kAudioChannelLabel_HOA_ACN_6: _bindgen_ty_15 = 131078;
pub const kAudioChannelLabel_HOA_ACN_7: _bindgen_ty_15 = 131079;
pub const kAudioChannelLabel_HOA_ACN_8: _bindgen_ty_15 = 131080;
pub const kAudioChannelLabel_HOA_ACN_9: _bindgen_ty_15 = 131081;
pub const kAudioChannelLabel_HOA_ACN_10: _bindgen_ty_15 = 131082;
pub const kAudioChannelLabel_HOA_ACN_11: _bindgen_ty_15 = 131083;
pub const kAudioChannelLabel_HOA_ACN_12: _bindgen_ty_15 = 131084;
pub const kAudioChannelLabel_HOA_ACN_13: _bindgen_ty_15 = 131085;
pub const kAudioChannelLabel_HOA_ACN_14: _bindgen_ty_15 = 131086;
pub const kAudioChannelLabel_HOA_ACN_15: _bindgen_ty_15 = 131087;
pub const kAudioChannelLabel_HOA_ACN_65024: _bindgen_ty_15 = 196096;
pub const kAudioChannelLabel_HOA_SN3D: _bindgen_ty_15 = 131072;
pub const kAudioChannelLabel_HOA_N3D: _bindgen_ty_15 = 196608;
pub const kAudioChannelLabel_Object: _bindgen_ty_15 = 262144;
pub const kAudioChannelLabel_BeginReserved: _bindgen_ty_15 = 4026531840;
pub const kAudioChannelLabel_EndReserved: _bindgen_ty_15 = 4294967294;
pub type _bindgen_ty_15 = ::std::os::raw::c_uint;
pub type AudioChannelBitmap = UInt32;
pub const kAudioChannelBit_Left: _bindgen_ty_16 = 1;
pub const kAudioChannelBit_Right: _bindgen_ty_16 = 2;
pub const kAudioChannelBit_Center: _bindgen_ty_16 = 4;
pub const kAudioChannelBit_LFEScreen: _bindgen_ty_16 = 8;
pub const kAudioChannelBit_LeftSurround: _bindgen_ty_16 = 16;
pub const kAudioChannelBit_RightSurround: _bindgen_ty_16 = 32;
pub const kAudioChannelBit_LeftCenter: _bindgen_ty_16 = 64;
pub const kAudioChannelBit_RightCenter: _bindgen_ty_16 = 128;
pub const kAudioChannelBit_CenterSurround: _bindgen_ty_16 = 256;
pub const kAudioChannelBit_LeftSurroundDirect: _bindgen_ty_16 = 512;
pub const kAudioChannelBit_RightSurroundDirect: _bindgen_ty_16 = 1024;
pub const kAudioChannelBit_TopCenterSurround: _bindgen_ty_16 = 2048;
pub const kAudioChannelBit_VerticalHeightLeft: _bindgen_ty_16 = 4096;
pub const kAudioChannelBit_VerticalHeightCenter: _bindgen_ty_16 = 8192;
pub const kAudioChannelBit_VerticalHeightRight: _bindgen_ty_16 = 16384;
pub const kAudioChannelBit_TopBackLeft: _bindgen_ty_16 = 32768;
pub const kAudioChannelBit_TopBackCenter: _bindgen_ty_16 = 65536;
pub const kAudioChannelBit_TopBackRight: _bindgen_ty_16 = 131072;
pub const kAudioChannelBit_LeftTopFront: _bindgen_ty_16 = 4096;
pub const kAudioChannelBit_CenterTopFront: _bindgen_ty_16 = 8192;
pub const kAudioChannelBit_RightTopFront: _bindgen_ty_16 = 16384;
pub const kAudioChannelBit_LeftTopMiddle: _bindgen_ty_16 = 2097152;
pub const kAudioChannelBit_CenterTopMiddle: _bindgen_ty_16 = 2048;
pub const kAudioChannelBit_RightTopMiddle: _bindgen_ty_16 = 8388608;
pub const kAudioChannelBit_LeftTopRear: _bindgen_ty_16 = 16777216;
pub const kAudioChannelBit_CenterTopRear: _bindgen_ty_16 = 33554432;
pub const kAudioChannelBit_RightTopRear: _bindgen_ty_16 = 67108864;
pub type _bindgen_ty_16 = ::std::os::raw::c_uint;
pub type AudioChannelFlags = UInt32;
pub const kAudioChannelFlags_AllOff: _bindgen_ty_17 = 0;
pub const kAudioChannelFlags_RectangularCoordinates: _bindgen_ty_17 = 1;
pub const kAudioChannelFlags_SphericalCoordinates: _bindgen_ty_17 = 2;
pub const kAudioChannelFlags_Meters: _bindgen_ty_17 = 4;
pub type _bindgen_ty_17 = ::std::os::raw::c_uint;
pub type AudioChannelCoordinateIndex = UInt32;
pub const kAudioChannelCoordinates_LeftRight: _bindgen_ty_18 = 0;
pub const kAudioChannelCoordinates_BackFront: _bindgen_ty_18 = 1;
pub const kAudioChannelCoordinates_DownUp: _bindgen_ty_18 = 2;
pub const kAudioChannelCoordinates_Azimuth: _bindgen_ty_18 = 0;
pub const kAudioChannelCoordinates_Elevation: _bindgen_ty_18 = 1;
pub const kAudioChannelCoordinates_Distance: _bindgen_ty_18 = 2;
pub type _bindgen_ty_18 = ::std::os::raw::c_uint;
pub const kAudioChannelLayoutTag_UseChannelDescriptions: _bindgen_ty_19 = 0;
pub const kAudioChannelLayoutTag_UseChannelBitmap: _bindgen_ty_19 = 65536;
pub const kAudioChannelLayoutTag_Mono: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_Stereo: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_StereoHeadphones: _bindgen_ty_19 = 6684674;
pub const kAudioChannelLayoutTag_MatrixStereo: _bindgen_ty_19 = 6750210;
pub const kAudioChannelLayoutTag_MidSide: _bindgen_ty_19 = 6815746;
pub const kAudioChannelLayoutTag_XY: _bindgen_ty_19 = 6881282;
pub const kAudioChannelLayoutTag_Binaural: _bindgen_ty_19 = 6946818;
pub const kAudioChannelLayoutTag_Ambisonic_B_Format: _bindgen_ty_19 = 7012356;
pub const kAudioChannelLayoutTag_Quadraphonic: _bindgen_ty_19 = 7077892;
pub const kAudioChannelLayoutTag_Pentagonal: _bindgen_ty_19 = 7143429;
pub const kAudioChannelLayoutTag_Hexagonal: _bindgen_ty_19 = 7208966;
pub const kAudioChannelLayoutTag_Octagonal: _bindgen_ty_19 = 7274504;
pub const kAudioChannelLayoutTag_Cube: _bindgen_ty_19 = 7340040;
pub const kAudioChannelLayoutTag_MPEG_1_0: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_MPEG_2_0: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_MPEG_3_0_A: _bindgen_ty_19 = 7405571;
pub const kAudioChannelLayoutTag_MPEG_3_0_B: _bindgen_ty_19 = 7471107;
pub const kAudioChannelLayoutTag_MPEG_4_0_A: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_MPEG_4_0_B: _bindgen_ty_19 = 7602180;
pub const kAudioChannelLayoutTag_MPEG_5_0_A: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_MPEG_5_0_B: _bindgen_ty_19 = 7733253;
pub const kAudioChannelLayoutTag_MPEG_5_0_C: _bindgen_ty_19 = 7798789;
pub const kAudioChannelLayoutTag_MPEG_5_0_D: _bindgen_ty_19 = 7864325;
pub const kAudioChannelLayoutTag_MPEG_5_1_A: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_MPEG_5_1_B: _bindgen_ty_19 = 7995398;
pub const kAudioChannelLayoutTag_MPEG_5_1_C: _bindgen_ty_19 = 8060934;
pub const kAudioChannelLayoutTag_MPEG_5_1_D: _bindgen_ty_19 = 8126470;
pub const kAudioChannelLayoutTag_MPEG_6_1_A: _bindgen_ty_19 = 8192007;
pub const kAudioChannelLayoutTag_MPEG_7_1_A: _bindgen_ty_19 = 8257544;
pub const kAudioChannelLayoutTag_MPEG_7_1_B: _bindgen_ty_19 = 8323080;
pub const kAudioChannelLayoutTag_MPEG_7_1_C: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_Emagic_Default_7_1: _bindgen_ty_19 = 8454152;
pub const kAudioChannelLayoutTag_SMPTE_DTV: _bindgen_ty_19 = 8519688;
pub const kAudioChannelLayoutTag_ITU_1_0: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_ITU_2_0: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_ITU_2_1: _bindgen_ty_19 = 8585219;
pub const kAudioChannelLayoutTag_ITU_2_2: _bindgen_ty_19 = 8650756;
pub const kAudioChannelLayoutTag_ITU_3_0: _bindgen_ty_19 = 7405571;
pub const kAudioChannelLayoutTag_ITU_3_1: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_ITU_3_2: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_ITU_3_2_1: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_ITU_3_4_1: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_DVD_0: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_DVD_1: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_DVD_2: _bindgen_ty_19 = 8585219;
pub const kAudioChannelLayoutTag_DVD_3: _bindgen_ty_19 = 8650756;
pub const kAudioChannelLayoutTag_DVD_4: _bindgen_ty_19 = 8716291;
pub const kAudioChannelLayoutTag_DVD_5: _bindgen_ty_19 = 8781828;
pub const kAudioChannelLayoutTag_DVD_6: _bindgen_ty_19 = 8847365;
pub const kAudioChannelLayoutTag_DVD_7: _bindgen_ty_19 = 7405571;
pub const kAudioChannelLayoutTag_DVD_8: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_DVD_9: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_DVD_10: _bindgen_ty_19 = 8912900;
pub const kAudioChannelLayoutTag_DVD_11: _bindgen_ty_19 = 8978437;
pub const kAudioChannelLayoutTag_DVD_12: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_DVD_13: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_DVD_14: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_DVD_15: _bindgen_ty_19 = 8912900;
pub const kAudioChannelLayoutTag_DVD_16: _bindgen_ty_19 = 8978437;
pub const kAudioChannelLayoutTag_DVD_17: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_DVD_18: _bindgen_ty_19 = 9043973;
pub const kAudioChannelLayoutTag_DVD_19: _bindgen_ty_19 = 7733253;
pub const kAudioChannelLayoutTag_DVD_20: _bindgen_ty_19 = 7995398;
pub const kAudioChannelLayoutTag_AudioUnit_4: _bindgen_ty_19 = 7077892;
pub const kAudioChannelLayoutTag_AudioUnit_5: _bindgen_ty_19 = 7143429;
pub const kAudioChannelLayoutTag_AudioUnit_6: _bindgen_ty_19 = 7208966;
pub const kAudioChannelLayoutTag_AudioUnit_8: _bindgen_ty_19 = 7274504;
pub const kAudioChannelLayoutTag_AudioUnit_5_0: _bindgen_ty_19 = 7733253;
pub const kAudioChannelLayoutTag_AudioUnit_6_0: _bindgen_ty_19 = 9109510;
pub const kAudioChannelLayoutTag_AudioUnit_7_0: _bindgen_ty_19 = 9175047;
pub const kAudioChannelLayoutTag_AudioUnit_7_0_Front: _bindgen_ty_19 = 9699335;
pub const kAudioChannelLayoutTag_AudioUnit_5_1: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_AudioUnit_6_1: _bindgen_ty_19 = 8192007;
pub const kAudioChannelLayoutTag_AudioUnit_7_1: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_AudioUnit_7_1_Front: _bindgen_ty_19 = 8257544;
pub const kAudioChannelLayoutTag_AAC_3_0: _bindgen_ty_19 = 7471107;
pub const kAudioChannelLayoutTag_AAC_Quadraphonic: _bindgen_ty_19 = 7077892;
pub const kAudioChannelLayoutTag_AAC_4_0: _bindgen_ty_19 = 7602180;
pub const kAudioChannelLayoutTag_AAC_5_0: _bindgen_ty_19 = 7864325;
pub const kAudioChannelLayoutTag_AAC_5_1: _bindgen_ty_19 = 8126470;
pub const kAudioChannelLayoutTag_AAC_6_0: _bindgen_ty_19 = 9240582;
pub const kAudioChannelLayoutTag_AAC_6_1: _bindgen_ty_19 = 9306119;
pub const kAudioChannelLayoutTag_AAC_7_0: _bindgen_ty_19 = 9371655;
pub const kAudioChannelLayoutTag_AAC_7_1: _bindgen_ty_19 = 8323080;
pub const kAudioChannelLayoutTag_AAC_7_1_B: _bindgen_ty_19 = 11993096;
pub const kAudioChannelLayoutTag_AAC_7_1_C: _bindgen_ty_19 = 12058632;
pub const kAudioChannelLayoutTag_AAC_Octagonal: _bindgen_ty_19 = 9437192;
pub const kAudioChannelLayoutTag_TMH_10_2_std: _bindgen_ty_19 = 9502736;
pub const kAudioChannelLayoutTag_TMH_10_2_full: _bindgen_ty_19 = 9568277;
pub const kAudioChannelLayoutTag_AC3_1_0_1: _bindgen_ty_19 = 9764866;
pub const kAudioChannelLayoutTag_AC3_3_0: _bindgen_ty_19 = 9830403;
pub const kAudioChannelLayoutTag_AC3_3_1: _bindgen_ty_19 = 9895940;
pub const kAudioChannelLayoutTag_AC3_3_0_1: _bindgen_ty_19 = 9961476;
pub const kAudioChannelLayoutTag_AC3_2_1_1: _bindgen_ty_19 = 10027012;
pub const kAudioChannelLayoutTag_AC3_3_1_1: _bindgen_ty_19 = 10092549;
pub const kAudioChannelLayoutTag_EAC_6_0_A: _bindgen_ty_19 = 10158086;
pub const kAudioChannelLayoutTag_EAC_7_0_A: _bindgen_ty_19 = 10223623;
pub const kAudioChannelLayoutTag_EAC3_6_1_A: _bindgen_ty_19 = 10289159;
pub const kAudioChannelLayoutTag_EAC3_6_1_B: _bindgen_ty_19 = 10354695;
pub const kAudioChannelLayoutTag_EAC3_6_1_C: _bindgen_ty_19 = 10420231;
pub const kAudioChannelLayoutTag_EAC3_7_1_A: _bindgen_ty_19 = 10485768;
pub const kAudioChannelLayoutTag_EAC3_7_1_B: _bindgen_ty_19 = 10551304;
pub const kAudioChannelLayoutTag_EAC3_7_1_C: _bindgen_ty_19 = 10616840;
pub const kAudioChannelLayoutTag_EAC3_7_1_D: _bindgen_ty_19 = 10682376;
pub const kAudioChannelLayoutTag_EAC3_7_1_E: _bindgen_ty_19 = 10747912;
pub const kAudioChannelLayoutTag_EAC3_7_1_F: _bindgen_ty_19 = 10813448;
pub const kAudioChannelLayoutTag_EAC3_7_1_G: _bindgen_ty_19 = 10878984;
pub const kAudioChannelLayoutTag_EAC3_7_1_H: _bindgen_ty_19 = 10944520;
pub const kAudioChannelLayoutTag_DTS_3_1: _bindgen_ty_19 = 11010052;
pub const kAudioChannelLayoutTag_DTS_4_1: _bindgen_ty_19 = 11075589;
pub const kAudioChannelLayoutTag_DTS_6_0_A: _bindgen_ty_19 = 11141126;
pub const kAudioChannelLayoutTag_DTS_6_0_B: _bindgen_ty_19 = 11206662;
pub const kAudioChannelLayoutTag_DTS_6_0_C: _bindgen_ty_19 = 11272198;
pub const kAudioChannelLayoutTag_DTS_6_1_A: _bindgen_ty_19 = 11337735;
pub const kAudioChannelLayoutTag_DTS_6_1_B: _bindgen_ty_19 = 11403271;
pub const kAudioChannelLayoutTag_DTS_6_1_C: _bindgen_ty_19 = 11468807;
pub const kAudioChannelLayoutTag_DTS_7_0: _bindgen_ty_19 = 11534343;
pub const kAudioChannelLayoutTag_DTS_7_1: _bindgen_ty_19 = 11599880;
pub const kAudioChannelLayoutTag_DTS_8_0_A: _bindgen_ty_19 = 11665416;
pub const kAudioChannelLayoutTag_DTS_8_0_B: _bindgen_ty_19 = 11730952;
pub const kAudioChannelLayoutTag_DTS_8_1_A: _bindgen_ty_19 = 11796489;
pub const kAudioChannelLayoutTag_DTS_8_1_B: _bindgen_ty_19 = 11862025;
pub const kAudioChannelLayoutTag_DTS_6_1_D: _bindgen_ty_19 = 11927559;
pub const kAudioChannelLayoutTag_WAVE_2_1: _bindgen_ty_19 = 8716291;
pub const kAudioChannelLayoutTag_WAVE_3_0: _bindgen_ty_19 = 7405571;
pub const kAudioChannelLayoutTag_WAVE_4_0_A: _bindgen_ty_19 = 8650756;
pub const kAudioChannelLayoutTag_WAVE_4_0_B: _bindgen_ty_19 = 12124164;
pub const kAudioChannelLayoutTag_WAVE_5_0_A: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_WAVE_5_0_B: _bindgen_ty_19 = 12189701;
pub const kAudioChannelLayoutTag_WAVE_5_1_A: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_WAVE_5_1_B: _bindgen_ty_19 = 12255238;
pub const kAudioChannelLayoutTag_WAVE_6_1: _bindgen_ty_19 = 12320775;
pub const kAudioChannelLayoutTag_WAVE_7_1: _bindgen_ty_19 = 12386312;
pub const kAudioChannelLayoutTag_HOA_ACN_SN3D: _bindgen_ty_19 = 12451840;
pub const kAudioChannelLayoutTag_HOA_ACN_N3D: _bindgen_ty_19 = 12517376;
pub const kAudioChannelLayoutTag_Atmos_5_1_2: _bindgen_ty_19 = 12713992;
pub const kAudioChannelLayoutTag_Atmos_5_1_4: _bindgen_ty_19 = 12779530;
pub const kAudioChannelLayoutTag_Atmos_7_1_2: _bindgen_ty_19 = 12845066;
pub const kAudioChannelLayoutTag_Atmos_7_1_4: _bindgen_ty_19 = 12582924;
pub const kAudioChannelLayoutTag_Atmos_9_1_6: _bindgen_ty_19 = 12648464;
pub const kAudioChannelLayoutTag_Logic_Mono: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_Logic_Stereo: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_Logic_Quadraphonic: _bindgen_ty_19 = 7077892;
pub const kAudioChannelLayoutTag_Logic_4_0_A: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_Logic_4_0_B: _bindgen_ty_19 = 7602180;
pub const kAudioChannelLayoutTag_Logic_4_0_C: _bindgen_ty_19 = 12910596;
pub const kAudioChannelLayoutTag_Logic_5_0_A: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_Logic_5_0_B: _bindgen_ty_19 = 7733253;
pub const kAudioChannelLayoutTag_Logic_5_0_C: _bindgen_ty_19 = 7798789;
pub const kAudioChannelLayoutTag_Logic_5_0_D: _bindgen_ty_19 = 7864325;
pub const kAudioChannelLayoutTag_Logic_5_1_A: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_Logic_5_1_B: _bindgen_ty_19 = 7995398;
pub const kAudioChannelLayoutTag_Logic_5_1_C: _bindgen_ty_19 = 8060934;
pub const kAudioChannelLayoutTag_Logic_5_1_D: _bindgen_ty_19 = 8126470;
pub const kAudioChannelLayoutTag_Logic_6_0_A: _bindgen_ty_19 = 9240582;
pub const kAudioChannelLayoutTag_Logic_6_0_B: _bindgen_ty_19 = 12976134;
pub const kAudioChannelLayoutTag_Logic_6_0_C: _bindgen_ty_19 = 9109510;
pub const kAudioChannelLayoutTag_Logic_6_1_A: _bindgen_ty_19 = 9306119;
pub const kAudioChannelLayoutTag_Logic_6_1_B: _bindgen_ty_19 = 13041671;
pub const kAudioChannelLayoutTag_Logic_6_1_C: _bindgen_ty_19 = 8192007;
pub const kAudioChannelLayoutTag_Logic_6_1_D: _bindgen_ty_19 = 13107207;
pub const kAudioChannelLayoutTag_Logic_7_1_A: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_Logic_7_1_B: _bindgen_ty_19 = 13172744;
pub const kAudioChannelLayoutTag_Logic_7_1_C: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_Logic_7_1_SDDS_A: _bindgen_ty_19 = 8257544;
pub const kAudioChannelLayoutTag_Logic_7_1_SDDS_B: _bindgen_ty_19 = 8323080;
pub const kAudioChannelLayoutTag_Logic_7_1_SDDS_C: _bindgen_ty_19 = 8454152;
pub const kAudioChannelLayoutTag_Logic_Atmos_5_1_2: _bindgen_ty_19 = 12713992;
pub const kAudioChannelLayoutTag_Logic_Atmos_5_1_4: _bindgen_ty_19 = 12779530;
pub const kAudioChannelLayoutTag_Logic_Atmos_7_1_2: _bindgen_ty_19 = 12845066;
pub const kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A: _bindgen_ty_19 = 12582924;
pub const kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B: _bindgen_ty_19 = 13238284;
pub const kAudioChannelLayoutTag_Logic_Atmos_7_1_6: _bindgen_ty_19 = 13303822;
pub const kAudioChannelLayoutTag_DiscreteInOrder: _bindgen_ty_19 = 9633792;
pub const kAudioChannelLayoutTag_CICP_1: _bindgen_ty_19 = 6553601;
pub const kAudioChannelLayoutTag_CICP_2: _bindgen_ty_19 = 6619138;
pub const kAudioChannelLayoutTag_CICP_3: _bindgen_ty_19 = 7405571;
pub const kAudioChannelLayoutTag_CICP_4: _bindgen_ty_19 = 7536644;
pub const kAudioChannelLayoutTag_CICP_5: _bindgen_ty_19 = 7667717;
pub const kAudioChannelLayoutTag_CICP_6: _bindgen_ty_19 = 7929862;
pub const kAudioChannelLayoutTag_CICP_7: _bindgen_ty_19 = 8323080;
pub const kAudioChannelLayoutTag_CICP_9: _bindgen_ty_19 = 8585219;
pub const kAudioChannelLayoutTag_CICP_10: _bindgen_ty_19 = 8650756;
pub const kAudioChannelLayoutTag_CICP_11: _bindgen_ty_19 = 8192007;
pub const kAudioChannelLayoutTag_CICP_12: _bindgen_ty_19 = 8388616;
pub const kAudioChannelLayoutTag_CICP_13: _bindgen_ty_19 = 13369368;
pub const kAudioChannelLayoutTag_CICP_14: _bindgen_ty_19 = 13434888;
pub const kAudioChannelLayoutTag_CICP_15: _bindgen_ty_19 = 13500428;
pub const kAudioChannelLayoutTag_CICP_16: _bindgen_ty_19 = 13565962;
pub const kAudioChannelLayoutTag_CICP_17: _bindgen_ty_19 = 13631500;
pub const kAudioChannelLayoutTag_CICP_18: _bindgen_ty_19 = 13697038;
pub const kAudioChannelLayoutTag_CICP_19: _bindgen_ty_19 = 13762572;
pub const kAudioChannelLayoutTag_CICP_20: _bindgen_ty_19 = 13828110;
pub const kAudioChannelLayoutTag_Ogg_3_0: _bindgen_ty_19 = 9830403;
pub const kAudioChannelLayoutTag_Ogg_4_0: _bindgen_ty_19 = 12124164;
pub const kAudioChannelLayoutTag_Ogg_5_0: _bindgen_ty_19 = 13893637;
pub const kAudioChannelLayoutTag_Ogg_5_1: _bindgen_ty_19 = 13959174;
pub const kAudioChannelLayoutTag_Ogg_6_1: _bindgen_ty_19 = 14024711;
pub const kAudioChannelLayoutTag_Ogg_7_1: _bindgen_ty_19 = 14090248;
pub const kAudioChannelLayoutTag_BeginReserved: _bindgen_ty_19 = 4026531840;
pub const kAudioChannelLayoutTag_EndReserved: _bindgen_ty_19 = 4294901759;
pub const kAudioChannelLayoutTag_Unknown: _bindgen_ty_19 = 4294901760;
pub type _bindgen_ty_19 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioChannelDescription {
pub mChannelLabel: AudioChannelLabel,
pub mChannelFlags: AudioChannelFlags,
pub mCoordinates: [Float32; 3usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioChannelLayout {
pub mChannelLayoutTag: AudioChannelLayoutTag,
pub mChannelBitmap: AudioChannelBitmap,
pub mNumberChannelDescriptions: UInt32,
pub mChannelDescriptions: [AudioChannelDescription; 1usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioFormatListItem {
pub mASBD: AudioStreamBasicDescription,
pub mChannelLayoutTag: AudioChannelLayoutTag,
}
pub type MPEG4ObjectID = ::std::os::raw::c_long;
pub const kMPEG4Object_AAC_Main: _bindgen_ty_20 = 1;
pub const kMPEG4Object_AAC_LC: _bindgen_ty_20 = 2;
pub const kMPEG4Object_AAC_SSR: _bindgen_ty_20 = 3;
pub const kMPEG4Object_AAC_LTP: _bindgen_ty_20 = 4;
pub const kMPEG4Object_AAC_SBR: _bindgen_ty_20 = 5;
pub const kMPEG4Object_AAC_Scalable: _bindgen_ty_20 = 6;
pub const kMPEG4Object_TwinVQ: _bindgen_ty_20 = 7;
pub const kMPEG4Object_CELP: _bindgen_ty_20 = 8;
pub const kMPEG4Object_HVXC: _bindgen_ty_20 = 9;
pub type _bindgen_ty_20 = ::std::os::raw::c_uint;
pub type AVAudioInteger = ::std::os::raw::c_long;
pub type AVAudioUInteger = ::std::os::raw::c_ulong;
pub type AudioSessionID = u32;
pub type AVAudioSessionErrorCode = AVAudioInteger;
pub const AVAudioSessionErrorCodeNone: _bindgen_ty_21 = 0;
pub const AVAudioSessionErrorCodeMediaServicesFailed: _bindgen_ty_21 = 1836282486;
pub const AVAudioSessionErrorCodeIsBusy: _bindgen_ty_21 = 560030580;
pub const AVAudioSessionErrorCodeIncompatibleCategory: _bindgen_ty_21 = 560161140;
pub const AVAudioSessionErrorCodeCannotInterruptOthers: _bindgen_ty_21 = 560557684;
pub const AVAudioSessionErrorCodeMissingEntitlement: _bindgen_ty_21 = 1701737535;
pub const AVAudioSessionErrorCodeSiriIsRecording: _bindgen_ty_21 = 1936290409;
pub const AVAudioSessionErrorCodeCannotStartPlaying: _bindgen_ty_21 = 561015905;
pub const AVAudioSessionErrorCodeCannotStartRecording: _bindgen_ty_21 = 561145187;
pub const AVAudioSessionErrorCodeBadParam: _bindgen_ty_21 = -50;
pub const AVAudioSessionErrorCodeInsufficientPriority: _bindgen_ty_21 = 561017449;
pub const AVAudioSessionErrorCodeResourceNotAvailable: _bindgen_ty_21 = 561145203;
pub const AVAudioSessionErrorCodeUnspecified: _bindgen_ty_21 = 2003329396;
pub const AVAudioSessionErrorCodeExpiredSession: _bindgen_ty_21 = 561210739;
pub const AVAudioSessionErrorCodeSessionNotActive: _bindgen_ty_21 = 1768841571;
pub type _bindgen_ty_21 = ::std::os::raw::c_int;
pub const AVAudioSessionErrorInsufficientPriority: _bindgen_ty_22 = 561017449;
pub type _bindgen_ty_22 = ::std::os::raw::c_uint;
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __builtin_va_list;
extern "C" {
pub fn __assert_rtn(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
) -> !;
}
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
pub type ct_rune_t = __darwin_ct_rune_t;
pub type rune_t = __darwin_rune_t;
pub type wint_t = __darwin_wint_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RuneEntry {
pub __min: __darwin_rune_t,
pub __max: __darwin_rune_t,
pub __map: __darwin_rune_t,
pub __types: *mut __uint32_t,
}
impl Default for _RuneEntry {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RuneRange {
pub __nranges: ::std::os::raw::c_int,
pub __ranges: *mut _RuneEntry,
}
impl Default for _RuneRange {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _RuneCharClass {
pub __name: [::std::os::raw::c_char; 14usize],
pub __mask: __uint32_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _RuneLocale {
pub __magic: [::std::os::raw::c_char; 8usize],
pub __encoding: [::std::os::raw::c_char; 32usize],
pub __sgetrune: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_char,
arg2: __darwin_size_t,
arg3: *mut *const ::std::os::raw::c_char,
) -> __darwin_rune_t,
>,
pub __sputrune: ::std::option::Option<
unsafe extern "C" fn(
arg1: __darwin_rune_t,
arg2: *mut ::std::os::raw::c_char,
arg3: __darwin_size_t,
arg4: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub __invalid_rune: __darwin_rune_t,
pub __runetype: [__uint32_t; 256usize],
pub __maplower: [__darwin_rune_t; 256usize],
pub __mapupper: [__darwin_rune_t; 256usize],
pub __runetype_ext: _RuneRange,
pub __maplower_ext: _RuneRange,
pub __mapupper_ext: _RuneRange,
pub __variable: *mut ::std::os::raw::c_void,
pub __variable_len: ::std::os::raw::c_int,
pub __ncharclasses: ::std::os::raw::c_int,
pub __charclasses: *mut _RuneCharClass,
}
impl Default for _RuneLocale {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub static mut _DefaultRuneLocale: _RuneLocale;
}
extern "C" {
pub static mut _CurrentRuneLocale: *mut _RuneLocale;
}
extern "C" {
pub fn ___runetype(arg1: __darwin_ct_rune_t) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn ___tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t;
}
extern "C" {
pub fn ___toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t;
}
extern "C" {
pub fn __maskrune(
arg1: __darwin_ct_rune_t,
arg2: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __toupper(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t;
}
extern "C" {
pub fn __tolower(arg1: __darwin_ct_rune_t) -> __darwin_ct_rune_t;
}
extern "C" {
pub fn __error() -> *mut ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lconv {
pub decimal_point: *mut ::std::os::raw::c_char,
pub thousands_sep: *mut ::std::os::raw::c_char,
pub grouping: *mut ::std::os::raw::c_char,
pub int_curr_symbol: *mut ::std::os::raw::c_char,
pub currency_symbol: *mut ::std::os::raw::c_char,
pub mon_decimal_point: *mut ::std::os::raw::c_char,
pub mon_thousands_sep: *mut ::std::os::raw::c_char,
pub mon_grouping: *mut ::std::os::raw::c_char,
pub positive_sign: *mut ::std::os::raw::c_char,
pub negative_sign: *mut ::std::os::raw::c_char,
pub int_frac_digits: ::std::os::raw::c_char,
pub frac_digits: ::std::os::raw::c_char,
pub p_cs_precedes: ::std::os::raw::c_char,
pub p_sep_by_space: ::std::os::raw::c_char,
pub n_cs_precedes: ::std::os::raw::c_char,
pub n_sep_by_space: ::std::os::raw::c_char,
pub p_sign_posn: ::std::os::raw::c_char,
pub n_sign_posn: ::std::os::raw::c_char,
pub int_p_cs_precedes: ::std::os::raw::c_char,
pub int_n_cs_precedes: ::std::os::raw::c_char,
pub int_p_sep_by_space: ::std::os::raw::c_char,
pub int_n_sep_by_space: ::std::os::raw::c_char,
pub int_p_sign_posn: ::std::os::raw::c_char,
pub int_n_sign_posn: ::std::os::raw::c_char,
}
impl Default for lconv {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn localeconv() -> *mut lconv;
}
extern "C" {
pub fn setlocale(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
pub type float_t = f32;
pub type double_t = f64;
extern "C" {
pub fn __math_errhandling() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __fpclassifyf(arg1: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __fpclassifyd(arg1: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __fpclassifyl(arg1: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acosf(arg1: f32) -> f32;
}
extern "C" {
pub fn acos(arg1: f64) -> f64;
}
extern "C" {
pub fn acosl(arg1: u128) -> u128;
}
extern "C" {
pub fn asinf(arg1: f32) -> f32;
}
extern "C" {
pub fn asin(arg1: f64) -> f64;
}
extern "C" {
pub fn asinl(arg1: u128) -> u128;
}
extern "C" {
pub fn atanf(arg1: f32) -> f32;
}
extern "C" {
pub fn atan(arg1: f64) -> f64;
}
extern "C" {
pub fn atanl(arg1: u128) -> u128;
}
extern "C" {
pub fn atan2f(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn atan2(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn atan2l(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn cosf(arg1: f32) -> f32;
}
extern "C" {
pub fn cos(arg1: f64) -> f64;
}
extern "C" {
pub fn cosl(arg1: u128) -> u128;
}
extern "C" {
pub fn sinf(arg1: f32) -> f32;
}
extern "C" {
pub fn sin(arg1: f64) -> f64;
}
extern "C" {
pub fn sinl(arg1: u128) -> u128;
}
extern "C" {
pub fn tanf(arg1: f32) -> f32;
}
extern "C" {
pub fn tan(arg1: f64) -> f64;
}
extern "C" {
pub fn tanl(arg1: u128) -> u128;
}
extern "C" {
pub fn acoshf(arg1: f32) -> f32;
}
extern "C" {
pub fn acosh(arg1: f64) -> f64;
}
extern "C" {
pub fn acoshl(arg1: u128) -> u128;
}
extern "C" {
pub fn asinhf(arg1: f32) -> f32;
}
extern "C" {
pub fn asinh(arg1: f64) -> f64;
}
extern "C" {
pub fn asinhl(arg1: u128) -> u128;
}
extern "C" {
pub fn atanhf(arg1: f32) -> f32;
}
extern "C" {
pub fn atanh(arg1: f64) -> f64;
}
extern "C" {
pub fn atanhl(arg1: u128) -> u128;
}
extern "C" {
pub fn coshf(arg1: f32) -> f32;
}
extern "C" {
pub fn cosh(arg1: f64) -> f64;
}
extern "C" {
pub fn coshl(arg1: u128) -> u128;
}
extern "C" {
pub fn sinhf(arg1: f32) -> f32;
}
extern "C" {
pub fn sinh(arg1: f64) -> f64;
}
extern "C" {
pub fn sinhl(arg1: u128) -> u128;
}
extern "C" {
pub fn tanhf(arg1: f32) -> f32;
}
extern "C" {
pub fn tanh(arg1: f64) -> f64;
}
extern "C" {
pub fn tanhl(arg1: u128) -> u128;
}
extern "C" {
pub fn expf(arg1: f32) -> f32;
}
extern "C" {
pub fn exp(arg1: f64) -> f64;
}
extern "C" {
pub fn expl(arg1: u128) -> u128;
}
extern "C" {
pub fn exp2f(arg1: f32) -> f32;
}
extern "C" {
pub fn exp2(arg1: f64) -> f64;
}
extern "C" {
pub fn exp2l(arg1: u128) -> u128;
}
extern "C" {
pub fn expm1f(arg1: f32) -> f32;
}
extern "C" {
pub fn expm1(arg1: f64) -> f64;
}
extern "C" {
pub fn expm1l(arg1: u128) -> u128;
}
extern "C" {
pub fn logf(arg1: f32) -> f32;
}
extern "C" {
pub fn log(arg1: f64) -> f64;
}
extern "C" {
pub fn logl(arg1: u128) -> u128;
}
extern "C" {
pub fn log10f(arg1: f32) -> f32;
}
extern "C" {
pub fn log10(arg1: f64) -> f64;
}
extern "C" {
pub fn log10l(arg1: u128) -> u128;
}
extern "C" {
pub fn log2f(arg1: f32) -> f32;
}
extern "C" {
pub fn log2(arg1: f64) -> f64;
}
extern "C" {
pub fn log2l(arg1: u128) -> u128;
}
extern "C" {
pub fn log1pf(arg1: f32) -> f32;
}
extern "C" {
pub fn log1p(arg1: f64) -> f64;
}
extern "C" {
pub fn log1pl(arg1: u128) -> u128;
}
extern "C" {
pub fn logbf(arg1: f32) -> f32;
}
extern "C" {
pub fn logb(arg1: f64) -> f64;
}
extern "C" {
pub fn logbl(arg1: u128) -> u128;
}
extern "C" {
pub fn modff(arg1: f32, arg2: *mut f32) -> f32;
}
extern "C" {
pub fn modf(arg1: f64, arg2: *mut f64) -> f64;
}
extern "C" {
pub fn modfl(arg1: u128, arg2: *mut u128) -> u128;
}
extern "C" {
pub fn ldexpf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn ldexp(arg1: f64, arg2: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn ldexpl(arg1: u128, arg2: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn frexpf(arg1: f32, arg2: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn frexp(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn frexpl(arg1: u128, arg2: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn ilogbf(arg1: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ilogb(arg1: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ilogbl(arg1: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scalbnf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn scalbn(arg1: f64, arg2: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn scalbnl(arg1: u128, arg2: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn scalblnf(arg1: f32, arg2: ::std::os::raw::c_long) -> f32;
}
extern "C" {
pub fn scalbln(arg1: f64, arg2: ::std::os::raw::c_long) -> f64;
}
extern "C" {
pub fn scalblnl(arg1: u128, arg2: ::std::os::raw::c_long) -> u128;
}
extern "C" {
pub fn fabsf(arg1: f32) -> f32;
}
extern "C" {
pub fn fabs(arg1: f64) -> f64;
}
extern "C" {
pub fn fabsl(arg1: u128) -> u128;
}
extern "C" {
pub fn cbrtf(arg1: f32) -> f32;
}
extern "C" {
pub fn cbrt(arg1: f64) -> f64;
}
extern "C" {
pub fn cbrtl(arg1: u128) -> u128;
}
extern "C" {
pub fn hypotf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn hypot(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn hypotl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn powf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn pow(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn powl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn sqrtf(arg1: f32) -> f32;
}
extern "C" {
pub fn sqrt(arg1: f64) -> f64;
}
extern "C" {
pub fn sqrtl(arg1: u128) -> u128;
}
extern "C" {
pub fn erff(arg1: f32) -> f32;
}
extern "C" {
pub fn erf(arg1: f64) -> f64;
}
extern "C" {
pub fn erfl(arg1: u128) -> u128;
}
extern "C" {
pub fn erfcf(arg1: f32) -> f32;
}
extern "C" {
pub fn erfc(arg1: f64) -> f64;
}
extern "C" {
pub fn erfcl(arg1: u128) -> u128;
}
extern "C" {
pub fn lgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn lgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn lgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn tgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn tgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn tgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn ceilf(arg1: f32) -> f32;
}
extern "C" {
pub fn ceil(arg1: f64) -> f64;
}
extern "C" {
pub fn ceill(arg1: u128) -> u128;
}
extern "C" {
pub fn floorf(arg1: f32) -> f32;
}
extern "C" {
pub fn floor(arg1: f64) -> f64;
}
extern "C" {
pub fn floorl(arg1: u128) -> u128;
}
extern "C" {
pub fn nearbyintf(arg1: f32) -> f32;
}
extern "C" {
pub fn nearbyint(arg1: f64) -> f64;
}
extern "C" {
pub fn nearbyintl(arg1: u128) -> u128;
}
extern "C" {
pub fn rintf(arg1: f32) -> f32;
}
extern "C" {
pub fn rint(arg1: f64) -> f64;
}
extern "C" {
pub fn rintl(arg1: u128) -> u128;
}
extern "C" {
pub fn lrintf(arg1: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn lrint(arg1: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn lrintl(arg1: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn roundf(arg1: f32) -> f32;
}
extern "C" {
pub fn round(arg1: f64) -> f64;
}
extern "C" {
pub fn roundl(arg1: u128) -> u128;
}
extern "C" {
pub fn lroundf(arg1: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn lround(arg1: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn lroundl(arg1: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llrintf(arg1: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn llrint(arg1: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn llrintl(arg1: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn llroundf(arg1: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn llround(arg1: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn llroundl(arg1: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn truncf(arg1: f32) -> f32;
}
extern "C" {
pub fn trunc(arg1: f64) -> f64;
}
extern "C" {
pub fn truncl(arg1: u128) -> u128;
}
extern "C" {
pub fn fmodf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn fmod(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn fmodl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn remainderf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn remainder(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn remainderl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn remquof(arg1: f32, arg2: f32, arg3: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn remquo(arg1: f64, arg2: f64, arg3: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn remquol(arg1: u128, arg2: u128, arg3: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn copysignf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn copysign(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn copysignl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn nanf(arg1: *const ::std::os::raw::c_char) -> f32;
}
extern "C" {
pub fn nan(arg1: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn nanl(arg1: *const ::std::os::raw::c_char) -> u128;
}
extern "C" {
pub fn nextafterf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn nextafter(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn nextafterl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn nexttoward(arg1: f64, arg2: u128) -> f64;
}
extern "C" {
pub fn nexttowardf(arg1: f32, arg2: u128) -> f32;
}
extern "C" {
pub fn nexttowardl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn fdimf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn fdim(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn fdiml(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn fmaxf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn fmax(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn fmaxl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn fminf(arg1: f32, arg2: f32) -> f32;
}
extern "C" {
pub fn fmin(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn fminl(arg1: u128, arg2: u128) -> u128;
}
extern "C" {
pub fn fmaf(arg1: f32, arg2: f32, arg3: f32) -> f32;
}
extern "C" {
pub fn fma(arg1: f64, arg2: f64, arg3: f64) -> f64;
}
extern "C" {
pub fn fmal(arg1: u128, arg2: u128, arg3: u128) -> u128;
}
extern "C" {
pub fn __inff() -> f32;
}
extern "C" {
pub fn __inf() -> f64;
}
extern "C" {
pub fn __infl() -> u128;
}
extern "C" {
pub fn __nan() -> f32;
}
extern "C" {
pub fn __exp10f(arg1: f32) -> f32;
}
extern "C" {
pub fn __exp10(arg1: f64) -> f64;
}
extern "C" {
pub fn __cospif(arg1: f32) -> f32;
}
extern "C" {
pub fn __cospi(arg1: f64) -> f64;
}
extern "C" {
pub fn __sinpif(arg1: f32) -> f32;
}
extern "C" {
pub fn __sinpi(arg1: f64) -> f64;
}
extern "C" {
pub fn __tanpif(arg1: f32) -> f32;
}
extern "C" {
pub fn __tanpi(arg1: f64) -> f64;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __float2 {
pub __sinval: f32,
pub __cosval: f32,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __double2 {
pub __sinval: f64,
pub __cosval: f64,
}
extern "C" {
pub fn __sincosf_stret(arg1: f32) -> __float2;
}
extern "C" {
pub fn __sincos_stret(arg1: f64) -> __double2;
}
extern "C" {
pub fn __sincospif_stret(arg1: f32) -> __float2;
}
extern "C" {
pub fn __sincospi_stret(arg1: f64) -> __double2;
}
extern "C" {
pub fn j0(arg1: f64) -> f64;
}
extern "C" {
pub fn j1(arg1: f64) -> f64;
}
extern "C" {
pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn y0(arg1: f64) -> f64;
}
extern "C" {
pub fn y1(arg1: f64) -> f64;
}
extern "C" {
pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn scalb(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub static mut signgam: ::std::os::raw::c_int;
}
extern "C" {
pub fn rinttol(arg1: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn roundtol(arg1: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn drem(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
pub fn finite(arg1: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gamma(arg1: f64) -> f64;
}
extern "C" {
pub fn significand(arg1: f64) -> f64;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct exception {
pub type_: ::std::os::raw::c_int,
pub name: *mut ::std::os::raw::c_char,
pub arg1: f64,
pub arg2: f64,
pub retval: f64,
}
impl Default for exception {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type jmp_buf = [::std::os::raw::c_int; 37usize];
pub type sigjmp_buf = [::std::os::raw::c_int; 38usize];
extern "C" {
pub fn setjmp(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn longjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn _setjmp(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _longjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn sigsetjmp(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn siglongjmp(arg1: *mut ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn longjmperror();
}
pub type sig_atomic_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_i386_thread_state {
pub __eax: ::std::os::raw::c_uint,
pub __ebx: ::std::os::raw::c_uint,
pub __ecx: ::std::os::raw::c_uint,
pub __edx: ::std::os::raw::c_uint,
pub __edi: ::std::os::raw::c_uint,
pub __esi: ::std::os::raw::c_uint,
pub __ebp: ::std::os::raw::c_uint,
pub __esp: ::std::os::raw::c_uint,
pub __ss: ::std::os::raw::c_uint,
pub __eflags: ::std::os::raw::c_uint,
pub __eip: ::std::os::raw::c_uint,
pub __cs: ::std::os::raw::c_uint,
pub __ds: ::std::os::raw::c_uint,
pub __es: ::std::os::raw::c_uint,
pub __fs: ::std::os::raw::c_uint,
pub __gs: ::std::os::raw::c_uint,
}
#[repr(C)]
#[repr(align(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_fp_control {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
}
impl __darwin_fp_control {
#[inline]
pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
}
#[inline]
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
}
#[inline]
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
}
#[inline]
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
}
#[inline]
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
}
#[inline]
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn __precis(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
}
#[inline]
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn __pc(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u16) }
}
#[inline]
pub fn set___pc(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 2u8, val as u64)
}
}
#[inline]
pub fn __rc(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u16) }
}
#[inline]
pub fn set___rc(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(10usize, 2u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__invalid: ::std::os::raw::c_ushort,
__denorm: ::std::os::raw::c_ushort,
__zdiv: ::std::os::raw::c_ushort,
__ovrfl: ::std::os::raw::c_ushort,
__undfl: ::std::os::raw::c_ushort,
__precis: ::std::os::raw::c_ushort,
__pc: ::std::os::raw::c_ushort,
__rc: ::std::os::raw::c_ushort,
) -> __BindgenBitfieldUnit<[u8; 2usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
__invalid as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
__denorm as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
__zdiv as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
__ovrfl as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
__undfl as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
__precis as u64
});
__bindgen_bitfield_unit.set(8usize, 2u8, {
let __pc: u16 = unsafe { ::std::mem::transmute(__pc) };
__pc as u64
});
__bindgen_bitfield_unit.set(10usize, 2u8, {
let __rc: u16 = unsafe { ::std::mem::transmute(__rc) };
__rc as u64
});
__bindgen_bitfield_unit
}
}
pub type __darwin_fp_control_t = __darwin_fp_control;
#[repr(C)]
#[repr(align(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_fp_status {
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
}
impl __darwin_fp_status {
#[inline]
pub fn __invalid(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
}
#[inline]
pub fn set___invalid(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __denorm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
}
#[inline]
pub fn set___denorm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __zdiv(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
}
#[inline]
pub fn set___zdiv(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn __ovrfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
}
#[inline]
pub fn set___ovrfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn __undfl(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
}
#[inline]
pub fn set___undfl(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn __precis(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
}
#[inline]
pub fn set___precis(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn __stkflt(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) }
}
#[inline]
pub fn set___stkflt(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 1u8, val as u64)
}
}
#[inline]
pub fn __errsumm(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
}
#[inline]
pub fn set___errsumm(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c0(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
}
#[inline]
pub fn set___c0(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c1(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
}
#[inline]
pub fn set___c1(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(9usize, 1u8, val as u64)
}
}
#[inline]
pub fn __c2(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
}
#[inline]
pub fn set___c2(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(10usize, 1u8, val as u64)
}
}
#[inline]
pub fn __tos(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 3u8) as u16) }
}
#[inline]
pub fn set___tos(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(11usize, 3u8, val as u64)
}
}
#[inline]
pub fn __c3(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
}
#[inline]
pub fn set___c3(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(14usize, 1u8, val as u64)
}
}
#[inline]
pub fn __busy(&self) -> ::std::os::raw::c_ushort {
unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
}
#[inline]
pub fn set___busy(&mut self, val: ::std::os::raw::c_ushort) {
unsafe {
let val: u16 = ::std::mem::transmute(val);
self._bitfield_1.set(15usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__invalid: ::std::os::raw::c_ushort,
__denorm: ::std::os::raw::c_ushort,
__zdiv: ::std::os::raw::c_ushort,
__ovrfl: ::std::os::raw::c_ushort,
__undfl: ::std::os::raw::c_ushort,
__precis: ::std::os::raw::c_ushort,
__stkflt: ::std::os::raw::c_ushort,
__errsumm: ::std::os::raw::c_ushort,
__c0: ::std::os::raw::c_ushort,
__c1: ::std::os::raw::c_ushort,
__c2: ::std::os::raw::c_ushort,
__tos: ::std::os::raw::c_ushort,
__c3: ::std::os::raw::c_ushort,
__busy: ::std::os::raw::c_ushort,
) -> __BindgenBitfieldUnit<[u8; 2usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __invalid: u16 = unsafe { ::std::mem::transmute(__invalid) };
__invalid as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __denorm: u16 = unsafe { ::std::mem::transmute(__denorm) };
__denorm as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let __zdiv: u16 = unsafe { ::std::mem::transmute(__zdiv) };
__zdiv as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let __ovrfl: u16 = unsafe { ::std::mem::transmute(__ovrfl) };
__ovrfl as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let __undfl: u16 = unsafe { ::std::mem::transmute(__undfl) };
__undfl as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let __precis: u16 = unsafe { ::std::mem::transmute(__precis) };
__precis as u64
});
__bindgen_bitfield_unit.set(6usize, 1u8, {
let __stkflt: u16 = unsafe { ::std::mem::transmute(__stkflt) };
__stkflt as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let __errsumm: u16 = unsafe { ::std::mem::transmute(__errsumm) };
__errsumm as u64
});
__bindgen_bitfield_unit.set(8usize, 1u8, {
let __c0: u16 = unsafe { ::std::mem::transmute(__c0) };
__c0 as u64
});
__bindgen_bitfield_unit.set(9usize, 1u8, {
let __c1: u16 = unsafe { ::std::mem::transmute(__c1) };
__c1 as u64
});
__bindgen_bitfield_unit.set(10usize, 1u8, {
let __c2: u16 = unsafe { ::std::mem::transmute(__c2) };
__c2 as u64
});
__bindgen_bitfield_unit.set(11usize, 3u8, {
let __tos: u16 = unsafe { ::std::mem::transmute(__tos) };
__tos as u64
});
__bindgen_bitfield_unit.set(14usize, 1u8, {
let __c3: u16 = unsafe { ::std::mem::transmute(__c3) };
__c3 as u64
});
__bindgen_bitfield_unit.set(15usize, 1u8, {
let __busy: u16 = unsafe { ::std::mem::transmute(__busy) };
__busy as u64
});
__bindgen_bitfield_unit
}
}
pub type __darwin_fp_status_t = __darwin_fp_status;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_mmst_reg {
pub __mmst_reg: [::std::os::raw::c_char; 10usize],
pub __mmst_rsrv: [::std::os::raw::c_char; 6usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_xmm_reg {
pub __xmm_reg: [::std::os::raw::c_char; 16usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_ymm_reg {
pub __ymm_reg: [::std::os::raw::c_char; 32usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_zmm_reg {
pub __zmm_reg: [::std::os::raw::c_char; 64usize],
}
impl Default for __darwin_zmm_reg {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_opmask_reg {
pub __opmask_reg: [::std::os::raw::c_char; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_i386_float_state {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
}
impl Default for __darwin_i386_float_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_i386_avx_state {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
pub __fpu_ymmh0: __darwin_xmm_reg,
pub __fpu_ymmh1: __darwin_xmm_reg,
pub __fpu_ymmh2: __darwin_xmm_reg,
pub __fpu_ymmh3: __darwin_xmm_reg,
pub __fpu_ymmh4: __darwin_xmm_reg,
pub __fpu_ymmh5: __darwin_xmm_reg,
pub __fpu_ymmh6: __darwin_xmm_reg,
pub __fpu_ymmh7: __darwin_xmm_reg,
}
impl Default for __darwin_i386_avx_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_i386_avx512_state {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 224usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
pub __fpu_ymmh0: __darwin_xmm_reg,
pub __fpu_ymmh1: __darwin_xmm_reg,
pub __fpu_ymmh2: __darwin_xmm_reg,
pub __fpu_ymmh3: __darwin_xmm_reg,
pub __fpu_ymmh4: __darwin_xmm_reg,
pub __fpu_ymmh5: __darwin_xmm_reg,
pub __fpu_ymmh6: __darwin_xmm_reg,
pub __fpu_ymmh7: __darwin_xmm_reg,
pub __fpu_k0: __darwin_opmask_reg,
pub __fpu_k1: __darwin_opmask_reg,
pub __fpu_k2: __darwin_opmask_reg,
pub __fpu_k3: __darwin_opmask_reg,
pub __fpu_k4: __darwin_opmask_reg,
pub __fpu_k5: __darwin_opmask_reg,
pub __fpu_k6: __darwin_opmask_reg,
pub __fpu_k7: __darwin_opmask_reg,
pub __fpu_zmmh0: __darwin_ymm_reg,
pub __fpu_zmmh1: __darwin_ymm_reg,
pub __fpu_zmmh2: __darwin_ymm_reg,
pub __fpu_zmmh3: __darwin_ymm_reg,
pub __fpu_zmmh4: __darwin_ymm_reg,
pub __fpu_zmmh5: __darwin_ymm_reg,
pub __fpu_zmmh6: __darwin_ymm_reg,
pub __fpu_zmmh7: __darwin_ymm_reg,
}
impl Default for __darwin_i386_avx512_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_i386_exception_state {
pub __trapno: __uint16_t,
pub __cpu: __uint16_t,
pub __err: __uint32_t,
pub __faultvaddr: __uint32_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_debug_state32 {
pub __dr0: ::std::os::raw::c_uint,
pub __dr1: ::std::os::raw::c_uint,
pub __dr2: ::std::os::raw::c_uint,
pub __dr3: ::std::os::raw::c_uint,
pub __dr4: ::std::os::raw::c_uint,
pub __dr5: ::std::os::raw::c_uint,
pub __dr6: ::std::os::raw::c_uint,
pub __dr7: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __x86_instruction_state {
pub __insn_stream_valid_bytes: ::std::os::raw::c_int,
pub __insn_offset: ::std::os::raw::c_int,
pub __out_of_synch: ::std::os::raw::c_int,
pub __insn_bytes: [__uint8_t; 2380usize],
pub __insn_cacheline: [__uint8_t; 64usize],
}
impl Default for __x86_instruction_state {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __last_branch_record {
pub __from_ip: __uint64_t,
pub __to_ip: __uint64_t,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub __bindgen_padding_0: u32,
}
impl __last_branch_record {
#[inline]
pub fn __mispredict(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set___mispredict(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __tsx_abort(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set___tsx_abort(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __in_tsx(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
}
#[inline]
pub fn set___in_tsx(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn __cycle_count(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 16u8) as u32) }
}
#[inline]
pub fn set___cycle_count(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 16u8, val as u64)
}
}
#[inline]
pub fn __reserved(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 13u8) as u32) }
}
#[inline]
pub fn set___reserved(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(19usize, 13u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__mispredict: __uint32_t,
__tsx_abort: __uint32_t,
__in_tsx: __uint32_t,
__cycle_count: __uint32_t,
__reserved: __uint32_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __mispredict: u32 = unsafe { ::std::mem::transmute(__mispredict) };
__mispredict as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __tsx_abort: u32 = unsafe { ::std::mem::transmute(__tsx_abort) };
__tsx_abort as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let __in_tsx: u32 = unsafe { ::std::mem::transmute(__in_tsx) };
__in_tsx as u64
});
__bindgen_bitfield_unit.set(3usize, 16u8, {
let __cycle_count: u32 = unsafe { ::std::mem::transmute(__cycle_count) };
__cycle_count as u64
});
__bindgen_bitfield_unit.set(19usize, 13u8, {
let __reserved: u32 = unsafe { ::std::mem::transmute(__reserved) };
__reserved as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __last_branch_state {
pub __lbr_count: ::std::os::raw::c_int,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub __lbrs: [__last_branch_record; 32usize],
}
impl __last_branch_state {
#[inline]
pub fn __lbr_supported_tsx(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set___lbr_supported_tsx(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn __lbr_supported_cycle_count(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set___lbr_supported_cycle_count(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn __reserved(&self) -> __uint32_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
}
#[inline]
pub fn set___reserved(&mut self, val: __uint32_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 30u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
__lbr_supported_tsx: __uint32_t,
__lbr_supported_cycle_count: __uint32_t,
__reserved: __uint32_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let __lbr_supported_tsx: u32 = unsafe { ::std::mem::transmute(__lbr_supported_tsx) };
__lbr_supported_tsx as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let __lbr_supported_cycle_count: u32 =
unsafe { ::std::mem::transmute(__lbr_supported_cycle_count) };
__lbr_supported_cycle_count as u64
});
__bindgen_bitfield_unit.set(2usize, 30u8, {
let __reserved: u32 = unsafe { ::std::mem::transmute(__reserved) };
__reserved as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __x86_pagein_state {
pub __pagein_error: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_thread_state64 {
pub __rax: __uint64_t,
pub __rbx: __uint64_t,
pub __rcx: __uint64_t,
pub __rdx: __uint64_t,
pub __rdi: __uint64_t,
pub __rsi: __uint64_t,
pub __rbp: __uint64_t,
pub __rsp: __uint64_t,
pub __r8: __uint64_t,
pub __r9: __uint64_t,
pub __r10: __uint64_t,
pub __r11: __uint64_t,
pub __r12: __uint64_t,
pub __r13: __uint64_t,
pub __r14: __uint64_t,
pub __r15: __uint64_t,
pub __rip: __uint64_t,
pub __rflags: __uint64_t,
pub __cs: __uint64_t,
pub __fs: __uint64_t,
pub __gs: __uint64_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_thread_full_state64 {
pub __ss64: __darwin_x86_thread_state64,
pub __ds: __uint64_t,
pub __es: __uint64_t,
pub __ss: __uint64_t,
pub __gsbase: __uint64_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_x86_float_state64 {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_xmm8: __darwin_xmm_reg,
pub __fpu_xmm9: __darwin_xmm_reg,
pub __fpu_xmm10: __darwin_xmm_reg,
pub __fpu_xmm11: __darwin_xmm_reg,
pub __fpu_xmm12: __darwin_xmm_reg,
pub __fpu_xmm13: __darwin_xmm_reg,
pub __fpu_xmm14: __darwin_xmm_reg,
pub __fpu_xmm15: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
}
impl Default for __darwin_x86_float_state64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_x86_avx_state64 {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_xmm8: __darwin_xmm_reg,
pub __fpu_xmm9: __darwin_xmm_reg,
pub __fpu_xmm10: __darwin_xmm_reg,
pub __fpu_xmm11: __darwin_xmm_reg,
pub __fpu_xmm12: __darwin_xmm_reg,
pub __fpu_xmm13: __darwin_xmm_reg,
pub __fpu_xmm14: __darwin_xmm_reg,
pub __fpu_xmm15: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
pub __fpu_ymmh0: __darwin_xmm_reg,
pub __fpu_ymmh1: __darwin_xmm_reg,
pub __fpu_ymmh2: __darwin_xmm_reg,
pub __fpu_ymmh3: __darwin_xmm_reg,
pub __fpu_ymmh4: __darwin_xmm_reg,
pub __fpu_ymmh5: __darwin_xmm_reg,
pub __fpu_ymmh6: __darwin_xmm_reg,
pub __fpu_ymmh7: __darwin_xmm_reg,
pub __fpu_ymmh8: __darwin_xmm_reg,
pub __fpu_ymmh9: __darwin_xmm_reg,
pub __fpu_ymmh10: __darwin_xmm_reg,
pub __fpu_ymmh11: __darwin_xmm_reg,
pub __fpu_ymmh12: __darwin_xmm_reg,
pub __fpu_ymmh13: __darwin_xmm_reg,
pub __fpu_ymmh14: __darwin_xmm_reg,
pub __fpu_ymmh15: __darwin_xmm_reg,
}
impl Default for __darwin_x86_avx_state64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_x86_avx512_state64 {
pub __fpu_reserved: [::std::os::raw::c_int; 2usize],
pub __fpu_fcw: __darwin_fp_control,
pub __fpu_fsw: __darwin_fp_status,
pub __fpu_ftw: __uint8_t,
pub __fpu_rsrv1: __uint8_t,
pub __fpu_fop: __uint16_t,
pub __fpu_ip: __uint32_t,
pub __fpu_cs: __uint16_t,
pub __fpu_rsrv2: __uint16_t,
pub __fpu_dp: __uint32_t,
pub __fpu_ds: __uint16_t,
pub __fpu_rsrv3: __uint16_t,
pub __fpu_mxcsr: __uint32_t,
pub __fpu_mxcsrmask: __uint32_t,
pub __fpu_stmm0: __darwin_mmst_reg,
pub __fpu_stmm1: __darwin_mmst_reg,
pub __fpu_stmm2: __darwin_mmst_reg,
pub __fpu_stmm3: __darwin_mmst_reg,
pub __fpu_stmm4: __darwin_mmst_reg,
pub __fpu_stmm5: __darwin_mmst_reg,
pub __fpu_stmm6: __darwin_mmst_reg,
pub __fpu_stmm7: __darwin_mmst_reg,
pub __fpu_xmm0: __darwin_xmm_reg,
pub __fpu_xmm1: __darwin_xmm_reg,
pub __fpu_xmm2: __darwin_xmm_reg,
pub __fpu_xmm3: __darwin_xmm_reg,
pub __fpu_xmm4: __darwin_xmm_reg,
pub __fpu_xmm5: __darwin_xmm_reg,
pub __fpu_xmm6: __darwin_xmm_reg,
pub __fpu_xmm7: __darwin_xmm_reg,
pub __fpu_xmm8: __darwin_xmm_reg,
pub __fpu_xmm9: __darwin_xmm_reg,
pub __fpu_xmm10: __darwin_xmm_reg,
pub __fpu_xmm11: __darwin_xmm_reg,
pub __fpu_xmm12: __darwin_xmm_reg,
pub __fpu_xmm13: __darwin_xmm_reg,
pub __fpu_xmm14: __darwin_xmm_reg,
pub __fpu_xmm15: __darwin_xmm_reg,
pub __fpu_rsrv4: [::std::os::raw::c_char; 96usize],
pub __fpu_reserved1: ::std::os::raw::c_int,
pub __avx_reserved1: [::std::os::raw::c_char; 64usize],
pub __fpu_ymmh0: __darwin_xmm_reg,
pub __fpu_ymmh1: __darwin_xmm_reg,
pub __fpu_ymmh2: __darwin_xmm_reg,
pub __fpu_ymmh3: __darwin_xmm_reg,
pub __fpu_ymmh4: __darwin_xmm_reg,
pub __fpu_ymmh5: __darwin_xmm_reg,
pub __fpu_ymmh6: __darwin_xmm_reg,
pub __fpu_ymmh7: __darwin_xmm_reg,
pub __fpu_ymmh8: __darwin_xmm_reg,
pub __fpu_ymmh9: __darwin_xmm_reg,
pub __fpu_ymmh10: __darwin_xmm_reg,
pub __fpu_ymmh11: __darwin_xmm_reg,
pub __fpu_ymmh12: __darwin_xmm_reg,
pub __fpu_ymmh13: __darwin_xmm_reg,
pub __fpu_ymmh14: __darwin_xmm_reg,
pub __fpu_ymmh15: __darwin_xmm_reg,
pub __fpu_k0: __darwin_opmask_reg,
pub __fpu_k1: __darwin_opmask_reg,
pub __fpu_k2: __darwin_opmask_reg,
pub __fpu_k3: __darwin_opmask_reg,
pub __fpu_k4: __darwin_opmask_reg,
pub __fpu_k5: __darwin_opmask_reg,
pub __fpu_k6: __darwin_opmask_reg,
pub __fpu_k7: __darwin_opmask_reg,
pub __fpu_zmmh0: __darwin_ymm_reg,
pub __fpu_zmmh1: __darwin_ymm_reg,
pub __fpu_zmmh2: __darwin_ymm_reg,
pub __fpu_zmmh3: __darwin_ymm_reg,
pub __fpu_zmmh4: __darwin_ymm_reg,
pub __fpu_zmmh5: __darwin_ymm_reg,
pub __fpu_zmmh6: __darwin_ymm_reg,
pub __fpu_zmmh7: __darwin_ymm_reg,
pub __fpu_zmmh8: __darwin_ymm_reg,
pub __fpu_zmmh9: __darwin_ymm_reg,
pub __fpu_zmmh10: __darwin_ymm_reg,
pub __fpu_zmmh11: __darwin_ymm_reg,
pub __fpu_zmmh12: __darwin_ymm_reg,
pub __fpu_zmmh13: __darwin_ymm_reg,
pub __fpu_zmmh14: __darwin_ymm_reg,
pub __fpu_zmmh15: __darwin_ymm_reg,
pub __fpu_zmm16: __darwin_zmm_reg,
pub __fpu_zmm17: __darwin_zmm_reg,
pub __fpu_zmm18: __darwin_zmm_reg,
pub __fpu_zmm19: __darwin_zmm_reg,
pub __fpu_zmm20: __darwin_zmm_reg,
pub __fpu_zmm21: __darwin_zmm_reg,
pub __fpu_zmm22: __darwin_zmm_reg,
pub __fpu_zmm23: __darwin_zmm_reg,
pub __fpu_zmm24: __darwin_zmm_reg,
pub __fpu_zmm25: __darwin_zmm_reg,
pub __fpu_zmm26: __darwin_zmm_reg,
pub __fpu_zmm27: __darwin_zmm_reg,
pub __fpu_zmm28: __darwin_zmm_reg,
pub __fpu_zmm29: __darwin_zmm_reg,
pub __fpu_zmm30: __darwin_zmm_reg,
pub __fpu_zmm31: __darwin_zmm_reg,
}
impl Default for __darwin_x86_avx512_state64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_exception_state64 {
pub __trapno: __uint16_t,
pub __cpu: __uint16_t,
pub __err: __uint32_t,
pub __faultvaddr: __uint64_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_debug_state64 {
pub __dr0: __uint64_t,
pub __dr1: __uint64_t,
pub __dr2: __uint64_t,
pub __dr3: __uint64_t,
pub __dr4: __uint64_t,
pub __dr5: __uint64_t,
pub __dr6: __uint64_t,
pub __dr7: __uint64_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_x86_cpmu_state64 {
pub __ctrs: [__uint64_t; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext32 {
pub __es: __darwin_i386_exception_state,
pub __ss: __darwin_i386_thread_state,
pub __fs: __darwin_i386_float_state,
}
impl Default for __darwin_mcontext32 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx32 {
pub __es: __darwin_i386_exception_state,
pub __ss: __darwin_i386_thread_state,
pub __fs: __darwin_i386_avx_state,
}
impl Default for __darwin_mcontext_avx32 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx512_32 {
pub __es: __darwin_i386_exception_state,
pub __ss: __darwin_i386_thread_state,
pub __fs: __darwin_i386_avx512_state,
}
impl Default for __darwin_mcontext_avx512_32 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext64 {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_state64,
pub __fs: __darwin_x86_float_state64,
}
impl Default for __darwin_mcontext64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext64_full {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_full_state64,
pub __fs: __darwin_x86_float_state64,
}
impl Default for __darwin_mcontext64_full {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx64 {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_state64,
pub __fs: __darwin_x86_avx_state64,
}
impl Default for __darwin_mcontext_avx64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx64_full {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_full_state64,
pub __fs: __darwin_x86_avx_state64,
}
impl Default for __darwin_mcontext_avx64_full {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx512_64 {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_state64,
pub __fs: __darwin_x86_avx512_state64,
}
impl Default for __darwin_mcontext_avx512_64 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext_avx512_64_full {
pub __es: __darwin_x86_exception_state64,
pub __ss: __darwin_x86_thread_full_state64,
pub __fs: __darwin_x86_avx512_state64,
}
impl Default for __darwin_mcontext_avx512_64_full {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type mcontext_t = *mut __darwin_mcontext64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_sigaltstack {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_size: __darwin_size_t,
pub ss_flags: ::std::os::raw::c_int,
}
impl Default for __darwin_sigaltstack {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type stack_t = __darwin_sigaltstack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_ucontext {
pub uc_onstack: ::std::os::raw::c_int,
pub uc_sigmask: __darwin_sigset_t,
pub uc_stack: __darwin_sigaltstack,
pub uc_link: *mut __darwin_ucontext,
pub uc_mcsize: __darwin_size_t,
pub uc_mcontext: *mut __darwin_mcontext64,
}
impl Default for __darwin_ucontext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type ucontext_t = __darwin_ucontext;
pub type sigset_t = __darwin_sigset_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
pub sival_int: ::std::os::raw::c_int,
pub sival_ptr: *mut ::std::os::raw::c_void,
}
impl Default for sigval {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_notify: ::std::os::raw::c_int,
pub sigev_signo: ::std::os::raw::c_int,
pub sigev_value: sigval,
pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
pub sigev_notify_attributes: *mut pthread_attr_t,
}
impl Default for sigevent {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __siginfo {
pub si_signo: ::std::os::raw::c_int,
pub si_errno: ::std::os::raw::c_int,
pub si_code: ::std::os::raw::c_int,
pub si_pid: pid_t,
pub si_uid: uid_t,
pub si_status: ::std::os::raw::c_int,
pub si_addr: *mut ::std::os::raw::c_void,
pub si_value: sigval,
pub si_band: ::std::os::raw::c_long,
pub __pad: [::std::os::raw::c_ulong; 7usize],
}
impl Default for __siginfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type siginfo_t = __siginfo;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __sigaction_u {
pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub __sa_sigaction: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: *mut __siginfo,
arg3: *mut ::std::os::raw::c_void,
),
>,
}
impl Default for __sigaction_u {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_tramp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut siginfo_t,
arg5: *mut ::std::os::raw::c_void,
),
>,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
impl Default for __sigaction {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
impl Default for sigaction {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct sigvec {
pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub sv_mask: ::std::os::raw::c_int,
pub sv_flags: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
pub ss_sp: *mut ::std::os::raw::c_char,
pub ss_onstack: ::std::os::raw::c_int,
}
impl Default for sigstack {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn signal(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
extern "C" {
pub static sys_signame: [*const ::std::os::raw::c_char; 32usize];
}
extern "C" {
pub static sys_siglist: [*const ::std::os::raw::c_char; 32usize];
}
extern "C" {
pub fn raise(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bsd_signal(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
extern "C" {
pub fn kill(arg1: pid_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn killpg(arg1: pid_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_kill(arg1: pthread_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_sigmask(
arg1: ::std::os::raw::c_int,
arg2: *const sigset_t,
arg3: *mut sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigaction(
arg1: ::std::os::raw::c_int,
arg2: *const sigaction,
arg3: *mut sigaction,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigaddset(arg1: *mut sigset_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigaltstack(arg1: *const stack_t, arg2: *mut stack_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigdelset(arg1: *mut sigset_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigemptyset(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigfillset(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sighold(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigignore(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn siginterrupt(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigismember(arg1: *const sigset_t, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigpause(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigpending(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigprocmask(
arg1: ::std::os::raw::c_int,
arg2: *const sigset_t,
arg3: *mut sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigrelse(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigset(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
extern "C" {
pub fn sigsuspend(arg1: *const sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigwait(
arg1: *const sigset_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn psignal(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn sigblock(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigsetmask(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigvec(
arg1: ::std::os::raw::c_int,
arg2: *mut sigvec,
arg3: *mut sigvec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn renameat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn renamex_np(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn renameatx_np(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
arg5: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
pub type fpos_t = __darwin_off_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sbuf {
pub _base: *mut ::std::os::raw::c_uchar,
pub _size: ::std::os::raw::c_int,
}
impl Default for __sbuf {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILEX {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILE {
pub _p: *mut ::std::os::raw::c_uchar,
pub _r: ::std::os::raw::c_int,
pub _w: ::std::os::raw::c_int,
pub _flags: ::std::os::raw::c_short,
pub _file: ::std::os::raw::c_short,
pub _bf: __sbuf,
pub _lbfsize: ::std::os::raw::c_int,
pub _cookie: *mut ::std::os::raw::c_void,
pub _close: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
pub _read: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub _seek: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: fpos_t,
arg3: ::std::os::raw::c_int,
) -> fpos_t,
>,
pub _write: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub _ub: __sbuf,
pub _extra: *mut __sFILEX,
pub _ur: ::std::os::raw::c_int,
pub _ubuf: [::std::os::raw::c_uchar; 3usize],
pub _nbuf: [::std::os::raw::c_uchar; 1usize],
pub _lb: __sbuf,
pub _blksize: ::std::os::raw::c_int,
pub _offset: fpos_t,
}
impl Default for __sFILE {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type FILE = __sFILE;
extern "C" {
pub static mut __stdinp: *mut FILE;
}
extern "C" {
pub static mut __stdoutp: *mut FILE;
}
extern "C" {
pub static mut __stderrp: *mut FILE;
}
extern "C" {
pub fn clearerr(arg1: *mut FILE);
}
extern "C" {
pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgets(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *mut FILE,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fopen(
__filename: *const ::std::os::raw::c_char,
__mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn fprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fread(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
__nitems: ::std::os::raw::c_ulong,
__stream: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn freopen(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut FILE,
) -> *mut FILE;
}
extern "C" {
pub fn fscanf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fseek(
arg1: *mut FILE,
arg2: ::std::os::raw::c_long,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn fwrite(
__ptr: *const ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
__nitems: ::std::os::raw::c_ulong,
__stream: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gets(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn perror(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rename(
__old: *const ::std::os::raw::c_char,
__new: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rewind(arg1: *mut FILE);
}
extern "C" {
pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn setvbuf(
arg1: *mut FILE,
arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sscanf(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn tmpfile() -> *mut FILE;
}
extern "C" {
pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vprintf(
arg1: *const ::std::os::raw::c_char,
arg2: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE;
}
extern "C" {
pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn popen(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __svfscanf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn flockfile(arg1: *mut FILE);
}
extern "C" {
pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn funlockfile(arg1: *mut FILE);
}
extern "C" {
pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn tempnam(
__dir: *const ::std::os::raw::c_char,
__prefix: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fseeko(
__stream: *mut FILE,
__offset: off_t,
__whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftello(__stream: *mut FILE) -> off_t;
}
extern "C" {
pub fn snprintf(
__str: *mut ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfscanf(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
arg1: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vscanf(
__format: *const ::std::os::raw::c_char,
arg1: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsnprintf(
__str: *mut ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
__format: *const ::std::os::raw::c_char,
arg1: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsscanf(
__str: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
arg1: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dprintf(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vdprintf(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getdelim(
__linep: *mut *mut ::std::os::raw::c_char,
__linecapp: *mut usize,
__delimiter: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> isize;
}
extern "C" {
pub fn getline(
__linep: *mut *mut ::std::os::raw::c_char,
__linecapp: *mut usize,
__stream: *mut FILE,
) -> isize;
}
extern "C" {
pub fn fmemopen(
__buf: *mut ::std::os::raw::c_void,
__size: usize,
__mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn open_memstream(
__bufp: *mut *mut ::std::os::raw::c_char,
__sizep: *mut usize,
) -> *mut FILE;
}
extern "C" {
pub static sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
pub static sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
pub fn asprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fgetln(arg1: *mut FILE, arg2: *mut usize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fmtcheck(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setbuffer(
arg1: *mut FILE,
arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vasprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn funopen(
arg1: *const ::std::os::raw::c_void,
arg2: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
arg3: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
arg4: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: fpos_t,
arg3: ::std::os::raw::c_int,
) -> fpos_t,
>,
arg5: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
) -> *mut FILE;
}
extern "C" {
pub fn __sprintf_chk(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: usize,
arg4: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __snprintf_chk(
arg1: *mut ::std::os::raw::c_char,
arg2: usize,
arg3: ::std::os::raw::c_int,
arg4: usize,
arg5: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __vsprintf_chk(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: usize,
arg4: *const ::std::os::raw::c_char,
arg5: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __vsnprintf_chk(
arg1: *mut ::std::os::raw::c_char,
arg2: usize,
arg3: ::std::os::raw::c_int,
arg4: usize,
arg5: *const ::std::os::raw::c_char,
arg6: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct timeval {
pub tv_sec: __darwin_time_t,
pub tv_usec: __darwin_suseconds_t,
}
pub type rlim_t = __uint64_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage {
pub ru_utime: timeval,
pub ru_stime: timeval,
pub ru_maxrss: ::std::os::raw::c_long,
pub ru_ixrss: ::std::os::raw::c_long,
pub ru_idrss: ::std::os::raw::c_long,
pub ru_isrss: ::std::os::raw::c_long,
pub ru_minflt: ::std::os::raw::c_long,
pub ru_majflt: ::std::os::raw::c_long,
pub ru_nswap: ::std::os::raw::c_long,
pub ru_inblock: ::std::os::raw::c_long,
pub ru_oublock: ::std::os::raw::c_long,
pub ru_msgsnd: ::std::os::raw::c_long,
pub ru_msgrcv: ::std::os::raw::c_long,
pub ru_nsignals: ::std::os::raw::c_long,
pub ru_nvcsw: ::std::os::raw::c_long,
pub ru_nivcsw: ::std::os::raw::c_long,
}
pub type rusage_info_t = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v0 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v1 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v2 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v3 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v4 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v5 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v6 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
pub ri_user_ptime: u64,
pub ri_system_ptime: u64,
pub ri_pinstructions: u64,
pub ri_pcycles: u64,
pub ri_energy_nj: u64,
pub ri_penergy_nj: u64,
pub ri_secure_time_in_system: u64,
pub ri_secure_ptime_in_system: u64,
pub ri_reserved: [u64; 12usize],
}
pub type rusage_info_current = rusage_info_v6;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rlimit {
pub rlim_cur: rlim_t,
pub rlim_max: rlim_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct proc_rlimit_control_wakeupmon {
pub wm_flags: u32,
pub wm_rate: i32,
}
extern "C" {
pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setpriority(
arg1: ::std::os::raw::c_int,
arg2: id_t,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union wait {
pub w_status: ::std::os::raw::c_int,
pub w_T: wait__bindgen_ty_1,
pub w_S: wait__bindgen_ty_2,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_1 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl wait__bindgen_ty_1 {
#[inline]
pub fn w_Termsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) }
}
#[inline]
pub fn set_w_Termsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 7u8, val as u64)
}
}
#[inline]
pub fn w_Coredump(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
}
#[inline]
pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub fn w_Retcode(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
w_Termsig: ::std::os::raw::c_uint,
w_Coredump: ::std::os::raw::c_uint,
w_Retcode: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 7u8, {
let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) };
w_Termsig as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) };
w_Coredump as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) };
w_Retcode as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_2 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl wait__bindgen_ty_2 {
#[inline]
pub fn w_Stopval(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopval(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
w_Stopval: ::std::os::raw::c_uint,
w_Stopsig: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) };
w_Stopval as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) };
w_Stopsig as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
impl Default for wait {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t;
}
extern "C" {
pub fn waitpid(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> pid_t;
}
extern "C" {
pub fn waitid(
arg1: idtype_t,
arg2: id_t,
arg3: *mut siginfo_t,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wait3(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: *mut rusage,
) -> pid_t;
}
extern "C" {
pub fn wait4(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut rusage,
) -> pid_t;
}
extern "C" {
pub fn alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
extern "C" {
pub static mut __mb_cur_max: ::std::os::raw::c_int;
}
pub type malloc_type_id_t = ::std::os::raw::c_ulonglong;
extern "C" {
pub fn malloc_type_malloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_calloc(
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_free(ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t);
}
extern "C" {
pub fn malloc_type_realloc(
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_valloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_aligned_alloc(
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_posix_memalign(
memptr: *mut *mut ::std::os::raw::c_void,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _malloc_zone_t {
_unused: [u8; 0],
}
pub type malloc_zone_t = _malloc_zone_t;
extern "C" {
pub fn malloc_type_zone_malloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_calloc(
zone: *mut malloc_zone_t,
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_free(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
type_id: malloc_type_id_t,
);
}
extern "C" {
pub fn malloc_type_zone_realloc(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_valloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc_type_zone_memalign(
zone: *mut malloc_zone_t,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__count: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(arg1: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn reallocf(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(arg1: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn aligned_alloc(
__alignment: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn abort() -> !;
}
extern "C" {
pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, arg3: usize) -> usize;
}
extern "C" {
pub fn mbtowc(
arg1: *mut wchar_t,
arg2: *const ::std::os::raw::c_char,
arg3: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(arg1: ::std::os::raw::c_uint);
}
extern "C" {
pub fn strtod(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtof(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
extern "C" {
pub fn strtol(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn strtold(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> u128;
}
extern "C" {
pub fn strtoll(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoul(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtoull(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const wchar_t, arg3: usize) -> usize;
}
extern "C" {
pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _Exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn ecvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn fcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getsubopt(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate(
arg1: ::std::os::raw::c_uint,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort);
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ptsname_r(
fildes: ::std::os::raw::c_int,
buffer: *mut ::std::os::raw::c_char,
buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn realpath(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__overwrite: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setkey(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn srand48(arg1: ::std::os::raw::c_long);
}
extern "C" {
pub fn srandom(arg1: ::std::os::raw::c_uint);
}
extern "C" {
pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn arc4random() -> u32;
}
extern "C" {
pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int);
}
extern "C" {
pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize);
}
extern "C" {
pub fn arc4random_stir();
}
extern "C" {
pub fn arc4random_uniform(__upper_bound: u32) -> u32;
}
extern "C" {
pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bsearch_b(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn cgetcap(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn cgetclose() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetent(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetfirst(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetmatch(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetnext(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetnum(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetstr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn cgetustr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn daemon(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn devname_r(
arg1: dev_t,
arg2: mode_t,
buf: *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getbsize(
arg1: *mut ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_long,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getprogname() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn setprogname(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn heapsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn heapsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mergesort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mergesort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn psort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn psort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn psort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn qsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn qsort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
extern "C" {
pub fn radixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sradixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sranddev();
}
extern "C" {
pub fn srandomdev();
}
extern "C" {
pub fn strtonum(
__numstr: *const ::std::os::raw::c_char,
__minval: ::std::os::raw::c_longlong,
__maxval: ::std::os::raw::c_longlong,
__errstrp: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtouq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub static mut suboptarg: *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn memchr(
__s: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn memcpy(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memmove(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__len: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memset(
__b: *mut ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__len: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn strcat(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcoll(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcspn(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strncat(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strncmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strpbrk(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strrchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strspn(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strstr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strtok(
__str: *mut ::std::os::raw::c_char,
__sep: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strxfrm(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtok_r(
__str: *mut ::std::os::raw::c_char,
__sep: *const ::std::os::raw::c_char,
__lasts: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strerror_r(
__errnum: ::std::os::raw::c_int,
__strerrbuf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn memccpy(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn stpcpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn stpncpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strndup(
__s1: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn memset_s(
__s: *mut ::std::os::raw::c_void,
__smax: rsize_t,
__c: ::std::os::raw::c_int,
__n: rsize_t,
) -> errno_t;
}
extern "C" {
pub fn memmem(
__big: *const ::std::os::raw::c_void,
__big_len: usize,
__little: *const ::std::os::raw::c_void,
__little_len: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memset_pattern4(
__b: *mut ::std::os::raw::c_void,
__pattern4: *const ::std::os::raw::c_void,
__len: usize,
);
}
extern "C" {
pub fn memset_pattern8(
__b: *mut ::std::os::raw::c_void,
__pattern8: *const ::std::os::raw::c_void,
__len: usize,
);
}
extern "C" {
pub fn memset_pattern16(
__b: *mut ::std::os::raw::c_void,
__pattern16: *const ::std::os::raw::c_void,
__len: usize,
);
}
extern "C" {
pub fn strcasestr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strnstr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
__len: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strlcat(
__dst: *mut ::std::os::raw::c_char,
__source: *const ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strlcpy(
__dst: *mut ::std::os::raw::c_char,
__source: *const ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn strsep(
__stringp: *mut *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn swab(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: isize,
);
}
extern "C" {
pub fn timingsafe_bcmp(
__b1: *const ::std::os::raw::c_void,
__b2: *const ::std::os::raw::c_void,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strsignal_r(
__sig: ::std::os::raw::c_int,
__strsignalbuf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bcmp(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bcopy(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: usize,
);
}
extern "C" {
pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong);
}
extern "C" {
pub fn index(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn rindex(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct timespec {
pub tv_sec: __darwin_time_t,
pub tv_nsec: ::std::os::raw::c_long,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tm {
pub tm_sec: ::std::os::raw::c_int,
pub tm_min: ::std::os::raw::c_int,
pub tm_hour: ::std::os::raw::c_int,
pub tm_mday: ::std::os::raw::c_int,
pub tm_mon: ::std::os::raw::c_int,
pub tm_year: ::std::os::raw::c_int,
pub tm_wday: ::std::os::raw::c_int,
pub tm_yday: ::std::os::raw::c_int,
pub tm_isdst: ::std::os::raw::c_int,
pub tm_gmtoff: ::std::os::raw::c_long,
pub tm_zone: *mut ::std::os::raw::c_char,
}
impl Default for tm {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub static mut tzname: [*mut ::std::os::raw::c_char; 0usize];
}
extern "C" {
pub static mut getdate_err: ::std::os::raw::c_int;
}
extern "C" {
pub static mut timezone: ::std::os::raw::c_long;
}
extern "C" {
pub static mut daylight: ::std::os::raw::c_int;
}
extern "C" {
pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn clock() -> clock_t;
}
extern "C" {
pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn difftime(arg1: time_t, arg2: time_t) -> f64;
}
extern "C" {
pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm;
}
extern "C" {
pub fn gmtime(arg1: *const time_t) -> *mut tm;
}
extern "C" {
pub fn localtime(arg1: *const time_t) -> *mut tm;
}
extern "C" {
pub fn mktime(arg1: *mut tm) -> time_t;
}
extern "C" {
pub fn strftime(
arg1: *mut ::std::os::raw::c_char,
arg2: usize,
arg3: *const ::std::os::raw::c_char,
arg4: *const tm,
) -> usize;
}
extern "C" {
pub fn strptime(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut tm,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn time(arg1: *mut time_t) -> time_t;
}
extern "C" {
pub fn tzset();
}
extern "C" {
pub fn asctime_r(
arg1: *const tm,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ctime_r(
arg1: *const time_t,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
}
extern "C" {
pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
}
extern "C" {
pub fn posix2time(arg1: time_t) -> time_t;
}
extern "C" {
pub fn tzsetwall();
}
extern "C" {
pub fn time2posix(arg1: time_t) -> time_t;
}
extern "C" {
pub fn timelocal(arg1: *mut tm) -> time_t;
}
extern "C" {
pub fn timegm(arg1: *mut tm) -> time_t;
}
extern "C" {
pub fn nanosleep(__rqtp: *const timespec, __rmtp: *mut timespec) -> ::std::os::raw::c_int;
}
pub const clockid_t__CLOCK_REALTIME: clockid_t = 0;
pub const clockid_t__CLOCK_MONOTONIC: clockid_t = 6;
pub const clockid_t__CLOCK_MONOTONIC_RAW: clockid_t = 4;
pub const clockid_t__CLOCK_MONOTONIC_RAW_APPROX: clockid_t = 5;
pub const clockid_t__CLOCK_UPTIME_RAW: clockid_t = 8;
pub const clockid_t__CLOCK_UPTIME_RAW_APPROX: clockid_t = 9;
pub const clockid_t__CLOCK_PROCESS_CPUTIME_ID: clockid_t = 12;
pub const clockid_t__CLOCK_THREAD_CPUTIME_ID: clockid_t = 16;
pub type clockid_t = ::std::os::raw::c_uint;
extern "C" {
pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_gettime_nsec_np(__clock_id: clockid_t) -> __uint64_t;
}
extern "C" {
pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timespec_get(ts: *mut timespec, base: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn imaxabs(j: intmax_t) -> intmax_t;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct imaxdiv_t {
pub quot: intmax_t,
pub rem: intmax_t,
}
extern "C" {
pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
extern "C" {
pub fn strtoimax(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> intmax_t;
}
extern "C" {
pub fn strtoumax(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> uintmax_t;
}
extern "C" {
pub fn wcstoimax(
__nptr: *const wchar_t,
__endptr: *mut *mut wchar_t,
__base: ::std::os::raw::c_int,
) -> intmax_t;
}
extern "C" {
pub fn wcstoumax(
__nptr: *const wchar_t,
__endptr: *mut *mut wchar_t,
__base: ::std::os::raw::c_int,
) -> uintmax_t;
}
pub type CFArrayRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void,
>;
pub type CFArrayReleaseCallBack = ::std::option::Option<
unsafe extern "C" fn(allocator: CFAllocatorRef, value: *const ::std::os::raw::c_void),
>;
pub type CFArrayCopyDescriptionCallBack = ::std::option::Option<
unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFStringRef,
>;
pub type CFArrayEqualCallBack = ::std::option::Option<
unsafe extern "C" fn(
value1: *const ::std::os::raw::c_void,
value2: *const ::std::os::raw::c_void,
) -> Boolean,
>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFArrayCallBacks {
pub version: CFIndex,
pub retain: CFArrayRetainCallBack,
pub release: CFArrayReleaseCallBack,
pub copyDescription: CFArrayCopyDescriptionCallBack,
pub equal: CFArrayEqualCallBack,
}
extern "C" {
pub static kCFTypeArrayCallBacks: CFArrayCallBacks;
}
pub type CFArrayApplierFunction = ::std::option::Option<
unsafe extern "C" fn(
value: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFArray {
_unused: [u8; 0],
}
pub type CFArrayRef = *const __CFArray;
pub type CFMutableArrayRef = *mut __CFArray;
extern "C" {
pub fn CFArrayGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFArrayCreate(
allocator: CFAllocatorRef,
values: *mut *const ::std::os::raw::c_void,
numValues: CFIndex,
callBacks: *const CFArrayCallBacks,
) -> CFArrayRef;
}
extern "C" {
pub fn CFArrayCreateCopy(allocator: CFAllocatorRef, theArray: CFArrayRef) -> CFArrayRef;
}
extern "C" {
pub fn CFArrayCreateMutable(
allocator: CFAllocatorRef,
capacity: CFIndex,
callBacks: *const CFArrayCallBacks,
) -> CFMutableArrayRef;
}
extern "C" {
pub fn CFArrayCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
theArray: CFArrayRef,
) -> CFMutableArrayRef;
}
extern "C" {
pub fn CFArrayGetCount(theArray: CFArrayRef) -> CFIndex;
}
extern "C" {
pub fn CFArrayGetCountOfValue(
theArray: CFArrayRef,
range: CFRange,
value: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFArrayContainsValue(
theArray: CFArrayRef,
range: CFRange,
value: *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFArrayGetValueAtIndex(
theArray: CFArrayRef,
idx: CFIndex,
) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFArrayGetValues(
theArray: CFArrayRef,
range: CFRange,
values: *mut *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFArrayApplyFunction(
theArray: CFArrayRef,
range: CFRange,
applier: CFArrayApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFArrayGetFirstIndexOfValue(
theArray: CFArrayRef,
range: CFRange,
value: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFArrayGetLastIndexOfValue(
theArray: CFArrayRef,
range: CFRange,
value: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFArrayBSearchValues(
theArray: CFArrayRef,
range: CFRange,
value: *const ::std::os::raw::c_void,
comparator: CFComparatorFunction,
context: *mut ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFArrayAppendValue(theArray: CFMutableArrayRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFArrayInsertValueAtIndex(
theArray: CFMutableArrayRef,
idx: CFIndex,
value: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFArraySetValueAtIndex(
theArray: CFMutableArrayRef,
idx: CFIndex,
value: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFArrayRemoveValueAtIndex(theArray: CFMutableArrayRef, idx: CFIndex);
}
extern "C" {
pub fn CFArrayRemoveAllValues(theArray: CFMutableArrayRef);
}
extern "C" {
pub fn CFArrayReplaceValues(
theArray: CFMutableArrayRef,
range: CFRange,
newValues: *mut *const ::std::os::raw::c_void,
newCount: CFIndex,
);
}
extern "C" {
pub fn CFArrayExchangeValuesAtIndices(
theArray: CFMutableArrayRef,
idx1: CFIndex,
idx2: CFIndex,
);
}
extern "C" {
pub fn CFArraySortValues(
theArray: CFMutableArrayRef,
range: CFRange,
comparator: CFComparatorFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFArrayAppendArray(
theArray: CFMutableArrayRef,
otherArray: CFArrayRef,
otherRange: CFRange,
);
}
pub type CFBagRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void,
>;
pub type CFBagReleaseCallBack = ::std::option::Option<
unsafe extern "C" fn(allocator: CFAllocatorRef, value: *const ::std::os::raw::c_void),
>;
pub type CFBagCopyDescriptionCallBack = ::std::option::Option<
unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFStringRef,
>;
pub type CFBagEqualCallBack = ::std::option::Option<
unsafe extern "C" fn(
value1: *const ::std::os::raw::c_void,
value2: *const ::std::os::raw::c_void,
) -> Boolean,
>;
pub type CFBagHashCallBack =
::std::option::Option<unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFHashCode>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFBagCallBacks {
pub version: CFIndex,
pub retain: CFBagRetainCallBack,
pub release: CFBagReleaseCallBack,
pub copyDescription: CFBagCopyDescriptionCallBack,
pub equal: CFBagEqualCallBack,
pub hash: CFBagHashCallBack,
}
extern "C" {
pub static kCFTypeBagCallBacks: CFBagCallBacks;
}
extern "C" {
pub static kCFCopyStringBagCallBacks: CFBagCallBacks;
}
pub type CFBagApplierFunction = ::std::option::Option<
unsafe extern "C" fn(
value: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFBag {
_unused: [u8; 0],
}
pub type CFBagRef = *const __CFBag;
pub type CFMutableBagRef = *mut __CFBag;
extern "C" {
pub fn CFBagGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFBagCreate(
allocator: CFAllocatorRef,
values: *mut *const ::std::os::raw::c_void,
numValues: CFIndex,
callBacks: *const CFBagCallBacks,
) -> CFBagRef;
}
extern "C" {
pub fn CFBagCreateCopy(allocator: CFAllocatorRef, theBag: CFBagRef) -> CFBagRef;
}
extern "C" {
pub fn CFBagCreateMutable(
allocator: CFAllocatorRef,
capacity: CFIndex,
callBacks: *const CFBagCallBacks,
) -> CFMutableBagRef;
}
extern "C" {
pub fn CFBagCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
theBag: CFBagRef,
) -> CFMutableBagRef;
}
extern "C" {
pub fn CFBagGetCount(theBag: CFBagRef) -> CFIndex;
}
extern "C" {
pub fn CFBagGetCountOfValue(theBag: CFBagRef, value: *const ::std::os::raw::c_void) -> CFIndex;
}
extern "C" {
pub fn CFBagContainsValue(theBag: CFBagRef, value: *const ::std::os::raw::c_void) -> Boolean;
}
extern "C" {
pub fn CFBagGetValue(
theBag: CFBagRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFBagGetValueIfPresent(
theBag: CFBagRef,
candidate: *const ::std::os::raw::c_void,
value: *mut *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFBagGetValues(theBag: CFBagRef, values: *mut *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBagApplyFunction(
theBag: CFBagRef,
applier: CFBagApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFBagAddValue(theBag: CFMutableBagRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBagReplaceValue(theBag: CFMutableBagRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBagSetValue(theBag: CFMutableBagRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBagRemoveValue(theBag: CFMutableBagRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBagRemoveAllValues(theBag: CFMutableBagRef);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFBinaryHeapCompareContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFBinaryHeapCompareContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFBinaryHeapCallBacks {
pub version: CFIndex,
pub retain: ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
ptr: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<
unsafe extern "C" fn(allocator: CFAllocatorRef, ptr: *const ::std::os::raw::c_void),
>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> CFStringRef,
>,
pub compare: ::std::option::Option<
unsafe extern "C" fn(
ptr1: *const ::std::os::raw::c_void,
ptr2: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
) -> CFComparisonResult,
>,
}
extern "C" {
pub static kCFStringBinaryHeapCallBacks: CFBinaryHeapCallBacks;
}
pub type CFBinaryHeapApplierFunction = ::std::option::Option<
unsafe extern "C" fn(val: *const ::std::os::raw::c_void, context: *mut ::std::os::raw::c_void),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFBinaryHeap {
_unused: [u8; 0],
}
pub type CFBinaryHeapRef = *mut __CFBinaryHeap;
extern "C" {
pub fn CFBinaryHeapGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFBinaryHeapCreate(
allocator: CFAllocatorRef,
capacity: CFIndex,
callBacks: *const CFBinaryHeapCallBacks,
compareContext: *const CFBinaryHeapCompareContext,
) -> CFBinaryHeapRef;
}
extern "C" {
pub fn CFBinaryHeapCreateCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
heap: CFBinaryHeapRef,
) -> CFBinaryHeapRef;
}
extern "C" {
pub fn CFBinaryHeapGetCount(heap: CFBinaryHeapRef) -> CFIndex;
}
extern "C" {
pub fn CFBinaryHeapGetCountOfValue(
heap: CFBinaryHeapRef,
value: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFBinaryHeapContainsValue(
heap: CFBinaryHeapRef,
value: *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFBinaryHeapGetMinimum(heap: CFBinaryHeapRef) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFBinaryHeapGetMinimumIfPresent(
heap: CFBinaryHeapRef,
value: *mut *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFBinaryHeapGetValues(heap: CFBinaryHeapRef, values: *mut *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBinaryHeapApplyFunction(
heap: CFBinaryHeapRef,
applier: CFBinaryHeapApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFBinaryHeapAddValue(heap: CFBinaryHeapRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFBinaryHeapRemoveMinimumValue(heap: CFBinaryHeapRef);
}
extern "C" {
pub fn CFBinaryHeapRemoveAllValues(heap: CFBinaryHeapRef);
}
pub type CFBit = UInt32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFBitVector {
_unused: [u8; 0],
}
pub type CFBitVectorRef = *const __CFBitVector;
pub type CFMutableBitVectorRef = *mut __CFBitVector;
extern "C" {
pub fn CFBitVectorGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFBitVectorCreate(
allocator: CFAllocatorRef,
bytes: *const UInt8,
numBits: CFIndex,
) -> CFBitVectorRef;
}
extern "C" {
pub fn CFBitVectorCreateCopy(allocator: CFAllocatorRef, bv: CFBitVectorRef) -> CFBitVectorRef;
}
extern "C" {
pub fn CFBitVectorCreateMutable(
allocator: CFAllocatorRef,
capacity: CFIndex,
) -> CFMutableBitVectorRef;
}
extern "C" {
pub fn CFBitVectorCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
bv: CFBitVectorRef,
) -> CFMutableBitVectorRef;
}
extern "C" {
pub fn CFBitVectorGetCount(bv: CFBitVectorRef) -> CFIndex;
}
extern "C" {
pub fn CFBitVectorGetCountOfBit(bv: CFBitVectorRef, range: CFRange, value: CFBit) -> CFIndex;
}
extern "C" {
pub fn CFBitVectorContainsBit(bv: CFBitVectorRef, range: CFRange, value: CFBit) -> Boolean;
}
extern "C" {
pub fn CFBitVectorGetBitAtIndex(bv: CFBitVectorRef, idx: CFIndex) -> CFBit;
}
extern "C" {
pub fn CFBitVectorGetBits(bv: CFBitVectorRef, range: CFRange, bytes: *mut UInt8);
}
extern "C" {
pub fn CFBitVectorGetFirstIndexOfBit(
bv: CFBitVectorRef,
range: CFRange,
value: CFBit,
) -> CFIndex;
}
extern "C" {
pub fn CFBitVectorGetLastIndexOfBit(
bv: CFBitVectorRef,
range: CFRange,
value: CFBit,
) -> CFIndex;
}
extern "C" {
pub fn CFBitVectorSetCount(bv: CFMutableBitVectorRef, count: CFIndex);
}
extern "C" {
pub fn CFBitVectorFlipBitAtIndex(bv: CFMutableBitVectorRef, idx: CFIndex);
}
extern "C" {
pub fn CFBitVectorFlipBits(bv: CFMutableBitVectorRef, range: CFRange);
}
extern "C" {
pub fn CFBitVectorSetBitAtIndex(bv: CFMutableBitVectorRef, idx: CFIndex, value: CFBit);
}
extern "C" {
pub fn CFBitVectorSetBits(bv: CFMutableBitVectorRef, range: CFRange, value: CFBit);
}
extern "C" {
pub fn CFBitVectorSetAllBits(bv: CFMutableBitVectorRef, value: CFBit);
}
pub const OSUnknownByteOrder: _bindgen_ty_23 = 0;
pub const OSLittleEndian: _bindgen_ty_23 = 1;
pub const OSBigEndian: _bindgen_ty_23 = 2;
pub type _bindgen_ty_23 = ::std::os::raw::c_uint;
pub const __CFByteOrder_CFByteOrderUnknown: __CFByteOrder = 0;
pub const __CFByteOrder_CFByteOrderLittleEndian: __CFByteOrder = 1;
pub const __CFByteOrder_CFByteOrderBigEndian: __CFByteOrder = 2;
pub type __CFByteOrder = ::std::os::raw::c_uint;
pub type CFByteOrder = CFIndex;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFSwappedFloat32 {
pub v: u32,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFSwappedFloat64 {
pub v: u64,
}
pub type CFDictionaryRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void,
>;
pub type CFDictionaryReleaseCallBack = ::std::option::Option<
unsafe extern "C" fn(allocator: CFAllocatorRef, value: *const ::std::os::raw::c_void),
>;
pub type CFDictionaryCopyDescriptionCallBack = ::std::option::Option<
unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFStringRef,
>;
pub type CFDictionaryEqualCallBack = ::std::option::Option<
unsafe extern "C" fn(
value1: *const ::std::os::raw::c_void,
value2: *const ::std::os::raw::c_void,
) -> Boolean,
>;
pub type CFDictionaryHashCallBack =
::std::option::Option<unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFHashCode>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFDictionaryKeyCallBacks {
pub version: CFIndex,
pub retain: CFDictionaryRetainCallBack,
pub release: CFDictionaryReleaseCallBack,
pub copyDescription: CFDictionaryCopyDescriptionCallBack,
pub equal: CFDictionaryEqualCallBack,
pub hash: CFDictionaryHashCallBack,
}
extern "C" {
pub static kCFTypeDictionaryKeyCallBacks: CFDictionaryKeyCallBacks;
}
extern "C" {
pub static kCFCopyStringDictionaryKeyCallBacks: CFDictionaryKeyCallBacks;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFDictionaryValueCallBacks {
pub version: CFIndex,
pub retain: CFDictionaryRetainCallBack,
pub release: CFDictionaryReleaseCallBack,
pub copyDescription: CFDictionaryCopyDescriptionCallBack,
pub equal: CFDictionaryEqualCallBack,
}
extern "C" {
pub static kCFTypeDictionaryValueCallBacks: CFDictionaryValueCallBacks;
}
pub type CFDictionaryApplierFunction = ::std::option::Option<
unsafe extern "C" fn(
key: *const ::std::os::raw::c_void,
value: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFDictionary {
_unused: [u8; 0],
}
pub type CFDictionaryRef = *const __CFDictionary;
pub type CFMutableDictionaryRef = *mut __CFDictionary;
extern "C" {
pub fn CFDictionaryGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFDictionaryCreate(
allocator: CFAllocatorRef,
keys: *mut *const ::std::os::raw::c_void,
values: *mut *const ::std::os::raw::c_void,
numValues: CFIndex,
keyCallBacks: *const CFDictionaryKeyCallBacks,
valueCallBacks: *const CFDictionaryValueCallBacks,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFDictionaryCreateCopy(
allocator: CFAllocatorRef,
theDict: CFDictionaryRef,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFDictionaryCreateMutable(
allocator: CFAllocatorRef,
capacity: CFIndex,
keyCallBacks: *const CFDictionaryKeyCallBacks,
valueCallBacks: *const CFDictionaryValueCallBacks,
) -> CFMutableDictionaryRef;
}
extern "C" {
pub fn CFDictionaryCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
theDict: CFDictionaryRef,
) -> CFMutableDictionaryRef;
}
extern "C" {
pub fn CFDictionaryGetCount(theDict: CFDictionaryRef) -> CFIndex;
}
extern "C" {
pub fn CFDictionaryGetCountOfKey(
theDict: CFDictionaryRef,
key: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFDictionaryGetCountOfValue(
theDict: CFDictionaryRef,
value: *const ::std::os::raw::c_void,
) -> CFIndex;
}
extern "C" {
pub fn CFDictionaryContainsKey(
theDict: CFDictionaryRef,
key: *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFDictionaryContainsValue(
theDict: CFDictionaryRef,
value: *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFDictionaryGetValue(
theDict: CFDictionaryRef,
key: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFDictionaryGetValueIfPresent(
theDict: CFDictionaryRef,
key: *const ::std::os::raw::c_void,
value: *mut *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFDictionaryGetKeysAndValues(
theDict: CFDictionaryRef,
keys: *mut *const ::std::os::raw::c_void,
values: *mut *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionaryApplyFunction(
theDict: CFDictionaryRef,
applier: CFDictionaryApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionaryAddValue(
theDict: CFMutableDictionaryRef,
key: *const ::std::os::raw::c_void,
value: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionarySetValue(
theDict: CFMutableDictionaryRef,
key: *const ::std::os::raw::c_void,
value: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionaryReplaceValue(
theDict: CFMutableDictionaryRef,
key: *const ::std::os::raw::c_void,
value: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionaryRemoveValue(
theDict: CFMutableDictionaryRef,
key: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFDictionaryRemoveAllValues(theDict: CFMutableDictionaryRef);
}
pub type CFNotificationName = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFNotificationCenter {
_unused: [u8; 0],
}
pub type CFNotificationCenterRef = *mut __CFNotificationCenter;
pub type CFNotificationCallback = ::std::option::Option<
unsafe extern "C" fn(
center: CFNotificationCenterRef,
observer: *mut ::std::os::raw::c_void,
name: CFNotificationName,
object: *const ::std::os::raw::c_void,
userInfo: CFDictionaryRef,
),
>;
pub type CFNotificationSuspensionBehavior = CFIndex;
pub const CFNotificationSuspensionBehaviorDrop: _bindgen_ty_24 = 1;
pub const CFNotificationSuspensionBehaviorCoalesce: _bindgen_ty_24 = 2;
pub const CFNotificationSuspensionBehaviorHold: _bindgen_ty_24 = 3;
pub const CFNotificationSuspensionBehaviorDeliverImmediately: _bindgen_ty_24 = 4;
pub type _bindgen_ty_24 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFNotificationCenterGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFNotificationCenterGetLocalCenter() -> CFNotificationCenterRef;
}
extern "C" {
pub fn CFNotificationCenterGetDistributedCenter() -> CFNotificationCenterRef;
}
extern "C" {
pub fn CFNotificationCenterGetDarwinNotifyCenter() -> CFNotificationCenterRef;
}
extern "C" {
pub fn CFNotificationCenterAddObserver(
center: CFNotificationCenterRef,
observer: *const ::std::os::raw::c_void,
callBack: CFNotificationCallback,
name: CFStringRef,
object: *const ::std::os::raw::c_void,
suspensionBehavior: CFNotificationSuspensionBehavior,
);
}
extern "C" {
pub fn CFNotificationCenterRemoveObserver(
center: CFNotificationCenterRef,
observer: *const ::std::os::raw::c_void,
name: CFNotificationName,
object: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFNotificationCenterRemoveEveryObserver(
center: CFNotificationCenterRef,
observer: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFNotificationCenterPostNotification(
center: CFNotificationCenterRef,
name: CFNotificationName,
object: *const ::std::os::raw::c_void,
userInfo: CFDictionaryRef,
deliverImmediately: Boolean,
);
}
pub const kCFNotificationDeliverImmediately: _bindgen_ty_25 = 1;
pub const kCFNotificationPostToAllSessions: _bindgen_ty_25 = 2;
pub type _bindgen_ty_25 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFNotificationCenterPostNotificationWithOptions(
center: CFNotificationCenterRef,
name: CFNotificationName,
object: *const ::std::os::raw::c_void,
userInfo: CFDictionaryRef,
options: CFOptionFlags,
);
}
pub type CFLocaleIdentifier = CFStringRef;
pub type CFLocaleKey = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFLocale {
_unused: [u8; 0],
}
pub type CFLocaleRef = *const __CFLocale;
extern "C" {
pub fn CFLocaleGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFLocaleGetSystem() -> CFLocaleRef;
}
extern "C" {
pub fn CFLocaleCopyCurrent() -> CFLocaleRef;
}
extern "C" {
pub fn CFLocaleCopyAvailableLocaleIdentifiers() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCopyISOLanguageCodes() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCopyISOCountryCodes() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCopyISOCurrencyCodes() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCopyCommonISOCurrencyCodes() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCopyPreferredLanguages() -> CFArrayRef;
}
extern "C" {
pub fn CFLocaleCreateCanonicalLanguageIdentifierFromString(
allocator: CFAllocatorRef,
localeIdentifier: CFStringRef,
) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleCreateCanonicalLocaleIdentifierFromString(
allocator: CFAllocatorRef,
localeIdentifier: CFStringRef,
) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(
allocator: CFAllocatorRef,
lcode: LangCode,
rcode: RegionCode,
) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(
allocator: CFAllocatorRef,
lcid: u32,
) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(
localeIdentifier: CFLocaleIdentifier,
) -> u32;
}
pub type CFLocaleLanguageDirection = CFIndex;
pub const kCFLocaleLanguageDirectionUnknown: _bindgen_ty_26 = 0;
pub const kCFLocaleLanguageDirectionLeftToRight: _bindgen_ty_26 = 1;
pub const kCFLocaleLanguageDirectionRightToLeft: _bindgen_ty_26 = 2;
pub const kCFLocaleLanguageDirectionTopToBottom: _bindgen_ty_26 = 3;
pub const kCFLocaleLanguageDirectionBottomToTop: _bindgen_ty_26 = 4;
pub type _bindgen_ty_26 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFLocaleGetLanguageCharacterDirection(
isoLangCode: CFStringRef,
) -> CFLocaleLanguageDirection;
}
extern "C" {
pub fn CFLocaleGetLanguageLineDirection(isoLangCode: CFStringRef) -> CFLocaleLanguageDirection;
}
extern "C" {
pub fn CFLocaleCreateComponentsFromLocaleIdentifier(
allocator: CFAllocatorRef,
localeID: CFLocaleIdentifier,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFLocaleCreateLocaleIdentifierFromComponents(
allocator: CFAllocatorRef,
dictionary: CFDictionaryRef,
) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleCreate(
allocator: CFAllocatorRef,
localeIdentifier: CFLocaleIdentifier,
) -> CFLocaleRef;
}
extern "C" {
pub fn CFLocaleCreateCopy(allocator: CFAllocatorRef, locale: CFLocaleRef) -> CFLocaleRef;
}
extern "C" {
pub fn CFLocaleGetIdentifier(locale: CFLocaleRef) -> CFLocaleIdentifier;
}
extern "C" {
pub fn CFLocaleGetValue(locale: CFLocaleRef, key: CFLocaleKey) -> CFTypeRef;
}
extern "C" {
pub fn CFLocaleCopyDisplayNameForPropertyValue(
displayLocale: CFLocaleRef,
key: CFLocaleKey,
value: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub static kCFLocaleCurrentLocaleDidChangeNotification: CFNotificationName;
}
extern "C" {
pub static kCFLocaleIdentifier: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleLanguageCode: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCountryCode: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleScriptCode: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleVariantCode: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleExemplarCharacterSet: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCalendarIdentifier: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCalendar: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCollationIdentifier: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleUsesMetricSystem: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleMeasurementSystem: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleDecimalSeparator: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleGroupingSeparator: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCurrencySymbol: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCurrencyCode: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleCollatorIdentifier: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleQuotationBeginDelimiterKey: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleQuotationEndDelimiterKey: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleAlternateQuotationBeginDelimiterKey: CFLocaleKey;
}
extern "C" {
pub static kCFLocaleAlternateQuotationEndDelimiterKey: CFLocaleKey;
}
pub type CFCalendarIdentifier = CFStringRef;
extern "C" {
pub static kCFGregorianCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFBuddhistCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFChineseCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFHebrewCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFIslamicCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFIslamicCivilCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFJapaneseCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFRepublicOfChinaCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFPersianCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFIndianCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFISO8601Calendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFIslamicTabularCalendar: CFCalendarIdentifier;
}
extern "C" {
pub static kCFIslamicUmmAlQuraCalendar: CFCalendarIdentifier;
}
pub type CFTimeInterval = f64;
pub type CFAbsoluteTime = CFTimeInterval;
extern "C" {
pub fn CFAbsoluteTimeGetCurrent() -> CFAbsoluteTime;
}
extern "C" {
pub static kCFAbsoluteTimeIntervalSince1970: CFTimeInterval;
}
extern "C" {
pub static kCFAbsoluteTimeIntervalSince1904: CFTimeInterval;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFDate {
_unused: [u8; 0],
}
pub type CFDateRef = *const __CFDate;
extern "C" {
pub fn CFDateGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFDateCreate(allocator: CFAllocatorRef, at: CFAbsoluteTime) -> CFDateRef;
}
extern "C" {
pub fn CFDateGetAbsoluteTime(theDate: CFDateRef) -> CFAbsoluteTime;
}
extern "C" {
pub fn CFDateGetTimeIntervalSinceDate(
theDate: CFDateRef,
otherDate: CFDateRef,
) -> CFTimeInterval;
}
extern "C" {
pub fn CFDateCompare(
theDate: CFDateRef,
otherDate: CFDateRef,
context: *mut ::std::os::raw::c_void,
) -> CFComparisonResult;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFTimeZone {
_unused: [u8; 0],
}
pub type CFTimeZoneRef = *const __CFTimeZone;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFGregorianDate {
pub year: SInt32,
pub month: SInt8,
pub day: SInt8,
pub hour: SInt8,
pub minute: SInt8,
pub second: f64,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFGregorianUnits {
pub years: SInt32,
pub months: SInt32,
pub days: SInt32,
pub hours: SInt32,
pub minutes: SInt32,
pub seconds: f64,
}
pub type CFGregorianUnitFlags = CFOptionFlags;
pub const kCFGregorianUnitsYears: _bindgen_ty_27 = 1;
pub const kCFGregorianUnitsMonths: _bindgen_ty_27 = 2;
pub const kCFGregorianUnitsDays: _bindgen_ty_27 = 4;
pub const kCFGregorianUnitsHours: _bindgen_ty_27 = 8;
pub const kCFGregorianUnitsMinutes: _bindgen_ty_27 = 16;
pub const kCFGregorianUnitsSeconds: _bindgen_ty_27 = 32;
pub const kCFGregorianAllUnits: _bindgen_ty_27 = 16777215;
pub type _bindgen_ty_27 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFGregorianDateIsValid(gdate: CFGregorianDate, unitFlags: CFOptionFlags) -> Boolean;
}
extern "C" {
pub fn CFGregorianDateGetAbsoluteTime(
gdate: CFGregorianDate,
tz: CFTimeZoneRef,
) -> CFAbsoluteTime;
}
extern "C" {
pub fn CFAbsoluteTimeGetGregorianDate(at: CFAbsoluteTime, tz: CFTimeZoneRef)
-> CFGregorianDate;
}
extern "C" {
pub fn CFAbsoluteTimeAddGregorianUnits(
at: CFAbsoluteTime,
tz: CFTimeZoneRef,
units: CFGregorianUnits,
) -> CFAbsoluteTime;
}
extern "C" {
pub fn CFAbsoluteTimeGetDifferenceAsGregorianUnits(
at1: CFAbsoluteTime,
at2: CFAbsoluteTime,
tz: CFTimeZoneRef,
unitFlags: CFOptionFlags,
) -> CFGregorianUnits;
}
extern "C" {
pub fn CFAbsoluteTimeGetDayOfWeek(at: CFAbsoluteTime, tz: CFTimeZoneRef) -> SInt32;
}
extern "C" {
pub fn CFAbsoluteTimeGetDayOfYear(at: CFAbsoluteTime, tz: CFTimeZoneRef) -> SInt32;
}
extern "C" {
pub fn CFAbsoluteTimeGetWeekOfYear(at: CFAbsoluteTime, tz: CFTimeZoneRef) -> SInt32;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFData {
_unused: [u8; 0],
}
pub type CFDataRef = *const __CFData;
pub type CFMutableDataRef = *mut __CFData;
extern "C" {
pub fn CFDataGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFDataCreate(
allocator: CFAllocatorRef,
bytes: *const UInt8,
length: CFIndex,
) -> CFDataRef;
}
extern "C" {
pub fn CFDataCreateWithBytesNoCopy(
allocator: CFAllocatorRef,
bytes: *const UInt8,
length: CFIndex,
bytesDeallocator: CFAllocatorRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFDataCreateCopy(allocator: CFAllocatorRef, theData: CFDataRef) -> CFDataRef;
}
extern "C" {
pub fn CFDataCreateMutable(allocator: CFAllocatorRef, capacity: CFIndex) -> CFMutableDataRef;
}
extern "C" {
pub fn CFDataCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
theData: CFDataRef,
) -> CFMutableDataRef;
}
extern "C" {
pub fn CFDataGetLength(theData: CFDataRef) -> CFIndex;
}
extern "C" {
pub fn CFDataGetBytePtr(theData: CFDataRef) -> *const UInt8;
}
extern "C" {
pub fn CFDataGetMutableBytePtr(theData: CFMutableDataRef) -> *mut UInt8;
}
extern "C" {
pub fn CFDataGetBytes(theData: CFDataRef, range: CFRange, buffer: *mut UInt8);
}
extern "C" {
pub fn CFDataSetLength(theData: CFMutableDataRef, length: CFIndex);
}
extern "C" {
pub fn CFDataIncreaseLength(theData: CFMutableDataRef, extraLength: CFIndex);
}
extern "C" {
pub fn CFDataAppendBytes(theData: CFMutableDataRef, bytes: *const UInt8, length: CFIndex);
}
extern "C" {
pub fn CFDataReplaceBytes(
theData: CFMutableDataRef,
range: CFRange,
newBytes: *const UInt8,
newLength: CFIndex,
);
}
extern "C" {
pub fn CFDataDeleteBytes(theData: CFMutableDataRef, range: CFRange);
}
pub type CFDataSearchFlags = CFOptionFlags;
pub const kCFDataSearchBackwards: _bindgen_ty_28 = 1;
pub const kCFDataSearchAnchored: _bindgen_ty_28 = 2;
pub type _bindgen_ty_28 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFDataFind(
theData: CFDataRef,
dataToFind: CFDataRef,
searchRange: CFRange,
compareOptions: CFDataSearchFlags,
) -> CFRange;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFCharacterSet {
_unused: [u8; 0],
}
pub type CFCharacterSetRef = *const __CFCharacterSet;
pub type CFMutableCharacterSetRef = *mut __CFCharacterSet;
pub type CFCharacterSetPredefinedSet = CFIndex;
pub const kCFCharacterSetControl: _bindgen_ty_29 = 1;
pub const kCFCharacterSetWhitespace: _bindgen_ty_29 = 2;
pub const kCFCharacterSetWhitespaceAndNewline: _bindgen_ty_29 = 3;
pub const kCFCharacterSetDecimalDigit: _bindgen_ty_29 = 4;
pub const kCFCharacterSetLetter: _bindgen_ty_29 = 5;
pub const kCFCharacterSetLowercaseLetter: _bindgen_ty_29 = 6;
pub const kCFCharacterSetUppercaseLetter: _bindgen_ty_29 = 7;
pub const kCFCharacterSetNonBase: _bindgen_ty_29 = 8;
pub const kCFCharacterSetDecomposable: _bindgen_ty_29 = 9;
pub const kCFCharacterSetAlphaNumeric: _bindgen_ty_29 = 10;
pub const kCFCharacterSetPunctuation: _bindgen_ty_29 = 11;
pub const kCFCharacterSetCapitalizedLetter: _bindgen_ty_29 = 13;
pub const kCFCharacterSetSymbol: _bindgen_ty_29 = 14;
pub const kCFCharacterSetNewline: _bindgen_ty_29 = 15;
pub const kCFCharacterSetIllegal: _bindgen_ty_29 = 12;
pub type _bindgen_ty_29 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFCharacterSetGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFCharacterSetGetPredefined(
theSetIdentifier: CFCharacterSetPredefinedSet,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateWithCharactersInRange(
alloc: CFAllocatorRef,
theRange: CFRange,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateWithCharactersInString(
alloc: CFAllocatorRef,
theString: CFStringRef,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateWithBitmapRepresentation(
alloc: CFAllocatorRef,
theData: CFDataRef,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateInvertedSet(
alloc: CFAllocatorRef,
theSet: CFCharacterSetRef,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetIsSupersetOfSet(
theSet: CFCharacterSetRef,
theOtherset: CFCharacterSetRef,
) -> Boolean;
}
extern "C" {
pub fn CFCharacterSetHasMemberInPlane(theSet: CFCharacterSetRef, thePlane: CFIndex) -> Boolean;
}
extern "C" {
pub fn CFCharacterSetCreateMutable(alloc: CFAllocatorRef) -> CFMutableCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateCopy(
alloc: CFAllocatorRef,
theSet: CFCharacterSetRef,
) -> CFCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetCreateMutableCopy(
alloc: CFAllocatorRef,
theSet: CFCharacterSetRef,
) -> CFMutableCharacterSetRef;
}
extern "C" {
pub fn CFCharacterSetIsCharacterMember(theSet: CFCharacterSetRef, theChar: UniChar) -> Boolean;
}
extern "C" {
pub fn CFCharacterSetIsLongCharacterMember(
theSet: CFCharacterSetRef,
theChar: UTF32Char,
) -> Boolean;
}
extern "C" {
pub fn CFCharacterSetCreateBitmapRepresentation(
alloc: CFAllocatorRef,
theSet: CFCharacterSetRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFCharacterSetAddCharactersInRange(theSet: CFMutableCharacterSetRef, theRange: CFRange);
}
extern "C" {
pub fn CFCharacterSetRemoveCharactersInRange(
theSet: CFMutableCharacterSetRef,
theRange: CFRange,
);
}
extern "C" {
pub fn CFCharacterSetAddCharactersInString(
theSet: CFMutableCharacterSetRef,
theString: CFStringRef,
);
}
extern "C" {
pub fn CFCharacterSetRemoveCharactersInString(
theSet: CFMutableCharacterSetRef,
theString: CFStringRef,
);
}
extern "C" {
pub fn CFCharacterSetUnion(theSet: CFMutableCharacterSetRef, theOtherSet: CFCharacterSetRef);
}
extern "C" {
pub fn CFCharacterSetIntersect(
theSet: CFMutableCharacterSetRef,
theOtherSet: CFCharacterSetRef,
);
}
extern "C" {
pub fn CFCharacterSetInvert(theSet: CFMutableCharacterSetRef);
}
pub type CFErrorDomain = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFError {
_unused: [u8; 0],
}
pub type CFErrorRef = *mut __CFError;
extern "C" {
pub fn CFErrorGetTypeID() -> CFTypeID;
}
extern "C" {
pub static kCFErrorDomainPOSIX: CFErrorDomain;
}
extern "C" {
pub static kCFErrorDomainOSStatus: CFErrorDomain;
}
extern "C" {
pub static kCFErrorDomainMach: CFErrorDomain;
}
extern "C" {
pub static kCFErrorDomainCocoa: CFErrorDomain;
}
extern "C" {
pub static kCFErrorLocalizedDescriptionKey: CFStringRef;
}
extern "C" {
pub static kCFErrorLocalizedFailureKey: CFStringRef;
}
extern "C" {
pub static kCFErrorLocalizedFailureReasonKey: CFStringRef;
}
extern "C" {
pub static kCFErrorLocalizedRecoverySuggestionKey: CFStringRef;
}
extern "C" {
pub static kCFErrorDescriptionKey: CFStringRef;
}
extern "C" {
pub static kCFErrorUnderlyingErrorKey: CFStringRef;
}
extern "C" {
pub static kCFErrorURLKey: CFStringRef;
}
extern "C" {
pub static kCFErrorFilePathKey: CFStringRef;
}
extern "C" {
pub fn CFErrorCreate(
allocator: CFAllocatorRef,
domain: CFErrorDomain,
code: CFIndex,
userInfo: CFDictionaryRef,
) -> CFErrorRef;
}
extern "C" {
pub fn CFErrorCreateWithUserInfoKeysAndValues(
allocator: CFAllocatorRef,
domain: CFErrorDomain,
code: CFIndex,
userInfoKeys: *const *const ::std::os::raw::c_void,
userInfoValues: *const *const ::std::os::raw::c_void,
numUserInfoValues: CFIndex,
) -> CFErrorRef;
}
extern "C" {
pub fn CFErrorGetDomain(err: CFErrorRef) -> CFErrorDomain;
}
extern "C" {
pub fn CFErrorGetCode(err: CFErrorRef) -> CFIndex;
}
extern "C" {
pub fn CFErrorCopyUserInfo(err: CFErrorRef) -> CFDictionaryRef;
}
extern "C" {
pub fn CFErrorCopyDescription(err: CFErrorRef) -> CFStringRef;
}
extern "C" {
pub fn CFErrorCopyFailureReason(err: CFErrorRef) -> CFStringRef;
}
extern "C" {
pub fn CFErrorCopyRecoverySuggestion(err: CFErrorRef) -> CFStringRef;
}
pub type CFStringEncoding = UInt32;
pub type CFStringBuiltInEncodings = CFStringEncoding;
pub const kCFStringEncodingMacRoman: _bindgen_ty_30 = 0;
pub const kCFStringEncodingWindowsLatin1: _bindgen_ty_30 = 1280;
pub const kCFStringEncodingISOLatin1: _bindgen_ty_30 = 513;
pub const kCFStringEncodingNextStepLatin: _bindgen_ty_30 = 2817;
pub const kCFStringEncodingASCII: _bindgen_ty_30 = 1536;
pub const kCFStringEncodingUnicode: _bindgen_ty_30 = 256;
pub const kCFStringEncodingUTF8: _bindgen_ty_30 = 134217984;
pub const kCFStringEncodingNonLossyASCII: _bindgen_ty_30 = 3071;
pub const kCFStringEncodingUTF16: _bindgen_ty_30 = 256;
pub const kCFStringEncodingUTF16BE: _bindgen_ty_30 = 268435712;
pub const kCFStringEncodingUTF16LE: _bindgen_ty_30 = 335544576;
pub const kCFStringEncodingUTF32: _bindgen_ty_30 = 201326848;
pub const kCFStringEncodingUTF32BE: _bindgen_ty_30 = 402653440;
pub const kCFStringEncodingUTF32LE: _bindgen_ty_30 = 469762304;
pub type _bindgen_ty_30 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFStringGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFStringCreateWithPascalString(
alloc: CFAllocatorRef,
pStr: ConstStr255Param,
encoding: CFStringEncoding,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithCString(
alloc: CFAllocatorRef,
cStr: *const ::std::os::raw::c_char,
encoding: CFStringEncoding,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithBytes(
alloc: CFAllocatorRef,
bytes: *const UInt8,
numBytes: CFIndex,
encoding: CFStringEncoding,
isExternalRepresentation: Boolean,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithCharacters(
alloc: CFAllocatorRef,
chars: *const UniChar,
numChars: CFIndex,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithPascalStringNoCopy(
alloc: CFAllocatorRef,
pStr: ConstStr255Param,
encoding: CFStringEncoding,
contentsDeallocator: CFAllocatorRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithCStringNoCopy(
alloc: CFAllocatorRef,
cStr: *const ::std::os::raw::c_char,
encoding: CFStringEncoding,
contentsDeallocator: CFAllocatorRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithBytesNoCopy(
alloc: CFAllocatorRef,
bytes: *const UInt8,
numBytes: CFIndex,
encoding: CFStringEncoding,
isExternalRepresentation: Boolean,
contentsDeallocator: CFAllocatorRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithCharactersNoCopy(
alloc: CFAllocatorRef,
chars: *const UniChar,
numChars: CFIndex,
contentsDeallocator: CFAllocatorRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithSubstring(
alloc: CFAllocatorRef,
str_: CFStringRef,
range: CFRange,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateCopy(alloc: CFAllocatorRef, theString: CFStringRef) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithFormat(
alloc: CFAllocatorRef,
formatOptions: CFDictionaryRef,
format: CFStringRef,
...
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateWithFormatAndArguments(
alloc: CFAllocatorRef,
formatOptions: CFDictionaryRef,
format: CFStringRef,
arguments: *mut __va_list_tag,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateStringWithValidatedFormat(
alloc: CFAllocatorRef,
formatOptions: CFDictionaryRef,
validFormatSpecifiers: CFStringRef,
format: CFStringRef,
errorPtr: *mut CFErrorRef,
...
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateStringWithValidatedFormatAndArguments(
alloc: CFAllocatorRef,
formatOptions: CFDictionaryRef,
validFormatSpecifiers: CFStringRef,
format: CFStringRef,
arguments: *mut __va_list_tag,
errorPtr: *mut CFErrorRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateMutable(alloc: CFAllocatorRef, maxLength: CFIndex) -> CFMutableStringRef;
}
extern "C" {
pub fn CFStringCreateMutableCopy(
alloc: CFAllocatorRef,
maxLength: CFIndex,
theString: CFStringRef,
) -> CFMutableStringRef;
}
extern "C" {
pub fn CFStringCreateMutableWithExternalCharactersNoCopy(
alloc: CFAllocatorRef,
chars: *mut UniChar,
numChars: CFIndex,
capacity: CFIndex,
externalCharactersAllocator: CFAllocatorRef,
) -> CFMutableStringRef;
}
extern "C" {
pub fn CFStringGetLength(theString: CFStringRef) -> CFIndex;
}
extern "C" {
pub fn CFStringGetCharacterAtIndex(theString: CFStringRef, idx: CFIndex) -> UniChar;
}
extern "C" {
pub fn CFStringGetCharacters(theString: CFStringRef, range: CFRange, buffer: *mut UniChar);
}
extern "C" {
pub fn CFStringGetPascalString(
theString: CFStringRef,
buffer: StringPtr,
bufferSize: CFIndex,
encoding: CFStringEncoding,
) -> Boolean;
}
extern "C" {
pub fn CFStringGetCString(
theString: CFStringRef,
buffer: *mut ::std::os::raw::c_char,
bufferSize: CFIndex,
encoding: CFStringEncoding,
) -> Boolean;
}
extern "C" {
pub fn CFStringGetPascalStringPtr(
theString: CFStringRef,
encoding: CFStringEncoding,
) -> ConstStringPtr;
}
extern "C" {
pub fn CFStringGetCStringPtr(
theString: CFStringRef,
encoding: CFStringEncoding,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn CFStringGetCharactersPtr(theString: CFStringRef) -> *const UniChar;
}
extern "C" {
pub fn CFStringGetBytes(
theString: CFStringRef,
range: CFRange,
encoding: CFStringEncoding,
lossByte: UInt8,
isExternalRepresentation: Boolean,
buffer: *mut UInt8,
maxBufLen: CFIndex,
usedBufLen: *mut CFIndex,
) -> CFIndex;
}
extern "C" {
pub fn CFStringCreateFromExternalRepresentation(
alloc: CFAllocatorRef,
data: CFDataRef,
encoding: CFStringEncoding,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateExternalRepresentation(
alloc: CFAllocatorRef,
theString: CFStringRef,
encoding: CFStringEncoding,
lossByte: UInt8,
) -> CFDataRef;
}
extern "C" {
pub fn CFStringGetSmallestEncoding(theString: CFStringRef) -> CFStringEncoding;
}
extern "C" {
pub fn CFStringGetFastestEncoding(theString: CFStringRef) -> CFStringEncoding;
}
extern "C" {
pub fn CFStringGetSystemEncoding() -> CFStringEncoding;
}
extern "C" {
pub fn CFStringGetMaximumSizeForEncoding(
length: CFIndex,
encoding: CFStringEncoding,
) -> CFIndex;
}
extern "C" {
pub fn CFStringGetFileSystemRepresentation(
string: CFStringRef,
buffer: *mut ::std::os::raw::c_char,
maxBufLen: CFIndex,
) -> Boolean;
}
extern "C" {
pub fn CFStringGetMaximumSizeOfFileSystemRepresentation(string: CFStringRef) -> CFIndex;
}
extern "C" {
pub fn CFStringCreateWithFileSystemRepresentation(
alloc: CFAllocatorRef,
buffer: *const ::std::os::raw::c_char,
) -> CFStringRef;
}
pub type CFStringCompareFlags = CFOptionFlags;
pub const kCFCompareCaseInsensitive: _bindgen_ty_31 = 1;
pub const kCFCompareBackwards: _bindgen_ty_31 = 4;
pub const kCFCompareAnchored: _bindgen_ty_31 = 8;
pub const kCFCompareNonliteral: _bindgen_ty_31 = 16;
pub const kCFCompareLocalized: _bindgen_ty_31 = 32;
pub const kCFCompareNumerically: _bindgen_ty_31 = 64;
pub const kCFCompareDiacriticInsensitive: _bindgen_ty_31 = 128;
pub const kCFCompareWidthInsensitive: _bindgen_ty_31 = 256;
pub const kCFCompareForcedOrdering: _bindgen_ty_31 = 512;
pub type _bindgen_ty_31 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFStringCompareWithOptionsAndLocale(
theString1: CFStringRef,
theString2: CFStringRef,
rangeToCompare: CFRange,
compareOptions: CFStringCompareFlags,
locale: CFLocaleRef,
) -> CFComparisonResult;
}
extern "C" {
pub fn CFStringCompareWithOptions(
theString1: CFStringRef,
theString2: CFStringRef,
rangeToCompare: CFRange,
compareOptions: CFStringCompareFlags,
) -> CFComparisonResult;
}
extern "C" {
pub fn CFStringCompare(
theString1: CFStringRef,
theString2: CFStringRef,
compareOptions: CFStringCompareFlags,
) -> CFComparisonResult;
}
extern "C" {
pub fn CFStringFindWithOptionsAndLocale(
theString: CFStringRef,
stringToFind: CFStringRef,
rangeToSearch: CFRange,
searchOptions: CFStringCompareFlags,
locale: CFLocaleRef,
result: *mut CFRange,
) -> Boolean;
}
extern "C" {
pub fn CFStringFindWithOptions(
theString: CFStringRef,
stringToFind: CFStringRef,
rangeToSearch: CFRange,
searchOptions: CFStringCompareFlags,
result: *mut CFRange,
) -> Boolean;
}
extern "C" {
pub fn CFStringCreateArrayWithFindResults(
alloc: CFAllocatorRef,
theString: CFStringRef,
stringToFind: CFStringRef,
rangeToSearch: CFRange,
compareOptions: CFStringCompareFlags,
) -> CFArrayRef;
}
extern "C" {
pub fn CFStringFind(
theString: CFStringRef,
stringToFind: CFStringRef,
compareOptions: CFStringCompareFlags,
) -> CFRange;
}
extern "C" {
pub fn CFStringHasPrefix(theString: CFStringRef, prefix: CFStringRef) -> Boolean;
}
extern "C" {
pub fn CFStringHasSuffix(theString: CFStringRef, suffix: CFStringRef) -> Boolean;
}
extern "C" {
pub fn CFStringGetRangeOfComposedCharactersAtIndex(
theString: CFStringRef,
theIndex: CFIndex,
) -> CFRange;
}
extern "C" {
pub fn CFStringFindCharacterFromSet(
theString: CFStringRef,
theSet: CFCharacterSetRef,
rangeToSearch: CFRange,
searchOptions: CFStringCompareFlags,
result: *mut CFRange,
) -> Boolean;
}
extern "C" {
pub fn CFStringGetLineBounds(
theString: CFStringRef,
range: CFRange,
lineBeginIndex: *mut CFIndex,
lineEndIndex: *mut CFIndex,
contentsEndIndex: *mut CFIndex,
);
}
extern "C" {
pub fn CFStringGetParagraphBounds(
string: CFStringRef,
range: CFRange,
parBeginIndex: *mut CFIndex,
parEndIndex: *mut CFIndex,
contentsEndIndex: *mut CFIndex,
);
}
extern "C" {
pub fn CFStringGetHyphenationLocationBeforeIndex(
string: CFStringRef,
location: CFIndex,
limitRange: CFRange,
options: CFOptionFlags,
locale: CFLocaleRef,
character: *mut UTF32Char,
) -> CFIndex;
}
extern "C" {
pub fn CFStringIsHyphenationAvailableForLocale(locale: CFLocaleRef) -> Boolean;
}
extern "C" {
pub fn CFStringCreateByCombiningStrings(
alloc: CFAllocatorRef,
theArray: CFArrayRef,
separatorString: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFStringCreateArrayBySeparatingStrings(
alloc: CFAllocatorRef,
theString: CFStringRef,
separatorString: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFStringGetIntValue(str_: CFStringRef) -> SInt32;
}
extern "C" {
pub fn CFStringGetDoubleValue(str_: CFStringRef) -> f64;
}
extern "C" {
pub fn CFStringAppend(theString: CFMutableStringRef, appendedString: CFStringRef);
}
extern "C" {
pub fn CFStringAppendCharacters(
theString: CFMutableStringRef,
chars: *const UniChar,
numChars: CFIndex,
);
}
extern "C" {
pub fn CFStringAppendPascalString(
theString: CFMutableStringRef,
pStr: ConstStr255Param,
encoding: CFStringEncoding,
);
}
extern "C" {
pub fn CFStringAppendCString(
theString: CFMutableStringRef,
cStr: *const ::std::os::raw::c_char,
encoding: CFStringEncoding,
);
}
extern "C" {
pub fn CFStringAppendFormat(
theString: CFMutableStringRef,
formatOptions: CFDictionaryRef,
format: CFStringRef,
...
);
}
extern "C" {
pub fn CFStringAppendFormatAndArguments(
theString: CFMutableStringRef,
formatOptions: CFDictionaryRef,
format: CFStringRef,
arguments: *mut __va_list_tag,
);
}
extern "C" {
pub fn CFStringInsert(str_: CFMutableStringRef, idx: CFIndex, insertedStr: CFStringRef);
}
extern "C" {
pub fn CFStringDelete(theString: CFMutableStringRef, range: CFRange);
}
extern "C" {
pub fn CFStringReplace(theString: CFMutableStringRef, range: CFRange, replacement: CFStringRef);
}
extern "C" {
pub fn CFStringReplaceAll(theString: CFMutableStringRef, replacement: CFStringRef);
}
extern "C" {
pub fn CFStringFindAndReplace(
theString: CFMutableStringRef,
stringToFind: CFStringRef,
replacementString: CFStringRef,
rangeToSearch: CFRange,
compareOptions: CFStringCompareFlags,
) -> CFIndex;
}
extern "C" {
pub fn CFStringSetExternalCharactersNoCopy(
theString: CFMutableStringRef,
chars: *mut UniChar,
length: CFIndex,
capacity: CFIndex,
);
}
extern "C" {
pub fn CFStringPad(
theString: CFMutableStringRef,
padString: CFStringRef,
length: CFIndex,
indexIntoPad: CFIndex,
);
}
extern "C" {
pub fn CFStringTrim(theString: CFMutableStringRef, trimString: CFStringRef);
}
extern "C" {
pub fn CFStringTrimWhitespace(theString: CFMutableStringRef);
}
extern "C" {
pub fn CFStringLowercase(theString: CFMutableStringRef, locale: CFLocaleRef);
}
extern "C" {
pub fn CFStringUppercase(theString: CFMutableStringRef, locale: CFLocaleRef);
}
extern "C" {
pub fn CFStringCapitalize(theString: CFMutableStringRef, locale: CFLocaleRef);
}
pub type CFStringNormalizationForm = CFIndex;
pub const kCFStringNormalizationFormD: _bindgen_ty_32 = 0;
pub const kCFStringNormalizationFormKD: _bindgen_ty_32 = 1;
pub const kCFStringNormalizationFormC: _bindgen_ty_32 = 2;
pub const kCFStringNormalizationFormKC: _bindgen_ty_32 = 3;
pub type _bindgen_ty_32 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFStringNormalize(theString: CFMutableStringRef, theForm: CFStringNormalizationForm);
}
extern "C" {
pub fn CFStringFold(
theString: CFMutableStringRef,
theFlags: CFStringCompareFlags,
theLocale: CFLocaleRef,
);
}
extern "C" {
pub fn CFStringTransform(
string: CFMutableStringRef,
range: *mut CFRange,
transform: CFStringRef,
reverse: Boolean,
) -> Boolean;
}
extern "C" {
pub static kCFStringTransformStripCombiningMarks: CFStringRef;
}
extern "C" {
pub static kCFStringTransformToLatin: CFStringRef;
}
extern "C" {
pub static kCFStringTransformFullwidthHalfwidth: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinKatakana: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinHiragana: CFStringRef;
}
extern "C" {
pub static kCFStringTransformHiraganaKatakana: CFStringRef;
}
extern "C" {
pub static kCFStringTransformMandarinLatin: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinHangul: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinArabic: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinHebrew: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinThai: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinCyrillic: CFStringRef;
}
extern "C" {
pub static kCFStringTransformLatinGreek: CFStringRef;
}
extern "C" {
pub static kCFStringTransformToXMLHex: CFStringRef;
}
extern "C" {
pub static kCFStringTransformToUnicodeName: CFStringRef;
}
extern "C" {
pub static kCFStringTransformStripDiacritics: CFStringRef;
}
extern "C" {
pub fn CFStringIsEncodingAvailable(encoding: CFStringEncoding) -> Boolean;
}
extern "C" {
pub fn CFStringGetListOfAvailableEncodings() -> *const CFStringEncoding;
}
extern "C" {
pub fn CFStringGetNameOfEncoding(encoding: CFStringEncoding) -> CFStringRef;
}
extern "C" {
pub fn CFStringConvertEncodingToNSStringEncoding(
encoding: CFStringEncoding,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn CFStringConvertNSStringEncodingToEncoding(
encoding: ::std::os::raw::c_ulong,
) -> CFStringEncoding;
}
extern "C" {
pub fn CFStringConvertEncodingToWindowsCodepage(encoding: CFStringEncoding) -> UInt32;
}
extern "C" {
pub fn CFStringConvertWindowsCodepageToEncoding(codepage: UInt32) -> CFStringEncoding;
}
extern "C" {
pub fn CFStringConvertIANACharSetNameToEncoding(theString: CFStringRef) -> CFStringEncoding;
}
extern "C" {
pub fn CFStringConvertEncodingToIANACharSetName(encoding: CFStringEncoding) -> CFStringRef;
}
extern "C" {
pub fn CFStringGetMostCompatibleMacStringEncoding(
encoding: CFStringEncoding,
) -> CFStringEncoding;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFStringInlineBuffer {
pub buffer: [UniChar; 64usize],
pub theString: CFStringRef,
pub directUniCharBuffer: *const UniChar,
pub directCStringBuffer: *const ::std::os::raw::c_char,
pub rangeToBuffer: CFRange,
pub bufferedRangeStart: CFIndex,
pub bufferedRangeEnd: CFIndex,
}
impl Default for CFStringInlineBuffer {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn CFShow(obj: CFTypeRef);
}
extern "C" {
pub fn CFShowStr(str_: CFStringRef);
}
extern "C" {
pub fn __CFStringMakeConstantString(cStr: *const ::std::os::raw::c_char) -> CFStringRef;
}
extern "C" {
pub fn CFTimeZoneGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFTimeZoneCopySystem() -> CFTimeZoneRef;
}
extern "C" {
pub fn CFTimeZoneResetSystem();
}
extern "C" {
pub fn CFTimeZoneCopyDefault() -> CFTimeZoneRef;
}
extern "C" {
pub fn CFTimeZoneSetDefault(tz: CFTimeZoneRef);
}
extern "C" {
pub fn CFTimeZoneCopyKnownNames() -> CFArrayRef;
}
extern "C" {
pub fn CFTimeZoneCopyAbbreviationDictionary() -> CFDictionaryRef;
}
extern "C" {
pub fn CFTimeZoneSetAbbreviationDictionary(dict: CFDictionaryRef);
}
extern "C" {
pub fn CFTimeZoneCreate(
allocator: CFAllocatorRef,
name: CFStringRef,
data: CFDataRef,
) -> CFTimeZoneRef;
}
extern "C" {
pub fn CFTimeZoneCreateWithTimeIntervalFromGMT(
allocator: CFAllocatorRef,
ti: CFTimeInterval,
) -> CFTimeZoneRef;
}
extern "C" {
pub fn CFTimeZoneCreateWithName(
allocator: CFAllocatorRef,
name: CFStringRef,
tryAbbrev: Boolean,
) -> CFTimeZoneRef;
}
extern "C" {
pub fn CFTimeZoneGetName(tz: CFTimeZoneRef) -> CFStringRef;
}
extern "C" {
pub fn CFTimeZoneGetData(tz: CFTimeZoneRef) -> CFDataRef;
}
extern "C" {
pub fn CFTimeZoneGetSecondsFromGMT(tz: CFTimeZoneRef, at: CFAbsoluteTime) -> CFTimeInterval;
}
extern "C" {
pub fn CFTimeZoneCopyAbbreviation(tz: CFTimeZoneRef, at: CFAbsoluteTime) -> CFStringRef;
}
extern "C" {
pub fn CFTimeZoneIsDaylightSavingTime(tz: CFTimeZoneRef, at: CFAbsoluteTime) -> Boolean;
}
extern "C" {
pub fn CFTimeZoneGetDaylightSavingTimeOffset(
tz: CFTimeZoneRef,
at: CFAbsoluteTime,
) -> CFTimeInterval;
}
extern "C" {
pub fn CFTimeZoneGetNextDaylightSavingTimeTransition(
tz: CFTimeZoneRef,
at: CFAbsoluteTime,
) -> CFAbsoluteTime;
}
pub type CFTimeZoneNameStyle = CFIndex;
pub const kCFTimeZoneNameStyleStandard: _bindgen_ty_33 = 0;
pub const kCFTimeZoneNameStyleShortStandard: _bindgen_ty_33 = 1;
pub const kCFTimeZoneNameStyleDaylightSaving: _bindgen_ty_33 = 2;
pub const kCFTimeZoneNameStyleShortDaylightSaving: _bindgen_ty_33 = 3;
pub const kCFTimeZoneNameStyleGeneric: _bindgen_ty_33 = 4;
pub const kCFTimeZoneNameStyleShortGeneric: _bindgen_ty_33 = 5;
pub type _bindgen_ty_33 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFTimeZoneCopyLocalizedName(
tz: CFTimeZoneRef,
style: CFTimeZoneNameStyle,
locale: CFLocaleRef,
) -> CFStringRef;
}
extern "C" {
pub static kCFTimeZoneSystemTimeZoneDidChangeNotification: CFNotificationName;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFCalendar {
_unused: [u8; 0],
}
pub type CFCalendarRef = *mut __CFCalendar;
extern "C" {
pub fn CFCalendarGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFCalendarCopyCurrent() -> CFCalendarRef;
}
extern "C" {
pub fn CFCalendarCreateWithIdentifier(
allocator: CFAllocatorRef,
identifier: CFCalendarIdentifier,
) -> CFCalendarRef;
}
extern "C" {
pub fn CFCalendarGetIdentifier(calendar: CFCalendarRef) -> CFCalendarIdentifier;
}
extern "C" {
pub fn CFCalendarCopyLocale(calendar: CFCalendarRef) -> CFLocaleRef;
}
extern "C" {
pub fn CFCalendarSetLocale(calendar: CFCalendarRef, locale: CFLocaleRef);
}
extern "C" {
pub fn CFCalendarCopyTimeZone(calendar: CFCalendarRef) -> CFTimeZoneRef;
}
extern "C" {
pub fn CFCalendarSetTimeZone(calendar: CFCalendarRef, tz: CFTimeZoneRef);
}
extern "C" {
pub fn CFCalendarGetFirstWeekday(calendar: CFCalendarRef) -> CFIndex;
}
extern "C" {
pub fn CFCalendarSetFirstWeekday(calendar: CFCalendarRef, wkdy: CFIndex);
}
extern "C" {
pub fn CFCalendarGetMinimumDaysInFirstWeek(calendar: CFCalendarRef) -> CFIndex;
}
extern "C" {
pub fn CFCalendarSetMinimumDaysInFirstWeek(calendar: CFCalendarRef, mwd: CFIndex);
}
pub type CFCalendarUnit = CFOptionFlags;
pub const kCFCalendarUnitEra: _bindgen_ty_34 = 2;
pub const kCFCalendarUnitYear: _bindgen_ty_34 = 4;
pub const kCFCalendarUnitMonth: _bindgen_ty_34 = 8;
pub const kCFCalendarUnitDay: _bindgen_ty_34 = 16;
pub const kCFCalendarUnitHour: _bindgen_ty_34 = 32;
pub const kCFCalendarUnitMinute: _bindgen_ty_34 = 64;
pub const kCFCalendarUnitSecond: _bindgen_ty_34 = 128;
pub const kCFCalendarUnitWeek: _bindgen_ty_34 = 256;
pub const kCFCalendarUnitWeekday: _bindgen_ty_34 = 512;
pub const kCFCalendarUnitWeekdayOrdinal: _bindgen_ty_34 = 1024;
pub const kCFCalendarUnitQuarter: _bindgen_ty_34 = 2048;
pub const kCFCalendarUnitWeekOfMonth: _bindgen_ty_34 = 4096;
pub const kCFCalendarUnitWeekOfYear: _bindgen_ty_34 = 8192;
pub const kCFCalendarUnitYearForWeekOfYear: _bindgen_ty_34 = 16384;
pub type _bindgen_ty_34 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFCalendarGetMinimumRangeOfUnit(
calendar: CFCalendarRef,
unit: CFCalendarUnit,
) -> CFRange;
}
extern "C" {
pub fn CFCalendarGetMaximumRangeOfUnit(
calendar: CFCalendarRef,
unit: CFCalendarUnit,
) -> CFRange;
}
extern "C" {
pub fn CFCalendarGetRangeOfUnit(
calendar: CFCalendarRef,
smallerUnit: CFCalendarUnit,
biggerUnit: CFCalendarUnit,
at: CFAbsoluteTime,
) -> CFRange;
}
extern "C" {
pub fn CFCalendarGetOrdinalityOfUnit(
calendar: CFCalendarRef,
smallerUnit: CFCalendarUnit,
biggerUnit: CFCalendarUnit,
at: CFAbsoluteTime,
) -> CFIndex;
}
extern "C" {
pub fn CFCalendarGetTimeRangeOfUnit(
calendar: CFCalendarRef,
unit: CFCalendarUnit,
at: CFAbsoluteTime,
startp: *mut CFAbsoluteTime,
tip: *mut CFTimeInterval,
) -> Boolean;
}
extern "C" {
pub fn CFCalendarComposeAbsoluteTime(
calendar: CFCalendarRef,
at: *mut CFAbsoluteTime,
componentDesc: *const ::std::os::raw::c_char,
...
) -> Boolean;
}
extern "C" {
pub fn CFCalendarDecomposeAbsoluteTime(
calendar: CFCalendarRef,
at: CFAbsoluteTime,
componentDesc: *const ::std::os::raw::c_char,
...
) -> Boolean;
}
pub const kCFCalendarComponentsWrap: _bindgen_ty_35 = 1;
pub type _bindgen_ty_35 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFCalendarAddComponents(
calendar: CFCalendarRef,
at: *mut CFAbsoluteTime,
options: CFOptionFlags,
componentDesc: *const ::std::os::raw::c_char,
...
) -> Boolean;
}
extern "C" {
pub fn CFCalendarGetComponentDifference(
calendar: CFCalendarRef,
startingAT: CFAbsoluteTime,
resultAT: CFAbsoluteTime,
options: CFOptionFlags,
componentDesc: *const ::std::os::raw::c_char,
...
) -> Boolean;
}
pub type CGFloat = f64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGPoint {
pub x: CGFloat,
pub y: CGFloat,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGSize {
pub width: CGFloat,
pub height: CGFloat,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGVector {
pub dx: CGFloat,
pub dy: CGFloat,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGRect {
pub origin: CGPoint,
pub size: CGSize,
}
pub type CGRectEdge = u32;
pub const CGRectMinXEdge: _bindgen_ty_36 = 0;
pub const CGRectMinYEdge: _bindgen_ty_36 = 1;
pub const CGRectMaxXEdge: _bindgen_ty_36 = 2;
pub const CGRectMaxYEdge: _bindgen_ty_36 = 3;
pub type _bindgen_ty_36 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGAffineTransform {
pub a: CGFloat,
pub b: CGFloat,
pub c: CGFloat,
pub d: CGFloat,
pub tx: CGFloat,
pub ty: CGFloat,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CGAffineTransformComponents {
pub scale: CGSize,
pub horizontalShear: CGFloat,
pub rotation: CGFloat,
pub translation: CGVector,
}
pub type CFDateFormatterKey = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFDateFormatter {
_unused: [u8; 0],
}
pub type CFDateFormatterRef = *mut __CFDateFormatter;
extern "C" {
pub fn CFDateFormatterCreateDateFormatFromTemplate(
allocator: CFAllocatorRef,
tmplate: CFStringRef,
options: CFOptionFlags,
locale: CFLocaleRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFDateFormatterGetTypeID() -> CFTypeID;
}
pub type CFDateFormatterStyle = CFIndex;
pub const kCFDateFormatterNoStyle: _bindgen_ty_37 = 0;
pub const kCFDateFormatterShortStyle: _bindgen_ty_37 = 1;
pub const kCFDateFormatterMediumStyle: _bindgen_ty_37 = 2;
pub const kCFDateFormatterLongStyle: _bindgen_ty_37 = 3;
pub const kCFDateFormatterFullStyle: _bindgen_ty_37 = 4;
pub type _bindgen_ty_37 = ::std::os::raw::c_uint;
pub type CFISO8601DateFormatOptions = CFOptionFlags;
pub const kCFISO8601DateFormatWithYear: _bindgen_ty_38 = 1;
pub const kCFISO8601DateFormatWithMonth: _bindgen_ty_38 = 2;
pub const kCFISO8601DateFormatWithWeekOfYear: _bindgen_ty_38 = 4;
pub const kCFISO8601DateFormatWithDay: _bindgen_ty_38 = 16;
pub const kCFISO8601DateFormatWithTime: _bindgen_ty_38 = 32;
pub const kCFISO8601DateFormatWithTimeZone: _bindgen_ty_38 = 64;
pub const kCFISO8601DateFormatWithSpaceBetweenDateAndTime: _bindgen_ty_38 = 128;
pub const kCFISO8601DateFormatWithDashSeparatorInDate: _bindgen_ty_38 = 256;
pub const kCFISO8601DateFormatWithColonSeparatorInTime: _bindgen_ty_38 = 512;
pub const kCFISO8601DateFormatWithColonSeparatorInTimeZone: _bindgen_ty_38 = 1024;
pub const kCFISO8601DateFormatWithFractionalSeconds: _bindgen_ty_38 = 2048;
pub const kCFISO8601DateFormatWithFullDate: _bindgen_ty_38 = 275;
pub const kCFISO8601DateFormatWithFullTime: _bindgen_ty_38 = 1632;
pub const kCFISO8601DateFormatWithInternetDateTime: _bindgen_ty_38 = 1907;
pub type _bindgen_ty_38 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFDateFormatterCreateISO8601Formatter(
allocator: CFAllocatorRef,
formatOptions: CFISO8601DateFormatOptions,
) -> CFDateFormatterRef;
}
extern "C" {
pub fn CFDateFormatterCreate(
allocator: CFAllocatorRef,
locale: CFLocaleRef,
dateStyle: CFDateFormatterStyle,
timeStyle: CFDateFormatterStyle,
) -> CFDateFormatterRef;
}
extern "C" {
pub fn CFDateFormatterGetLocale(formatter: CFDateFormatterRef) -> CFLocaleRef;
}
extern "C" {
pub fn CFDateFormatterGetDateStyle(formatter: CFDateFormatterRef) -> CFDateFormatterStyle;
}
extern "C" {
pub fn CFDateFormatterGetTimeStyle(formatter: CFDateFormatterRef) -> CFDateFormatterStyle;
}
extern "C" {
pub fn CFDateFormatterGetFormat(formatter: CFDateFormatterRef) -> CFStringRef;
}
extern "C" {
pub fn CFDateFormatterSetFormat(formatter: CFDateFormatterRef, formatString: CFStringRef);
}
extern "C" {
pub fn CFDateFormatterCreateStringWithDate(
allocator: CFAllocatorRef,
formatter: CFDateFormatterRef,
date: CFDateRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFDateFormatterCreateStringWithAbsoluteTime(
allocator: CFAllocatorRef,
formatter: CFDateFormatterRef,
at: CFAbsoluteTime,
) -> CFStringRef;
}
extern "C" {
pub fn CFDateFormatterCreateDateFromString(
allocator: CFAllocatorRef,
formatter: CFDateFormatterRef,
string: CFStringRef,
rangep: *mut CFRange,
) -> CFDateRef;
}
extern "C" {
pub fn CFDateFormatterGetAbsoluteTimeFromString(
formatter: CFDateFormatterRef,
string: CFStringRef,
rangep: *mut CFRange,
atp: *mut CFAbsoluteTime,
) -> Boolean;
}
extern "C" {
pub fn CFDateFormatterSetProperty(
formatter: CFDateFormatterRef,
key: CFStringRef,
value: CFTypeRef,
);
}
extern "C" {
pub fn CFDateFormatterCopyProperty(
formatter: CFDateFormatterRef,
key: CFDateFormatterKey,
) -> CFTypeRef;
}
extern "C" {
pub static kCFDateFormatterIsLenient: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterTimeZone: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterCalendarName: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterDefaultFormat: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterTwoDigitStartDate: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterDefaultDate: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterCalendar: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterEraSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterAMSymbol: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterPMSymbol: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterLongEraSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterVeryShortMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterStandaloneMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortStandaloneMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterVeryShortStandaloneMonthSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterVeryShortWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterStandaloneWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortStandaloneWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterVeryShortStandaloneWeekdaySymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterQuarterSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortQuarterSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterStandaloneQuarterSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterShortStandaloneQuarterSymbols: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterGregorianStartDate: CFDateFormatterKey;
}
extern "C" {
pub static kCFDateFormatterDoesRelativeDateFormattingKey: CFDateFormatterKey;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFBoolean {
_unused: [u8; 0],
}
pub type CFBooleanRef = *const __CFBoolean;
extern "C" {
pub static kCFBooleanTrue: CFBooleanRef;
}
extern "C" {
pub static kCFBooleanFalse: CFBooleanRef;
}
extern "C" {
pub fn CFBooleanGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFBooleanGetValue(boolean: CFBooleanRef) -> Boolean;
}
pub type CFNumberType = CFIndex;
pub const kCFNumberSInt8Type: _bindgen_ty_39 = 1;
pub const kCFNumberSInt16Type: _bindgen_ty_39 = 2;
pub const kCFNumberSInt32Type: _bindgen_ty_39 = 3;
pub const kCFNumberSInt64Type: _bindgen_ty_39 = 4;
pub const kCFNumberFloat32Type: _bindgen_ty_39 = 5;
pub const kCFNumberFloat64Type: _bindgen_ty_39 = 6;
pub const kCFNumberCharType: _bindgen_ty_39 = 7;
pub const kCFNumberShortType: _bindgen_ty_39 = 8;
pub const kCFNumberIntType: _bindgen_ty_39 = 9;
pub const kCFNumberLongType: _bindgen_ty_39 = 10;
pub const kCFNumberLongLongType: _bindgen_ty_39 = 11;
pub const kCFNumberFloatType: _bindgen_ty_39 = 12;
pub const kCFNumberDoubleType: _bindgen_ty_39 = 13;
pub const kCFNumberCFIndexType: _bindgen_ty_39 = 14;
pub const kCFNumberNSIntegerType: _bindgen_ty_39 = 15;
pub const kCFNumberCGFloatType: _bindgen_ty_39 = 16;
pub const kCFNumberMaxType: _bindgen_ty_39 = 16;
pub type _bindgen_ty_39 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFNumber {
_unused: [u8; 0],
}
pub type CFNumberRef = *const __CFNumber;
extern "C" {
pub static kCFNumberPositiveInfinity: CFNumberRef;
}
extern "C" {
pub static kCFNumberNegativeInfinity: CFNumberRef;
}
extern "C" {
pub static kCFNumberNaN: CFNumberRef;
}
extern "C" {
pub fn CFNumberGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFNumberCreate(
allocator: CFAllocatorRef,
theType: CFNumberType,
valuePtr: *const ::std::os::raw::c_void,
) -> CFNumberRef;
}
extern "C" {
pub fn CFNumberGetType(number: CFNumberRef) -> CFNumberType;
}
extern "C" {
pub fn CFNumberGetByteSize(number: CFNumberRef) -> CFIndex;
}
extern "C" {
pub fn CFNumberIsFloatType(number: CFNumberRef) -> Boolean;
}
extern "C" {
pub fn CFNumberGetValue(
number: CFNumberRef,
theType: CFNumberType,
valuePtr: *mut ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFNumberCompare(
number: CFNumberRef,
otherNumber: CFNumberRef,
context: *mut ::std::os::raw::c_void,
) -> CFComparisonResult;
}
pub type CFNumberFormatterKey = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFNumberFormatter {
_unused: [u8; 0],
}
pub type CFNumberFormatterRef = *mut __CFNumberFormatter;
extern "C" {
pub fn CFNumberFormatterGetTypeID() -> CFTypeID;
}
pub type CFNumberFormatterStyle = CFIndex;
pub const kCFNumberFormatterNoStyle: _bindgen_ty_40 = 0;
pub const kCFNumberFormatterDecimalStyle: _bindgen_ty_40 = 1;
pub const kCFNumberFormatterCurrencyStyle: _bindgen_ty_40 = 2;
pub const kCFNumberFormatterPercentStyle: _bindgen_ty_40 = 3;
pub const kCFNumberFormatterScientificStyle: _bindgen_ty_40 = 4;
pub const kCFNumberFormatterSpellOutStyle: _bindgen_ty_40 = 5;
pub const kCFNumberFormatterOrdinalStyle: _bindgen_ty_40 = 6;
pub const kCFNumberFormatterCurrencyISOCodeStyle: _bindgen_ty_40 = 8;
pub const kCFNumberFormatterCurrencyPluralStyle: _bindgen_ty_40 = 9;
pub const kCFNumberFormatterCurrencyAccountingStyle: _bindgen_ty_40 = 10;
pub type _bindgen_ty_40 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFNumberFormatterCreate(
allocator: CFAllocatorRef,
locale: CFLocaleRef,
style: CFNumberFormatterStyle,
) -> CFNumberFormatterRef;
}
extern "C" {
pub fn CFNumberFormatterGetLocale(formatter: CFNumberFormatterRef) -> CFLocaleRef;
}
extern "C" {
pub fn CFNumberFormatterGetStyle(formatter: CFNumberFormatterRef) -> CFNumberFormatterStyle;
}
extern "C" {
pub fn CFNumberFormatterGetFormat(formatter: CFNumberFormatterRef) -> CFStringRef;
}
extern "C" {
pub fn CFNumberFormatterSetFormat(formatter: CFNumberFormatterRef, formatString: CFStringRef);
}
extern "C" {
pub fn CFNumberFormatterCreateStringWithNumber(
allocator: CFAllocatorRef,
formatter: CFNumberFormatterRef,
number: CFNumberRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFNumberFormatterCreateStringWithValue(
allocator: CFAllocatorRef,
formatter: CFNumberFormatterRef,
numberType: CFNumberType,
valuePtr: *const ::std::os::raw::c_void,
) -> CFStringRef;
}
pub type CFNumberFormatterOptionFlags = CFOptionFlags;
pub const kCFNumberFormatterParseIntegersOnly: _bindgen_ty_41 = 1;
pub type _bindgen_ty_41 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFNumberFormatterCreateNumberFromString(
allocator: CFAllocatorRef,
formatter: CFNumberFormatterRef,
string: CFStringRef,
rangep: *mut CFRange,
options: CFOptionFlags,
) -> CFNumberRef;
}
extern "C" {
pub fn CFNumberFormatterGetValueFromString(
formatter: CFNumberFormatterRef,
string: CFStringRef,
rangep: *mut CFRange,
numberType: CFNumberType,
valuePtr: *mut ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFNumberFormatterSetProperty(
formatter: CFNumberFormatterRef,
key: CFNumberFormatterKey,
value: CFTypeRef,
);
}
extern "C" {
pub fn CFNumberFormatterCopyProperty(
formatter: CFNumberFormatterRef,
key: CFNumberFormatterKey,
) -> CFTypeRef;
}
extern "C" {
pub static kCFNumberFormatterCurrencyCode: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterDecimalSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterCurrencyDecimalSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterAlwaysShowDecimalSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterGroupingSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterUseGroupingSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPercentSymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterZeroSymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterNaNSymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterInfinitySymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMinusSign: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPlusSign: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterCurrencySymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterExponentSymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMinIntegerDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMaxIntegerDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMinFractionDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMaxFractionDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterGroupingSize: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterSecondaryGroupingSize: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterRoundingMode: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterRoundingIncrement: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterFormatWidth: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPaddingPosition: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPaddingCharacter: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterDefaultFormat: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMultiplier: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPositivePrefix: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPositiveSuffix: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterNegativePrefix: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterNegativeSuffix: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterPerMillSymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterInternationalCurrencySymbol: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterCurrencyGroupingSeparator: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterIsLenient: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterUseSignificantDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMinSignificantDigits: CFNumberFormatterKey;
}
extern "C" {
pub static kCFNumberFormatterMaxSignificantDigits: CFNumberFormatterKey;
}
pub type CFNumberFormatterRoundingMode = CFIndex;
pub const kCFNumberFormatterRoundCeiling: _bindgen_ty_42 = 0;
pub const kCFNumberFormatterRoundFloor: _bindgen_ty_42 = 1;
pub const kCFNumberFormatterRoundDown: _bindgen_ty_42 = 2;
pub const kCFNumberFormatterRoundUp: _bindgen_ty_42 = 3;
pub const kCFNumberFormatterRoundHalfEven: _bindgen_ty_42 = 4;
pub const kCFNumberFormatterRoundHalfDown: _bindgen_ty_42 = 5;
pub const kCFNumberFormatterRoundHalfUp: _bindgen_ty_42 = 6;
pub type _bindgen_ty_42 = ::std::os::raw::c_uint;
pub type CFNumberFormatterPadPosition = CFIndex;
pub const kCFNumberFormatterPadBeforePrefix: _bindgen_ty_43 = 0;
pub const kCFNumberFormatterPadAfterPrefix: _bindgen_ty_43 = 1;
pub const kCFNumberFormatterPadBeforeSuffix: _bindgen_ty_43 = 2;
pub const kCFNumberFormatterPadAfterSuffix: _bindgen_ty_43 = 3;
pub type _bindgen_ty_43 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFNumberFormatterGetDecimalInfoForCurrencyCode(
currencyCode: CFStringRef,
defaultFractionDigits: *mut i32,
roundingIncrement: *mut f64,
) -> Boolean;
}
extern "C" {
pub static kCFPreferencesAnyApplication: CFStringRef;
}
extern "C" {
pub static kCFPreferencesCurrentApplication: CFStringRef;
}
extern "C" {
pub static kCFPreferencesAnyHost: CFStringRef;
}
extern "C" {
pub static kCFPreferencesCurrentHost: CFStringRef;
}
extern "C" {
pub static kCFPreferencesAnyUser: CFStringRef;
}
extern "C" {
pub static kCFPreferencesCurrentUser: CFStringRef;
}
extern "C" {
pub fn CFPreferencesCopyAppValue(
key: CFStringRef,
applicationID: CFStringRef,
) -> CFPropertyListRef;
}
extern "C" {
pub fn CFPreferencesGetAppBooleanValue(
key: CFStringRef,
applicationID: CFStringRef,
keyExistsAndHasValidFormat: *mut Boolean,
) -> Boolean;
}
extern "C" {
pub fn CFPreferencesGetAppIntegerValue(
key: CFStringRef,
applicationID: CFStringRef,
keyExistsAndHasValidFormat: *mut Boolean,
) -> CFIndex;
}
extern "C" {
pub fn CFPreferencesSetAppValue(
key: CFStringRef,
value: CFPropertyListRef,
applicationID: CFStringRef,
);
}
extern "C" {
pub fn CFPreferencesAddSuitePreferencesToApp(applicationID: CFStringRef, suiteID: CFStringRef);
}
extern "C" {
pub fn CFPreferencesRemoveSuitePreferencesFromApp(
applicationID: CFStringRef,
suiteID: CFStringRef,
);
}
extern "C" {
pub fn CFPreferencesAppSynchronize(applicationID: CFStringRef) -> Boolean;
}
extern "C" {
pub fn CFPreferencesCopyValue(
key: CFStringRef,
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
) -> CFPropertyListRef;
}
extern "C" {
pub fn CFPreferencesCopyMultiple(
keysToFetch: CFArrayRef,
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFPreferencesSetValue(
key: CFStringRef,
value: CFPropertyListRef,
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
);
}
extern "C" {
pub fn CFPreferencesSetMultiple(
keysToSet: CFDictionaryRef,
keysToRemove: CFArrayRef,
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
);
}
extern "C" {
pub fn CFPreferencesSynchronize(
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
) -> Boolean;
}
extern "C" {
pub fn CFPreferencesCopyApplicationList(
userName: CFStringRef,
hostName: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFPreferencesCopyKeyList(
applicationID: CFStringRef,
userName: CFStringRef,
hostName: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFPreferencesAppValueIsForced(key: CFStringRef, applicationID: CFStringRef) -> Boolean;
}
pub type CFURLPathStyle = CFIndex;
pub const kCFURLPOSIXPathStyle: _bindgen_ty_44 = 0;
pub const kCFURLHFSPathStyle: _bindgen_ty_44 = 1;
pub const kCFURLWindowsPathStyle: _bindgen_ty_44 = 2;
pub type _bindgen_ty_44 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFURL {
_unused: [u8; 0],
}
pub type CFURLRef = *const __CFURL;
extern "C" {
pub fn CFURLGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFURLCreateWithBytes(
allocator: CFAllocatorRef,
URLBytes: *const UInt8,
length: CFIndex,
encoding: CFStringEncoding,
baseURL: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateData(
allocator: CFAllocatorRef,
url: CFURLRef,
encoding: CFStringEncoding,
escapeWhitespace: Boolean,
) -> CFDataRef;
}
extern "C" {
pub fn CFURLCreateWithString(
allocator: CFAllocatorRef,
URLString: CFStringRef,
baseURL: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateAbsoluteURLWithBytes(
alloc: CFAllocatorRef,
relativeURLBytes: *const UInt8,
length: CFIndex,
encoding: CFStringEncoding,
baseURL: CFURLRef,
useCompatibilityMode: Boolean,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateWithFileSystemPath(
allocator: CFAllocatorRef,
filePath: CFStringRef,
pathStyle: CFURLPathStyle,
isDirectory: Boolean,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateFromFileSystemRepresentation(
allocator: CFAllocatorRef,
buffer: *const UInt8,
bufLen: CFIndex,
isDirectory: Boolean,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateWithFileSystemPathRelativeToBase(
allocator: CFAllocatorRef,
filePath: CFStringRef,
pathStyle: CFURLPathStyle,
isDirectory: Boolean,
baseURL: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateFromFileSystemRepresentationRelativeToBase(
allocator: CFAllocatorRef,
buffer: *const UInt8,
bufLen: CFIndex,
isDirectory: Boolean,
baseURL: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLGetFileSystemRepresentation(
url: CFURLRef,
resolveAgainstBase: Boolean,
buffer: *mut UInt8,
maxBufLen: CFIndex,
) -> Boolean;
}
extern "C" {
pub fn CFURLCopyAbsoluteURL(relativeURL: CFURLRef) -> CFURLRef;
}
extern "C" {
pub fn CFURLGetString(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLGetBaseURL(anURL: CFURLRef) -> CFURLRef;
}
extern "C" {
pub fn CFURLCanBeDecomposed(anURL: CFURLRef) -> Boolean;
}
extern "C" {
pub fn CFURLCopyScheme(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyNetLocation(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyPath(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyStrictPath(anURL: CFURLRef, isAbsolute: *mut Boolean) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyFileSystemPath(anURL: CFURLRef, pathStyle: CFURLPathStyle) -> CFStringRef;
}
extern "C" {
pub fn CFURLHasDirectoryPath(anURL: CFURLRef) -> Boolean;
}
extern "C" {
pub fn CFURLCopyResourceSpecifier(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyHostName(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLGetPortNumber(anURL: CFURLRef) -> SInt32;
}
extern "C" {
pub fn CFURLCopyUserName(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyPassword(anURL: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyParameterString(
anURL: CFURLRef,
charactersToLeaveEscaped: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyQueryString(
anURL: CFURLRef,
charactersToLeaveEscaped: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyFragment(anURL: CFURLRef, charactersToLeaveEscaped: CFStringRef)
-> CFStringRef;
}
extern "C" {
pub fn CFURLCopyLastPathComponent(url: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCopyPathExtension(url: CFURLRef) -> CFStringRef;
}
extern "C" {
pub fn CFURLCreateCopyAppendingPathComponent(
allocator: CFAllocatorRef,
url: CFURLRef,
pathComponent: CFStringRef,
isDirectory: Boolean,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateCopyDeletingLastPathComponent(
allocator: CFAllocatorRef,
url: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateCopyAppendingPathExtension(
allocator: CFAllocatorRef,
url: CFURLRef,
extension: CFStringRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateCopyDeletingPathExtension(
allocator: CFAllocatorRef,
url: CFURLRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLGetBytes(url: CFURLRef, buffer: *mut UInt8, bufferLength: CFIndex) -> CFIndex;
}
pub type CFURLComponentType = CFIndex;
pub const kCFURLComponentScheme: _bindgen_ty_45 = 1;
pub const kCFURLComponentNetLocation: _bindgen_ty_45 = 2;
pub const kCFURLComponentPath: _bindgen_ty_45 = 3;
pub const kCFURLComponentResourceSpecifier: _bindgen_ty_45 = 4;
pub const kCFURLComponentUser: _bindgen_ty_45 = 5;
pub const kCFURLComponentPassword: _bindgen_ty_45 = 6;
pub const kCFURLComponentUserInfo: _bindgen_ty_45 = 7;
pub const kCFURLComponentHost: _bindgen_ty_45 = 8;
pub const kCFURLComponentPort: _bindgen_ty_45 = 9;
pub const kCFURLComponentParameterString: _bindgen_ty_45 = 10;
pub const kCFURLComponentQuery: _bindgen_ty_45 = 11;
pub const kCFURLComponentFragment: _bindgen_ty_45 = 12;
pub type _bindgen_ty_45 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFURLGetByteRangeForComponent(
url: CFURLRef,
component: CFURLComponentType,
rangeIncludingSeparators: *mut CFRange,
) -> CFRange;
}
extern "C" {
pub fn CFURLCreateStringByReplacingPercentEscapes(
allocator: CFAllocatorRef,
originalString: CFStringRef,
charactersToLeaveEscaped: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFURLCreateStringByReplacingPercentEscapesUsingEncoding(
allocator: CFAllocatorRef,
origString: CFStringRef,
charsToLeaveEscaped: CFStringRef,
encoding: CFStringEncoding,
) -> CFStringRef;
}
extern "C" {
pub fn CFURLCreateStringByAddingPercentEscapes(
allocator: CFAllocatorRef,
originalString: CFStringRef,
charactersToLeaveUnescaped: CFStringRef,
legalURLCharactersToBeEscaped: CFStringRef,
encoding: CFStringEncoding,
) -> CFStringRef;
}
extern "C" {
pub fn CFURLIsFileReferenceURL(url: CFURLRef) -> Boolean;
}
extern "C" {
pub fn CFURLCreateFileReferenceURL(
allocator: CFAllocatorRef,
url: CFURLRef,
error: *mut CFErrorRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateFilePathURL(
allocator: CFAllocatorRef,
url: CFURLRef,
error: *mut CFErrorRef,
) -> CFURLRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FSRef {
_unused: [u8; 0],
}
extern "C" {
pub fn CFURLCreateFromFSRef(allocator: CFAllocatorRef, fsRef: *const FSRef) -> CFURLRef;
}
extern "C" {
pub fn CFURLGetFSRef(url: CFURLRef, fsRef: *mut FSRef) -> Boolean;
}
extern "C" {
pub fn CFURLCopyResourcePropertyForKey(
url: CFURLRef,
key: CFStringRef,
propertyValueTypeRefPtr: *mut ::std::os::raw::c_void,
error: *mut CFErrorRef,
) -> Boolean;
}
extern "C" {
pub fn CFURLCopyResourcePropertiesForKeys(
url: CFURLRef,
keys: CFArrayRef,
error: *mut CFErrorRef,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFURLSetResourcePropertyForKey(
url: CFURLRef,
key: CFStringRef,
propertyValue: CFTypeRef,
error: *mut CFErrorRef,
) -> Boolean;
}
extern "C" {
pub fn CFURLSetResourcePropertiesForKeys(
url: CFURLRef,
keyedPropertyValues: CFDictionaryRef,
error: *mut CFErrorRef,
) -> Boolean;
}
extern "C" {
pub static kCFURLKeysOfUnsetValuesKey: CFStringRef;
}
extern "C" {
pub fn CFURLClearResourcePropertyCacheForKey(url: CFURLRef, key: CFStringRef);
}
extern "C" {
pub fn CFURLClearResourcePropertyCache(url: CFURLRef);
}
extern "C" {
pub fn CFURLSetTemporaryResourcePropertyForKey(
url: CFURLRef,
key: CFStringRef,
propertyValue: CFTypeRef,
);
}
extern "C" {
pub fn CFURLResourceIsReachable(url: CFURLRef, error: *mut CFErrorRef) -> Boolean;
}
extern "C" {
pub static kCFURLNameKey: CFStringRef;
}
extern "C" {
pub static kCFURLLocalizedNameKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsRegularFileKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsDirectoryKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsSymbolicLinkKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsVolumeKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsPackageKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsApplicationKey: CFStringRef;
}
extern "C" {
pub static kCFURLApplicationIsScriptableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsSystemImmutableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsUserImmutableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsHiddenKey: CFStringRef;
}
extern "C" {
pub static kCFURLHasHiddenExtensionKey: CFStringRef;
}
extern "C" {
pub static kCFURLCreationDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLContentAccessDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLContentModificationDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLAttributeModificationDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileContentIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLMayShareFileContentKey: CFStringRef;
}
extern "C" {
pub static kCFURLMayHaveExtendedAttributesKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsPurgeableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsSparseKey: CFStringRef;
}
extern "C" {
pub static kCFURLLinkCountKey: CFStringRef;
}
extern "C" {
pub static kCFURLParentDirectoryURLKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeURLKey: CFStringRef;
}
extern "C" {
pub static kCFURLTypeIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLLocalizedTypeDescriptionKey: CFStringRef;
}
extern "C" {
pub static kCFURLLabelNumberKey: CFStringRef;
}
extern "C" {
pub static kCFURLLabelColorKey: CFStringRef;
}
extern "C" {
pub static kCFURLLocalizedLabelKey: CFStringRef;
}
extern "C" {
pub static kCFURLEffectiveIconKey: CFStringRef;
}
extern "C" {
pub static kCFURLCustomIconKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLPreferredIOBlockSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsReadableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsWritableKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsExecutableKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileSecurityKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsExcludedFromBackupKey: CFStringRef;
}
extern "C" {
pub static kCFURLTagNamesKey: CFStringRef;
}
extern "C" {
pub static kCFURLPathKey: CFStringRef;
}
extern "C" {
pub static kCFURLCanonicalPathKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsMountTriggerKey: CFStringRef;
}
extern "C" {
pub static kCFURLGenerationIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLDocumentIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFURLAddedToDirectoryDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLQuarantinePropertiesKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeNamedPipe: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeCharacterSpecial: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeDirectory: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeBlockSpecial: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeRegular: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeSymbolicLink: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeSocket: CFStringRef;
}
extern "C" {
pub static kCFURLFileResourceTypeUnknown: CFStringRef;
}
extern "C" {
pub static kCFURLFileSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileAllocatedSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLTotalFileSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLTotalFileAllocatedSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsAliasFileKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionKey: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionNone: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionComplete: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionCompleteUnlessOpen: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionCompleteUntilFirstUserAuthentication: CFStringRef;
}
extern "C" {
pub static kCFURLFileProtectionCompleteWhenUserInactive: CFStringRef;
}
extern "C" {
pub static kCFURLDirectoryEntryCountKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeLocalizedFormatDescriptionKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeTotalCapacityKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeAvailableCapacityKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeAvailableCapacityForImportantUsageKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeAvailableCapacityForOpportunisticUsageKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeResourceCountKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsPersistentIDsKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsSymbolicLinksKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsHardLinksKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsJournalingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsJournalingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsSparseFilesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsZeroRunsKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsCaseSensitiveNamesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsCasePreservedNamesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsRootDirectoryDatesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsVolumeSizesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsRenamingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsAdvisoryFileLockingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsExtendedSecurityKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsBrowsableKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeMaximumFileSizeKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsEjectableKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsRemovableKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsInternalKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsAutomountedKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsLocalKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsReadOnlyKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeCreationDateKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeURLForRemountingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeUUIDStringKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeNameKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeLocalizedNameKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsEncryptedKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeIsRootFileSystemKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsCompressionKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsFileCloningKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsSwapRenamingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsExclusiveRenamingKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsImmutableFilesKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsAccessPermissionsKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSupportsFileProtectionKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeTypeNameKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeSubtypeKey: CFStringRef;
}
extern "C" {
pub static kCFURLVolumeMountFromLocationKey: CFStringRef;
}
extern "C" {
pub static kCFURLIsUbiquitousItemKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemHasUnresolvedConflictsKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemIsDownloadedKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemIsDownloadingKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemIsUploadedKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemIsUploadingKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemPercentDownloadedKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemPercentUploadedKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemDownloadingStatusKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemDownloadingErrorKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemUploadingErrorKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemIsExcludedFromSyncKey: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemDownloadingStatusNotDownloaded: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemDownloadingStatusDownloaded: CFStringRef;
}
extern "C" {
pub static kCFURLUbiquitousItemDownloadingStatusCurrent: CFStringRef;
}
pub type CFURLBookmarkCreationOptions = CFOptionFlags;
pub const kCFURLBookmarkCreationMinimalBookmarkMask: _bindgen_ty_46 = 512;
pub const kCFURLBookmarkCreationSuitableForBookmarkFile: _bindgen_ty_46 = 1024;
pub const kCFURLBookmarkCreationWithSecurityScope: _bindgen_ty_46 = 2048;
pub const kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess: _bindgen_ty_46 = 4096;
pub const kCFURLBookmarkCreationWithoutImplicitSecurityScope: _bindgen_ty_46 = 536870912;
pub const kCFURLBookmarkCreationPreferFileIDResolutionMask: _bindgen_ty_46 = 256;
pub type _bindgen_ty_46 = ::std::os::raw::c_uint;
pub type CFURLBookmarkResolutionOptions = CFOptionFlags;
pub const kCFURLBookmarkResolutionWithoutUIMask: _bindgen_ty_47 = 256;
pub const kCFURLBookmarkResolutionWithoutMountingMask: _bindgen_ty_47 = 512;
pub const kCFURLBookmarkResolutionWithSecurityScope: _bindgen_ty_47 = 1024;
pub const kCFURLBookmarkResolutionWithoutImplicitStartAccessing: _bindgen_ty_47 = 32768;
pub const kCFBookmarkResolutionWithoutUIMask: _bindgen_ty_47 = 256;
pub const kCFBookmarkResolutionWithoutMountingMask: _bindgen_ty_47 = 512;
pub type _bindgen_ty_47 = ::std::os::raw::c_uint;
pub type CFURLBookmarkFileCreationOptions = CFOptionFlags;
extern "C" {
pub fn CFURLCreateBookmarkData(
allocator: CFAllocatorRef,
url: CFURLRef,
options: CFURLBookmarkCreationOptions,
resourcePropertiesToInclude: CFArrayRef,
relativeToURL: CFURLRef,
error: *mut CFErrorRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFURLCreateByResolvingBookmarkData(
allocator: CFAllocatorRef,
bookmark: CFDataRef,
options: CFURLBookmarkResolutionOptions,
relativeToURL: CFURLRef,
resourcePropertiesToInclude: CFArrayRef,
isStale: *mut Boolean,
error: *mut CFErrorRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFURLCreateResourcePropertiesForKeysFromBookmarkData(
allocator: CFAllocatorRef,
resourcePropertiesToReturn: CFArrayRef,
bookmark: CFDataRef,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFURLCreateResourcePropertyForKeyFromBookmarkData(
allocator: CFAllocatorRef,
resourcePropertyKey: CFStringRef,
bookmark: CFDataRef,
) -> CFTypeRef;
}
extern "C" {
pub fn CFURLCreateBookmarkDataFromFile(
allocator: CFAllocatorRef,
fileURL: CFURLRef,
errorRef: *mut CFErrorRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFURLWriteBookmarkDataToFile(
bookmarkRef: CFDataRef,
fileURL: CFURLRef,
options: CFURLBookmarkFileCreationOptions,
errorRef: *mut CFErrorRef,
) -> Boolean;
}
extern "C" {
pub fn CFURLCreateBookmarkDataFromAliasRecord(
allocatorRef: CFAllocatorRef,
aliasRecordDataRef: CFDataRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFURLStartAccessingSecurityScopedResource(url: CFURLRef) -> Boolean;
}
extern "C" {
pub fn CFURLStopAccessingSecurityScopedResource(url: CFURLRef);
}
pub type boolean_t = ::std::os::raw::c_uint;
pub type natural_t = __darwin_natural_t;
pub type integer_t = ::std::os::raw::c_int;
pub type vm_offset_t = usize;
pub type vm_size_t = usize;
pub type mach_vm_address_t = u64;
pub type mach_vm_offset_t = u64;
pub type mach_vm_size_t = u64;
pub type vm_map_offset_t = u64;
pub type vm_map_address_t = u64;
pub type vm_map_size_t = u64;
pub type mach_port_context_t = mach_vm_address_t;
pub type mach_port_name_t = natural_t;
pub type mach_port_name_array_t = *mut mach_port_name_t;
pub type mach_port_t = __darwin_mach_port_t;
pub type mach_port_array_t = *mut mach_port_t;
pub type mach_port_right_t = natural_t;
pub type mach_port_type_t = natural_t;
pub type mach_port_type_array_t = *mut mach_port_type_t;
pub type mach_port_urefs_t = natural_t;
pub type mach_port_delta_t = integer_t;
pub type mach_port_seqno_t = natural_t;
pub type mach_port_mscount_t = natural_t;
pub type mach_port_msgcount_t = natural_t;
pub type mach_port_rights_t = natural_t;
pub type mach_port_srights_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_port_status {
pub mps_pset: mach_port_rights_t,
pub mps_seqno: mach_port_seqno_t,
pub mps_mscount: mach_port_mscount_t,
pub mps_qlimit: mach_port_msgcount_t,
pub mps_msgcount: mach_port_msgcount_t,
pub mps_sorights: mach_port_rights_t,
pub mps_srights: boolean_t,
pub mps_pdrequest: boolean_t,
pub mps_nsrequest: boolean_t,
pub mps_flags: natural_t,
}
pub type mach_port_status_t = mach_port_status;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_port_limits {
pub mpl_qlimit: mach_port_msgcount_t,
}
pub type mach_port_limits_t = mach_port_limits;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_port_info_ext {
pub mpie_status: mach_port_status_t,
pub mpie_boost_cnt: mach_port_msgcount_t,
pub reserved: [u32; 6usize],
}
pub type mach_port_info_ext_t = mach_port_info_ext;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_port_guard_info {
pub mpgi_guard: u64,
}
pub type mach_port_guard_info_t = mach_port_guard_info;
pub type mach_port_info_t = *mut integer_t;
pub type mach_port_flavor_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_port_qos {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub len: natural_t,
}
impl mach_port_qos {
#[inline]
pub fn name(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_name(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn prealloc(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set_prealloc(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn pad1(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
}
#[inline]
pub fn set_pad1(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 30u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
name: ::std::os::raw::c_uint,
prealloc: ::std::os::raw::c_uint,
pad1: boolean_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let name: u32 = unsafe { ::std::mem::transmute(name) };
name as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let prealloc: u32 = unsafe { ::std::mem::transmute(prealloc) };
prealloc as u64
});
__bindgen_bitfield_unit.set(2usize, 30u8, {
let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
pad1 as u64
});
__bindgen_bitfield_unit
}
}
pub type mach_port_qos_t = mach_port_qos;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mach_service_port_info {
pub mspi_string_name: [::std::os::raw::c_char; 255usize],
pub mspi_domain_type: u8,
}
impl Default for mach_service_port_info {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type mach_service_port_info_data_t = mach_service_port_info;
pub type mach_service_port_info_t = *mut mach_service_port_info;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct mach_port_options {
pub flags: u32,
pub mpl: mach_port_limits_t,
pub __bindgen_anon_1: mach_port_options__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union mach_port_options__bindgen_ty_1 {
pub reserved: [u64; 2usize],
pub work_interval_port: mach_port_name_t,
pub service_port_info: mach_service_port_info_t,
pub service_port_name: mach_port_name_t,
}
impl Default for mach_port_options__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
impl Default for mach_port_options {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type mach_port_options_t = mach_port_options;
pub type mach_port_options_ptr_t = *mut mach_port_options_t;
pub const mach_port_guard_exception_codes_kGUARD_EXC_DESTROY: mach_port_guard_exception_codes = 1;
pub const mach_port_guard_exception_codes_kGUARD_EXC_MOD_REFS: mach_port_guard_exception_codes = 2;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_OPTIONS:
mach_port_guard_exception_codes = 3;
pub const mach_port_guard_exception_codes_kGUARD_EXC_SET_CONTEXT: mach_port_guard_exception_codes =
4;
pub const mach_port_guard_exception_codes_kGUARD_EXC_THREAD_SET_STATE:
mach_port_guard_exception_codes = 5;
pub const mach_port_guard_exception_codes_kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE:
mach_port_guard_exception_codes = 6;
pub const mach_port_guard_exception_codes_kGUARD_EXC_UNGUARDED: mach_port_guard_exception_codes = 8;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INCORRECT_GUARD:
mach_port_guard_exception_codes = 16;
pub const mach_port_guard_exception_codes_kGUARD_EXC_IMMOVABLE: mach_port_guard_exception_codes =
32;
pub const mach_port_guard_exception_codes_kGUARD_EXC_STRICT_REPLY: mach_port_guard_exception_codes =
64;
pub const mach_port_guard_exception_codes_kGUARD_EXC_MSG_FILTERED: mach_port_guard_exception_codes =
128;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_RIGHT:
mach_port_guard_exception_codes = 256;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_NAME: mach_port_guard_exception_codes =
512;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_VALUE:
mach_port_guard_exception_codes = 1024;
pub const mach_port_guard_exception_codes_kGUARD_EXC_INVALID_ARGUMENT:
mach_port_guard_exception_codes = 2048;
pub const mach_port_guard_exception_codes_kGUARD_EXC_RIGHT_EXISTS: mach_port_guard_exception_codes =
4096;
pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_NO_SPACE:
mach_port_guard_exception_codes = 8192;
pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_FAILURE: mach_port_guard_exception_codes =
16384;
pub const mach_port_guard_exception_codes_kGUARD_EXC_KERN_RESOURCE:
mach_port_guard_exception_codes = 32768;
pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_REPLY:
mach_port_guard_exception_codes = 65536;
pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_VOUCHER:
mach_port_guard_exception_codes = 131072;
pub const mach_port_guard_exception_codes_kGUARD_EXC_SEND_INVALID_RIGHT:
mach_port_guard_exception_codes = 262144;
pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_INVALID_NAME:
mach_port_guard_exception_codes = 524288;
pub const mach_port_guard_exception_codes_kGUARD_EXC_RCV_GUARDED_DESC:
mach_port_guard_exception_codes = 1048576;
pub const mach_port_guard_exception_codes_kGUARD_EXC_MOD_REFS_NON_FATAL:
mach_port_guard_exception_codes = 2097152;
pub const mach_port_guard_exception_codes_kGUARD_EXC_IMMOVABLE_NON_FATAL:
mach_port_guard_exception_codes = 4194304;
pub const mach_port_guard_exception_codes_kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS:
mach_port_guard_exception_codes = 8388608;
pub type mach_port_guard_exception_codes = ::std::os::raw::c_uint;
pub type CFRunLoopMode = CFStringRef;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFRunLoop {
_unused: [u8; 0],
}
pub type CFRunLoopRef = *mut __CFRunLoop;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFRunLoopSource {
_unused: [u8; 0],
}
pub type CFRunLoopSourceRef = *mut __CFRunLoopSource;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFRunLoopObserver {
_unused: [u8; 0],
}
pub type CFRunLoopObserverRef = *mut __CFRunLoopObserver;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFRunLoopTimer {
_unused: [u8; 0],
}
pub type CFRunLoopTimerRef = *mut __CFRunLoopTimer;
pub type CFRunLoopRunResult = SInt32;
pub const kCFRunLoopRunFinished: _bindgen_ty_48 = 1;
pub const kCFRunLoopRunStopped: _bindgen_ty_48 = 2;
pub const kCFRunLoopRunTimedOut: _bindgen_ty_48 = 3;
pub const kCFRunLoopRunHandledSource: _bindgen_ty_48 = 4;
pub type _bindgen_ty_48 = ::std::os::raw::c_uint;
pub type CFRunLoopActivity = CFOptionFlags;
pub const kCFRunLoopEntry: _bindgen_ty_49 = 1;
pub const kCFRunLoopBeforeTimers: _bindgen_ty_49 = 2;
pub const kCFRunLoopBeforeSources: _bindgen_ty_49 = 4;
pub const kCFRunLoopBeforeWaiting: _bindgen_ty_49 = 32;
pub const kCFRunLoopAfterWaiting: _bindgen_ty_49 = 64;
pub const kCFRunLoopExit: _bindgen_ty_49 = 128;
pub const kCFRunLoopAllActivities: _bindgen_ty_49 = 268435455;
pub type _bindgen_ty_49 = ::std::os::raw::c_uint;
extern "C" {
pub static kCFRunLoopDefaultMode: CFRunLoopMode;
}
extern "C" {
pub static kCFRunLoopCommonModes: CFRunLoopMode;
}
extern "C" {
pub fn CFRunLoopGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFRunLoopGetCurrent() -> CFRunLoopRef;
}
extern "C" {
pub fn CFRunLoopGetMain() -> CFRunLoopRef;
}
extern "C" {
pub fn CFRunLoopCopyCurrentMode(rl: CFRunLoopRef) -> CFRunLoopMode;
}
extern "C" {
pub fn CFRunLoopCopyAllModes(rl: CFRunLoopRef) -> CFArrayRef;
}
extern "C" {
pub fn CFRunLoopAddCommonMode(rl: CFRunLoopRef, mode: CFRunLoopMode);
}
extern "C" {
pub fn CFRunLoopGetNextTimerFireDate(rl: CFRunLoopRef, mode: CFRunLoopMode) -> CFAbsoluteTime;
}
extern "C" {
pub fn CFRunLoopRun();
}
extern "C" {
pub fn CFRunLoopRunInMode(
mode: CFRunLoopMode,
seconds: CFTimeInterval,
returnAfterSourceHandled: Boolean,
) -> CFRunLoopRunResult;
}
extern "C" {
pub fn CFRunLoopIsWaiting(rl: CFRunLoopRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopWakeUp(rl: CFRunLoopRef);
}
extern "C" {
pub fn CFRunLoopStop(rl: CFRunLoopRef);
}
extern "C" {
pub fn CFRunLoopPerformBlock(
rl: CFRunLoopRef,
mode: CFTypeRef,
block: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFRunLoopContainsSource(
rl: CFRunLoopRef,
source: CFRunLoopSourceRef,
mode: CFRunLoopMode,
) -> Boolean;
}
extern "C" {
pub fn CFRunLoopAddSource(rl: CFRunLoopRef, source: CFRunLoopSourceRef, mode: CFRunLoopMode);
}
extern "C" {
pub fn CFRunLoopRemoveSource(rl: CFRunLoopRef, source: CFRunLoopSourceRef, mode: CFRunLoopMode);
}
extern "C" {
pub fn CFRunLoopContainsObserver(
rl: CFRunLoopRef,
observer: CFRunLoopObserverRef,
mode: CFRunLoopMode,
) -> Boolean;
}
extern "C" {
pub fn CFRunLoopAddObserver(
rl: CFRunLoopRef,
observer: CFRunLoopObserverRef,
mode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFRunLoopRemoveObserver(
rl: CFRunLoopRef,
observer: CFRunLoopObserverRef,
mode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFRunLoopContainsTimer(
rl: CFRunLoopRef,
timer: CFRunLoopTimerRef,
mode: CFRunLoopMode,
) -> Boolean;
}
extern "C" {
pub fn CFRunLoopAddTimer(rl: CFRunLoopRef, timer: CFRunLoopTimerRef, mode: CFRunLoopMode);
}
extern "C" {
pub fn CFRunLoopRemoveTimer(rl: CFRunLoopRef, timer: CFRunLoopTimerRef, mode: CFRunLoopMode);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFRunLoopSourceContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
pub equal: ::std::option::Option<
unsafe extern "C" fn(
info1: *const ::std::os::raw::c_void,
info2: *const ::std::os::raw::c_void,
) -> Boolean,
>,
pub hash: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFHashCode,
>,
pub schedule: ::std::option::Option<
unsafe extern "C" fn(
info: *mut ::std::os::raw::c_void,
rl: CFRunLoopRef,
mode: CFRunLoopMode,
),
>,
pub cancel: ::std::option::Option<
unsafe extern "C" fn(
info: *mut ::std::os::raw::c_void,
rl: CFRunLoopRef,
mode: CFRunLoopMode,
),
>,
pub perform: ::std::option::Option<unsafe extern "C" fn(info: *mut ::std::os::raw::c_void)>,
}
impl Default for CFRunLoopSourceContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFRunLoopSourceContext1 {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
pub equal: ::std::option::Option<
unsafe extern "C" fn(
info1: *const ::std::os::raw::c_void,
info2: *const ::std::os::raw::c_void,
) -> Boolean,
>,
pub hash: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFHashCode,
>,
pub getPort: ::std::option::Option<
unsafe extern "C" fn(info: *mut ::std::os::raw::c_void) -> mach_port_t,
>,
pub perform: ::std::option::Option<
unsafe extern "C" fn(
msg: *mut ::std::os::raw::c_void,
size: CFIndex,
allocator: CFAllocatorRef,
info: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>,
}
impl Default for CFRunLoopSourceContext1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn CFRunLoopSourceGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFRunLoopSourceCreate(
allocator: CFAllocatorRef,
order: CFIndex,
context: *mut CFRunLoopSourceContext,
) -> CFRunLoopSourceRef;
}
extern "C" {
pub fn CFRunLoopSourceGetOrder(source: CFRunLoopSourceRef) -> CFIndex;
}
extern "C" {
pub fn CFRunLoopSourceInvalidate(source: CFRunLoopSourceRef);
}
extern "C" {
pub fn CFRunLoopSourceIsValid(source: CFRunLoopSourceRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopSourceGetContext(
source: CFRunLoopSourceRef,
context: *mut CFRunLoopSourceContext,
);
}
extern "C" {
pub fn CFRunLoopSourceSignal(source: CFRunLoopSourceRef);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFRunLoopObserverContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFRunLoopObserverContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFRunLoopObserverCallBack = ::std::option::Option<
unsafe extern "C" fn(
observer: CFRunLoopObserverRef,
activity: CFRunLoopActivity,
info: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn CFRunLoopObserverGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFRunLoopObserverCreate(
allocator: CFAllocatorRef,
activities: CFOptionFlags,
repeats: Boolean,
order: CFIndex,
callout: CFRunLoopObserverCallBack,
context: *mut CFRunLoopObserverContext,
) -> CFRunLoopObserverRef;
}
extern "C" {
pub fn CFRunLoopObserverCreateWithHandler(
allocator: CFAllocatorRef,
activities: CFOptionFlags,
repeats: Boolean,
order: CFIndex,
block: *mut ::std::os::raw::c_void,
) -> CFRunLoopObserverRef;
}
extern "C" {
pub fn CFRunLoopObserverGetActivities(observer: CFRunLoopObserverRef) -> CFOptionFlags;
}
extern "C" {
pub fn CFRunLoopObserverDoesRepeat(observer: CFRunLoopObserverRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopObserverGetOrder(observer: CFRunLoopObserverRef) -> CFIndex;
}
extern "C" {
pub fn CFRunLoopObserverInvalidate(observer: CFRunLoopObserverRef);
}
extern "C" {
pub fn CFRunLoopObserverIsValid(observer: CFRunLoopObserverRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopObserverGetContext(
observer: CFRunLoopObserverRef,
context: *mut CFRunLoopObserverContext,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFRunLoopTimerContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFRunLoopTimerContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFRunLoopTimerCallBack = ::std::option::Option<
unsafe extern "C" fn(timer: CFRunLoopTimerRef, info: *mut ::std::os::raw::c_void),
>;
extern "C" {
pub fn CFRunLoopTimerGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFRunLoopTimerCreate(
allocator: CFAllocatorRef,
fireDate: CFAbsoluteTime,
interval: CFTimeInterval,
flags: CFOptionFlags,
order: CFIndex,
callout: CFRunLoopTimerCallBack,
context: *mut CFRunLoopTimerContext,
) -> CFRunLoopTimerRef;
}
extern "C" {
pub fn CFRunLoopTimerCreateWithHandler(
allocator: CFAllocatorRef,
fireDate: CFAbsoluteTime,
interval: CFTimeInterval,
flags: CFOptionFlags,
order: CFIndex,
block: *mut ::std::os::raw::c_void,
) -> CFRunLoopTimerRef;
}
extern "C" {
pub fn CFRunLoopTimerGetNextFireDate(timer: CFRunLoopTimerRef) -> CFAbsoluteTime;
}
extern "C" {
pub fn CFRunLoopTimerSetNextFireDate(timer: CFRunLoopTimerRef, fireDate: CFAbsoluteTime);
}
extern "C" {
pub fn CFRunLoopTimerGetInterval(timer: CFRunLoopTimerRef) -> CFTimeInterval;
}
extern "C" {
pub fn CFRunLoopTimerDoesRepeat(timer: CFRunLoopTimerRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopTimerGetOrder(timer: CFRunLoopTimerRef) -> CFIndex;
}
extern "C" {
pub fn CFRunLoopTimerInvalidate(timer: CFRunLoopTimerRef);
}
extern "C" {
pub fn CFRunLoopTimerIsValid(timer: CFRunLoopTimerRef) -> Boolean;
}
extern "C" {
pub fn CFRunLoopTimerGetContext(timer: CFRunLoopTimerRef, context: *mut CFRunLoopTimerContext);
}
extern "C" {
pub fn CFRunLoopTimerGetTolerance(timer: CFRunLoopTimerRef) -> CFTimeInterval;
}
extern "C" {
pub fn CFRunLoopTimerSetTolerance(timer: CFRunLoopTimerRef, tolerance: CFTimeInterval);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFSocket {
_unused: [u8; 0],
}
pub type CFSocketRef = *mut __CFSocket;
pub type CFSocketError = CFIndex;
pub const kCFSocketSuccess: _bindgen_ty_50 = 0;
pub const kCFSocketError: _bindgen_ty_50 = -1;
pub const kCFSocketTimeout: _bindgen_ty_50 = -2;
pub type _bindgen_ty_50 = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFSocketSignature {
pub protocolFamily: SInt32,
pub socketType: SInt32,
pub protocol: SInt32,
pub address: CFDataRef,
}
impl Default for CFSocketSignature {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFSocketCallBackType = CFOptionFlags;
pub const kCFSocketNoCallBack: _bindgen_ty_51 = 0;
pub const kCFSocketReadCallBack: _bindgen_ty_51 = 1;
pub const kCFSocketAcceptCallBack: _bindgen_ty_51 = 2;
pub const kCFSocketDataCallBack: _bindgen_ty_51 = 3;
pub const kCFSocketConnectCallBack: _bindgen_ty_51 = 4;
pub const kCFSocketWriteCallBack: _bindgen_ty_51 = 8;
pub type _bindgen_ty_51 = ::std::os::raw::c_uint;
pub const kCFSocketAutomaticallyReenableReadCallBack: _bindgen_ty_52 = 1;
pub const kCFSocketAutomaticallyReenableAcceptCallBack: _bindgen_ty_52 = 2;
pub const kCFSocketAutomaticallyReenableDataCallBack: _bindgen_ty_52 = 3;
pub const kCFSocketAutomaticallyReenableWriteCallBack: _bindgen_ty_52 = 8;
pub const kCFSocketLeaveErrors: _bindgen_ty_52 = 64;
pub const kCFSocketCloseOnInvalidate: _bindgen_ty_52 = 128;
pub type _bindgen_ty_52 = ::std::os::raw::c_uint;
pub type CFSocketCallBack = ::std::option::Option<
unsafe extern "C" fn(
s: CFSocketRef,
type_: CFSocketCallBackType,
address: CFDataRef,
data: *const ::std::os::raw::c_void,
info: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFSocketContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFSocketContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFSocketNativeHandle = ::std::os::raw::c_int;
extern "C" {
pub fn CFSocketGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFSocketCreate(
allocator: CFAllocatorRef,
protocolFamily: SInt32,
socketType: SInt32,
protocol: SInt32,
callBackTypes: CFOptionFlags,
callout: CFSocketCallBack,
context: *const CFSocketContext,
) -> CFSocketRef;
}
extern "C" {
pub fn CFSocketCreateWithNative(
allocator: CFAllocatorRef,
sock: CFSocketNativeHandle,
callBackTypes: CFOptionFlags,
callout: CFSocketCallBack,
context: *const CFSocketContext,
) -> CFSocketRef;
}
extern "C" {
pub fn CFSocketCreateWithSocketSignature(
allocator: CFAllocatorRef,
signature: *const CFSocketSignature,
callBackTypes: CFOptionFlags,
callout: CFSocketCallBack,
context: *const CFSocketContext,
) -> CFSocketRef;
}
extern "C" {
pub fn CFSocketCreateConnectedToSocketSignature(
allocator: CFAllocatorRef,
signature: *const CFSocketSignature,
callBackTypes: CFOptionFlags,
callout: CFSocketCallBack,
context: *const CFSocketContext,
timeout: CFTimeInterval,
) -> CFSocketRef;
}
extern "C" {
pub fn CFSocketSetAddress(s: CFSocketRef, address: CFDataRef) -> CFSocketError;
}
extern "C" {
pub fn CFSocketConnectToAddress(
s: CFSocketRef,
address: CFDataRef,
timeout: CFTimeInterval,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketInvalidate(s: CFSocketRef);
}
extern "C" {
pub fn CFSocketIsValid(s: CFSocketRef) -> Boolean;
}
extern "C" {
pub fn CFSocketCopyAddress(s: CFSocketRef) -> CFDataRef;
}
extern "C" {
pub fn CFSocketCopyPeerAddress(s: CFSocketRef) -> CFDataRef;
}
extern "C" {
pub fn CFSocketGetContext(s: CFSocketRef, context: *mut CFSocketContext);
}
extern "C" {
pub fn CFSocketGetNative(s: CFSocketRef) -> CFSocketNativeHandle;
}
extern "C" {
pub fn CFSocketCreateRunLoopSource(
allocator: CFAllocatorRef,
s: CFSocketRef,
order: CFIndex,
) -> CFRunLoopSourceRef;
}
extern "C" {
pub fn CFSocketGetSocketFlags(s: CFSocketRef) -> CFOptionFlags;
}
extern "C" {
pub fn CFSocketSetSocketFlags(s: CFSocketRef, flags: CFOptionFlags);
}
extern "C" {
pub fn CFSocketDisableCallBacks(s: CFSocketRef, callBackTypes: CFOptionFlags);
}
extern "C" {
pub fn CFSocketEnableCallBacks(s: CFSocketRef, callBackTypes: CFOptionFlags);
}
extern "C" {
pub fn CFSocketSendData(
s: CFSocketRef,
address: CFDataRef,
data: CFDataRef,
timeout: CFTimeInterval,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketRegisterValue(
nameServerSignature: *const CFSocketSignature,
timeout: CFTimeInterval,
name: CFStringRef,
value: CFPropertyListRef,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketCopyRegisteredValue(
nameServerSignature: *const CFSocketSignature,
timeout: CFTimeInterval,
name: CFStringRef,
value: *mut CFPropertyListRef,
nameServerAddress: *mut CFDataRef,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketRegisterSocketSignature(
nameServerSignature: *const CFSocketSignature,
timeout: CFTimeInterval,
name: CFStringRef,
signature: *const CFSocketSignature,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketCopyRegisteredSocketSignature(
nameServerSignature: *const CFSocketSignature,
timeout: CFTimeInterval,
name: CFStringRef,
signature: *mut CFSocketSignature,
nameServerAddress: *mut CFDataRef,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketUnregister(
nameServerSignature: *const CFSocketSignature,
timeout: CFTimeInterval,
name: CFStringRef,
) -> CFSocketError;
}
extern "C" {
pub fn CFSocketSetDefaultNameRegistryPortNumber(port: UInt16);
}
extern "C" {
pub fn CFSocketGetDefaultNameRegistryPortNumber() -> UInt16;
}
extern "C" {
pub static kCFSocketCommandKey: CFStringRef;
}
extern "C" {
pub static kCFSocketNameKey: CFStringRef;
}
extern "C" {
pub static kCFSocketValueKey: CFStringRef;
}
extern "C" {
pub static kCFSocketResultKey: CFStringRef;
}
extern "C" {
pub static kCFSocketErrorKey: CFStringRef;
}
extern "C" {
pub static kCFSocketRegisterCommand: CFStringRef;
}
extern "C" {
pub static kCFSocketRetrieveCommand: CFStringRef;
}
pub type os_function_t =
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
pub type os_block_t = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct accessx_descriptor {
pub ad_name_offset: ::std::os::raw::c_uint,
pub ad_flags: ::std::os::raw::c_int,
pub ad_pad: [::std::os::raw::c_int; 2usize],
}
extern "C" {
pub fn getattrlistbulk(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: u64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getattrlistat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_void,
arg4: *mut ::std::os::raw::c_void,
arg5: usize,
arg6: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setattrlistat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_void,
arg4: *mut ::std::os::raw::c_void,
arg5: usize,
arg6: u32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn freadlink(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> isize;
}
extern "C" {
pub fn faccessat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fchownat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: uid_t,
arg4: gid_t,
arg5: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn linkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
arg5: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn readlinkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_char,
arg4: usize,
) -> isize;
}
extern "C" {
pub fn symlinkat(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unlinkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _exit(arg1: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn access(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn alarm(arg1: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn chdir(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn chown(
arg1: *const ::std::os::raw::c_char,
arg2: uid_t,
arg3: gid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn close(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dup(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dup2(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execl(
__path: *const ::std::os::raw::c_char,
__arg0: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execle(
__path: *const ::std::os::raw::c_char,
__arg0: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execlp(
__file: *const ::std::os::raw::c_char,
__arg0: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execv(
__path: *const ::std::os::raw::c_char,
__argv: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execve(
__file: *const ::std::os::raw::c_char,
__argv: *const *mut ::std::os::raw::c_char,
__envp: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn execvp(
__file: *const ::std::os::raw::c_char,
__argv: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fork() -> pid_t;
}
extern "C" {
pub fn fpathconf(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn getcwd(arg1: *mut ::std::os::raw::c_char, arg2: usize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getegid() -> gid_t;
}
extern "C" {
pub fn geteuid() -> uid_t;
}
extern "C" {
pub fn getgid() -> gid_t;
}
extern "C" {
pub fn getgroups(arg1: ::std::os::raw::c_int, arg2: *mut gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getlogin() -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getpgrp() -> pid_t;
}
extern "C" {
pub fn getpid() -> pid_t;
}
extern "C" {
pub fn getppid() -> pid_t;
}
extern "C" {
pub fn getuid() -> uid_t;
}
extern "C" {
pub fn isatty(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn link(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lseek(arg1: ::std::os::raw::c_int, arg2: off_t, arg3: ::std::os::raw::c_int) -> off_t;
}
extern "C" {
pub fn pathconf(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn pause() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pipe(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn read(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: usize,
) -> isize;
}
extern "C" {
pub fn rmdir(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setgid(arg1: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setpgid(arg1: pid_t, arg2: pid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setsid() -> pid_t;
}
extern "C" {
pub fn setuid(arg1: uid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sleep(arg1: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sysconf(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn tcgetpgrp(arg1: ::std::os::raw::c_int) -> pid_t;
}
extern "C" {
pub fn tcsetpgrp(arg1: ::std::os::raw::c_int, arg2: pid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ttyname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ttyname_r(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unlink(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn write(
__fd: ::std::os::raw::c_int,
__buf: *const ::std::os::raw::c_void,
__nbyte: usize,
) -> isize;
}
extern "C" {
pub fn confstr(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> usize;
}
extern "C" {
pub fn getopt(
arg1: ::std::os::raw::c_int,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut optarg: *mut ::std::os::raw::c_char;
}
extern "C" {
pub static mut optind: ::std::os::raw::c_int;
}
extern "C" {
pub static mut opterr: ::std::os::raw::c_int;
}
extern "C" {
pub static mut optopt: ::std::os::raw::c_int;
}
extern "C" {
pub fn brk(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn chroot(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn crypt(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn encrypt(arg1: *mut ::std::os::raw::c_char, arg2: ::std::os::raw::c_int);
}
extern "C" {
pub fn fchdir(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gethostid() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn getpgid(arg1: pid_t) -> pid_t;
}
extern "C" {
pub fn getsid(arg1: pid_t) -> pid_t;
}
extern "C" {
pub fn getdtablesize() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getpagesize() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getpass(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getwd(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn lchown(
arg1: *const ::std::os::raw::c_char,
arg2: uid_t,
arg3: gid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lockf(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: off_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pread(
__fd: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_void,
__nbyte: usize,
__offset: off_t,
) -> isize;
}
extern "C" {
pub fn pwrite(
__fd: ::std::os::raw::c_int,
__buf: *const ::std::os::raw::c_void,
__nbyte: usize,
__offset: off_t,
) -> isize;
}
extern "C" {
pub fn sbrk(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn setpgrp() -> pid_t;
}
extern "C" {
pub fn setregid(arg1: gid_t, arg2: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setreuid(arg1: uid_t, arg2: uid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sync();
}
extern "C" {
pub fn truncate(arg1: *const ::std::os::raw::c_char, arg2: off_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ualarm(arg1: useconds_t, arg2: useconds_t) -> useconds_t;
}
extern "C" {
pub fn usleep(arg1: useconds_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfork() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsync(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftruncate(arg1: ::std::os::raw::c_int, arg2: off_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getlogin_r(arg1: *mut ::std::os::raw::c_char, arg2: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fchown(arg1: ::std::os::raw::c_int, arg2: uid_t, arg3: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gethostname(arg1: *mut ::std::os::raw::c_char, arg2: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn readlink(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> isize;
}
extern "C" {
pub fn setegid(arg1: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn seteuid(arg1: uid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn symlink(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pselect(
arg1: ::std::os::raw::c_int,
arg2: *mut fd_set,
arg3: *mut fd_set,
arg4: *mut fd_set,
arg5: *const timespec,
arg6: *const sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn select(
arg1: ::std::os::raw::c_int,
arg2: *mut fd_set,
arg3: *mut fd_set,
arg4: *mut fd_set,
arg5: *mut timeval,
) -> ::std::os::raw::c_int;
}
pub type uuid_t = __darwin_uuid_t;
extern "C" {
pub fn accessx_np(
arg1: *const accessx_descriptor,
arg2: usize,
arg3: *mut ::std::os::raw::c_int,
arg4: uid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acct(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn add_profil(
arg1: *mut ::std::os::raw::c_char,
arg2: usize,
arg3: ::std::os::raw::c_ulong,
arg4: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn endusershell();
}
extern "C" {
pub fn execvP(
__file: *const ::std::os::raw::c_char,
__searchpath: *const ::std::os::raw::c_char,
__argv: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fflagstostr(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getdomainname(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getgrouplist(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gethostuuid(
arg1: *mut ::std::os::raw::c_uchar,
arg2: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getmode(arg1: *const ::std::os::raw::c_void, arg2: mode_t) -> mode_t;
}
extern "C" {
pub fn getpeereid(
arg1: ::std::os::raw::c_int,
arg2: *mut uid_t,
arg3: *mut gid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsgroups_np(
arg1: *mut ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getusershell() -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn getwgroups_np(
arg1: *mut ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initgroups(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn issetugid() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mknod(
arg1: *const ::std::os::raw::c_char,
arg2: mode_t,
arg3: dev_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkpath_np(path: *const ::std::os::raw::c_char, omode: mode_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkpathat_np(
dfd: ::std::os::raw::c_int,
path: *const ::std::os::raw::c_char,
omode: mode_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemps(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkostemp(
path: *mut ::std::os::raw::c_char,
oflags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkostemps(
path: *mut ::std::os::raw::c_char,
slen: ::std::os::raw::c_int,
oflags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemp_dprotected_np(
path: *mut ::std::os::raw::c_char,
dpclass: ::std::os::raw::c_int,
dpflags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtempat_np(
dfd: ::std::os::raw::c_int,
path: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstempsat_np(
dfd: ::std::os::raw::c_int,
path: *mut ::std::os::raw::c_char,
slen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkostempsat_np(
dfd: ::std::os::raw::c_int,
path: *mut ::std::os::raw::c_char,
slen: ::std::os::raw::c_int,
oflags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nfssvc(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn profil(
arg1: *mut ::std::os::raw::c_char,
arg2: usize,
arg3: ::std::os::raw::c_ulong,
arg4: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_setugid_np(arg1: uid_t, arg2: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_getugid_np(arg1: *mut uid_t, arg2: *mut gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn reboot(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn revoke(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcmd(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg4: *const ::std::os::raw::c_char,
arg5: *const ::std::os::raw::c_char,
arg6: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcmd_af(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg4: *const ::std::os::raw::c_char,
arg5: *const ::std::os::raw::c_char,
arg6: *mut ::std::os::raw::c_int,
arg7: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rresvport(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rresvport_af(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn iruserok(
arg1: ::std::os::raw::c_ulong,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg4: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn iruserok_sa(
arg1: *const ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
arg5: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ruserok(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg4: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setdomainname(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setgroups(arg1: ::std::os::raw::c_int, arg2: *const gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sethostid(arg1: ::std::os::raw::c_long);
}
extern "C" {
pub fn sethostname(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setlogin(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setmode(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn setrgid(arg1: gid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setruid(arg1: uid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setsgroups_np(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setusershell();
}
extern "C" {
pub fn setwgroups_np(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strtofflags(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_ulong,
arg3: *mut ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn swapon(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ttyslot() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn undelete(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unwhiteout(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn syscall(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetattrlist(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsetattrlist(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getattrlist(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setattrlist(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn exchangedata(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getdirentriesattr(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: usize,
arg5: *mut ::std::os::raw::c_uint,
arg6: *mut ::std::os::raw::c_uint,
arg7: *mut ::std::os::raw::c_uint,
arg8: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fssearchblock {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct searchstate {
_unused: [u8; 0],
}
extern "C" {
pub fn searchfs(
arg1: *const ::std::os::raw::c_char,
arg2: *mut fssearchblock,
arg3: *mut ::std::os::raw::c_ulong,
arg4: ::std::os::raw::c_uint,
arg5: ::std::os::raw::c_uint,
arg6: *mut searchstate,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsctl(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_ulong,
arg3: *mut ::std::os::raw::c_void,
arg4: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsctl(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_ulong,
arg3: *mut ::std::os::raw::c_void,
arg4: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsync_volume_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sync_volume_np(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut optreset: ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct flock {
pub l_start: off_t,
pub l_len: off_t,
pub l_pid: pid_t,
pub l_type: ::std::os::raw::c_short,
pub l_whence: ::std::os::raw::c_short,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct flocktimeout {
pub fl: flock,
pub timeout: timespec,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct radvisory {
pub ra_offset: off_t,
pub ra_count: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fsignatures {
pub fs_file_start: off_t,
pub fs_blob_start: *mut ::std::os::raw::c_void,
pub fs_blob_size: usize,
pub fs_fsignatures_size: usize,
pub fs_cdhash: [::std::os::raw::c_char; 20usize],
pub fs_hash_type: ::std::os::raw::c_int,
}
impl Default for fsignatures {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type fsignatures_t = fsignatures;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fsupplement {
pub fs_file_start: off_t,
pub fs_blob_start: off_t,
pub fs_blob_size: usize,
pub fs_orig_fd: ::std::os::raw::c_int,
}
pub type fsupplement_t = fsupplement;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fchecklv {
pub lv_file_start: off_t,
pub lv_error_message_size: usize,
pub lv_error_message: *mut ::std::os::raw::c_void,
}
impl Default for fchecklv {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type fchecklv_t = fchecklv;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fgetsigsinfo {
pub fg_file_start: off_t,
pub fg_info_request: ::std::os::raw::c_int,
pub fg_sig_is_platform: ::std::os::raw::c_int,
}
pub type fgetsigsinfo_t = fgetsigsinfo;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fstore {
pub fst_flags: ::std::os::raw::c_uint,
pub fst_posmode: ::std::os::raw::c_int,
pub fst_offset: off_t,
pub fst_length: off_t,
pub fst_bytesalloc: off_t,
}
pub type fstore_t = fstore;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fpunchhole {
pub fp_flags: ::std::os::raw::c_uint,
pub reserved: ::std::os::raw::c_uint,
pub fp_offset: off_t,
pub fp_length: off_t,
}
pub type fpunchhole_t = fpunchhole;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ftrimactivefile {
pub fta_offset: off_t,
pub fta_length: off_t,
}
pub type ftrimactivefile_t = ftrimactivefile;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct fspecread {
pub fsr_flags: ::std::os::raw::c_uint,
pub reserved: ::std::os::raw::c_uint,
pub fsr_offset: off_t,
pub fsr_length: off_t,
}
pub type fspecread_t = fspecread;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fattributiontag {
pub ft_flags: ::std::os::raw::c_uint,
pub ft_hash: ::std::os::raw::c_ulonglong,
pub ft_attribution_name: [::std::os::raw::c_char; 255usize],
}
impl Default for fattributiontag {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type fattributiontag_t = fattributiontag;
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct log2phys {
pub l2p_flags: ::std::os::raw::c_uint,
pub l2p_contigbytes: off_t,
pub l2p_devoffset: off_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _filesec {
_unused: [u8; 0],
}
pub type filesec_t = *mut _filesec;
pub const filesec_property_t_FILESEC_OWNER: filesec_property_t = 1;
pub const filesec_property_t_FILESEC_GROUP: filesec_property_t = 2;
pub const filesec_property_t_FILESEC_UUID: filesec_property_t = 3;
pub const filesec_property_t_FILESEC_MODE: filesec_property_t = 4;
pub const filesec_property_t_FILESEC_ACL: filesec_property_t = 5;
pub const filesec_property_t_FILESEC_GRPUUID: filesec_property_t = 6;
pub const filesec_property_t_FILESEC_ACL_RAW: filesec_property_t = 100;
pub const filesec_property_t_FILESEC_ACL_ALLOCSIZE: filesec_property_t = 101;
pub type filesec_property_t = ::std::os::raw::c_uint;
extern "C" {
pub fn open(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn openat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn creat(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fcntl(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn openx_np(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: filesec_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn open_dprotected_np(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn openat_dprotected_np(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
arg5: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn openat_authenticated_np(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn flock(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn filesec_init() -> filesec_t;
}
extern "C" {
pub fn filesec_dup(arg1: filesec_t) -> filesec_t;
}
extern "C" {
pub fn filesec_free(arg1: filesec_t);
}
extern "C" {
pub fn filesec_get_property(
arg1: filesec_t,
arg2: filesec_property_t,
arg3: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn filesec_query_property(
arg1: filesec_t,
arg2: filesec_property_t,
arg3: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn filesec_set_property(
arg1: filesec_t,
arg2: filesec_property_t,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn filesec_unset_property(
arg1: filesec_t,
arg2: filesec_property_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_retain(object: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn os_release(object: *mut ::std::os::raw::c_void);
}
pub const os_clockid_t_OS_CLOCK_MACH_ABSOLUTE_TIME: os_clockid_t = 32;
pub type os_clockid_t = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct os_workgroup_attr_opaque_s {
pub sig: u32,
pub opaque: [::std::os::raw::c_char; 60usize],
}
impl Default for os_workgroup_attr_opaque_s {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct os_workgroup_interval_data_opaque_s {
pub sig: u32,
pub opaque: [::std::os::raw::c_char; 56usize],
}
impl Default for os_workgroup_interval_data_opaque_s {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct os_workgroup_join_token_opaque_s {
pub sig: u32,
pub opaque: [::std::os::raw::c_char; 36usize],
}
impl Default for os_workgroup_join_token_opaque_s {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct os_workgroup_s {
_unused: [u8; 0],
}
pub type os_workgroup_t = *mut os_workgroup_s;
pub type os_workgroup_attr_s = os_workgroup_attr_opaque_s;
pub type os_workgroup_attr_t = *mut os_workgroup_attr_opaque_s;
extern "C" {
pub fn os_workgroup_copy_port(
wg: os_workgroup_t,
mach_port_out: *mut mach_port_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_workgroup_create_with_port(
name: *const ::std::os::raw::c_char,
mach_port: mach_port_t,
) -> os_workgroup_t;
}
extern "C" {
pub fn os_workgroup_create_with_workgroup(
name: *const ::std::os::raw::c_char,
wg: os_workgroup_t,
) -> os_workgroup_t;
}
pub type os_workgroup_join_token_s = os_workgroup_join_token_opaque_s;
pub type os_workgroup_join_token_t = *mut os_workgroup_join_token_opaque_s;
extern "C" {
pub fn os_workgroup_join(
wg: os_workgroup_t,
token_out: os_workgroup_join_token_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_workgroup_leave(wg: os_workgroup_t, token: os_workgroup_join_token_t);
}
pub type os_workgroup_index = u32;
pub type os_workgroup_working_arena_destructor_t =
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
extern "C" {
pub fn os_workgroup_set_working_arena(
wg: os_workgroup_t,
arena: *mut ::std::os::raw::c_void,
max_workers: u32,
destructor: os_workgroup_working_arena_destructor_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_workgroup_get_working_arena(
wg: os_workgroup_t,
index_out: *mut os_workgroup_index,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn os_workgroup_cancel(wg: os_workgroup_t);
}
extern "C" {
pub fn os_workgroup_testcancel(wg: os_workgroup_t) -> bool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct os_workgroup_max_parallel_threads_attr_s {
_unused: [u8; 0],
}
pub type os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s;
pub type os_workgroup_mpt_attr_t = *mut os_workgroup_max_parallel_threads_attr_s;
extern "C" {
pub fn os_workgroup_max_parallel_threads(
wg: os_workgroup_t,
attr: os_workgroup_mpt_attr_t,
) -> ::std::os::raw::c_int;
}
pub type os_workgroup_interval_t = os_workgroup_t;
pub type os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s;
pub type os_workgroup_interval_data_t = *mut os_workgroup_interval_data_opaque_s;
extern "C" {
pub fn os_workgroup_interval_start(
wg: os_workgroup_interval_t,
start: u64,
deadline: u64,
data: os_workgroup_interval_data_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_workgroup_interval_update(
wg: os_workgroup_interval_t,
deadline: u64,
data: os_workgroup_interval_data_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn os_workgroup_interval_finish(
wg: os_workgroup_interval_t,
data: os_workgroup_interval_data_t,
) -> ::std::os::raw::c_int;
}
pub type os_workgroup_parallel_t = os_workgroup_t;
extern "C" {
pub fn os_workgroup_parallel_create(
name: *const ::std::os::raw::c_char,
attr: os_workgroup_attr_t,
) -> os_workgroup_parallel_t;
}
pub type dispatch_function_t =
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct time_value {
pub seconds: integer_t,
pub microseconds: integer_t,
}
pub type time_value_t = time_value;
pub type alarm_type_t = ::std::os::raw::c_int;
pub type sleep_type_t = ::std::os::raw::c_int;
pub type clock_id_t = ::std::os::raw::c_int;
pub type clock_flavor_t = ::std::os::raw::c_int;
pub type clock_attr_t = *mut ::std::os::raw::c_int;
pub type clock_res_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_timespec {
pub tv_sec: ::std::os::raw::c_uint,
pub tv_nsec: clock_res_t,
}
pub type mach_timespec_t = mach_timespec;
pub type dispatch_time_t = u64;
pub const DISPATCH_WALLTIME_NOW: _bindgen_ty_53 = 18446744073709551614;
pub type _bindgen_ty_53 = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_time(when: dispatch_time_t, delta: i64) -> dispatch_time_t;
}
extern "C" {
pub fn dispatch_walltime(when: *const timespec, delta: i64) -> dispatch_time_t;
}
pub const QOS_CLASS_USER_INTERACTIVE: _bindgen_ty_54 = 33;
pub const QOS_CLASS_USER_INITIATED: _bindgen_ty_54 = 25;
pub const QOS_CLASS_DEFAULT: _bindgen_ty_54 = 21;
pub const QOS_CLASS_UTILITY: _bindgen_ty_54 = 17;
pub const QOS_CLASS_BACKGROUND: _bindgen_ty_54 = 9;
pub const QOS_CLASS_UNSPECIFIED: _bindgen_ty_54 = 0;
pub type _bindgen_ty_54 = ::std::os::raw::c_uint;
pub type qos_class_t = ::std::os::raw::c_uint;
extern "C" {
pub fn qos_class_self() -> qos_class_t;
}
extern "C" {
pub fn qos_class_main() -> qos_class_t;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dispatch_object_t {
pub _os_obj: *mut _os_object_s,
pub _do: *mut dispatch_object_s,
pub _dq: *mut dispatch_queue_s,
pub _dqa: *mut dispatch_queue_attr_s,
pub _dg: *mut dispatch_group_s,
pub _ds: *mut dispatch_source_s,
pub _dch: *mut dispatch_channel_s,
pub _dm: *mut dispatch_mach_s,
pub _dmsg: *mut dispatch_mach_msg_s,
pub _dsema: *mut dispatch_semaphore_s,
pub _ddata: *mut dispatch_data_s,
pub _dchannel: *mut dispatch_io_s,
}
impl Default for dispatch_object_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type dispatch_block_t = *mut ::std::os::raw::c_void;
pub type dispatch_qos_class_t = qos_class_t;
extern "C" {
pub fn dispatch_retain(object: dispatch_object_t);
}
extern "C" {
pub fn dispatch_release(object: dispatch_object_t);
}
extern "C" {
pub fn dispatch_get_context(object: dispatch_object_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn dispatch_set_context(object: dispatch_object_t, context: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn dispatch_set_finalizer_f(object: dispatch_object_t, finalizer: dispatch_function_t);
}
extern "C" {
pub fn dispatch_activate(object: dispatch_object_t);
}
extern "C" {
pub fn dispatch_suspend(object: dispatch_object_t);
}
extern "C" {
pub fn dispatch_resume(object: dispatch_object_t);
}
extern "C" {
pub fn dispatch_set_qos_class_floor(
object: dispatch_object_t,
qos_class: dispatch_qos_class_t,
relative_priority: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn dispatch_wait(object: *mut ::std::os::raw::c_void, timeout: dispatch_time_t) -> isize;
}
extern "C" {
pub fn dispatch_notify(
object: *mut ::std::os::raw::c_void,
queue: dispatch_object_t,
notification_block: dispatch_block_t,
);
}
extern "C" {
pub fn dispatch_cancel(object: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn dispatch_testcancel(object: *mut ::std::os::raw::c_void) -> isize;
}
extern "C" {
pub fn dispatch_debug(object: dispatch_object_t, message: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn dispatch_debugv(
object: dispatch_object_t,
message: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
);
}
pub type dispatch_queue_t = *mut dispatch_queue_s;
pub type dispatch_queue_global_t = dispatch_queue_t;
pub type dispatch_queue_serial_executor_t = dispatch_queue_t;
pub type dispatch_queue_serial_t = dispatch_queue_t;
pub type dispatch_queue_main_t = dispatch_queue_serial_t;
pub type dispatch_queue_concurrent_t = dispatch_queue_t;
extern "C" {
pub fn dispatch_async(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_async_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_sync(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_sync_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_async_and_wait(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_async_and_wait_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_apply(
iterations: usize,
queue: dispatch_queue_t,
block: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn dispatch_apply_f(
iterations: usize,
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: ::std::option::Option<
unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, iteration: usize),
>,
);
}
extern "C" {
pub fn dispatch_get_current_queue() -> dispatch_queue_t;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_queue_s {
pub _address: u8,
}
extern "C" {
pub static mut _dispatch_main_q: dispatch_queue_s;
}
pub type dispatch_queue_priority_t = ::std::os::raw::c_long;
extern "C" {
pub fn dispatch_get_global_queue(identifier: isize, flags: usize) -> dispatch_queue_global_t;
}
pub type dispatch_queue_attr_t = *mut dispatch_queue_attr_s;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_queue_attr_s {
pub _address: u8,
}
extern "C" {
pub static mut _dispatch_queue_attr_concurrent: dispatch_queue_attr_s;
}
extern "C" {
pub fn dispatch_queue_attr_make_initially_inactive(
attr: dispatch_queue_attr_t,
) -> dispatch_queue_attr_t;
}
pub const dispatch_autorelease_frequency_t_DISPATCH_AUTORELEASE_FREQUENCY_INHERIT:
dispatch_autorelease_frequency_t = 0;
pub const dispatch_autorelease_frequency_t_DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM:
dispatch_autorelease_frequency_t = 1;
pub const dispatch_autorelease_frequency_t_DISPATCH_AUTORELEASE_FREQUENCY_NEVER:
dispatch_autorelease_frequency_t = 2;
pub type dispatch_autorelease_frequency_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_queue_attr_make_with_autorelease_frequency(
attr: dispatch_queue_attr_t,
frequency: dispatch_autorelease_frequency_t,
) -> dispatch_queue_attr_t;
}
extern "C" {
pub fn dispatch_queue_attr_make_with_qos_class(
attr: dispatch_queue_attr_t,
qos_class: dispatch_qos_class_t,
relative_priority: ::std::os::raw::c_int,
) -> dispatch_queue_attr_t;
}
extern "C" {
pub fn dispatch_queue_create_with_target(
label: *const ::std::os::raw::c_char,
attr: dispatch_queue_attr_t,
target: dispatch_queue_t,
) -> dispatch_queue_t;
}
extern "C" {
pub fn dispatch_queue_create(
label: *const ::std::os::raw::c_char,
attr: dispatch_queue_attr_t,
) -> dispatch_queue_t;
}
extern "C" {
pub fn dispatch_queue_get_label(queue: dispatch_queue_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn dispatch_queue_get_qos_class(
queue: dispatch_queue_t,
relative_priority_ptr: *mut ::std::os::raw::c_int,
) -> dispatch_qos_class_t;
}
extern "C" {
pub fn dispatch_set_target_queue(object: dispatch_object_t, queue: dispatch_queue_t);
}
extern "C" {
pub fn dispatch_main() -> !;
}
extern "C" {
pub fn dispatch_after(when: dispatch_time_t, queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_after_f(
when: dispatch_time_t,
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_barrier_async(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_barrier_async_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_barrier_sync(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_barrier_sync_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_barrier_async_and_wait(queue: dispatch_queue_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_barrier_async_and_wait_f(
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_queue_set_specific(
queue: dispatch_queue_t,
key: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
destructor: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_queue_get_specific(
queue: dispatch_queue_t,
key: *const ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn dispatch_get_specific(key: *const ::std::os::raw::c_void)
-> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn dispatch_assert_queue(queue: dispatch_queue_t);
}
extern "C" {
pub fn dispatch_assert_queue_barrier(queue: dispatch_queue_t);
}
extern "C" {
pub fn dispatch_assert_queue_not(queue: dispatch_queue_t);
}
extern "C" {
pub fn dispatch_allow_send_signals(
preserve_signum: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub const dispatch_block_flags_t_DISPATCH_BLOCK_BARRIER: dispatch_block_flags_t = 1;
pub const dispatch_block_flags_t_DISPATCH_BLOCK_DETACHED: dispatch_block_flags_t = 2;
pub const dispatch_block_flags_t_DISPATCH_BLOCK_ASSIGN_CURRENT: dispatch_block_flags_t = 4;
pub const dispatch_block_flags_t_DISPATCH_BLOCK_NO_QOS_CLASS: dispatch_block_flags_t = 8;
pub const dispatch_block_flags_t_DISPATCH_BLOCK_INHERIT_QOS_CLASS: dispatch_block_flags_t = 16;
pub const dispatch_block_flags_t_DISPATCH_BLOCK_ENFORCE_QOS_CLASS: dispatch_block_flags_t = 32;
pub type dispatch_block_flags_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_block_create(
flags: dispatch_block_flags_t,
block: dispatch_block_t,
) -> dispatch_block_t;
}
extern "C" {
pub fn dispatch_block_create_with_qos_class(
flags: dispatch_block_flags_t,
qos_class: dispatch_qos_class_t,
relative_priority: ::std::os::raw::c_int,
block: dispatch_block_t,
) -> dispatch_block_t;
}
extern "C" {
pub fn dispatch_block_perform(flags: dispatch_block_flags_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_block_wait(block: dispatch_block_t, timeout: dispatch_time_t) -> isize;
}
extern "C" {
pub fn dispatch_block_notify(
block: dispatch_block_t,
queue: dispatch_queue_t,
notification_block: dispatch_block_t,
);
}
extern "C" {
pub fn dispatch_block_cancel(block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_block_testcancel(block: dispatch_block_t) -> isize;
}
pub type kern_return_t = ::std::os::raw::c_int;
pub type mach_msg_timeout_t = natural_t;
pub type mach_msg_bits_t = ::std::os::raw::c_uint;
pub type mach_msg_size_t = natural_t;
pub type mach_msg_id_t = integer_t;
pub type mach_msg_priority_t = ::std::os::raw::c_uint;
pub type mach_msg_type_name_t = ::std::os::raw::c_uint;
pub type mach_msg_copy_options_t = ::std::os::raw::c_uint;
pub type mach_msg_guard_flags_t = ::std::os::raw::c_uint;
pub type mach_msg_descriptor_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_type_descriptor_t {
pub pad1: natural_t,
pub pad2: mach_msg_size_t,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl mach_msg_type_descriptor_t {
#[inline]
pub fn pad3(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 24u8) as u32) }
}
#[inline]
pub fn set_pad3(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 24u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
pad3: ::std::os::raw::c_uint,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 24u8, {
let pad3: u32 = unsafe { ::std::mem::transmute(pad3) };
pad3 as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_port_descriptor_t {
pub name: mach_port_t,
pub pad1: mach_msg_size_t,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl mach_msg_port_descriptor_t {
#[inline]
pub fn pad2(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
}
#[inline]
pub fn set_pad2(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 16u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
pad2: ::std::os::raw::c_uint,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 16u8, {
let pad2: u32 = unsafe { ::std::mem::transmute(pad2) };
pad2 as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_ool_descriptor32_t {
pub address: u32,
pub size: mach_msg_size_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl mach_msg_ool_descriptor32_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn pad1(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
pad1: ::std::os::raw::c_uint,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
pad1 as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_ool_descriptor64_t {
pub address: u64,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub size: mach_msg_size_t,
}
impl mach_msg_ool_descriptor64_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn pad1(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
pad1: ::std::os::raw::c_uint,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
pad1 as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Copy, Clone)]
pub struct mach_msg_ool_descriptor_t {
pub address: *mut ::std::os::raw::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub size: mach_msg_size_t,
}
impl Default for mach_msg_ool_descriptor_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
impl mach_msg_ool_descriptor_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn pad1(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_pad1(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
pad1: ::std::os::raw::c_uint,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let pad1: u32 = unsafe { ::std::mem::transmute(pad1) };
pad1 as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_ool_ports_descriptor32_t {
pub address: u32,
pub count: mach_msg_size_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl mach_msg_ool_ports_descriptor32_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_ool_ports_descriptor64_t {
pub address: u64,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub count: mach_msg_size_t,
}
impl mach_msg_ool_ports_descriptor64_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Copy, Clone)]
pub struct mach_msg_ool_ports_descriptor_t {
pub address: *mut ::std::os::raw::c_void,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub count: mach_msg_size_t,
}
impl Default for mach_msg_ool_ports_descriptor_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
impl mach_msg_ool_ports_descriptor_t {
#[inline]
pub fn deallocate(&self) -> boolean_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_deallocate(&mut self, val: boolean_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub fn copy(&self) -> mach_msg_copy_options_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_copy(&mut self, val: mach_msg_copy_options_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
deallocate: boolean_t,
copy: mach_msg_copy_options_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let deallocate: u32 = unsafe { ::std::mem::transmute(deallocate) };
deallocate as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let copy: u32 = unsafe { ::std::mem::transmute(copy) };
copy as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_guarded_port_descriptor32_t {
pub context: u32,
pub name: mach_port_name_t,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl mach_msg_guarded_port_descriptor32_t {
#[inline]
pub fn flags(&self) -> mach_msg_guard_flags_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
}
#[inline]
pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 16u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
flags: mach_msg_guard_flags_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 16u8, {
let flags: u32 = unsafe { ::std::mem::transmute(flags) };
flags as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_guarded_port_descriptor64_t {
pub context: u64,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub name: mach_port_name_t,
}
impl mach_msg_guarded_port_descriptor64_t {
#[inline]
pub fn flags(&self) -> mach_msg_guard_flags_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
}
#[inline]
pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 16u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
flags: mach_msg_guard_flags_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 16u8, {
let flags: u32 = unsafe { ::std::mem::transmute(flags) };
flags as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_guarded_port_descriptor_t {
pub context: mach_port_context_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub name: mach_port_name_t,
}
impl mach_msg_guarded_port_descriptor_t {
#[inline]
pub fn flags(&self) -> mach_msg_guard_flags_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
}
#[inline]
pub fn set_flags(&mut self, val: mach_msg_guard_flags_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 16u8, val as u64)
}
}
#[inline]
pub fn disposition(&self) -> mach_msg_type_name_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
}
#[inline]
pub fn set_disposition(&mut self, val: mach_msg_type_name_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 8u8, val as u64)
}
}
#[inline]
pub fn type_(&self) -> mach_msg_descriptor_type_t {
unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
}
#[inline]
pub fn set_type(&mut self, val: mach_msg_descriptor_type_t) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(24usize, 8u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
flags: mach_msg_guard_flags_t,
disposition: mach_msg_type_name_t,
type_: mach_msg_descriptor_type_t,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 16u8, {
let flags: u32 = unsafe { ::std::mem::transmute(flags) };
flags as u64
});
__bindgen_bitfield_unit.set(16usize, 8u8, {
let disposition: u32 = unsafe { ::std::mem::transmute(disposition) };
disposition as u64
});
__bindgen_bitfield_unit.set(24usize, 8u8, {
let type_: u32 = unsafe { ::std::mem::transmute(type_) };
type_ as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union mach_msg_descriptor_t {
pub port: mach_msg_port_descriptor_t,
pub out_of_line: mach_msg_ool_descriptor_t,
pub ool_ports: mach_msg_ool_ports_descriptor_t,
pub type_: mach_msg_type_descriptor_t,
pub guarded_port: mach_msg_guarded_port_descriptor_t,
}
impl Default for mach_msg_descriptor_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_body_t {
pub msgh_descriptor_count: mach_msg_size_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_header_t {
pub msgh_bits: mach_msg_bits_t,
pub msgh_size: mach_msg_size_t,
pub msgh_remote_port: mach_port_t,
pub msgh_local_port: mach_port_t,
pub msgh_voucher_port: mach_port_name_t,
pub msgh_id: mach_msg_id_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_base_t {
pub header: mach_msg_header_t,
pub body: mach_msg_body_t,
}
pub type mach_msg_trailer_type_t = ::std::os::raw::c_uint;
pub type mach_msg_trailer_size_t = ::std::os::raw::c_uint;
pub type mach_msg_trailer_info_t = *mut ::std::os::raw::c_char;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_seqno_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
pub msgh_seqno: mach_port_seqno_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct security_token_t {
pub val: [::std::os::raw::c_uint; 2usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_security_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
pub msgh_seqno: mach_port_seqno_t,
pub msgh_sender: security_token_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct audit_token_t {
pub val: [::std::os::raw::c_uint; 8usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_audit_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
pub msgh_seqno: mach_port_seqno_t,
pub msgh_sender: security_token_t,
pub msgh_audit: audit_token_t,
}
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_context_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
pub msgh_seqno: mach_port_seqno_t,
pub msgh_sender: security_token_t,
pub msgh_audit: audit_token_t,
pub msgh_context: mach_port_context_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct msg_labels_t {
pub sender: mach_port_name_t,
}
pub type mach_msg_filter_id = ::std::os::raw::c_int;
#[repr(C, packed(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_mac_trailer_t {
pub msgh_trailer_type: mach_msg_trailer_type_t,
pub msgh_trailer_size: mach_msg_trailer_size_t,
pub msgh_seqno: mach_port_seqno_t,
pub msgh_sender: security_token_t,
pub msgh_audit: audit_token_t,
pub msgh_context: mach_port_context_t,
pub msgh_ad: mach_msg_filter_id,
pub msgh_labels: msg_labels_t,
}
pub type mach_msg_max_trailer_t = mach_msg_mac_trailer_t;
pub type mach_msg_format_0_trailer_t = mach_msg_security_trailer_t;
extern "C" {
pub static KERNEL_SECURITY_TOKEN: security_token_t;
}
extern "C" {
pub static KERNEL_AUDIT_TOKEN: audit_token_t;
}
pub type mach_msg_options_t = integer_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_empty_send_t {
pub header: mach_msg_header_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct mach_msg_empty_rcv_t {
pub header: mach_msg_header_t,
pub trailer: mach_msg_trailer_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union mach_msg_empty_t {
pub send: mach_msg_empty_send_t,
pub rcv: mach_msg_empty_rcv_t,
}
impl Default for mach_msg_empty_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type mach_msg_type_size_t = natural_t;
pub type mach_msg_type_number_t = natural_t;
pub type mach_msg_option_t = integer_t;
pub type mach_msg_return_t = kern_return_t;
extern "C" {
pub fn mach_msg_overwrite(
msg: *mut mach_msg_header_t,
option: mach_msg_option_t,
send_size: mach_msg_size_t,
rcv_size: mach_msg_size_t,
rcv_name: mach_port_name_t,
timeout: mach_msg_timeout_t,
notify: mach_port_name_t,
rcv_msg: *mut mach_msg_header_t,
rcv_limit: mach_msg_size_t,
) -> mach_msg_return_t;
}
extern "C" {
pub fn mach_msg(
msg: *mut mach_msg_header_t,
option: mach_msg_option_t,
send_size: mach_msg_size_t,
rcv_size: mach_msg_size_t,
rcv_name: mach_port_name_t,
timeout: mach_msg_timeout_t,
notify: mach_port_name_t,
) -> mach_msg_return_t;
}
extern "C" {
pub fn mach_voucher_deallocate(voucher: mach_port_name_t) -> kern_return_t;
}
pub type dispatch_source_t = *mut dispatch_source_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dispatch_source_type_s {
_unused: [u8; 0],
}
pub type dispatch_source_type_t = *const dispatch_source_type_s;
extern "C" {
pub static _dispatch_source_type_data_add: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_data_or: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_data_replace: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_mach_send: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_mach_recv: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_memorypressure: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_proc: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_read: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_signal: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_timer: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_vnode: dispatch_source_type_s;
}
extern "C" {
pub static _dispatch_source_type_write: dispatch_source_type_s;
}
pub type dispatch_source_mach_send_flags_t = ::std::os::raw::c_ulong;
pub type dispatch_source_mach_recv_flags_t = ::std::os::raw::c_ulong;
pub type dispatch_source_memorypressure_flags_t = ::std::os::raw::c_ulong;
pub type dispatch_source_proc_flags_t = ::std::os::raw::c_ulong;
pub type dispatch_source_vnode_flags_t = ::std::os::raw::c_ulong;
pub type dispatch_source_timer_flags_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_source_create(
type_: dispatch_source_type_t,
handle: usize,
mask: usize,
queue: dispatch_queue_t,
) -> dispatch_source_t;
}
extern "C" {
pub fn dispatch_source_set_event_handler(source: dispatch_source_t, handler: dispatch_block_t);
}
extern "C" {
pub fn dispatch_source_set_event_handler_f(
source: dispatch_source_t,
handler: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_source_set_cancel_handler(source: dispatch_source_t, handler: dispatch_block_t);
}
extern "C" {
pub fn dispatch_source_set_cancel_handler_f(
source: dispatch_source_t,
handler: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_source_cancel(source: dispatch_source_t);
}
extern "C" {
pub fn dispatch_source_testcancel(source: dispatch_source_t) -> isize;
}
extern "C" {
pub fn dispatch_source_get_handle(source: dispatch_source_t) -> usize;
}
extern "C" {
pub fn dispatch_source_get_mask(source: dispatch_source_t) -> usize;
}
extern "C" {
pub fn dispatch_source_get_data(source: dispatch_source_t) -> usize;
}
extern "C" {
pub fn dispatch_source_merge_data(source: dispatch_source_t, value: usize);
}
extern "C" {
pub fn dispatch_source_set_timer(
source: dispatch_source_t,
start: dispatch_time_t,
interval: u64,
leeway: u64,
);
}
extern "C" {
pub fn dispatch_source_set_registration_handler(
source: dispatch_source_t,
handler: dispatch_block_t,
);
}
extern "C" {
pub fn dispatch_source_set_registration_handler_f(
source: dispatch_source_t,
handler: dispatch_function_t,
);
}
pub type dispatch_group_t = *mut dispatch_group_s;
extern "C" {
pub fn dispatch_group_create() -> dispatch_group_t;
}
extern "C" {
pub fn dispatch_group_async(
group: dispatch_group_t,
queue: dispatch_queue_t,
block: dispatch_block_t,
);
}
extern "C" {
pub fn dispatch_group_async_f(
group: dispatch_group_t,
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_group_wait(group: dispatch_group_t, timeout: dispatch_time_t) -> isize;
}
extern "C" {
pub fn dispatch_group_notify(
group: dispatch_group_t,
queue: dispatch_queue_t,
block: dispatch_block_t,
);
}
extern "C" {
pub fn dispatch_group_notify_f(
group: dispatch_group_t,
queue: dispatch_queue_t,
context: *mut ::std::os::raw::c_void,
work: dispatch_function_t,
);
}
extern "C" {
pub fn dispatch_group_enter(group: dispatch_group_t);
}
extern "C" {
pub fn dispatch_group_leave(group: dispatch_group_t);
}
pub type dispatch_semaphore_t = *mut dispatch_semaphore_s;
extern "C" {
pub fn dispatch_semaphore_create(value: isize) -> dispatch_semaphore_t;
}
extern "C" {
pub fn dispatch_semaphore_wait(dsema: dispatch_semaphore_t, timeout: dispatch_time_t) -> isize;
}
extern "C" {
pub fn dispatch_semaphore_signal(dsema: dispatch_semaphore_t) -> isize;
}
pub type dispatch_once_t = isize;
extern "C" {
pub fn dispatch_once(predicate: *mut dispatch_once_t, block: dispatch_block_t);
}
extern "C" {
pub fn dispatch_once_f(
predicate: *mut dispatch_once_t,
context: *mut ::std::os::raw::c_void,
function: dispatch_function_t,
);
}
pub type dispatch_data_t = *mut dispatch_data_s;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_data_s {
pub _address: u8,
}
extern "C" {
pub static mut _dispatch_data_empty: dispatch_data_s;
}
extern "C" {
pub static _dispatch_data_destructor_free: dispatch_block_t;
}
extern "C" {
pub static _dispatch_data_destructor_munmap: dispatch_block_t;
}
extern "C" {
pub fn dispatch_data_create(
buffer: *const ::std::os::raw::c_void,
size: usize,
queue: dispatch_queue_t,
destructor: dispatch_block_t,
) -> dispatch_data_t;
}
extern "C" {
pub fn dispatch_data_get_size(data: dispatch_data_t) -> usize;
}
extern "C" {
pub fn dispatch_data_create_map(
data: dispatch_data_t,
buffer_ptr: *mut *const ::std::os::raw::c_void,
size_ptr: *mut usize,
) -> dispatch_data_t;
}
extern "C" {
pub fn dispatch_data_create_concat(
data1: dispatch_data_t,
data2: dispatch_data_t,
) -> dispatch_data_t;
}
extern "C" {
pub fn dispatch_data_create_subrange(
data: dispatch_data_t,
offset: usize,
length: usize,
) -> dispatch_data_t;
}
pub type dispatch_data_applier_t = *mut ::std::os::raw::c_void;
extern "C" {
pub fn dispatch_data_apply(data: dispatch_data_t, applier: dispatch_data_applier_t) -> bool;
}
extern "C" {
pub fn dispatch_data_copy_region(
data: dispatch_data_t,
location: usize,
offset_ptr: *mut usize,
) -> dispatch_data_t;
}
pub type dispatch_fd_t = ::std::os::raw::c_int;
extern "C" {
pub fn dispatch_read(
fd: dispatch_fd_t,
length: usize,
queue: dispatch_queue_t,
handler: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn dispatch_write(
fd: dispatch_fd_t,
data: dispatch_data_t,
queue: dispatch_queue_t,
handler: *mut ::std::os::raw::c_void,
);
}
pub type dispatch_io_t = *mut dispatch_io_s;
pub type dispatch_io_type_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_io_create(
type_: dispatch_io_type_t,
fd: dispatch_fd_t,
queue: dispatch_queue_t,
cleanup_handler: *mut ::std::os::raw::c_void,
) -> dispatch_io_t;
}
extern "C" {
pub fn dispatch_io_create_with_path(
type_: dispatch_io_type_t,
path: *const ::std::os::raw::c_char,
oflag: ::std::os::raw::c_int,
mode: mode_t,
queue: dispatch_queue_t,
cleanup_handler: *mut ::std::os::raw::c_void,
) -> dispatch_io_t;
}
extern "C" {
pub fn dispatch_io_create_with_io(
type_: dispatch_io_type_t,
io: dispatch_io_t,
queue: dispatch_queue_t,
cleanup_handler: *mut ::std::os::raw::c_void,
) -> dispatch_io_t;
}
pub type dispatch_io_handler_t = *mut ::std::os::raw::c_void;
extern "C" {
pub fn dispatch_io_read(
channel: dispatch_io_t,
offset: off_t,
length: usize,
queue: dispatch_queue_t,
io_handler: dispatch_io_handler_t,
);
}
extern "C" {
pub fn dispatch_io_write(
channel: dispatch_io_t,
offset: off_t,
data: dispatch_data_t,
queue: dispatch_queue_t,
io_handler: dispatch_io_handler_t,
);
}
pub type dispatch_io_close_flags_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_io_close(channel: dispatch_io_t, flags: dispatch_io_close_flags_t);
}
extern "C" {
pub fn dispatch_io_barrier(channel: dispatch_io_t, barrier: dispatch_block_t);
}
extern "C" {
pub fn dispatch_io_get_descriptor(channel: dispatch_io_t) -> dispatch_fd_t;
}
extern "C" {
pub fn dispatch_io_set_high_water(channel: dispatch_io_t, high_water: usize);
}
extern "C" {
pub fn dispatch_io_set_low_water(channel: dispatch_io_t, low_water: usize);
}
pub type dispatch_io_interval_flags_t = ::std::os::raw::c_ulong;
extern "C" {
pub fn dispatch_io_set_interval(
channel: dispatch_io_t,
interval: u64,
flags: dispatch_io_interval_flags_t,
);
}
pub type dispatch_workloop_t = dispatch_queue_t;
extern "C" {
pub fn dispatch_workloop_create(label: *const ::std::os::raw::c_char) -> dispatch_workloop_t;
}
extern "C" {
pub fn dispatch_workloop_create_inactive(
label: *const ::std::os::raw::c_char,
) -> dispatch_workloop_t;
}
extern "C" {
pub fn dispatch_workloop_set_autorelease_frequency(
workloop: dispatch_workloop_t,
frequency: dispatch_autorelease_frequency_t,
);
}
extern "C" {
pub fn dispatch_workloop_set_os_workgroup(
workloop: dispatch_workloop_t,
workgroup: os_workgroup_t,
);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFStreamError {
pub domain: CFIndex,
pub error: SInt32,
}
pub type CFStreamPropertyKey = CFStringRef;
pub type CFStreamStatus = CFIndex;
pub const kCFStreamStatusNotOpen: _bindgen_ty_55 = 0;
pub const kCFStreamStatusOpening: _bindgen_ty_55 = 1;
pub const kCFStreamStatusOpen: _bindgen_ty_55 = 2;
pub const kCFStreamStatusReading: _bindgen_ty_55 = 3;
pub const kCFStreamStatusWriting: _bindgen_ty_55 = 4;
pub const kCFStreamStatusAtEnd: _bindgen_ty_55 = 5;
pub const kCFStreamStatusClosed: _bindgen_ty_55 = 6;
pub const kCFStreamStatusError: _bindgen_ty_55 = 7;
pub type _bindgen_ty_55 = ::std::os::raw::c_uint;
pub type CFStreamEventType = CFOptionFlags;
pub const kCFStreamEventNone: _bindgen_ty_56 = 0;
pub const kCFStreamEventOpenCompleted: _bindgen_ty_56 = 1;
pub const kCFStreamEventHasBytesAvailable: _bindgen_ty_56 = 2;
pub const kCFStreamEventCanAcceptBytes: _bindgen_ty_56 = 4;
pub const kCFStreamEventErrorOccurred: _bindgen_ty_56 = 8;
pub const kCFStreamEventEndEncountered: _bindgen_ty_56 = 16;
pub type _bindgen_ty_56 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFStreamClientContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *mut ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *mut ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFStreamClientContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFReadStream {
_unused: [u8; 0],
}
pub type CFReadStreamRef = *mut __CFReadStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFWriteStream {
_unused: [u8; 0],
}
pub type CFWriteStreamRef = *mut __CFWriteStream;
pub type CFReadStreamClientCallBack = ::std::option::Option<
unsafe extern "C" fn(
stream: CFReadStreamRef,
type_: CFStreamEventType,
clientCallBackInfo: *mut ::std::os::raw::c_void,
),
>;
pub type CFWriteStreamClientCallBack = ::std::option::Option<
unsafe extern "C" fn(
stream: CFWriteStreamRef,
type_: CFStreamEventType,
clientCallBackInfo: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn CFReadStreamGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFWriteStreamGetTypeID() -> CFTypeID;
}
extern "C" {
pub static mut kCFStreamPropertyDataWritten: CFStreamPropertyKey;
}
extern "C" {
pub fn CFReadStreamCreateWithBytesNoCopy(
alloc: CFAllocatorRef,
bytes: *const UInt8,
length: CFIndex,
bytesDeallocator: CFAllocatorRef,
) -> CFReadStreamRef;
}
extern "C" {
pub fn CFWriteStreamCreateWithBuffer(
alloc: CFAllocatorRef,
buffer: *mut UInt8,
bufferCapacity: CFIndex,
) -> CFWriteStreamRef;
}
extern "C" {
pub fn CFWriteStreamCreateWithAllocatedBuffers(
alloc: CFAllocatorRef,
bufferAllocator: CFAllocatorRef,
) -> CFWriteStreamRef;
}
extern "C" {
pub fn CFReadStreamCreateWithFile(alloc: CFAllocatorRef, fileURL: CFURLRef) -> CFReadStreamRef;
}
extern "C" {
pub fn CFWriteStreamCreateWithFile(
alloc: CFAllocatorRef,
fileURL: CFURLRef,
) -> CFWriteStreamRef;
}
extern "C" {
pub fn CFStreamCreateBoundPair(
alloc: CFAllocatorRef,
readStream: *mut CFReadStreamRef,
writeStream: *mut CFWriteStreamRef,
transferBufferSize: CFIndex,
);
}
extern "C" {
pub static mut kCFStreamPropertyAppendToFile: CFStreamPropertyKey;
}
extern "C" {
pub static mut kCFStreamPropertyFileCurrentOffset: CFStreamPropertyKey;
}
extern "C" {
pub static mut kCFStreamPropertySocketNativeHandle: CFStreamPropertyKey;
}
extern "C" {
pub static mut kCFStreamPropertySocketRemoteHostName: CFStreamPropertyKey;
}
extern "C" {
pub static mut kCFStreamPropertySocketRemotePortNumber: CFStreamPropertyKey;
}
extern "C" {
pub static kCFStreamErrorDomainSOCKS: ::std::os::raw::c_int;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSProxy: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSProxyHost: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSProxyPort: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSVersion: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSOCKSVersion4: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSOCKSVersion5: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSUser: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertySOCKSPassword: CFStringRef;
}
extern "C" {
pub static kCFStreamErrorDomainSSL: ::std::os::raw::c_int;
}
extern "C" {
pub static mut kCFStreamPropertySocketSecurityLevel: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSecurityLevelNone: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSecurityLevelSSLv2: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSecurityLevelSSLv3: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSecurityLevelTLSv1: CFStringRef;
}
extern "C" {
pub static mut kCFStreamSocketSecurityLevelNegotiatedSSL: CFStringRef;
}
extern "C" {
pub static mut kCFStreamPropertyShouldCloseNativeSocket: CFStringRef;
}
extern "C" {
pub fn CFStreamCreatePairWithSocket(
alloc: CFAllocatorRef,
sock: CFSocketNativeHandle,
readStream: *mut CFReadStreamRef,
writeStream: *mut CFWriteStreamRef,
);
}
extern "C" {
pub fn CFStreamCreatePairWithSocketToHost(
alloc: CFAllocatorRef,
host: CFStringRef,
port: UInt32,
readStream: *mut CFReadStreamRef,
writeStream: *mut CFWriteStreamRef,
);
}
extern "C" {
pub fn CFStreamCreatePairWithPeerSocketSignature(
alloc: CFAllocatorRef,
signature: *const CFSocketSignature,
readStream: *mut CFReadStreamRef,
writeStream: *mut CFWriteStreamRef,
);
}
extern "C" {
pub fn CFReadStreamGetStatus(stream: CFReadStreamRef) -> CFStreamStatus;
}
extern "C" {
pub fn CFWriteStreamGetStatus(stream: CFWriteStreamRef) -> CFStreamStatus;
}
extern "C" {
pub fn CFReadStreamCopyError(stream: CFReadStreamRef) -> CFErrorRef;
}
extern "C" {
pub fn CFWriteStreamCopyError(stream: CFWriteStreamRef) -> CFErrorRef;
}
extern "C" {
pub fn CFReadStreamOpen(stream: CFReadStreamRef) -> Boolean;
}
extern "C" {
pub fn CFWriteStreamOpen(stream: CFWriteStreamRef) -> Boolean;
}
extern "C" {
pub fn CFReadStreamClose(stream: CFReadStreamRef);
}
extern "C" {
pub fn CFWriteStreamClose(stream: CFWriteStreamRef);
}
extern "C" {
pub fn CFReadStreamHasBytesAvailable(stream: CFReadStreamRef) -> Boolean;
}
extern "C" {
pub fn CFReadStreamRead(
stream: CFReadStreamRef,
buffer: *mut UInt8,
bufferLength: CFIndex,
) -> CFIndex;
}
extern "C" {
pub fn CFReadStreamGetBuffer(
stream: CFReadStreamRef,
maxBytesToRead: CFIndex,
numBytesRead: *mut CFIndex,
) -> *const UInt8;
}
extern "C" {
pub fn CFWriteStreamCanAcceptBytes(stream: CFWriteStreamRef) -> Boolean;
}
extern "C" {
pub fn CFWriteStreamWrite(
stream: CFWriteStreamRef,
buffer: *const UInt8,
bufferLength: CFIndex,
) -> CFIndex;
}
extern "C" {
pub fn CFReadStreamCopyProperty(
stream: CFReadStreamRef,
propertyName: CFStreamPropertyKey,
) -> CFTypeRef;
}
extern "C" {
pub fn CFWriteStreamCopyProperty(
stream: CFWriteStreamRef,
propertyName: CFStreamPropertyKey,
) -> CFTypeRef;
}
extern "C" {
pub fn CFReadStreamSetProperty(
stream: CFReadStreamRef,
propertyName: CFStreamPropertyKey,
propertyValue: CFTypeRef,
) -> Boolean;
}
extern "C" {
pub fn CFWriteStreamSetProperty(
stream: CFWriteStreamRef,
propertyName: CFStreamPropertyKey,
propertyValue: CFTypeRef,
) -> Boolean;
}
extern "C" {
pub fn CFReadStreamSetClient(
stream: CFReadStreamRef,
streamEvents: CFOptionFlags,
clientCB: CFReadStreamClientCallBack,
clientContext: *mut CFStreamClientContext,
) -> Boolean;
}
extern "C" {
pub fn CFWriteStreamSetClient(
stream: CFWriteStreamRef,
streamEvents: CFOptionFlags,
clientCB: CFWriteStreamClientCallBack,
clientContext: *mut CFStreamClientContext,
) -> Boolean;
}
extern "C" {
pub fn CFReadStreamScheduleWithRunLoop(
stream: CFReadStreamRef,
runLoop: CFRunLoopRef,
runLoopMode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFWriteStreamScheduleWithRunLoop(
stream: CFWriteStreamRef,
runLoop: CFRunLoopRef,
runLoopMode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFReadStreamUnscheduleFromRunLoop(
stream: CFReadStreamRef,
runLoop: CFRunLoopRef,
runLoopMode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFWriteStreamUnscheduleFromRunLoop(
stream: CFWriteStreamRef,
runLoop: CFRunLoopRef,
runLoopMode: CFRunLoopMode,
);
}
extern "C" {
pub fn CFReadStreamSetDispatchQueue(stream: CFReadStreamRef, q: dispatch_queue_t);
}
extern "C" {
pub fn CFWriteStreamSetDispatchQueue(stream: CFWriteStreamRef, q: dispatch_queue_t);
}
extern "C" {
pub fn CFReadStreamCopyDispatchQueue(stream: CFReadStreamRef) -> dispatch_queue_t;
}
extern "C" {
pub fn CFWriteStreamCopyDispatchQueue(stream: CFWriteStreamRef) -> dispatch_queue_t;
}
pub type CFStreamErrorDomain = CFIndex;
pub const kCFStreamErrorDomainCustom: _bindgen_ty_57 = -1;
pub const kCFStreamErrorDomainPOSIX: _bindgen_ty_57 = 1;
pub const kCFStreamErrorDomainMacOSStatus: _bindgen_ty_57 = 2;
pub type _bindgen_ty_57 = ::std::os::raw::c_int;
extern "C" {
pub fn CFReadStreamGetError(stream: CFReadStreamRef) -> CFStreamError;
}
extern "C" {
pub fn CFWriteStreamGetError(stream: CFWriteStreamRef) -> CFStreamError;
}
pub type CFPropertyListMutabilityOptions = CFOptionFlags;
pub const kCFPropertyListImmutable: _bindgen_ty_58 = 0;
pub const kCFPropertyListMutableContainers: _bindgen_ty_58 = 1;
pub const kCFPropertyListMutableContainersAndLeaves: _bindgen_ty_58 = 2;
pub type _bindgen_ty_58 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFPropertyListCreateFromXMLData(
allocator: CFAllocatorRef,
xmlData: CFDataRef,
mutabilityOption: CFOptionFlags,
errorString: *mut CFStringRef,
) -> CFPropertyListRef;
}
extern "C" {
pub fn CFPropertyListCreateXMLData(
allocator: CFAllocatorRef,
propertyList: CFPropertyListRef,
) -> CFDataRef;
}
extern "C" {
pub fn CFPropertyListCreateDeepCopy(
allocator: CFAllocatorRef,
propertyList: CFPropertyListRef,
mutabilityOption: CFOptionFlags,
) -> CFPropertyListRef;
}
pub type CFPropertyListFormat = CFIndex;
pub const kCFPropertyListOpenStepFormat: _bindgen_ty_59 = 1;
pub const kCFPropertyListXMLFormat_v1_0: _bindgen_ty_59 = 100;
pub const kCFPropertyListBinaryFormat_v1_0: _bindgen_ty_59 = 200;
pub type _bindgen_ty_59 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFPropertyListIsValid(plist: CFPropertyListRef, format: CFPropertyListFormat)
-> Boolean;
}
extern "C" {
pub fn CFPropertyListWriteToStream(
propertyList: CFPropertyListRef,
stream: CFWriteStreamRef,
format: CFPropertyListFormat,
errorString: *mut CFStringRef,
) -> CFIndex;
}
extern "C" {
pub fn CFPropertyListCreateFromStream(
allocator: CFAllocatorRef,
stream: CFReadStreamRef,
streamLength: CFIndex,
mutabilityOption: CFOptionFlags,
format: *mut CFPropertyListFormat,
errorString: *mut CFStringRef,
) -> CFPropertyListRef;
}
pub const kCFPropertyListReadCorruptError: _bindgen_ty_60 = 3840;
pub const kCFPropertyListReadUnknownVersionError: _bindgen_ty_60 = 3841;
pub const kCFPropertyListReadStreamError: _bindgen_ty_60 = 3842;
pub const kCFPropertyListWriteStreamError: _bindgen_ty_60 = 3851;
pub type _bindgen_ty_60 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFPropertyListCreateWithData(
allocator: CFAllocatorRef,
data: CFDataRef,
options: CFOptionFlags,
format: *mut CFPropertyListFormat,
error: *mut CFErrorRef,
) -> CFPropertyListRef;
}
extern "C" {
pub fn CFPropertyListCreateWithStream(
allocator: CFAllocatorRef,
stream: CFReadStreamRef,
streamLength: CFIndex,
options: CFOptionFlags,
format: *mut CFPropertyListFormat,
error: *mut CFErrorRef,
) -> CFPropertyListRef;
}
extern "C" {
pub fn CFPropertyListWrite(
propertyList: CFPropertyListRef,
stream: CFWriteStreamRef,
format: CFPropertyListFormat,
options: CFOptionFlags,
error: *mut CFErrorRef,
) -> CFIndex;
}
extern "C" {
pub fn CFPropertyListCreateData(
allocator: CFAllocatorRef,
propertyList: CFPropertyListRef,
format: CFPropertyListFormat,
options: CFOptionFlags,
error: *mut CFErrorRef,
) -> CFDataRef;
}
pub type CFSetRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void,
>;
pub type CFSetReleaseCallBack = ::std::option::Option<
unsafe extern "C" fn(allocator: CFAllocatorRef, value: *const ::std::os::raw::c_void),
>;
pub type CFSetCopyDescriptionCallBack = ::std::option::Option<
unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFStringRef,
>;
pub type CFSetEqualCallBack = ::std::option::Option<
unsafe extern "C" fn(
value1: *const ::std::os::raw::c_void,
value2: *const ::std::os::raw::c_void,
) -> Boolean,
>;
pub type CFSetHashCallBack =
::std::option::Option<unsafe extern "C" fn(value: *const ::std::os::raw::c_void) -> CFHashCode>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFSetCallBacks {
pub version: CFIndex,
pub retain: CFSetRetainCallBack,
pub release: CFSetReleaseCallBack,
pub copyDescription: CFSetCopyDescriptionCallBack,
pub equal: CFSetEqualCallBack,
pub hash: CFSetHashCallBack,
}
extern "C" {
pub static kCFTypeSetCallBacks: CFSetCallBacks;
}
extern "C" {
pub static kCFCopyStringSetCallBacks: CFSetCallBacks;
}
pub type CFSetApplierFunction = ::std::option::Option<
unsafe extern "C" fn(
value: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFSet {
_unused: [u8; 0],
}
pub type CFSetRef = *const __CFSet;
pub type CFMutableSetRef = *mut __CFSet;
extern "C" {
pub fn CFSetGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFSetCreate(
allocator: CFAllocatorRef,
values: *mut *const ::std::os::raw::c_void,
numValues: CFIndex,
callBacks: *const CFSetCallBacks,
) -> CFSetRef;
}
extern "C" {
pub fn CFSetCreateCopy(allocator: CFAllocatorRef, theSet: CFSetRef) -> CFSetRef;
}
extern "C" {
pub fn CFSetCreateMutable(
allocator: CFAllocatorRef,
capacity: CFIndex,
callBacks: *const CFSetCallBacks,
) -> CFMutableSetRef;
}
extern "C" {
pub fn CFSetCreateMutableCopy(
allocator: CFAllocatorRef,
capacity: CFIndex,
theSet: CFSetRef,
) -> CFMutableSetRef;
}
extern "C" {
pub fn CFSetGetCount(theSet: CFSetRef) -> CFIndex;
}
extern "C" {
pub fn CFSetGetCountOfValue(theSet: CFSetRef, value: *const ::std::os::raw::c_void) -> CFIndex;
}
extern "C" {
pub fn CFSetContainsValue(theSet: CFSetRef, value: *const ::std::os::raw::c_void) -> Boolean;
}
extern "C" {
pub fn CFSetGetValue(
theSet: CFSetRef,
value: *const ::std::os::raw::c_void,
) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFSetGetValueIfPresent(
theSet: CFSetRef,
candidate: *const ::std::os::raw::c_void,
value: *mut *const ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFSetGetValues(theSet: CFSetRef, values: *mut *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFSetApplyFunction(
theSet: CFSetRef,
applier: CFSetApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFSetAddValue(theSet: CFMutableSetRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFSetReplaceValue(theSet: CFMutableSetRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFSetSetValue(theSet: CFMutableSetRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFSetRemoveValue(theSet: CFMutableSetRef, value: *const ::std::os::raw::c_void);
}
extern "C" {
pub fn CFSetRemoveAllValues(theSet: CFMutableSetRef);
}
pub type CFStringEncodings = CFIndex;
pub const kCFStringEncodingMacJapanese: _bindgen_ty_61 = 1;
pub const kCFStringEncodingMacChineseTrad: _bindgen_ty_61 = 2;
pub const kCFStringEncodingMacKorean: _bindgen_ty_61 = 3;
pub const kCFStringEncodingMacArabic: _bindgen_ty_61 = 4;
pub const kCFStringEncodingMacHebrew: _bindgen_ty_61 = 5;
pub const kCFStringEncodingMacGreek: _bindgen_ty_61 = 6;
pub const kCFStringEncodingMacCyrillic: _bindgen_ty_61 = 7;
pub const kCFStringEncodingMacDevanagari: _bindgen_ty_61 = 9;
pub const kCFStringEncodingMacGurmukhi: _bindgen_ty_61 = 10;
pub const kCFStringEncodingMacGujarati: _bindgen_ty_61 = 11;
pub const kCFStringEncodingMacOriya: _bindgen_ty_61 = 12;
pub const kCFStringEncodingMacBengali: _bindgen_ty_61 = 13;
pub const kCFStringEncodingMacTamil: _bindgen_ty_61 = 14;
pub const kCFStringEncodingMacTelugu: _bindgen_ty_61 = 15;
pub const kCFStringEncodingMacKannada: _bindgen_ty_61 = 16;
pub const kCFStringEncodingMacMalayalam: _bindgen_ty_61 = 17;
pub const kCFStringEncodingMacSinhalese: _bindgen_ty_61 = 18;
pub const kCFStringEncodingMacBurmese: _bindgen_ty_61 = 19;
pub const kCFStringEncodingMacKhmer: _bindgen_ty_61 = 20;
pub const kCFStringEncodingMacThai: _bindgen_ty_61 = 21;
pub const kCFStringEncodingMacLaotian: _bindgen_ty_61 = 22;
pub const kCFStringEncodingMacGeorgian: _bindgen_ty_61 = 23;
pub const kCFStringEncodingMacArmenian: _bindgen_ty_61 = 24;
pub const kCFStringEncodingMacChineseSimp: _bindgen_ty_61 = 25;
pub const kCFStringEncodingMacTibetan: _bindgen_ty_61 = 26;
pub const kCFStringEncodingMacMongolian: _bindgen_ty_61 = 27;
pub const kCFStringEncodingMacEthiopic: _bindgen_ty_61 = 28;
pub const kCFStringEncodingMacCentralEurRoman: _bindgen_ty_61 = 29;
pub const kCFStringEncodingMacVietnamese: _bindgen_ty_61 = 30;
pub const kCFStringEncodingMacExtArabic: _bindgen_ty_61 = 31;
pub const kCFStringEncodingMacSymbol: _bindgen_ty_61 = 33;
pub const kCFStringEncodingMacDingbats: _bindgen_ty_61 = 34;
pub const kCFStringEncodingMacTurkish: _bindgen_ty_61 = 35;
pub const kCFStringEncodingMacCroatian: _bindgen_ty_61 = 36;
pub const kCFStringEncodingMacIcelandic: _bindgen_ty_61 = 37;
pub const kCFStringEncodingMacRomanian: _bindgen_ty_61 = 38;
pub const kCFStringEncodingMacCeltic: _bindgen_ty_61 = 39;
pub const kCFStringEncodingMacGaelic: _bindgen_ty_61 = 40;
pub const kCFStringEncodingMacFarsi: _bindgen_ty_61 = 140;
pub const kCFStringEncodingMacUkrainian: _bindgen_ty_61 = 152;
pub const kCFStringEncodingMacInuit: _bindgen_ty_61 = 236;
pub const kCFStringEncodingMacVT100: _bindgen_ty_61 = 252;
pub const kCFStringEncodingMacHFS: _bindgen_ty_61 = 255;
pub const kCFStringEncodingISOLatin2: _bindgen_ty_61 = 514;
pub const kCFStringEncodingISOLatin3: _bindgen_ty_61 = 515;
pub const kCFStringEncodingISOLatin4: _bindgen_ty_61 = 516;
pub const kCFStringEncodingISOLatinCyrillic: _bindgen_ty_61 = 517;
pub const kCFStringEncodingISOLatinArabic: _bindgen_ty_61 = 518;
pub const kCFStringEncodingISOLatinGreek: _bindgen_ty_61 = 519;
pub const kCFStringEncodingISOLatinHebrew: _bindgen_ty_61 = 520;
pub const kCFStringEncodingISOLatin5: _bindgen_ty_61 = 521;
pub const kCFStringEncodingISOLatin6: _bindgen_ty_61 = 522;
pub const kCFStringEncodingISOLatinThai: _bindgen_ty_61 = 523;
pub const kCFStringEncodingISOLatin7: _bindgen_ty_61 = 525;
pub const kCFStringEncodingISOLatin8: _bindgen_ty_61 = 526;
pub const kCFStringEncodingISOLatin9: _bindgen_ty_61 = 527;
pub const kCFStringEncodingISOLatin10: _bindgen_ty_61 = 528;
pub const kCFStringEncodingDOSLatinUS: _bindgen_ty_61 = 1024;
pub const kCFStringEncodingDOSGreek: _bindgen_ty_61 = 1029;
pub const kCFStringEncodingDOSBalticRim: _bindgen_ty_61 = 1030;
pub const kCFStringEncodingDOSLatin1: _bindgen_ty_61 = 1040;
pub const kCFStringEncodingDOSGreek1: _bindgen_ty_61 = 1041;
pub const kCFStringEncodingDOSLatin2: _bindgen_ty_61 = 1042;
pub const kCFStringEncodingDOSCyrillic: _bindgen_ty_61 = 1043;
pub const kCFStringEncodingDOSTurkish: _bindgen_ty_61 = 1044;
pub const kCFStringEncodingDOSPortuguese: _bindgen_ty_61 = 1045;
pub const kCFStringEncodingDOSIcelandic: _bindgen_ty_61 = 1046;
pub const kCFStringEncodingDOSHebrew: _bindgen_ty_61 = 1047;
pub const kCFStringEncodingDOSCanadianFrench: _bindgen_ty_61 = 1048;
pub const kCFStringEncodingDOSArabic: _bindgen_ty_61 = 1049;
pub const kCFStringEncodingDOSNordic: _bindgen_ty_61 = 1050;
pub const kCFStringEncodingDOSRussian: _bindgen_ty_61 = 1051;
pub const kCFStringEncodingDOSGreek2: _bindgen_ty_61 = 1052;
pub const kCFStringEncodingDOSThai: _bindgen_ty_61 = 1053;
pub const kCFStringEncodingDOSJapanese: _bindgen_ty_61 = 1056;
pub const kCFStringEncodingDOSChineseSimplif: _bindgen_ty_61 = 1057;
pub const kCFStringEncodingDOSKorean: _bindgen_ty_61 = 1058;
pub const kCFStringEncodingDOSChineseTrad: _bindgen_ty_61 = 1059;
pub const kCFStringEncodingWindowsLatin2: _bindgen_ty_61 = 1281;
pub const kCFStringEncodingWindowsCyrillic: _bindgen_ty_61 = 1282;
pub const kCFStringEncodingWindowsGreek: _bindgen_ty_61 = 1283;
pub const kCFStringEncodingWindowsLatin5: _bindgen_ty_61 = 1284;
pub const kCFStringEncodingWindowsHebrew: _bindgen_ty_61 = 1285;
pub const kCFStringEncodingWindowsArabic: _bindgen_ty_61 = 1286;
pub const kCFStringEncodingWindowsBalticRim: _bindgen_ty_61 = 1287;
pub const kCFStringEncodingWindowsVietnamese: _bindgen_ty_61 = 1288;
pub const kCFStringEncodingWindowsKoreanJohab: _bindgen_ty_61 = 1296;
pub const kCFStringEncodingANSEL: _bindgen_ty_61 = 1537;
pub const kCFStringEncodingJIS_X0201_76: _bindgen_ty_61 = 1568;
pub const kCFStringEncodingJIS_X0208_83: _bindgen_ty_61 = 1569;
pub const kCFStringEncodingJIS_X0208_90: _bindgen_ty_61 = 1570;
pub const kCFStringEncodingJIS_X0212_90: _bindgen_ty_61 = 1571;
pub const kCFStringEncodingJIS_C6226_78: _bindgen_ty_61 = 1572;
pub const kCFStringEncodingShiftJIS_X0213: _bindgen_ty_61 = 1576;
pub const kCFStringEncodingShiftJIS_X0213_MenKuTen: _bindgen_ty_61 = 1577;
pub const kCFStringEncodingGB_2312_80: _bindgen_ty_61 = 1584;
pub const kCFStringEncodingGBK_95: _bindgen_ty_61 = 1585;
pub const kCFStringEncodingGB_18030_2000: _bindgen_ty_61 = 1586;
pub const kCFStringEncodingKSC_5601_87: _bindgen_ty_61 = 1600;
pub const kCFStringEncodingKSC_5601_92_Johab: _bindgen_ty_61 = 1601;
pub const kCFStringEncodingCNS_11643_92_P1: _bindgen_ty_61 = 1617;
pub const kCFStringEncodingCNS_11643_92_P2: _bindgen_ty_61 = 1618;
pub const kCFStringEncodingCNS_11643_92_P3: _bindgen_ty_61 = 1619;
pub const kCFStringEncodingISO_2022_JP: _bindgen_ty_61 = 2080;
pub const kCFStringEncodingISO_2022_JP_2: _bindgen_ty_61 = 2081;
pub const kCFStringEncodingISO_2022_JP_1: _bindgen_ty_61 = 2082;
pub const kCFStringEncodingISO_2022_JP_3: _bindgen_ty_61 = 2083;
pub const kCFStringEncodingISO_2022_CN: _bindgen_ty_61 = 2096;
pub const kCFStringEncodingISO_2022_CN_EXT: _bindgen_ty_61 = 2097;
pub const kCFStringEncodingISO_2022_KR: _bindgen_ty_61 = 2112;
pub const kCFStringEncodingEUC_JP: _bindgen_ty_61 = 2336;
pub const kCFStringEncodingEUC_CN: _bindgen_ty_61 = 2352;
pub const kCFStringEncodingEUC_TW: _bindgen_ty_61 = 2353;
pub const kCFStringEncodingEUC_KR: _bindgen_ty_61 = 2368;
pub const kCFStringEncodingShiftJIS: _bindgen_ty_61 = 2561;
pub const kCFStringEncodingKOI8_R: _bindgen_ty_61 = 2562;
pub const kCFStringEncodingBig5: _bindgen_ty_61 = 2563;
pub const kCFStringEncodingMacRomanLatin1: _bindgen_ty_61 = 2564;
pub const kCFStringEncodingHZ_GB_2312: _bindgen_ty_61 = 2565;
pub const kCFStringEncodingBig5_HKSCS_1999: _bindgen_ty_61 = 2566;
pub const kCFStringEncodingVISCII: _bindgen_ty_61 = 2567;
pub const kCFStringEncodingKOI8_U: _bindgen_ty_61 = 2568;
pub const kCFStringEncodingBig5_E: _bindgen_ty_61 = 2569;
pub const kCFStringEncodingNextStepJapanese: _bindgen_ty_61 = 2818;
pub const kCFStringEncodingEBCDIC_US: _bindgen_ty_61 = 3073;
pub const kCFStringEncodingEBCDIC_CP037: _bindgen_ty_61 = 3074;
pub const kCFStringEncodingUTF7: _bindgen_ty_61 = 67109120;
pub const kCFStringEncodingUTF7_IMAP: _bindgen_ty_61 = 2576;
pub const kCFStringEncodingShiftJIS_X0213_00: _bindgen_ty_61 = 1576;
pub type _bindgen_ty_61 = ::std::os::raw::c_uint;
pub type CFTreeRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>;
pub type CFTreeReleaseCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>;
pub type CFTreeCopyDescriptionCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFTreeContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: CFTreeRetainCallBack,
pub release: CFTreeReleaseCallBack,
pub copyDescription: CFTreeCopyDescriptionCallBack,
}
impl Default for CFTreeContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFTreeApplierFunction = ::std::option::Option<
unsafe extern "C" fn(
value: *const ::std::os::raw::c_void,
context: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFTree {
_unused: [u8; 0],
}
pub type CFTreeRef = *mut __CFTree;
extern "C" {
pub fn CFTreeGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFTreeCreate(allocator: CFAllocatorRef, context: *const CFTreeContext) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeGetParent(tree: CFTreeRef) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeGetNextSibling(tree: CFTreeRef) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeGetFirstChild(tree: CFTreeRef) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeGetContext(tree: CFTreeRef, context: *mut CFTreeContext);
}
extern "C" {
pub fn CFTreeGetChildCount(tree: CFTreeRef) -> CFIndex;
}
extern "C" {
pub fn CFTreeGetChildAtIndex(tree: CFTreeRef, idx: CFIndex) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeGetChildren(tree: CFTreeRef, children: *mut CFTreeRef);
}
extern "C" {
pub fn CFTreeApplyFunctionToChildren(
tree: CFTreeRef,
applier: CFTreeApplierFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFTreeFindRoot(tree: CFTreeRef) -> CFTreeRef;
}
extern "C" {
pub fn CFTreeSetContext(tree: CFTreeRef, context: *const CFTreeContext);
}
extern "C" {
pub fn CFTreePrependChild(tree: CFTreeRef, newChild: CFTreeRef);
}
extern "C" {
pub fn CFTreeAppendChild(tree: CFTreeRef, newChild: CFTreeRef);
}
extern "C" {
pub fn CFTreeInsertSibling(tree: CFTreeRef, newSibling: CFTreeRef);
}
extern "C" {
pub fn CFTreeRemove(tree: CFTreeRef);
}
extern "C" {
pub fn CFTreeRemoveAllChildren(tree: CFTreeRef);
}
extern "C" {
pub fn CFTreeSortChildren(
tree: CFTreeRef,
comparator: CFComparatorFunction,
context: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFURLCreateDataAndPropertiesFromResource(
alloc: CFAllocatorRef,
url: CFURLRef,
resourceData: *mut CFDataRef,
properties: *mut CFDictionaryRef,
desiredProperties: CFArrayRef,
errorCode: *mut SInt32,
) -> Boolean;
}
extern "C" {
pub fn CFURLWriteDataAndPropertiesToResource(
url: CFURLRef,
dataToWrite: CFDataRef,
propertiesToWrite: CFDictionaryRef,
errorCode: *mut SInt32,
) -> Boolean;
}
extern "C" {
pub fn CFURLDestroyResource(url: CFURLRef, errorCode: *mut SInt32) -> Boolean;
}
extern "C" {
pub fn CFURLCreatePropertyFromResource(
alloc: CFAllocatorRef,
url: CFURLRef,
property: CFStringRef,
errorCode: *mut SInt32,
) -> CFTypeRef;
}
pub type CFURLError = CFIndex;
pub const kCFURLUnknownError: _bindgen_ty_62 = -10;
pub const kCFURLUnknownSchemeError: _bindgen_ty_62 = -11;
pub const kCFURLResourceNotFoundError: _bindgen_ty_62 = -12;
pub const kCFURLResourceAccessViolationError: _bindgen_ty_62 = -13;
pub const kCFURLRemoteHostUnavailableError: _bindgen_ty_62 = -14;
pub const kCFURLImproperArgumentsError: _bindgen_ty_62 = -15;
pub const kCFURLUnknownPropertyKeyError: _bindgen_ty_62 = -16;
pub const kCFURLPropertyKeyUnavailableError: _bindgen_ty_62 = -17;
pub const kCFURLTimeoutError: _bindgen_ty_62 = -18;
pub type _bindgen_ty_62 = ::std::os::raw::c_int;
extern "C" {
pub static kCFURLFileExists: CFStringRef;
}
extern "C" {
pub static kCFURLFileDirectoryContents: CFStringRef;
}
extern "C" {
pub static kCFURLFileLength: CFStringRef;
}
extern "C" {
pub static kCFURLFileLastModificationTime: CFStringRef;
}
extern "C" {
pub static kCFURLFilePOSIXMode: CFStringRef;
}
extern "C" {
pub static kCFURLFileOwnerID: CFStringRef;
}
extern "C" {
pub static kCFURLHTTPStatusCode: CFStringRef;
}
extern "C" {
pub static kCFURLHTTPStatusLine: CFStringRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFUUID {
_unused: [u8; 0],
}
pub type CFUUIDRef = *const __CFUUID;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFUUIDBytes {
pub byte0: UInt8,
pub byte1: UInt8,
pub byte2: UInt8,
pub byte3: UInt8,
pub byte4: UInt8,
pub byte5: UInt8,
pub byte6: UInt8,
pub byte7: UInt8,
pub byte8: UInt8,
pub byte9: UInt8,
pub byte10: UInt8,
pub byte11: UInt8,
pub byte12: UInt8,
pub byte13: UInt8,
pub byte14: UInt8,
pub byte15: UInt8,
}
extern "C" {
pub fn CFUUIDGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFUUIDCreate(alloc: CFAllocatorRef) -> CFUUIDRef;
}
extern "C" {
pub fn CFUUIDCreateWithBytes(
alloc: CFAllocatorRef,
byte0: UInt8,
byte1: UInt8,
byte2: UInt8,
byte3: UInt8,
byte4: UInt8,
byte5: UInt8,
byte6: UInt8,
byte7: UInt8,
byte8: UInt8,
byte9: UInt8,
byte10: UInt8,
byte11: UInt8,
byte12: UInt8,
byte13: UInt8,
byte14: UInt8,
byte15: UInt8,
) -> CFUUIDRef;
}
extern "C" {
pub fn CFUUIDCreateFromString(alloc: CFAllocatorRef, uuidStr: CFStringRef) -> CFUUIDRef;
}
extern "C" {
pub fn CFUUIDCreateString(alloc: CFAllocatorRef, uuid: CFUUIDRef) -> CFStringRef;
}
extern "C" {
pub fn CFUUIDGetConstantUUIDWithBytes(
alloc: CFAllocatorRef,
byte0: UInt8,
byte1: UInt8,
byte2: UInt8,
byte3: UInt8,
byte4: UInt8,
byte5: UInt8,
byte6: UInt8,
byte7: UInt8,
byte8: UInt8,
byte9: UInt8,
byte10: UInt8,
byte11: UInt8,
byte12: UInt8,
byte13: UInt8,
byte14: UInt8,
byte15: UInt8,
) -> CFUUIDRef;
}
extern "C" {
pub fn CFUUIDGetUUIDBytes(uuid: CFUUIDRef) -> CFUUIDBytes;
}
extern "C" {
pub fn CFUUIDCreateFromUUIDBytes(alloc: CFAllocatorRef, bytes: CFUUIDBytes) -> CFUUIDRef;
}
extern "C" {
pub fn CFCopyHomeDirectoryURL() -> CFURLRef;
}
pub type cpu_type_t = integer_t;
pub type cpu_subtype_t = integer_t;
pub type cpu_threadtype_t = integer_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFBundle {
_unused: [u8; 0],
}
pub type CFBundleRef = *mut __CFBundle;
pub type CFPlugInRef = *mut __CFBundle;
extern "C" {
pub static kCFBundleInfoDictionaryVersionKey: CFStringRef;
}
extern "C" {
pub static kCFBundleExecutableKey: CFStringRef;
}
extern "C" {
pub static kCFBundleIdentifierKey: CFStringRef;
}
extern "C" {
pub static kCFBundleVersionKey: CFStringRef;
}
extern "C" {
pub static kCFBundleDevelopmentRegionKey: CFStringRef;
}
extern "C" {
pub static kCFBundleNameKey: CFStringRef;
}
extern "C" {
pub static kCFBundleLocalizationsKey: CFStringRef;
}
extern "C" {
pub fn CFBundleGetMainBundle() -> CFBundleRef;
}
extern "C" {
pub fn CFBundleGetBundleWithIdentifier(bundleID: CFStringRef) -> CFBundleRef;
}
extern "C" {
pub fn CFBundleGetAllBundles() -> CFArrayRef;
}
extern "C" {
pub fn CFBundleGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFBundleCreate(allocator: CFAllocatorRef, bundleURL: CFURLRef) -> CFBundleRef;
}
extern "C" {
pub fn CFBundleCreateBundlesFromDirectory(
allocator: CFAllocatorRef,
directoryURL: CFURLRef,
bundleType: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyBundleURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleGetValueForInfoDictionaryKey(bundle: CFBundleRef, key: CFStringRef)
-> CFTypeRef;
}
extern "C" {
pub fn CFBundleGetInfoDictionary(bundle: CFBundleRef) -> CFDictionaryRef;
}
extern "C" {
pub fn CFBundleGetLocalInfoDictionary(bundle: CFBundleRef) -> CFDictionaryRef;
}
extern "C" {
pub fn CFBundleGetPackageInfo(
bundle: CFBundleRef,
packageType: *mut UInt32,
packageCreator: *mut UInt32,
);
}
extern "C" {
pub fn CFBundleGetIdentifier(bundle: CFBundleRef) -> CFStringRef;
}
extern "C" {
pub fn CFBundleGetVersionNumber(bundle: CFBundleRef) -> UInt32;
}
extern "C" {
pub fn CFBundleGetDevelopmentRegion(bundle: CFBundleRef) -> CFStringRef;
}
extern "C" {
pub fn CFBundleCopySupportFilesDirectoryURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyResourcesDirectoryURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyPrivateFrameworksURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopySharedFrameworksURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopySharedSupportURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyBuiltInPlugInsURL(bundle: CFBundleRef) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyInfoDictionaryInDirectory(bundleURL: CFURLRef) -> CFDictionaryRef;
}
extern "C" {
pub fn CFBundleGetPackageInfoInDirectory(
url: CFURLRef,
packageType: *mut UInt32,
packageCreator: *mut UInt32,
) -> Boolean;
}
extern "C" {
pub fn CFBundleCopyResourceURL(
bundle: CFBundleRef,
resourceName: CFStringRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyResourceURLsOfType(
bundle: CFBundleRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyLocalizedString(
bundle: CFBundleRef,
key: CFStringRef,
value: CFStringRef,
tableName: CFStringRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFBundleCopyResourceURLInDirectory(
bundleURL: CFURLRef,
resourceName: CFStringRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyResourceURLsOfTypeInDirectory(
bundleURL: CFURLRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyBundleLocalizations(bundle: CFBundleRef) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyPreferredLocalizationsFromArray(locArray: CFArrayRef) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyLocalizationsForPreferences(
locArray: CFArrayRef,
prefArray: CFArrayRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyResourceURLForLocalization(
bundle: CFBundleRef,
resourceName: CFStringRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
localizationName: CFStringRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFBundleCopyResourceURLsOfTypeForLocalization(
bundle: CFBundleRef,
resourceType: CFStringRef,
subDirName: CFStringRef,
localizationName: CFStringRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyInfoDictionaryForURL(url: CFURLRef) -> CFDictionaryRef;
}
extern "C" {
pub fn CFBundleCopyLocalizationsForURL(url: CFURLRef) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyExecutableArchitecturesForURL(url: CFURLRef) -> CFArrayRef;
}
extern "C" {
pub fn CFBundleCopyExecutableURL(bundle: CFBundleRef) -> CFURLRef;
}
pub const kCFBundleExecutableArchitectureI386: _bindgen_ty_63 = 7;
pub const kCFBundleExecutableArchitecturePPC: _bindgen_ty_63 = 18;
pub const kCFBundleExecutableArchitectureX86_64: _bindgen_ty_63 = 16777223;
pub const kCFBundleExecutableArchitecturePPC64: _bindgen_ty_63 = 16777234;
pub const kCFBundleExecutableArchitectureARM64: _bindgen_ty_63 = 16777228;
pub type _bindgen_ty_63 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFBundleCopyExecutableArchitectures(bundle: CFBundleRef) -> CFArrayRef;
}
extern "C" {
pub fn CFBundlePreflightExecutable(bundle: CFBundleRef, error: *mut CFErrorRef) -> Boolean;
}
extern "C" {
pub fn CFBundleLoadExecutableAndReturnError(
bundle: CFBundleRef,
error: *mut CFErrorRef,
) -> Boolean;
}
extern "C" {
pub fn CFBundleLoadExecutable(bundle: CFBundleRef) -> Boolean;
}
extern "C" {
pub fn CFBundleIsExecutableLoaded(bundle: CFBundleRef) -> Boolean;
}
extern "C" {
pub fn CFBundleUnloadExecutable(bundle: CFBundleRef);
}
extern "C" {
pub fn CFBundleGetFunctionPointerForName(
bundle: CFBundleRef,
functionName: CFStringRef,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFBundleGetFunctionPointersForNames(
bundle: CFBundleRef,
functionNames: CFArrayRef,
ftbl: *mut *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFBundleGetDataPointerForName(
bundle: CFBundleRef,
symbolName: CFStringRef,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFBundleGetDataPointersForNames(
bundle: CFBundleRef,
symbolNames: CFArrayRef,
stbl: *mut *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn CFBundleCopyAuxiliaryExecutableURL(
bundle: CFBundleRef,
executableName: CFStringRef,
) -> CFURLRef;
}
extern "C" {
pub fn CFBundleIsExecutableLoadable(bundle: CFBundleRef) -> Boolean;
}
extern "C" {
pub fn CFBundleIsExecutableLoadableForURL(url: CFURLRef) -> Boolean;
}
extern "C" {
pub fn CFBundleIsArchitectureLoadable(arch: cpu_type_t) -> Boolean;
}
extern "C" {
pub fn CFBundleGetPlugIn(bundle: CFBundleRef) -> CFPlugInRef;
}
pub type CFBundleRefNum = ::std::os::raw::c_int;
extern "C" {
pub fn CFBundleOpenBundleResourceMap(bundle: CFBundleRef) -> CFBundleRefNum;
}
extern "C" {
pub fn CFBundleOpenBundleResourceFiles(
bundle: CFBundleRef,
refNum: *mut CFBundleRefNum,
localizedRefNum: *mut CFBundleRefNum,
) -> SInt32;
}
extern "C" {
pub fn CFBundleCloseBundleResourceMap(bundle: CFBundleRef, refNum: CFBundleRefNum);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFMessagePort {
_unused: [u8; 0],
}
pub type CFMessagePortRef = *mut __CFMessagePort;
pub const kCFMessagePortSuccess: _bindgen_ty_64 = 0;
pub const kCFMessagePortSendTimeout: _bindgen_ty_64 = -1;
pub const kCFMessagePortReceiveTimeout: _bindgen_ty_64 = -2;
pub const kCFMessagePortIsInvalid: _bindgen_ty_64 = -3;
pub const kCFMessagePortTransportError: _bindgen_ty_64 = -4;
pub const kCFMessagePortBecameInvalidError: _bindgen_ty_64 = -5;
pub type _bindgen_ty_64 = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFMessagePortContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFMessagePortContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFMessagePortCallBack = ::std::option::Option<
unsafe extern "C" fn(
local: CFMessagePortRef,
msgid: SInt32,
data: CFDataRef,
info: *mut ::std::os::raw::c_void,
) -> CFDataRef,
>;
pub type CFMessagePortInvalidationCallBack = ::std::option::Option<
unsafe extern "C" fn(ms: CFMessagePortRef, info: *mut ::std::os::raw::c_void),
>;
extern "C" {
pub fn CFMessagePortGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFMessagePortCreateLocal(
allocator: CFAllocatorRef,
name: CFStringRef,
callout: CFMessagePortCallBack,
context: *mut CFMessagePortContext,
shouldFreeInfo: *mut Boolean,
) -> CFMessagePortRef;
}
extern "C" {
pub fn CFMessagePortCreateRemote(
allocator: CFAllocatorRef,
name: CFStringRef,
) -> CFMessagePortRef;
}
extern "C" {
pub fn CFMessagePortIsRemote(ms: CFMessagePortRef) -> Boolean;
}
extern "C" {
pub fn CFMessagePortGetName(ms: CFMessagePortRef) -> CFStringRef;
}
extern "C" {
pub fn CFMessagePortSetName(ms: CFMessagePortRef, newName: CFStringRef) -> Boolean;
}
extern "C" {
pub fn CFMessagePortGetContext(ms: CFMessagePortRef, context: *mut CFMessagePortContext);
}
extern "C" {
pub fn CFMessagePortInvalidate(ms: CFMessagePortRef);
}
extern "C" {
pub fn CFMessagePortIsValid(ms: CFMessagePortRef) -> Boolean;
}
extern "C" {
pub fn CFMessagePortGetInvalidationCallBack(
ms: CFMessagePortRef,
) -> CFMessagePortInvalidationCallBack;
}
extern "C" {
pub fn CFMessagePortSetInvalidationCallBack(
ms: CFMessagePortRef,
callout: CFMessagePortInvalidationCallBack,
);
}
extern "C" {
pub fn CFMessagePortSendRequest(
remote: CFMessagePortRef,
msgid: SInt32,
data: CFDataRef,
sendTimeout: CFTimeInterval,
rcvTimeout: CFTimeInterval,
replyMode: CFStringRef,
returnData: *mut CFDataRef,
) -> SInt32;
}
extern "C" {
pub fn CFMessagePortCreateRunLoopSource(
allocator: CFAllocatorRef,
local: CFMessagePortRef,
order: CFIndex,
) -> CFRunLoopSourceRef;
}
extern "C" {
pub fn CFMessagePortSetDispatchQueue(ms: CFMessagePortRef, queue: dispatch_queue_t);
}
extern "C" {
pub static kCFPlugInDynamicRegistrationKey: CFStringRef;
}
extern "C" {
pub static kCFPlugInDynamicRegisterFunctionKey: CFStringRef;
}
extern "C" {
pub static kCFPlugInUnloadFunctionKey: CFStringRef;
}
extern "C" {
pub static kCFPlugInFactoriesKey: CFStringRef;
}
extern "C" {
pub static kCFPlugInTypesKey: CFStringRef;
}
pub type CFPlugInDynamicRegisterFunction =
::std::option::Option<unsafe extern "C" fn(plugIn: CFPlugInRef)>;
pub type CFPlugInUnloadFunction = ::std::option::Option<unsafe extern "C" fn(plugIn: CFPlugInRef)>;
pub type CFPlugInFactoryFunction = ::std::option::Option<
unsafe extern "C" fn(
allocator: CFAllocatorRef,
typeUUID: CFUUIDRef,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn CFPlugInGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFPlugInCreate(allocator: CFAllocatorRef, plugInURL: CFURLRef) -> CFPlugInRef;
}
extern "C" {
pub fn CFPlugInGetBundle(plugIn: CFPlugInRef) -> CFBundleRef;
}
extern "C" {
pub fn CFPlugInSetLoadOnDemand(plugIn: CFPlugInRef, flag: Boolean);
}
extern "C" {
pub fn CFPlugInIsLoadOnDemand(plugIn: CFPlugInRef) -> Boolean;
}
extern "C" {
pub fn CFPlugInFindFactoriesForPlugInType(typeUUID: CFUUIDRef) -> CFArrayRef;
}
extern "C" {
pub fn CFPlugInFindFactoriesForPlugInTypeInPlugIn(
typeUUID: CFUUIDRef,
plugIn: CFPlugInRef,
) -> CFArrayRef;
}
extern "C" {
pub fn CFPlugInInstanceCreate(
allocator: CFAllocatorRef,
factoryUUID: CFUUIDRef,
typeUUID: CFUUIDRef,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFPlugInRegisterFactoryFunction(
factoryUUID: CFUUIDRef,
func: CFPlugInFactoryFunction,
) -> Boolean;
}
extern "C" {
pub fn CFPlugInRegisterFactoryFunctionByName(
factoryUUID: CFUUIDRef,
plugIn: CFPlugInRef,
functionName: CFStringRef,
) -> Boolean;
}
extern "C" {
pub fn CFPlugInUnregisterFactory(factoryUUID: CFUUIDRef) -> Boolean;
}
extern "C" {
pub fn CFPlugInRegisterPlugInType(factoryUUID: CFUUIDRef, typeUUID: CFUUIDRef) -> Boolean;
}
extern "C" {
pub fn CFPlugInUnregisterPlugInType(factoryUUID: CFUUIDRef, typeUUID: CFUUIDRef) -> Boolean;
}
extern "C" {
pub fn CFPlugInAddInstanceForFactory(factoryID: CFUUIDRef);
}
extern "C" {
pub fn CFPlugInRemoveInstanceForFactory(factoryID: CFUUIDRef);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFPlugInInstance {
_unused: [u8; 0],
}
pub type CFPlugInInstanceRef = *mut __CFPlugInInstance;
pub type CFPlugInInstanceGetInterfaceFunction = ::std::option::Option<
unsafe extern "C" fn(
instance: CFPlugInInstanceRef,
interfaceName: CFStringRef,
ftbl: *mut *mut ::std::os::raw::c_void,
) -> Boolean,
>;
pub type CFPlugInInstanceDeallocateInstanceDataFunction =
::std::option::Option<unsafe extern "C" fn(instanceData: *mut ::std::os::raw::c_void)>;
extern "C" {
pub fn CFPlugInInstanceGetInterfaceFunctionTable(
instance: CFPlugInInstanceRef,
interfaceName: CFStringRef,
ftbl: *mut *mut ::std::os::raw::c_void,
) -> Boolean;
}
extern "C" {
pub fn CFPlugInInstanceGetFactoryName(instance: CFPlugInInstanceRef) -> CFStringRef;
}
extern "C" {
pub fn CFPlugInInstanceGetInstanceData(
instance: CFPlugInInstanceRef,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFPlugInInstanceGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFPlugInInstanceCreateWithInstanceDataSize(
allocator: CFAllocatorRef,
instanceDataSize: CFIndex,
deallocateInstanceFunction: CFPlugInInstanceDeallocateInstanceDataFunction,
factoryName: CFStringRef,
getInterfaceFunction: CFPlugInInstanceGetInterfaceFunction,
) -> CFPlugInInstanceRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFMachPort {
_unused: [u8; 0],
}
pub type CFMachPortRef = *mut __CFMachPort;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFMachPortContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFMachPortContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFMachPortCallBack = ::std::option::Option<
unsafe extern "C" fn(
port: CFMachPortRef,
msg: *mut ::std::os::raw::c_void,
size: CFIndex,
info: *mut ::std::os::raw::c_void,
),
>;
pub type CFMachPortInvalidationCallBack = ::std::option::Option<
unsafe extern "C" fn(port: CFMachPortRef, info: *mut ::std::os::raw::c_void),
>;
extern "C" {
pub fn CFMachPortGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFMachPortCreate(
allocator: CFAllocatorRef,
callout: CFMachPortCallBack,
context: *mut CFMachPortContext,
shouldFreeInfo: *mut Boolean,
) -> CFMachPortRef;
}
extern "C" {
pub fn CFMachPortCreateWithPort(
allocator: CFAllocatorRef,
portNum: mach_port_t,
callout: CFMachPortCallBack,
context: *mut CFMachPortContext,
shouldFreeInfo: *mut Boolean,
) -> CFMachPortRef;
}
extern "C" {
pub fn CFMachPortGetPort(port: CFMachPortRef) -> mach_port_t;
}
extern "C" {
pub fn CFMachPortGetContext(port: CFMachPortRef, context: *mut CFMachPortContext);
}
extern "C" {
pub fn CFMachPortInvalidate(port: CFMachPortRef);
}
extern "C" {
pub fn CFMachPortIsValid(port: CFMachPortRef) -> Boolean;
}
extern "C" {
pub fn CFMachPortGetInvalidationCallBack(port: CFMachPortRef)
-> CFMachPortInvalidationCallBack;
}
extern "C" {
pub fn CFMachPortSetInvalidationCallBack(
port: CFMachPortRef,
callout: CFMachPortInvalidationCallBack,
);
}
extern "C" {
pub fn CFMachPortCreateRunLoopSource(
allocator: CFAllocatorRef,
port: CFMachPortRef,
order: CFIndex,
) -> CFRunLoopSourceRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFAttributedString {
_unused: [u8; 0],
}
pub type CFAttributedStringRef = *const __CFAttributedString;
pub type CFMutableAttributedStringRef = *mut __CFAttributedString;
extern "C" {
pub fn CFAttributedStringGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFAttributedStringCreate(
alloc: CFAllocatorRef,
str_: CFStringRef,
attributes: CFDictionaryRef,
) -> CFAttributedStringRef;
}
extern "C" {
pub fn CFAttributedStringCreateWithSubstring(
alloc: CFAllocatorRef,
aStr: CFAttributedStringRef,
range: CFRange,
) -> CFAttributedStringRef;
}
extern "C" {
pub fn CFAttributedStringCreateCopy(
alloc: CFAllocatorRef,
aStr: CFAttributedStringRef,
) -> CFAttributedStringRef;
}
extern "C" {
pub fn CFAttributedStringGetString(aStr: CFAttributedStringRef) -> CFStringRef;
}
extern "C" {
pub fn CFAttributedStringGetLength(aStr: CFAttributedStringRef) -> CFIndex;
}
extern "C" {
pub fn CFAttributedStringGetAttributes(
aStr: CFAttributedStringRef,
loc: CFIndex,
effectiveRange: *mut CFRange,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFAttributedStringGetAttribute(
aStr: CFAttributedStringRef,
loc: CFIndex,
attrName: CFStringRef,
effectiveRange: *mut CFRange,
) -> CFTypeRef;
}
extern "C" {
pub fn CFAttributedStringGetAttributesAndLongestEffectiveRange(
aStr: CFAttributedStringRef,
loc: CFIndex,
inRange: CFRange,
longestEffectiveRange: *mut CFRange,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFAttributedStringGetAttributeAndLongestEffectiveRange(
aStr: CFAttributedStringRef,
loc: CFIndex,
attrName: CFStringRef,
inRange: CFRange,
longestEffectiveRange: *mut CFRange,
) -> CFTypeRef;
}
extern "C" {
pub fn CFAttributedStringCreateMutableCopy(
alloc: CFAllocatorRef,
maxLength: CFIndex,
aStr: CFAttributedStringRef,
) -> CFMutableAttributedStringRef;
}
extern "C" {
pub fn CFAttributedStringCreateMutable(
alloc: CFAllocatorRef,
maxLength: CFIndex,
) -> CFMutableAttributedStringRef;
}
extern "C" {
pub fn CFAttributedStringReplaceString(
aStr: CFMutableAttributedStringRef,
range: CFRange,
replacement: CFStringRef,
);
}
extern "C" {
pub fn CFAttributedStringGetMutableString(
aStr: CFMutableAttributedStringRef,
) -> CFMutableStringRef;
}
extern "C" {
pub fn CFAttributedStringSetAttributes(
aStr: CFMutableAttributedStringRef,
range: CFRange,
replacement: CFDictionaryRef,
clearOtherAttributes: Boolean,
);
}
extern "C" {
pub fn CFAttributedStringSetAttribute(
aStr: CFMutableAttributedStringRef,
range: CFRange,
attrName: CFStringRef,
value: CFTypeRef,
);
}
extern "C" {
pub fn CFAttributedStringRemoveAttribute(
aStr: CFMutableAttributedStringRef,
range: CFRange,
attrName: CFStringRef,
);
}
extern "C" {
pub fn CFAttributedStringReplaceAttributedString(
aStr: CFMutableAttributedStringRef,
range: CFRange,
replacement: CFAttributedStringRef,
);
}
extern "C" {
pub fn CFAttributedStringBeginEditing(aStr: CFMutableAttributedStringRef);
}
extern "C" {
pub fn CFAttributedStringEndEditing(aStr: CFMutableAttributedStringRef);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFURLEnumerator {
_unused: [u8; 0],
}
pub type CFURLEnumeratorRef = *const __CFURLEnumerator;
extern "C" {
pub fn CFURLEnumeratorGetTypeID() -> CFTypeID;
}
pub type CFURLEnumeratorOptions = CFOptionFlags;
pub const kCFURLEnumeratorDefaultBehavior: _bindgen_ty_65 = 0;
pub const kCFURLEnumeratorDescendRecursively: _bindgen_ty_65 = 1;
pub const kCFURLEnumeratorSkipInvisibles: _bindgen_ty_65 = 2;
pub const kCFURLEnumeratorGenerateFileReferenceURLs: _bindgen_ty_65 = 4;
pub const kCFURLEnumeratorSkipPackageContents: _bindgen_ty_65 = 8;
pub const kCFURLEnumeratorIncludeDirectoriesPreOrder: _bindgen_ty_65 = 16;
pub const kCFURLEnumeratorIncludeDirectoriesPostOrder: _bindgen_ty_65 = 32;
pub const kCFURLEnumeratorGenerateRelativePathURLs: _bindgen_ty_65 = 64;
pub type _bindgen_ty_65 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFURLEnumeratorCreateForDirectoryURL(
alloc: CFAllocatorRef,
directoryURL: CFURLRef,
option: CFURLEnumeratorOptions,
propertyKeys: CFArrayRef,
) -> CFURLEnumeratorRef;
}
extern "C" {
pub fn CFURLEnumeratorCreateForMountedVolumes(
alloc: CFAllocatorRef,
option: CFURLEnumeratorOptions,
propertyKeys: CFArrayRef,
) -> CFURLEnumeratorRef;
}
pub type CFURLEnumeratorResult = CFIndex;
pub const kCFURLEnumeratorSuccess: _bindgen_ty_66 = 1;
pub const kCFURLEnumeratorEnd: _bindgen_ty_66 = 2;
pub const kCFURLEnumeratorError: _bindgen_ty_66 = 3;
pub const kCFURLEnumeratorDirectoryPostOrderSuccess: _bindgen_ty_66 = 4;
pub type _bindgen_ty_66 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFURLEnumeratorGetNextURL(
enumerator: CFURLEnumeratorRef,
url: *mut CFURLRef,
error: *mut CFErrorRef,
) -> CFURLEnumeratorResult;
}
extern "C" {
pub fn CFURLEnumeratorSkipDescendents(enumerator: CFURLEnumeratorRef);
}
extern "C" {
pub fn CFURLEnumeratorGetDescendentLevel(enumerator: CFURLEnumeratorRef) -> CFIndex;
}
extern "C" {
pub fn CFURLEnumeratorGetSourceDidChange(enumerator: CFURLEnumeratorRef) -> Boolean;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union guid_t {
pub g_guid: [::std::os::raw::c_uchar; 16usize],
pub g_guid_asint: [::std::os::raw::c_uint; 4usize],
}
impl Default for guid_t {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C, packed)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ntsid_t {
pub sid_kind: u_int8_t,
pub sid_authcount: u_int8_t,
pub sid_authority: [u_int8_t; 6usize],
pub sid_authorities: [u_int32_t; 16usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kauth_identity_extlookup {
pub el_seqno: u_int32_t,
pub el_result: u_int32_t,
pub el_flags: u_int32_t,
pub el_info_pid: __darwin_pid_t,
pub el_extend: u_int64_t,
pub el_info_reserved_1: u_int32_t,
pub el_uid: uid_t,
pub el_uguid: guid_t,
pub el_uguid_valid: u_int32_t,
pub el_usid: ntsid_t,
pub el_usid_valid: u_int32_t,
pub el_gid: gid_t,
pub el_gguid: guid_t,
pub el_gguid_valid: u_int32_t,
pub el_gsid: ntsid_t,
pub el_gsid_valid: u_int32_t,
pub el_member_valid: u_int32_t,
pub el_sup_grp_cnt: u_int32_t,
pub el_sup_groups: [gid_t; 16usize],
}
impl Default for kauth_identity_extlookup {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct kauth_cache_sizes {
pub kcs_group_size: u_int32_t,
pub kcs_id_size: u_int32_t,
}
pub type kauth_ace_rights_t = u_int32_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kauth_ace {
pub ace_applicable: guid_t,
pub ace_flags: u_int32_t,
pub ace_rights: kauth_ace_rights_t,
}
impl Default for kauth_ace {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type kauth_ace_t = *mut kauth_ace;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kauth_acl {
pub acl_entrycount: u_int32_t,
pub acl_flags: u_int32_t,
pub acl_ace: [kauth_ace; 1usize],
}
impl Default for kauth_acl {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type kauth_acl_t = *mut kauth_acl;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kauth_filesec {
pub fsec_magic: u_int32_t,
pub fsec_owner: guid_t,
pub fsec_group: guid_t,
pub fsec_acl: kauth_acl,
}
impl Default for kauth_filesec {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type kauth_filesec_t = *mut kauth_filesec;
pub const acl_perm_t_ACL_READ_DATA: acl_perm_t = 2;
pub const acl_perm_t_ACL_LIST_DIRECTORY: acl_perm_t = 2;
pub const acl_perm_t_ACL_WRITE_DATA: acl_perm_t = 4;
pub const acl_perm_t_ACL_ADD_FILE: acl_perm_t = 4;
pub const acl_perm_t_ACL_EXECUTE: acl_perm_t = 8;
pub const acl_perm_t_ACL_SEARCH: acl_perm_t = 8;
pub const acl_perm_t_ACL_DELETE: acl_perm_t = 16;
pub const acl_perm_t_ACL_APPEND_DATA: acl_perm_t = 32;
pub const acl_perm_t_ACL_ADD_SUBDIRECTORY: acl_perm_t = 32;
pub const acl_perm_t_ACL_DELETE_CHILD: acl_perm_t = 64;
pub const acl_perm_t_ACL_READ_ATTRIBUTES: acl_perm_t = 128;
pub const acl_perm_t_ACL_WRITE_ATTRIBUTES: acl_perm_t = 256;
pub const acl_perm_t_ACL_READ_EXTATTRIBUTES: acl_perm_t = 512;
pub const acl_perm_t_ACL_WRITE_EXTATTRIBUTES: acl_perm_t = 1024;
pub const acl_perm_t_ACL_READ_SECURITY: acl_perm_t = 2048;
pub const acl_perm_t_ACL_WRITE_SECURITY: acl_perm_t = 4096;
pub const acl_perm_t_ACL_CHANGE_OWNER: acl_perm_t = 8192;
pub const acl_perm_t_ACL_SYNCHRONIZE: acl_perm_t = 1048576;
pub type acl_perm_t = ::std::os::raw::c_uint;
pub const acl_tag_t_ACL_UNDEFINED_TAG: acl_tag_t = 0;
pub const acl_tag_t_ACL_EXTENDED_ALLOW: acl_tag_t = 1;
pub const acl_tag_t_ACL_EXTENDED_DENY: acl_tag_t = 2;
pub type acl_tag_t = ::std::os::raw::c_uint;
pub const acl_type_t_ACL_TYPE_EXTENDED: acl_type_t = 256;
pub const acl_type_t_ACL_TYPE_ACCESS: acl_type_t = 0;
pub const acl_type_t_ACL_TYPE_DEFAULT: acl_type_t = 1;
pub const acl_type_t_ACL_TYPE_AFS: acl_type_t = 2;
pub const acl_type_t_ACL_TYPE_CODA: acl_type_t = 3;
pub const acl_type_t_ACL_TYPE_NTFS: acl_type_t = 4;
pub const acl_type_t_ACL_TYPE_NWFS: acl_type_t = 5;
pub type acl_type_t = ::std::os::raw::c_uint;
pub const acl_entry_id_t_ACL_FIRST_ENTRY: acl_entry_id_t = 0;
pub const acl_entry_id_t_ACL_NEXT_ENTRY: acl_entry_id_t = -1;
pub const acl_entry_id_t_ACL_LAST_ENTRY: acl_entry_id_t = -2;
pub type acl_entry_id_t = ::std::os::raw::c_int;
pub const acl_flag_t_ACL_FLAG_DEFER_INHERIT: acl_flag_t = 1;
pub const acl_flag_t_ACL_FLAG_NO_INHERIT: acl_flag_t = 131072;
pub const acl_flag_t_ACL_ENTRY_INHERITED: acl_flag_t = 16;
pub const acl_flag_t_ACL_ENTRY_FILE_INHERIT: acl_flag_t = 32;
pub const acl_flag_t_ACL_ENTRY_DIRECTORY_INHERIT: acl_flag_t = 64;
pub const acl_flag_t_ACL_ENTRY_LIMIT_INHERIT: acl_flag_t = 128;
pub const acl_flag_t_ACL_ENTRY_ONLY_INHERIT: acl_flag_t = 256;
pub type acl_flag_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _acl {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _acl_entry {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _acl_permset {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _acl_flagset {
_unused: [u8; 0],
}
pub type acl_t = *mut _acl;
pub type acl_entry_t = *mut _acl_entry;
pub type acl_permset_t = *mut _acl_permset;
pub type acl_flagset_t = *mut _acl_flagset;
pub type acl_permset_mask_t = u_int64_t;
extern "C" {
pub fn acl_dup(acl: acl_t) -> acl_t;
}
extern "C" {
pub fn acl_free(obj_p: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_init(count: ::std::os::raw::c_int) -> acl_t;
}
extern "C" {
pub fn acl_copy_entry(dest_d: acl_entry_t, src_d: acl_entry_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_create_entry(acl_p: *mut acl_t, entry_p: *mut acl_entry_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_create_entry_np(
acl_p: *mut acl_t,
entry_p: *mut acl_entry_t,
entry_index: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_delete_entry(acl: acl_t, entry_d: acl_entry_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_entry(
acl: acl_t,
entry_id: ::std::os::raw::c_int,
entry_p: *mut acl_entry_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_valid(acl: acl_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_valid_fd_np(
fd: ::std::os::raw::c_int,
type_: acl_type_t,
acl: acl_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_valid_file_np(
path: *const ::std::os::raw::c_char,
type_: acl_type_t,
acl: acl_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_valid_link_np(
path: *const ::std::os::raw::c_char,
type_: acl_type_t,
acl: acl_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_add_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_calc_mask(acl_p: *mut acl_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_clear_perms(permset_d: acl_permset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_delete_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_perm_np(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_permset(
entry_d: acl_entry_t,
permset_p: *mut acl_permset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_permset(entry_d: acl_entry_t, permset_d: acl_permset_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_maximal_permset_mask_np(mask_p: *mut acl_permset_mask_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_permset_mask_np(
entry_d: acl_entry_t,
mask_p: *mut acl_permset_mask_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_permset_mask_np(
entry_d: acl_entry_t,
mask: acl_permset_mask_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_add_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_clear_flags_np(flagset_d: acl_flagset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_delete_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_flagset_np(
obj_p: *mut ::std::os::raw::c_void,
flagset_p: *mut acl_flagset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_flagset_np(
obj_p: *mut ::std::os::raw::c_void,
flagset_d: acl_flagset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_qualifier(entry_d: acl_entry_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn acl_get_tag_type(
entry_d: acl_entry_t,
tag_type_p: *mut acl_tag_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_qualifier(
entry_d: acl_entry_t,
tag_qualifier_p: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_tag_type(entry_d: acl_entry_t, tag_type: acl_tag_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_delete_def_file(path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_get_fd(fd: ::std::os::raw::c_int) -> acl_t;
}
extern "C" {
pub fn acl_get_fd_np(fd: ::std::os::raw::c_int, type_: acl_type_t) -> acl_t;
}
extern "C" {
pub fn acl_get_file(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
}
extern "C" {
pub fn acl_get_link_np(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
}
extern "C" {
pub fn acl_set_fd(fd: ::std::os::raw::c_int, acl: acl_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_fd_np(
fd: ::std::os::raw::c_int,
acl: acl_t,
acl_type: acl_type_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_file(
path_p: *const ::std::os::raw::c_char,
type_: acl_type_t,
acl: acl_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_set_link_np(
path_p: *const ::std::os::raw::c_char,
type_: acl_type_t,
acl: acl_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acl_copy_ext(buf_p: *mut ::std::os::raw::c_void, acl: acl_t, size: isize) -> isize;
}
extern "C" {
pub fn acl_copy_ext_native(
buf_p: *mut ::std::os::raw::c_void,
acl: acl_t,
size: isize,
) -> isize;
}
extern "C" {
pub fn acl_copy_int(buf_p: *const ::std::os::raw::c_void) -> acl_t;
}
extern "C" {
pub fn acl_copy_int_native(buf_p: *const ::std::os::raw::c_void) -> acl_t;
}
extern "C" {
pub fn acl_from_text(buf_p: *const ::std::os::raw::c_char) -> acl_t;
}
extern "C" {
pub fn acl_size(acl: acl_t) -> isize;
}
extern "C" {
pub fn acl_to_text(acl: acl_t, len_p: *mut isize) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFFileSecurity {
_unused: [u8; 0],
}
pub type CFFileSecurityRef = *mut __CFFileSecurity;
extern "C" {
pub fn CFFileSecurityGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFFileSecurityCreate(allocator: CFAllocatorRef) -> CFFileSecurityRef;
}
extern "C" {
pub fn CFFileSecurityCreateCopy(
allocator: CFAllocatorRef,
fileSec: CFFileSecurityRef,
) -> CFFileSecurityRef;
}
extern "C" {
pub fn CFFileSecurityCopyOwnerUUID(
fileSec: CFFileSecurityRef,
ownerUUID: *mut CFUUIDRef,
) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetOwnerUUID(fileSec: CFFileSecurityRef, ownerUUID: CFUUIDRef) -> Boolean;
}
extern "C" {
pub fn CFFileSecurityCopyGroupUUID(
fileSec: CFFileSecurityRef,
groupUUID: *mut CFUUIDRef,
) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetGroupUUID(fileSec: CFFileSecurityRef, groupUUID: CFUUIDRef) -> Boolean;
}
extern "C" {
pub fn CFFileSecurityCopyAccessControlList(
fileSec: CFFileSecurityRef,
accessControlList: *mut acl_t,
) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetAccessControlList(
fileSec: CFFileSecurityRef,
accessControlList: acl_t,
) -> Boolean;
}
extern "C" {
pub fn CFFileSecurityGetOwner(fileSec: CFFileSecurityRef, owner: *mut uid_t) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetOwner(fileSec: CFFileSecurityRef, owner: uid_t) -> Boolean;
}
extern "C" {
pub fn CFFileSecurityGetGroup(fileSec: CFFileSecurityRef, group: *mut gid_t) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetGroup(fileSec: CFFileSecurityRef, group: gid_t) -> Boolean;
}
extern "C" {
pub fn CFFileSecurityGetMode(fileSec: CFFileSecurityRef, mode: *mut mode_t) -> Boolean;
}
extern "C" {
pub fn CFFileSecuritySetMode(fileSec: CFFileSecurityRef, mode: mode_t) -> Boolean;
}
pub type CFFileSecurityClearOptions = CFOptionFlags;
pub const kCFFileSecurityClearOwner: _bindgen_ty_67 = 1;
pub const kCFFileSecurityClearGroup: _bindgen_ty_67 = 2;
pub const kCFFileSecurityClearMode: _bindgen_ty_67 = 4;
pub const kCFFileSecurityClearOwnerUUID: _bindgen_ty_67 = 8;
pub const kCFFileSecurityClearGroupUUID: _bindgen_ty_67 = 16;
pub const kCFFileSecurityClearAccessControlList: _bindgen_ty_67 = 32;
pub type _bindgen_ty_67 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFFileSecurityClearProperties(
fileSec: CFFileSecurityRef,
clearPropertyMask: CFFileSecurityClearOptions,
) -> Boolean;
}
extern "C" {
pub fn CFStringTokenizerCopyBestStringLanguage(
string: CFStringRef,
range: CFRange,
) -> CFStringRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFStringTokenizer {
_unused: [u8; 0],
}
pub type CFStringTokenizerRef = *mut __CFStringTokenizer;
pub const kCFStringTokenizerUnitWord: _bindgen_ty_68 = 0;
pub const kCFStringTokenizerUnitSentence: _bindgen_ty_68 = 1;
pub const kCFStringTokenizerUnitParagraph: _bindgen_ty_68 = 2;
pub const kCFStringTokenizerUnitLineBreak: _bindgen_ty_68 = 3;
pub const kCFStringTokenizerUnitWordBoundary: _bindgen_ty_68 = 4;
pub const kCFStringTokenizerAttributeLatinTranscription: _bindgen_ty_68 = 65536;
pub const kCFStringTokenizerAttributeLanguage: _bindgen_ty_68 = 131072;
pub type _bindgen_ty_68 = ::std::os::raw::c_uint;
pub type CFStringTokenizerTokenType = CFOptionFlags;
pub const kCFStringTokenizerTokenNone: _bindgen_ty_69 = 0;
pub const kCFStringTokenizerTokenNormal: _bindgen_ty_69 = 1;
pub const kCFStringTokenizerTokenHasSubTokensMask: _bindgen_ty_69 = 2;
pub const kCFStringTokenizerTokenHasDerivedSubTokensMask: _bindgen_ty_69 = 4;
pub const kCFStringTokenizerTokenHasHasNumbersMask: _bindgen_ty_69 = 8;
pub const kCFStringTokenizerTokenHasNonLettersMask: _bindgen_ty_69 = 16;
pub const kCFStringTokenizerTokenIsCJWordMask: _bindgen_ty_69 = 32;
pub type _bindgen_ty_69 = ::std::os::raw::c_uint;
extern "C" {
pub fn CFStringTokenizerGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFStringTokenizerCreate(
alloc: CFAllocatorRef,
string: CFStringRef,
range: CFRange,
options: CFOptionFlags,
locale: CFLocaleRef,
) -> CFStringTokenizerRef;
}
extern "C" {
pub fn CFStringTokenizerSetString(
tokenizer: CFStringTokenizerRef,
string: CFStringRef,
range: CFRange,
);
}
extern "C" {
pub fn CFStringTokenizerGoToTokenAtIndex(
tokenizer: CFStringTokenizerRef,
index: CFIndex,
) -> CFStringTokenizerTokenType;
}
extern "C" {
pub fn CFStringTokenizerAdvanceToNextToken(
tokenizer: CFStringTokenizerRef,
) -> CFStringTokenizerTokenType;
}
extern "C" {
pub fn CFStringTokenizerGetCurrentTokenRange(tokenizer: CFStringTokenizerRef) -> CFRange;
}
extern "C" {
pub fn CFStringTokenizerCopyCurrentTokenAttribute(
tokenizer: CFStringTokenizerRef,
attribute: CFOptionFlags,
) -> CFTypeRef;
}
extern "C" {
pub fn CFStringTokenizerGetCurrentSubTokens(
tokenizer: CFStringTokenizerRef,
ranges: *mut CFRange,
maxRangeLength: CFIndex,
derivedSubTokens: CFMutableArrayRef,
) -> CFIndex;
}
pub type CFFileDescriptorNativeDescriptor = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFFileDescriptor {
_unused: [u8; 0],
}
pub type CFFileDescriptorRef = *mut __CFFileDescriptor;
pub const kCFFileDescriptorReadCallBack: _bindgen_ty_70 = 1;
pub const kCFFileDescriptorWriteCallBack: _bindgen_ty_70 = 2;
pub type _bindgen_ty_70 = ::std::os::raw::c_uint;
pub type CFFileDescriptorCallBack = ::std::option::Option<
unsafe extern "C" fn(
f: CFFileDescriptorRef,
callBackTypes: CFOptionFlags,
info: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFFileDescriptorContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: ::std::option::Option<
unsafe extern "C" fn(info: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
pub release: ::std::option::Option<unsafe extern "C" fn(info: *mut ::std::os::raw::c_void)>,
pub copyDescription: ::std::option::Option<
unsafe extern "C" fn(info: *mut ::std::os::raw::c_void) -> CFStringRef,
>,
}
impl Default for CFFileDescriptorContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn CFFileDescriptorGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFFileDescriptorCreate(
allocator: CFAllocatorRef,
fd: CFFileDescriptorNativeDescriptor,
closeOnInvalidate: Boolean,
callout: CFFileDescriptorCallBack,
context: *const CFFileDescriptorContext,
) -> CFFileDescriptorRef;
}
extern "C" {
pub fn CFFileDescriptorGetNativeDescriptor(
f: CFFileDescriptorRef,
) -> CFFileDescriptorNativeDescriptor;
}
extern "C" {
pub fn CFFileDescriptorGetContext(
f: CFFileDescriptorRef,
context: *mut CFFileDescriptorContext,
);
}
extern "C" {
pub fn CFFileDescriptorEnableCallBacks(f: CFFileDescriptorRef, callBackTypes: CFOptionFlags);
}
extern "C" {
pub fn CFFileDescriptorDisableCallBacks(f: CFFileDescriptorRef, callBackTypes: CFOptionFlags);
}
extern "C" {
pub fn CFFileDescriptorInvalidate(f: CFFileDescriptorRef);
}
extern "C" {
pub fn CFFileDescriptorIsValid(f: CFFileDescriptorRef) -> Boolean;
}
extern "C" {
pub fn CFFileDescriptorCreateRunLoopSource(
allocator: CFAllocatorRef,
f: CFFileDescriptorRef,
order: CFIndex,
) -> CFRunLoopSourceRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFUserNotification {
_unused: [u8; 0],
}
pub type CFUserNotificationRef = *mut __CFUserNotification;
pub type CFUserNotificationCallBack = ::std::option::Option<
unsafe extern "C" fn(userNotification: CFUserNotificationRef, responseFlags: CFOptionFlags),
>;
extern "C" {
pub fn CFUserNotificationGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFUserNotificationCreate(
allocator: CFAllocatorRef,
timeout: CFTimeInterval,
flags: CFOptionFlags,
error: *mut SInt32,
dictionary: CFDictionaryRef,
) -> CFUserNotificationRef;
}
extern "C" {
pub fn CFUserNotificationReceiveResponse(
userNotification: CFUserNotificationRef,
timeout: CFTimeInterval,
responseFlags: *mut CFOptionFlags,
) -> SInt32;
}
extern "C" {
pub fn CFUserNotificationGetResponseValue(
userNotification: CFUserNotificationRef,
key: CFStringRef,
idx: CFIndex,
) -> CFStringRef;
}
extern "C" {
pub fn CFUserNotificationGetResponseDictionary(
userNotification: CFUserNotificationRef,
) -> CFDictionaryRef;
}
extern "C" {
pub fn CFUserNotificationUpdate(
userNotification: CFUserNotificationRef,
timeout: CFTimeInterval,
flags: CFOptionFlags,
dictionary: CFDictionaryRef,
) -> SInt32;
}
extern "C" {
pub fn CFUserNotificationCancel(userNotification: CFUserNotificationRef) -> SInt32;
}
extern "C" {
pub fn CFUserNotificationCreateRunLoopSource(
allocator: CFAllocatorRef,
userNotification: CFUserNotificationRef,
callout: CFUserNotificationCallBack,
order: CFIndex,
) -> CFRunLoopSourceRef;
}
extern "C" {
pub fn CFUserNotificationDisplayNotice(
timeout: CFTimeInterval,
flags: CFOptionFlags,
iconURL: CFURLRef,
soundURL: CFURLRef,
localizationURL: CFURLRef,
alertHeader: CFStringRef,
alertMessage: CFStringRef,
defaultButtonTitle: CFStringRef,
) -> SInt32;
}
extern "C" {
pub fn CFUserNotificationDisplayAlert(
timeout: CFTimeInterval,
flags: CFOptionFlags,
iconURL: CFURLRef,
soundURL: CFURLRef,
localizationURL: CFURLRef,
alertHeader: CFStringRef,
alertMessage: CFStringRef,
defaultButtonTitle: CFStringRef,
alternateButtonTitle: CFStringRef,
otherButtonTitle: CFStringRef,
responseFlags: *mut CFOptionFlags,
) -> SInt32;
}
pub const kCFUserNotificationStopAlertLevel: _bindgen_ty_71 = 0;
pub const kCFUserNotificationNoteAlertLevel: _bindgen_ty_71 = 1;
pub const kCFUserNotificationCautionAlertLevel: _bindgen_ty_71 = 2;
pub const kCFUserNotificationPlainAlertLevel: _bindgen_ty_71 = 3;
pub type _bindgen_ty_71 = ::std::os::raw::c_uint;
pub const kCFUserNotificationDefaultResponse: _bindgen_ty_72 = 0;
pub const kCFUserNotificationAlternateResponse: _bindgen_ty_72 = 1;
pub const kCFUserNotificationOtherResponse: _bindgen_ty_72 = 2;
pub const kCFUserNotificationCancelResponse: _bindgen_ty_72 = 3;
pub type _bindgen_ty_72 = ::std::os::raw::c_uint;
pub const kCFUserNotificationNoDefaultButtonFlag: _bindgen_ty_73 = 32;
pub const kCFUserNotificationUseRadioButtonsFlag: _bindgen_ty_73 = 64;
pub type _bindgen_ty_73 = ::std::os::raw::c_uint;
extern "C" {
pub static kCFUserNotificationIconURLKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationSoundURLKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationLocalizationURLKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationAlertHeaderKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationAlertMessageKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationDefaultButtonTitleKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationAlternateButtonTitleKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationOtherButtonTitleKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationProgressIndicatorValueKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationPopUpTitlesKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationTextFieldTitlesKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationCheckBoxTitlesKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationTextFieldValuesKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationPopUpSelectionKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationAlertTopMostKey: CFStringRef;
}
extern "C" {
pub static kCFUserNotificationKeyboardTypesKey: CFStringRef;
}
pub const kCFXMLNodeCurrentVersion: _bindgen_ty_74 = 1;
pub type _bindgen_ty_74 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFXMLNode {
_unused: [u8; 0],
}
pub type CFXMLNodeRef = *const __CFXMLNode;
pub type CFXMLTreeRef = CFTreeRef;
pub type CFXMLNodeTypeCode = CFIndex;
pub const kCFXMLNodeTypeDocument: _bindgen_ty_75 = 1;
pub const kCFXMLNodeTypeElement: _bindgen_ty_75 = 2;
pub const kCFXMLNodeTypeAttribute: _bindgen_ty_75 = 3;
pub const kCFXMLNodeTypeProcessingInstruction: _bindgen_ty_75 = 4;
pub const kCFXMLNodeTypeComment: _bindgen_ty_75 = 5;
pub const kCFXMLNodeTypeText: _bindgen_ty_75 = 6;
pub const kCFXMLNodeTypeCDATASection: _bindgen_ty_75 = 7;
pub const kCFXMLNodeTypeDocumentFragment: _bindgen_ty_75 = 8;
pub const kCFXMLNodeTypeEntity: _bindgen_ty_75 = 9;
pub const kCFXMLNodeTypeEntityReference: _bindgen_ty_75 = 10;
pub const kCFXMLNodeTypeDocumentType: _bindgen_ty_75 = 11;
pub const kCFXMLNodeTypeWhitespace: _bindgen_ty_75 = 12;
pub const kCFXMLNodeTypeNotation: _bindgen_ty_75 = 13;
pub const kCFXMLNodeTypeElementTypeDeclaration: _bindgen_ty_75 = 14;
pub const kCFXMLNodeTypeAttributeListDeclaration: _bindgen_ty_75 = 15;
pub type _bindgen_ty_75 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLElementInfo {
pub attributes: CFDictionaryRef,
pub attributeOrder: CFArrayRef,
pub isEmpty: Boolean,
pub _reserved: [::std::os::raw::c_char; 3usize],
}
impl Default for CFXMLElementInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLProcessingInstructionInfo {
pub dataString: CFStringRef,
}
impl Default for CFXMLProcessingInstructionInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLDocumentInfo {
pub sourceURL: CFURLRef,
pub encoding: CFStringEncoding,
}
impl Default for CFXMLDocumentInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLExternalID {
pub systemID: CFURLRef,
pub publicID: CFStringRef,
}
impl Default for CFXMLExternalID {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLDocumentTypeInfo {
pub externalID: CFXMLExternalID,
}
impl Default for CFXMLDocumentTypeInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLNotationInfo {
pub externalID: CFXMLExternalID,
}
impl Default for CFXMLNotationInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLElementTypeDeclarationInfo {
pub contentDescription: CFStringRef,
}
impl Default for CFXMLElementTypeDeclarationInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLAttributeDeclarationInfo {
pub attributeName: CFStringRef,
pub typeString: CFStringRef,
pub defaultString: CFStringRef,
}
impl Default for CFXMLAttributeDeclarationInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLAttributeListDeclarationInfo {
pub numberOfAttributes: CFIndex,
pub attributes: *mut CFXMLAttributeDeclarationInfo,
}
impl Default for CFXMLAttributeListDeclarationInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type CFXMLEntityTypeCode = CFIndex;
pub const kCFXMLEntityTypeParameter: _bindgen_ty_76 = 0;
pub const kCFXMLEntityTypeParsedInternal: _bindgen_ty_76 = 1;
pub const kCFXMLEntityTypeParsedExternal: _bindgen_ty_76 = 2;
pub const kCFXMLEntityTypeUnparsed: _bindgen_ty_76 = 3;
pub const kCFXMLEntityTypeCharacter: _bindgen_ty_76 = 4;
pub type _bindgen_ty_76 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLEntityInfo {
pub entityType: CFXMLEntityTypeCode,
pub replacementText: CFStringRef,
pub entityID: CFXMLExternalID,
pub notationName: CFStringRef,
}
impl Default for CFXMLEntityInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFXMLEntityReferenceInfo {
pub entityType: CFXMLEntityTypeCode,
}
extern "C" {
pub fn CFXMLNodeGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFXMLNodeCreate(
alloc: CFAllocatorRef,
xmlType: CFXMLNodeTypeCode,
dataString: CFStringRef,
additionalInfoPtr: *const ::std::os::raw::c_void,
version: CFIndex,
) -> CFXMLNodeRef;
}
extern "C" {
pub fn CFXMLNodeCreateCopy(alloc: CFAllocatorRef, origNode: CFXMLNodeRef) -> CFXMLNodeRef;
}
extern "C" {
pub fn CFXMLNodeGetTypeCode(node: CFXMLNodeRef) -> CFXMLNodeTypeCode;
}
extern "C" {
pub fn CFXMLNodeGetString(node: CFXMLNodeRef) -> CFStringRef;
}
extern "C" {
pub fn CFXMLNodeGetInfoPtr(node: CFXMLNodeRef) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn CFXMLNodeGetVersion(node: CFXMLNodeRef) -> CFIndex;
}
extern "C" {
pub fn CFXMLTreeCreateWithNode(allocator: CFAllocatorRef, node: CFXMLNodeRef) -> CFXMLTreeRef;
}
extern "C" {
pub fn CFXMLTreeGetNode(xmlTree: CFXMLTreeRef) -> CFXMLNodeRef;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __CFXMLParser {
_unused: [u8; 0],
}
pub type CFXMLParserRef = *mut __CFXMLParser;
pub type CFXMLParserOptions = CFOptionFlags;
pub const kCFXMLParserValidateDocument: _bindgen_ty_77 = 1;
pub const kCFXMLParserSkipMetaData: _bindgen_ty_77 = 2;
pub const kCFXMLParserReplacePhysicalEntities: _bindgen_ty_77 = 4;
pub const kCFXMLParserSkipWhitespace: _bindgen_ty_77 = 8;
pub const kCFXMLParserResolveExternalEntities: _bindgen_ty_77 = 16;
pub const kCFXMLParserAddImpliedAttributes: _bindgen_ty_77 = 32;
pub const kCFXMLParserAllOptions: _bindgen_ty_77 = 16777215;
pub const kCFXMLParserNoOptions: _bindgen_ty_77 = 0;
pub type _bindgen_ty_77 = ::std::os::raw::c_uint;
pub type CFXMLParserStatusCode = CFIndex;
pub const kCFXMLStatusParseNotBegun: _bindgen_ty_78 = -2;
pub const kCFXMLStatusParseInProgress: _bindgen_ty_78 = -1;
pub const kCFXMLStatusParseSuccessful: _bindgen_ty_78 = 0;
pub const kCFXMLErrorUnexpectedEOF: _bindgen_ty_78 = 1;
pub const kCFXMLErrorUnknownEncoding: _bindgen_ty_78 = 2;
pub const kCFXMLErrorEncodingConversionFailure: _bindgen_ty_78 = 3;
pub const kCFXMLErrorMalformedProcessingInstruction: _bindgen_ty_78 = 4;
pub const kCFXMLErrorMalformedDTD: _bindgen_ty_78 = 5;
pub const kCFXMLErrorMalformedName: _bindgen_ty_78 = 6;
pub const kCFXMLErrorMalformedCDSect: _bindgen_ty_78 = 7;
pub const kCFXMLErrorMalformedCloseTag: _bindgen_ty_78 = 8;
pub const kCFXMLErrorMalformedStartTag: _bindgen_ty_78 = 9;
pub const kCFXMLErrorMalformedDocument: _bindgen_ty_78 = 10;
pub const kCFXMLErrorElementlessDocument: _bindgen_ty_78 = 11;
pub const kCFXMLErrorMalformedComment: _bindgen_ty_78 = 12;
pub const kCFXMLErrorMalformedCharacterReference: _bindgen_ty_78 = 13;
pub const kCFXMLErrorMalformedParsedCharacterData: _bindgen_ty_78 = 14;
pub const kCFXMLErrorNoData: _bindgen_ty_78 = 15;
pub type _bindgen_ty_78 = ::std::os::raw::c_int;
pub type CFXMLParserCreateXMLStructureCallBack = ::std::option::Option<
unsafe extern "C" fn(
parser: CFXMLParserRef,
nodeDesc: CFXMLNodeRef,
info: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type CFXMLParserAddChildCallBack = ::std::option::Option<
unsafe extern "C" fn(
parser: CFXMLParserRef,
parent: *mut ::std::os::raw::c_void,
child: *mut ::std::os::raw::c_void,
info: *mut ::std::os::raw::c_void,
),
>;
pub type CFXMLParserEndXMLStructureCallBack = ::std::option::Option<
unsafe extern "C" fn(
parser: CFXMLParserRef,
xmlType: *mut ::std::os::raw::c_void,
info: *mut ::std::os::raw::c_void,
),
>;
pub type CFXMLParserResolveExternalEntityCallBack = ::std::option::Option<
unsafe extern "C" fn(
parser: CFXMLParserRef,
extID: *mut CFXMLExternalID,
info: *mut ::std::os::raw::c_void,
) -> CFDataRef,
>;
pub type CFXMLParserHandleErrorCallBack = ::std::option::Option<
unsafe extern "C" fn(
parser: CFXMLParserRef,
error: CFXMLParserStatusCode,
info: *mut ::std::os::raw::c_void,
) -> Boolean,
>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CFXMLParserCallBacks {
pub version: CFIndex,
pub createXMLStructure: CFXMLParserCreateXMLStructureCallBack,
pub addChild: CFXMLParserAddChildCallBack,
pub endXMLStructure: CFXMLParserEndXMLStructureCallBack,
pub resolveExternalEntity: CFXMLParserResolveExternalEntityCallBack,
pub handleError: CFXMLParserHandleErrorCallBack,
}
pub type CFXMLParserRetainCallBack = ::std::option::Option<
unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> *const ::std::os::raw::c_void,
>;
pub type CFXMLParserReleaseCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void)>;
pub type CFXMLParserCopyDescriptionCallBack =
::std::option::Option<unsafe extern "C" fn(info: *const ::std::os::raw::c_void) -> CFStringRef>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CFXMLParserContext {
pub version: CFIndex,
pub info: *mut ::std::os::raw::c_void,
pub retain: CFXMLParserRetainCallBack,
pub release: CFXMLParserReleaseCallBack,
pub copyDescription: CFXMLParserCopyDescriptionCallBack,
}
impl Default for CFXMLParserContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
extern "C" {
pub fn CFXMLParserGetTypeID() -> CFTypeID;
}
extern "C" {
pub fn CFXMLParserCreate(
allocator: CFAllocatorRef,
xmlData: CFDataRef,
dataSource: CFURLRef,
parseOptions: CFOptionFlags,
versionOfNodes: CFIndex,
callBacks: *mut CFXMLParserCallBacks,
context: *mut CFXMLParserContext,
) -> CFXMLParserRef;
}
extern "C" {
pub fn CFXMLParserCreateWithDataFromURL(
allocator: CFAllocatorRef,
dataSource: CFURLRef,
parseOptions: CFOptionFlags,
versionOfNodes: CFIndex,
callBacks: *mut CFXMLParserCallBacks,
context: *mut CFXMLParserContext,
) -> CFXMLParserRef;
}
extern "C" {
pub fn CFXMLParserGetContext(parser: CFXMLParserRef, context: *mut CFXMLParserContext);
}
extern "C" {
pub fn CFXMLParserGetCallBacks(parser: CFXMLParserRef, callBacks: *mut CFXMLParserCallBacks);
}
extern "C" {
pub fn CFXMLParserGetSourceURL(parser: CFXMLParserRef) -> CFURLRef;
}
extern "C" {
pub fn CFXMLParserGetLocation(parser: CFXMLParserRef) -> CFIndex;
}
extern "C" {
pub fn CFXMLParserGetLineNumber(parser: CFXMLParserRef) -> CFIndex;
}
extern "C" {
pub fn CFXMLParserGetDocument(parser: CFXMLParserRef) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn CFXMLParserGetStatusCode(parser: CFXMLParserRef) -> CFXMLParserStatusCode;
}
extern "C" {
pub fn CFXMLParserCopyErrorDescription(parser: CFXMLParserRef) -> CFStringRef;
}
extern "C" {
pub fn CFXMLParserAbort(
parser: CFXMLParserRef,
errorCode: CFXMLParserStatusCode,
errorDescription: CFStringRef,
);
}
extern "C" {
pub fn CFXMLParserParse(parser: CFXMLParserRef) -> Boolean;
}
extern "C" {
pub fn CFXMLTreeCreateFromData(
allocator: CFAllocatorRef,
xmlData: CFDataRef,
dataSource: CFURLRef,
parseOptions: CFOptionFlags,
versionOfNodes: CFIndex,
) -> CFXMLTreeRef;
}
extern "C" {
pub fn CFXMLTreeCreateFromDataWithError(
allocator: CFAllocatorRef,
xmlData: CFDataRef,
dataSource: CFURLRef,
parseOptions: CFOptionFlags,
versionOfNodes: CFIndex,
errorDict: *mut CFDictionaryRef,
) -> CFXMLTreeRef;
}
extern "C" {
pub fn CFXMLTreeCreateWithDataFromURL(
allocator: CFAllocatorRef,
dataSource: CFURLRef,
parseOptions: CFOptionFlags,
versionOfNodes: CFIndex,
) -> CFXMLTreeRef;
}
extern "C" {
pub fn CFXMLTreeCreateXMLData(allocator: CFAllocatorRef, xmlTree: CFXMLTreeRef) -> CFDataRef;
}
extern "C" {
pub fn CFXMLCreateStringByEscapingEntities(
allocator: CFAllocatorRef,
string: CFStringRef,
entitiesDictionary: CFDictionaryRef,
) -> CFStringRef;
}
extern "C" {
pub fn CFXMLCreateStringByUnescapingEntities(
allocator: CFAllocatorRef,
string: CFStringRef,
entitiesDictionary: CFDictionaryRef,
) -> CFStringRef;
}
extern "C" {
pub static kCFXMLTreeErrorDescription: CFStringRef;
}
extern "C" {
pub static kCFXMLTreeErrorLineNumber: CFStringRef;
}
extern "C" {
pub static kCFXMLTreeErrorLocation: CFStringRef;
}
extern "C" {
pub static kCFXMLTreeErrorStatusCode: CFStringRef;
}
pub type AudioComponentFlags = UInt32;
pub const kAudioComponentFlag_Unsearchable: _bindgen_ty_79 = 1;
pub const kAudioComponentFlag_SandboxSafe: _bindgen_ty_79 = 2;
pub const kAudioComponentFlag_IsV3AudioUnit: _bindgen_ty_79 = 4;
pub const kAudioComponentFlag_RequiresAsyncInstantiation: _bindgen_ty_79 = 8;
pub const kAudioComponentFlag_CanLoadInProcess: _bindgen_ty_79 = 16;
pub type _bindgen_ty_79 = ::std::os::raw::c_uint;
pub type AudioComponentInstantiationOptions = UInt32;
pub const kAudioComponentInstantiation_LoadOutOfProcess: _bindgen_ty_80 = 1;
pub const kAudioComponentInstantiation_LoadInProcess: _bindgen_ty_80 = 2;
pub const kAudioComponentInstantiation_LoadedRemotely: _bindgen_ty_80 = 2147483648;
pub type _bindgen_ty_80 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioComponentDescription {
pub componentType: OSType,
pub componentSubType: OSType,
pub componentManufacturer: OSType,
pub componentFlags: UInt32,
pub componentFlagsMask: UInt32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OpaqueAudioComponent {
_unused: [u8; 0],
}
pub type AudioComponent = *mut OpaqueAudioComponent;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ComponentInstanceRecord {
_unused: [u8; 0],
}
pub type AudioComponentInstance = *mut ComponentInstanceRecord;
pub type AudioComponentMethod = ::std::option::Option<
unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void, ...) -> OSStatus,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioComponentPlugInInterface {
pub Open: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
mInstance: AudioComponentInstance,
) -> OSStatus,
>,
pub Close:
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>,
pub Lookup:
::std::option::Option<unsafe extern "C" fn(selector: SInt16) -> AudioComponentMethod>,
pub reserved: *mut ::std::os::raw::c_void,
}
impl Default for AudioComponentPlugInInterface {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AudioComponentFactoryFunction = ::std::option::Option<
unsafe extern "C" fn(
inDesc: *const AudioComponentDescription,
) -> *mut AudioComponentPlugInInterface,
>;
extern "C" {
pub fn AudioComponentFindNext(
inComponent: AudioComponent,
inDesc: *const AudioComponentDescription,
) -> AudioComponent;
}
extern "C" {
pub fn AudioComponentCount(inDesc: *const AudioComponentDescription) -> UInt32;
}
extern "C" {
pub fn AudioComponentCopyName(
inComponent: AudioComponent,
outName: *mut CFStringRef,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentGetDescription(
inComponent: AudioComponent,
outDesc: *mut AudioComponentDescription,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentGetVersion(
inComponent: AudioComponent,
outVersion: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentInstanceNew(
inComponent: AudioComponent,
outInstance: *mut AudioComponentInstance,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentInstantiate(
inComponent: AudioComponent,
inOptions: AudioComponentInstantiationOptions,
inCompletionHandler: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn AudioComponentInstanceDispose(inInstance: AudioComponentInstance) -> OSStatus;
}
extern "C" {
pub fn AudioComponentInstanceGetComponent(inInstance: AudioComponentInstance)
-> AudioComponent;
}
extern "C" {
pub fn AudioComponentInstanceCanDo(
inInstance: AudioComponentInstance,
inSelectorID: SInt16,
) -> Boolean;
}
extern "C" {
pub fn AudioComponentRegister(
inDesc: *const AudioComponentDescription,
inName: CFStringRef,
inVersion: UInt32,
inFactory: AudioComponentFactoryFunction,
) -> AudioComponent;
}
extern "C" {
pub fn AudioComponentCopyConfigurationInfo(
inComponent: AudioComponent,
outConfigurationInfo: *mut CFDictionaryRef,
) -> OSStatus;
}
pub type AudioComponentValidationResult = UInt32;
pub const kAudioComponentValidationResult_Unknown: _bindgen_ty_81 = 0;
pub const kAudioComponentValidationResult_Passed: _bindgen_ty_81 = 1;
pub const kAudioComponentValidationResult_Failed: _bindgen_ty_81 = 2;
pub const kAudioComponentValidationResult_TimedOut: _bindgen_ty_81 = 3;
pub const kAudioComponentValidationResult_UnauthorizedError_Open: _bindgen_ty_81 = 4;
pub const kAudioComponentValidationResult_UnauthorizedError_Init: _bindgen_ty_81 = 5;
pub type _bindgen_ty_81 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioComponentValidate(
inComponent: AudioComponent,
inValidationParameters: CFDictionaryRef,
outValidationResult: *mut AudioComponentValidationResult,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentValidateWithResults(
inComponent: AudioComponent,
inValidationParameters: CFDictionaryRef,
inCompletionHandler: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
pub type AudioUnit = AudioComponentInstance;
pub const kAudioUnitType_Output: _bindgen_ty_82 = 1635086197;
pub const kAudioUnitType_MusicDevice: _bindgen_ty_82 = 1635085685;
pub const kAudioUnitType_MusicEffect: _bindgen_ty_82 = 1635085670;
pub const kAudioUnitType_FormatConverter: _bindgen_ty_82 = 1635083875;
pub const kAudioUnitType_Effect: _bindgen_ty_82 = 1635083896;
pub const kAudioUnitType_Mixer: _bindgen_ty_82 = 1635085688;
pub const kAudioUnitType_Panner: _bindgen_ty_82 = 1635086446;
pub const kAudioUnitType_Generator: _bindgen_ty_82 = 1635084142;
pub const kAudioUnitType_OfflineEffect: _bindgen_ty_82 = 1635086188;
pub const kAudioUnitType_MIDIProcessor: _bindgen_ty_82 = 1635085673;
pub const kAudioUnitType_SpeechSynthesizer: _bindgen_ty_82 = 1635087216;
pub type _bindgen_ty_82 = ::std::os::raw::c_uint;
pub const kAudioUnitType_RemoteEffect: _bindgen_ty_83 = 1635086968;
pub const kAudioUnitType_RemoteGenerator: _bindgen_ty_83 = 1635086951;
pub const kAudioUnitType_RemoteInstrument: _bindgen_ty_83 = 1635086953;
pub const kAudioUnitType_RemoteMusicEffect: _bindgen_ty_83 = 1635086957;
pub type _bindgen_ty_83 = ::std::os::raw::c_uint;
pub const kAudioUnitManufacturer_Apple: _bindgen_ty_84 = 1634758764;
pub type _bindgen_ty_84 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_GenericOutput: _bindgen_ty_85 = 1734700658;
pub const kAudioUnitSubType_VoiceProcessingIO: _bindgen_ty_85 = 1987078511;
pub type _bindgen_ty_85 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_HALOutput: _bindgen_ty_86 = 1634230636;
pub const kAudioUnitSubType_DefaultOutput: _bindgen_ty_86 = 1684366880;
pub const kAudioUnitSubType_SystemOutput: _bindgen_ty_86 = 1937339168;
pub type _bindgen_ty_86 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_DLSSynth: _bindgen_ty_87 = 1684828960;
pub const kAudioUnitSubType_Sampler: _bindgen_ty_87 = 1935764848;
pub const kAudioUnitSubType_MIDISynth: _bindgen_ty_87 = 1836284270;
pub type _bindgen_ty_87 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_AUConverter: _bindgen_ty_88 = 1668247158;
pub const kAudioUnitSubType_Varispeed: _bindgen_ty_88 = 1986097769;
pub const kAudioUnitSubType_DeferredRenderer: _bindgen_ty_88 = 1684366962;
pub const kAudioUnitSubType_Splitter: _bindgen_ty_88 = 1936747636;
pub const kAudioUnitSubType_MultiSplitter: _bindgen_ty_88 = 1836281964;
pub const kAudioUnitSubType_Merger: _bindgen_ty_88 = 1835364967;
pub const kAudioUnitSubType_NewTimePitch: _bindgen_ty_88 = 1853191280;
pub const kAudioUnitSubType_AUiPodTimeOther: _bindgen_ty_88 = 1768977519;
pub const kAudioUnitSubType_RoundTripAAC: _bindgen_ty_88 = 1918984547;
pub type _bindgen_ty_88 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_TimePitch: _bindgen_ty_89 = 1953329268;
pub type _bindgen_ty_89 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_PeakLimiter: _bindgen_ty_90 = 1819112562;
pub const kAudioUnitSubType_DynamicsProcessor: _bindgen_ty_90 = 1684237680;
pub const kAudioUnitSubType_LowPassFilter: _bindgen_ty_90 = 1819304307;
pub const kAudioUnitSubType_HighPassFilter: _bindgen_ty_90 = 1752195443;
pub const kAudioUnitSubType_BandPassFilter: _bindgen_ty_90 = 1651532147;
pub const kAudioUnitSubType_HighShelfFilter: _bindgen_ty_90 = 1752393830;
pub const kAudioUnitSubType_LowShelfFilter: _bindgen_ty_90 = 1819502694;
pub const kAudioUnitSubType_ParametricEQ: _bindgen_ty_90 = 1886217585;
pub const kAudioUnitSubType_Distortion: _bindgen_ty_90 = 1684632436;
pub const kAudioUnitSubType_Delay: _bindgen_ty_90 = 1684368505;
pub const kAudioUnitSubType_SampleDelay: _bindgen_ty_90 = 1935961209;
pub const kAudioUnitSubType_NBandEQ: _bindgen_ty_90 = 1851942257;
pub const kAudioUnitSubType_Reverb2: _bindgen_ty_90 = 1920361010;
pub const kAudioUnitSubType_AUSoundIsolation: _bindgen_ty_90 = 1987012979;
pub type _bindgen_ty_90 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_GraphicEQ: _bindgen_ty_91 = 1735550321;
pub const kAudioUnitSubType_MultiBandCompressor: _bindgen_ty_91 = 1835232624;
pub const kAudioUnitSubType_MatrixReverb: _bindgen_ty_91 = 1836213622;
pub const kAudioUnitSubType_Pitch: _bindgen_ty_91 = 1953329268;
pub const kAudioUnitSubType_AUFilter: _bindgen_ty_91 = 1718185076;
pub const kAudioUnitSubType_NetSend: _bindgen_ty_91 = 1853058660;
pub const kAudioUnitSubType_RogerBeep: _bindgen_ty_91 = 1919903602;
pub type _bindgen_ty_91 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_MultiChannelMixer: _bindgen_ty_92 = 1835232632;
pub const kAudioUnitSubType_MatrixMixer: _bindgen_ty_92 = 1836608888;
pub const kAudioUnitSubType_SpatialMixer: _bindgen_ty_92 = 862217581;
pub type _bindgen_ty_92 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_StereoMixer: _bindgen_ty_93 = 1936554098;
pub const kAudioUnitSubType_3DMixer: _bindgen_ty_93 = 862219640;
pub type _bindgen_ty_93 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_SphericalHeadPanner: _bindgen_ty_94 = 1936746610;
pub const kAudioUnitSubType_VectorPanner: _bindgen_ty_94 = 1986158963;
pub const kAudioUnitSubType_SoundFieldPanner: _bindgen_ty_94 = 1634558569;
pub const kAudioUnitSubType_HRTFPanner: _bindgen_ty_94 = 1752331366;
pub type _bindgen_ty_94 = ::std::os::raw::c_uint;
pub const kAudioUnitSubType_NetReceive: _bindgen_ty_95 = 1852990326;
pub const kAudioUnitSubType_ScheduledSoundPlayer: _bindgen_ty_95 = 1936945260;
pub const kAudioUnitSubType_AudioFilePlayer: _bindgen_ty_95 = 1634103404;
pub type _bindgen_ty_95 = ::std::os::raw::c_uint;
pub type AudioUnitRenderActionFlags = UInt32;
pub const kAudioUnitRenderAction_PreRender: _bindgen_ty_96 = 4;
pub const kAudioUnitRenderAction_PostRender: _bindgen_ty_96 = 8;
pub const kAudioUnitRenderAction_OutputIsSilence: _bindgen_ty_96 = 16;
pub const kAudioOfflineUnitRenderAction_Preflight: _bindgen_ty_96 = 32;
pub const kAudioOfflineUnitRenderAction_Render: _bindgen_ty_96 = 64;
pub const kAudioOfflineUnitRenderAction_Complete: _bindgen_ty_96 = 128;
pub const kAudioUnitRenderAction_PostRenderError: _bindgen_ty_96 = 256;
pub const kAudioUnitRenderAction_DoNotCheckRenderArgs: _bindgen_ty_96 = 512;
pub type _bindgen_ty_96 = ::std::os::raw::c_uint;
pub const kAudioUnitErr_InvalidProperty: _bindgen_ty_97 = -10879;
pub const kAudioUnitErr_InvalidParameter: _bindgen_ty_97 = -10878;
pub const kAudioUnitErr_InvalidElement: _bindgen_ty_97 = -10877;
pub const kAudioUnitErr_NoConnection: _bindgen_ty_97 = -10876;
pub const kAudioUnitErr_FailedInitialization: _bindgen_ty_97 = -10875;
pub const kAudioUnitErr_TooManyFramesToProcess: _bindgen_ty_97 = -10874;
pub const kAudioUnitErr_InvalidFile: _bindgen_ty_97 = -10871;
pub const kAudioUnitErr_UnknownFileType: _bindgen_ty_97 = -10870;
pub const kAudioUnitErr_FileNotSpecified: _bindgen_ty_97 = -10869;
pub const kAudioUnitErr_FormatNotSupported: _bindgen_ty_97 = -10868;
pub const kAudioUnitErr_Uninitialized: _bindgen_ty_97 = -10867;
pub const kAudioUnitErr_InvalidScope: _bindgen_ty_97 = -10866;
pub const kAudioUnitErr_PropertyNotWritable: _bindgen_ty_97 = -10865;
pub const kAudioUnitErr_CannotDoInCurrentContext: _bindgen_ty_97 = -10863;
pub const kAudioUnitErr_InvalidPropertyValue: _bindgen_ty_97 = -10851;
pub const kAudioUnitErr_PropertyNotInUse: _bindgen_ty_97 = -10850;
pub const kAudioUnitErr_Initialized: _bindgen_ty_97 = -10849;
pub const kAudioUnitErr_InvalidOfflineRender: _bindgen_ty_97 = -10848;
pub const kAudioUnitErr_Unauthorized: _bindgen_ty_97 = -10847;
pub const kAudioUnitErr_MIDIOutputBufferFull: _bindgen_ty_97 = -66753;
pub const kAudioComponentErr_InstanceTimedOut: _bindgen_ty_97 = -66754;
pub const kAudioComponentErr_InstanceInvalidated: _bindgen_ty_97 = -66749;
pub const kAudioUnitErr_RenderTimeout: _bindgen_ty_97 = -66745;
pub const kAudioUnitErr_ExtensionNotFound: _bindgen_ty_97 = -66744;
pub const kAudioUnitErr_InvalidParameterValue: _bindgen_ty_97 = -66743;
pub const kAudioUnitErr_InvalidFilePath: _bindgen_ty_97 = -66742;
pub const kAudioUnitErr_MissingKey: _bindgen_ty_97 = -66741;
pub const kAudioUnitErr_ComponentManagerNotSupported: _bindgen_ty_97 = -66740;
pub type _bindgen_ty_97 = ::std::os::raw::c_int;
pub const kAudioComponentErr_DuplicateDescription: _bindgen_ty_98 = -66752;
pub const kAudioComponentErr_UnsupportedType: _bindgen_ty_98 = -66751;
pub const kAudioComponentErr_TooManyInstances: _bindgen_ty_98 = -66750;
pub const kAudioComponentErr_NotPermitted: _bindgen_ty_98 = -66748;
pub const kAudioComponentErr_InitializationTimedOut: _bindgen_ty_98 = -66747;
pub const kAudioComponentErr_InvalidFormat: _bindgen_ty_98 = -66746;
pub type _bindgen_ty_98 = ::std::os::raw::c_int;
pub type AudioUnitPropertyID = UInt32;
pub type AudioUnitScope = UInt32;
pub type AudioUnitElement = UInt32;
pub type AudioUnitParameterID = UInt32;
pub type AudioUnitParameterValue = Float32;
pub type AUParameterEventType = UInt32;
pub const kParameterEvent_Immediate: _bindgen_ty_99 = 1;
pub const kParameterEvent_Ramped: _bindgen_ty_99 = 2;
pub type _bindgen_ty_99 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct AudioUnitParameterEvent {
pub scope: AudioUnitScope,
pub element: AudioUnitElement,
pub parameter: AudioUnitParameterID,
pub eventType: AUParameterEventType,
pub eventValues: AudioUnitParameterEvent__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union AudioUnitParameterEvent__bindgen_ty_1 {
pub ramp: AudioUnitParameterEvent__bindgen_ty_1__bindgen_ty_1,
pub immediate: AudioUnitParameterEvent__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitParameterEvent__bindgen_ty_1__bindgen_ty_1 {
pub startBufferOffset: SInt32,
pub durationInFrames: UInt32,
pub startValue: AudioUnitParameterValue,
pub endValue: AudioUnitParameterValue,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitParameterEvent__bindgen_ty_1__bindgen_ty_2 {
pub bufferOffset: UInt32,
pub value: AudioUnitParameterValue,
}
impl Default for AudioUnitParameterEvent__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
impl Default for AudioUnitParameterEvent {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameter {
pub mAudioUnit: AudioUnit,
pub mParameterID: AudioUnitParameterID,
pub mScope: AudioUnitScope,
pub mElement: AudioUnitElement,
}
impl Default for AudioUnitParameter {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitProperty {
pub mAudioUnit: AudioUnit,
pub mPropertyID: AudioUnitPropertyID,
pub mScope: AudioUnitScope,
pub mElement: AudioUnitElement,
}
impl Default for AudioUnitProperty {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AURenderCallback = ::std::option::Option<
unsafe extern "C" fn(
inRefCon: *mut ::std::os::raw::c_void,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inBusNumber: UInt32,
inNumberFrames: UInt32,
ioData: *mut AudioBufferList,
) -> OSStatus,
>;
pub type AudioUnitPropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
inRefCon: *mut ::std::os::raw::c_void,
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
),
>;
pub type AUInputSamplesInOutputCallback = ::std::option::Option<
unsafe extern "C" fn(
inRefCon: *mut ::std::os::raw::c_void,
inOutputTimeStamp: *const AudioTimeStamp,
inInputSample: Float64,
inNumberInputSamples: Float64,
),
>;
extern "C" {
pub static kAudioComponentRegistrationsChangedNotification: CFStringRef;
}
extern "C" {
pub static kAudioComponentInstanceInvalidationNotification: CFStringRef;
}
extern "C" {
pub fn AudioUnitInitialize(inUnit: AudioUnit) -> OSStatus;
}
extern "C" {
pub fn AudioUnitUninitialize(inUnit: AudioUnit) -> OSStatus;
}
extern "C" {
pub fn AudioUnitGetPropertyInfo(
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
outDataSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitGetProperty(
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
outData: *mut ::std::os::raw::c_void,
ioDataSize: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitSetProperty(
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
inData: *const ::std::os::raw::c_void,
inDataSize: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitAddPropertyListener(
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inProc: AudioUnitPropertyListenerProc,
inProcUserData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitRemovePropertyListenerWithUserData(
inUnit: AudioUnit,
inID: AudioUnitPropertyID,
inProc: AudioUnitPropertyListenerProc,
inProcUserData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitAddRenderNotify(
inUnit: AudioUnit,
inProc: AURenderCallback,
inProcUserData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitRemoveRenderNotify(
inUnit: AudioUnit,
inProc: AURenderCallback,
inProcUserData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitGetParameter(
inUnit: AudioUnit,
inID: AudioUnitParameterID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
outValue: *mut AudioUnitParameterValue,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitSetParameter(
inUnit: AudioUnit,
inID: AudioUnitParameterID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
inValue: AudioUnitParameterValue,
inBufferOffsetInFrames: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitScheduleParameters(
inUnit: AudioUnit,
inParameterEvent: *const AudioUnitParameterEvent,
inNumParamEvents: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitRender(
inUnit: AudioUnit,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inOutputBusNumber: UInt32,
inNumberFrames: UInt32,
ioData: *mut AudioBufferList,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitProcess(
inUnit: AudioUnit,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inNumberFrames: UInt32,
ioData: *mut AudioBufferList,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitProcessMultiple(
inUnit: AudioUnit,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inNumberFrames: UInt32,
inNumberInputBufferLists: UInt32,
inInputBufferLists: *mut *const AudioBufferList,
inNumberOutputBufferLists: UInt32,
ioOutputBufferLists: *mut *mut AudioBufferList,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitReset(
inUnit: AudioUnit,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
) -> OSStatus;
}
extern "C" {
pub fn AudioOutputUnitPublish(
inDesc: *const AudioComponentDescription,
inName: CFStringRef,
inVersion: UInt32,
inOutputUnit: AudioUnit,
) -> OSStatus;
}
extern "C" {
pub fn AudioComponentGetLastActiveTime(comp: AudioComponent) -> CFAbsoluteTime;
}
extern "C" {
pub fn AudioUnitExtensionSetComponentList(
extensionIdentifier: CFStringRef,
audioComponentInfo: CFArrayRef,
) -> OSStatus;
}
extern "C" {
pub fn AudioUnitExtensionCopyComponentList(extensionIdentifier: CFStringRef) -> CFArrayRef;
}
pub const kAudioUnitRange: _bindgen_ty_100 = 0;
pub const kAudioUnitInitializeSelect: _bindgen_ty_100 = 1;
pub const kAudioUnitUninitializeSelect: _bindgen_ty_100 = 2;
pub const kAudioUnitGetPropertyInfoSelect: _bindgen_ty_100 = 3;
pub const kAudioUnitGetPropertySelect: _bindgen_ty_100 = 4;
pub const kAudioUnitSetPropertySelect: _bindgen_ty_100 = 5;
pub const kAudioUnitAddPropertyListenerSelect: _bindgen_ty_100 = 10;
pub const kAudioUnitRemovePropertyListenerSelect: _bindgen_ty_100 = 11;
pub const kAudioUnitRemovePropertyListenerWithUserDataSelect: _bindgen_ty_100 = 18;
pub const kAudioUnitAddRenderNotifySelect: _bindgen_ty_100 = 15;
pub const kAudioUnitRemoveRenderNotifySelect: _bindgen_ty_100 = 16;
pub const kAudioUnitGetParameterSelect: _bindgen_ty_100 = 6;
pub const kAudioUnitSetParameterSelect: _bindgen_ty_100 = 7;
pub const kAudioUnitScheduleParametersSelect: _bindgen_ty_100 = 17;
pub const kAudioUnitRenderSelect: _bindgen_ty_100 = 14;
pub const kAudioUnitResetSelect: _bindgen_ty_100 = 9;
pub const kAudioUnitComplexRenderSelect: _bindgen_ty_100 = 19;
pub const kAudioUnitProcessSelect: _bindgen_ty_100 = 20;
pub const kAudioUnitProcessMultipleSelect: _bindgen_ty_100 = 21;
pub type _bindgen_ty_100 = ::std::os::raw::c_uint;
pub type AudioUnitInitializeProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub type AudioUnitUninitializeProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub type AudioUnitGetPropertyInfoProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
prop: AudioUnitPropertyID,
scope: AudioUnitScope,
elem: AudioUnitElement,
outDataSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus,
>;
pub type AudioUnitGetPropertyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
outData: *mut ::std::os::raw::c_void,
ioDataSize: *mut UInt32,
) -> OSStatus,
>;
pub type AudioUnitSetPropertyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inID: AudioUnitPropertyID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
inData: *const ::std::os::raw::c_void,
inDataSize: UInt32,
) -> OSStatus,
>;
pub type AudioUnitAddPropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
prop: AudioUnitPropertyID,
proc_: AudioUnitPropertyListenerProc,
userData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioUnitRemovePropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
prop: AudioUnitPropertyID,
proc_: AudioUnitPropertyListenerProc,
) -> OSStatus,
>;
pub type AudioUnitRemovePropertyListenerWithUserDataProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
prop: AudioUnitPropertyID,
proc_: AudioUnitPropertyListenerProc,
userData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioUnitAddRenderNotifyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
proc_: AURenderCallback,
userData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioUnitRemoveRenderNotifyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
proc_: AURenderCallback,
userData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioUnitScheduleParametersProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
events: *const AudioUnitParameterEvent,
numEvents: UInt32,
) -> OSStatus,
>;
pub type AudioUnitResetProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
) -> OSStatus,
>;
pub type AudioUnitComplexRenderProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inOutputBusNumber: UInt32,
inNumberOfPackets: UInt32,
outNumberOfPackets: *mut UInt32,
outPacketDescriptions: *mut AudioStreamPacketDescription,
ioData: *mut AudioBufferList,
outMetadata: *mut ::std::os::raw::c_void,
outMetadataByteSize: *mut UInt32,
) -> OSStatus,
>;
pub type AudioUnitProcessProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inNumberFrames: UInt32,
ioData: *mut AudioBufferList,
) -> OSStatus,
>;
pub type AudioUnitProcessMultipleProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inNumberFrames: UInt32,
inNumberInputBufferLists: UInt32,
inInputBufferLists: *mut *const AudioBufferList,
inNumberOutputBufferLists: UInt32,
ioOutputBufferLists: *mut *mut AudioBufferList,
) -> OSStatus,
>;
pub type AudioUnitGetParameterProc = ::std::option::Option<
unsafe extern "C" fn(
inComponentStorage: *mut ::std::os::raw::c_void,
inID: AudioUnitParameterID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
outValue: *mut AudioUnitParameterValue,
) -> OSStatus,
>;
pub type AudioUnitSetParameterProc = ::std::option::Option<
unsafe extern "C" fn(
inComponentStorage: *mut ::std::os::raw::c_void,
inID: AudioUnitParameterID,
inScope: AudioUnitScope,
inElement: AudioUnitElement,
inValue: AudioUnitParameterValue,
inBufferOffsetInFrames: UInt32,
) -> OSStatus,
>;
pub type AudioUnitRenderProc = ::std::option::Option<
unsafe extern "C" fn(
inComponentStorage: *mut ::std::os::raw::c_void,
ioActionFlags: *mut AudioUnitRenderActionFlags,
inTimeStamp: *const AudioTimeStamp,
inOutputBusNumber: UInt32,
inNumberFrames: UInt32,
ioData: *mut AudioBufferList,
) -> OSStatus,
>;
pub const kAudioUnitErr_IllegalInstrument: _bindgen_ty_101 = -10873;
pub const kAudioUnitErr_InstrumentTypeNotFound: _bindgen_ty_101 = -10872;
pub type _bindgen_ty_101 = ::std::os::raw::c_int;
pub type AudioCodec = AudioComponentInstance;
pub type AudioCodecPropertyID = UInt32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioCodecMagicCookieInfo {
pub mMagicCookieSize: UInt32,
pub mMagicCookie: *const ::std::os::raw::c_void,
}
impl Default for AudioCodecMagicCookieInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAudioDecoderComponentType: _bindgen_ty_102 = 1633969507;
pub const kAudioEncoderComponentType: _bindgen_ty_102 = 1634037347;
pub const kAudioUnityCodecComponentType: _bindgen_ty_102 = 1633903715;
pub type _bindgen_ty_102 = ::std::os::raw::c_uint;
pub const kAudioCodecPropertySupportedInputFormats: _bindgen_ty_103 = 1768320291;
pub const kAudioCodecPropertySupportedOutputFormats: _bindgen_ty_103 = 1868983587;
pub const kAudioCodecPropertyAvailableInputSampleRates: _bindgen_ty_103 = 1634300786;
pub const kAudioCodecPropertyAvailableOutputSampleRates: _bindgen_ty_103 = 1634694002;
pub const kAudioCodecPropertyAvailableBitRateRange: _bindgen_ty_103 = 1633841780;
pub const kAudioCodecPropertyMinimumNumberInputPackets: _bindgen_ty_103 = 1835952496;
pub const kAudioCodecPropertyMinimumNumberOutputPackets: _bindgen_ty_103 = 1835954032;
pub const kAudioCodecPropertyAvailableNumberChannels: _bindgen_ty_103 = 1668116067;
pub const kAudioCodecPropertyDoesSampleRateConversion: _bindgen_ty_103 = 1819112035;
pub const kAudioCodecPropertyAvailableInputChannelLayoutTags: _bindgen_ty_103 = 1634296684;
pub const kAudioCodecPropertyAvailableOutputChannelLayoutTags: _bindgen_ty_103 = 1634689900;
pub const kAudioCodecPropertyInputFormatsForOutputFormat: _bindgen_ty_103 = 1768305775;
pub const kAudioCodecPropertyOutputFormatsForInputFormat: _bindgen_ty_103 = 1868969065;
pub const kAudioCodecPropertyFormatInfo: _bindgen_ty_103 = 1633904233;
pub type _bindgen_ty_103 = ::std::os::raw::c_uint;
pub const kAudioCodecPropertyInputBufferSize: _bindgen_ty_104 = 1952609638;
pub const kAudioCodecPropertyPacketFrameSize: _bindgen_ty_104 = 1885432678;
pub const kAudioCodecPropertyHasVariablePacketByteSizes: _bindgen_ty_104 = 1987078975;
pub const kAudioCodecPropertyEmploysDependentPackets: _bindgen_ty_104 = 1685089087;
pub const kAudioCodecPropertyMaximumPacketByteSize: _bindgen_ty_104 = 1885432674;
pub const kAudioCodecPropertyPacketSizeLimitForVBR: _bindgen_ty_104 = 1885432684;
pub const kAudioCodecPropertyCurrentInputFormat: _bindgen_ty_104 = 1768320372;
pub const kAudioCodecPropertyCurrentOutputFormat: _bindgen_ty_104 = 1868983668;
pub const kAudioCodecPropertyMagicCookie: _bindgen_ty_104 = 1802857321;
pub const kAudioCodecPropertyUsedInputBufferSize: _bindgen_ty_104 = 1969386854;
pub const kAudioCodecPropertyIsInitialized: _bindgen_ty_104 = 1768843636;
pub const kAudioCodecPropertyCurrentTargetBitRate: _bindgen_ty_104 = 1651663220;
pub const kAudioCodecPropertyCurrentInputSampleRate: _bindgen_ty_104 = 1667855218;
pub const kAudioCodecPropertyCurrentOutputSampleRate: _bindgen_ty_104 = 1668248434;
pub const kAudioCodecPropertyQualitySetting: _bindgen_ty_104 = 1936876401;
pub const kAudioCodecPropertyApplicableBitRateRange: _bindgen_ty_104 = 1651668065;
pub const kAudioCodecPropertyRecommendedBitRateRange: _bindgen_ty_104 = 1651668082;
pub const kAudioCodecPropertyApplicableInputSampleRates: _bindgen_ty_104 = 1769173601;
pub const kAudioCodecPropertyApplicableOutputSampleRates: _bindgen_ty_104 = 1869836897;
pub const kAudioCodecPropertyPaddedZeros: _bindgen_ty_104 = 1885430832;
pub const kAudioCodecPropertyPrimeMethod: _bindgen_ty_104 = 1886547309;
pub const kAudioCodecPropertyPrimeInfo: _bindgen_ty_104 = 1886546285;
pub const kAudioCodecPropertyCurrentInputChannelLayout: _bindgen_ty_104 = 1768123424;
pub const kAudioCodecPropertyCurrentOutputChannelLayout: _bindgen_ty_104 = 1868786720;
pub const kAudioCodecPropertySettings: _bindgen_ty_104 = 1633907488;
pub const kAudioCodecPropertyFormatList: _bindgen_ty_104 = 1633904236;
pub const kAudioCodecPropertyBitRateControlMode: _bindgen_ty_104 = 1633903206;
pub const kAudioCodecPropertySoundQualityForVBR: _bindgen_ty_104 = 1986163313;
pub const kAudioCodecPropertyBitRateForVBR: _bindgen_ty_104 = 1986163298;
pub const kAudioCodecPropertyDelayMode: _bindgen_ty_104 = 1684893540;
pub const kAudioCodecPropertyAdjustLocalQuality: _bindgen_ty_104 = 1584488812;
pub const kAudioCodecPropertyDynamicRangeControlMode: _bindgen_ty_104 = 1835299427;
pub const kAudioCodecPropertyAdjustCompressionProfile: _bindgen_ty_104 = 1584427631;
pub const kAudioCodecPropertyProgramTargetLevelConstant: _bindgen_ty_104 = 1886678115;
pub const kAudioCodecPropertyAdjustTargetLevelConstant: _bindgen_ty_104 = 1584688227;
pub const kAudioCodecPropertyProgramTargetLevel: _bindgen_ty_104 = 1886418028;
pub const kAudioCodecPropertyAdjustTargetLevel: _bindgen_ty_104 = 1584428140;
pub type _bindgen_ty_104 = ::std::os::raw::c_uint;
pub const kAudioCodecQuality_Max: _bindgen_ty_105 = 127;
pub const kAudioCodecQuality_High: _bindgen_ty_105 = 96;
pub const kAudioCodecQuality_Medium: _bindgen_ty_105 = 64;
pub const kAudioCodecQuality_Low: _bindgen_ty_105 = 32;
pub const kAudioCodecQuality_Min: _bindgen_ty_105 = 0;
pub type _bindgen_ty_105 = ::std::os::raw::c_uint;
pub const kAudioCodecPrimeMethod_Pre: _bindgen_ty_106 = 0;
pub const kAudioCodecPrimeMethod_Normal: _bindgen_ty_106 = 1;
pub const kAudioCodecPrimeMethod_None: _bindgen_ty_106 = 2;
pub type _bindgen_ty_106 = ::std::os::raw::c_uint;
pub const kAudioCodecBitRateControlMode_Constant: _bindgen_ty_107 = 0;
pub const kAudioCodecBitRateControlMode_LongTermAverage: _bindgen_ty_107 = 1;
pub const kAudioCodecBitRateControlMode_VariableConstrained: _bindgen_ty_107 = 2;
pub const kAudioCodecBitRateControlMode_Variable: _bindgen_ty_107 = 3;
pub type _bindgen_ty_107 = ::std::os::raw::c_uint;
pub const kAudioCodecDelayMode_Compatibility: _bindgen_ty_108 = 0;
pub const kAudioCodecDelayMode_Minimum: _bindgen_ty_108 = 1;
pub const kAudioCodecDelayMode_Optimal: _bindgen_ty_108 = 2;
pub type _bindgen_ty_108 = ::std::os::raw::c_uint;
pub const kProgramTargetLevel_None: _bindgen_ty_109 = 0;
pub const kProgramTargetLevel_Minus31dB: _bindgen_ty_109 = 1;
pub const kProgramTargetLevel_Minus23dB: _bindgen_ty_109 = 2;
pub const kProgramTargetLevel_Minus20dB: _bindgen_ty_109 = 3;
pub type _bindgen_ty_109 = ::std::os::raw::c_uint;
pub const kDynamicRangeControlMode_None: _bindgen_ty_110 = 0;
pub const kDynamicRangeControlMode_Light: _bindgen_ty_110 = 1;
pub const kDynamicRangeControlMode_Heavy: _bindgen_ty_110 = 2;
pub type _bindgen_ty_110 = ::std::os::raw::c_uint;
pub const kDynamicRangeCompressionProfile_None: _bindgen_ty_111 = 0;
pub const kDynamicRangeCompressionProfile_LateNight: _bindgen_ty_111 = 1;
pub const kDynamicRangeCompressionProfile_NoisyEnvironment: _bindgen_ty_111 = 2;
pub const kDynamicRangeCompressionProfile_LimitedPlaybackRange: _bindgen_ty_111 = 3;
pub const kDynamicRangeCompressionProfile_GeneralCompression: _bindgen_ty_111 = 6;
pub type _bindgen_ty_111 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioCodecPrimeInfo {
pub leadingFrames: UInt32,
pub trailingFrames: UInt32,
}
pub type AudioSettingsFlags = UInt32;
pub const kAudioSettingsFlags_ExpertParameter: _bindgen_ty_112 = 1;
pub const kAudioSettingsFlags_InvisibleParameter: _bindgen_ty_112 = 2;
pub const kAudioSettingsFlags_MetaParameter: _bindgen_ty_112 = 4;
pub const kAudioSettingsFlags_UserInterfaceParameter: _bindgen_ty_112 = 8;
pub type _bindgen_ty_112 = ::std::os::raw::c_uint;
pub const kAudioCodecProduceOutputPacketFailure: _bindgen_ty_113 = 1;
pub const kAudioCodecProduceOutputPacketSuccess: _bindgen_ty_113 = 2;
pub const kAudioCodecProduceOutputPacketSuccessHasMore: _bindgen_ty_113 = 3;
pub const kAudioCodecProduceOutputPacketNeedsMoreInputData: _bindgen_ty_113 = 4;
pub const kAudioCodecProduceOutputPacketAtEOF: _bindgen_ty_113 = 5;
pub const kAudioCodecProduceOutputPacketSuccessConcealed: _bindgen_ty_113 = 6;
pub type _bindgen_ty_113 = ::std::os::raw::c_uint;
pub const kAudioCodecGetPropertyInfoSelect: _bindgen_ty_114 = 1;
pub const kAudioCodecGetPropertySelect: _bindgen_ty_114 = 2;
pub const kAudioCodecSetPropertySelect: _bindgen_ty_114 = 3;
pub const kAudioCodecInitializeSelect: _bindgen_ty_114 = 4;
pub const kAudioCodecUninitializeSelect: _bindgen_ty_114 = 5;
pub const kAudioCodecAppendInputDataSelect: _bindgen_ty_114 = 6;
pub const kAudioCodecProduceOutputDataSelect: _bindgen_ty_114 = 7;
pub const kAudioCodecResetSelect: _bindgen_ty_114 = 8;
pub const kAudioCodecAppendInputBufferListSelect: _bindgen_ty_114 = 9;
pub const kAudioCodecProduceOutputBufferListSelect: _bindgen_ty_114 = 10;
pub type _bindgen_ty_114 = ::std::os::raw::c_uint;
pub const kAudioCodecNoError: _bindgen_ty_115 = 0;
pub const kAudioCodecUnspecifiedError: _bindgen_ty_115 = 2003329396;
pub const kAudioCodecUnknownPropertyError: _bindgen_ty_115 = 2003332927;
pub const kAudioCodecBadPropertySizeError: _bindgen_ty_115 = 561211770;
pub const kAudioCodecIllegalOperationError: _bindgen_ty_115 = 1852797029;
pub const kAudioCodecUnsupportedFormatError: _bindgen_ty_115 = 560226676;
pub const kAudioCodecStateError: _bindgen_ty_115 = 561214580;
pub const kAudioCodecNotEnoughBufferSpaceError: _bindgen_ty_115 = 560100710;
pub const kAudioCodecBadDataError: _bindgen_ty_115 = 1650549857;
pub type _bindgen_ty_115 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioCodecGetPropertyInfo(
inCodec: AudioCodec,
inPropertyID: AudioCodecPropertyID,
outSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecGetProperty(
inCodec: AudioCodec,
inPropertyID: AudioCodecPropertyID,
ioPropertyDataSize: *mut UInt32,
outPropertyData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecSetProperty(
inCodec: AudioCodec,
inPropertyID: AudioCodecPropertyID,
inPropertyDataSize: UInt32,
inPropertyData: *const ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecInitialize(
inCodec: AudioCodec,
inInputFormat: *const AudioStreamBasicDescription,
inOutputFormat: *const AudioStreamBasicDescription,
inMagicCookie: *const ::std::os::raw::c_void,
inMagicCookieByteSize: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecUninitialize(inCodec: AudioCodec) -> OSStatus;
}
extern "C" {
pub fn AudioCodecAppendInputData(
inCodec: AudioCodec,
inInputData: *const ::std::os::raw::c_void,
ioInputDataByteSize: *mut UInt32,
ioNumberPackets: *mut UInt32,
inPacketDescription: *const AudioStreamPacketDescription,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecProduceOutputPackets(
inCodec: AudioCodec,
outOutputData: *mut ::std::os::raw::c_void,
ioOutputDataByteSize: *mut UInt32,
ioNumberPackets: *mut UInt32,
outPacketDescription: *mut AudioStreamPacketDescription,
outStatus: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecAppendInputBufferList(
inCodec: AudioCodec,
inBufferList: *const AudioBufferList,
ioNumberPackets: *mut UInt32,
inPacketDescription: *const AudioStreamPacketDescription,
outBytesConsumed: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecProduceOutputBufferList(
inCodec: AudioCodec,
ioBufferList: *mut AudioBufferList,
ioNumberPackets: *mut UInt32,
outPacketDescription: *mut AudioStreamPacketDescription,
outStatus: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioCodecReset(inCodec: AudioCodec) -> OSStatus;
}
pub type AudioCodecGetPropertyInfoProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inPropertyID: AudioCodecPropertyID,
outSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus,
>;
pub type AudioCodecGetPropertyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inPropertyID: AudioCodecPropertyID,
ioPropertyDataSize: *mut UInt32,
outPropertyData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioCodecSetPropertyProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inPropertyID: AudioCodecPropertyID,
inPropertyDataSize: UInt32,
inPropertyData: *const ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioCodecInitializeProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inInputFormat: *const AudioStreamBasicDescription,
inOutputFormat: *const AudioStreamBasicDescription,
inMagicCookie: *const ::std::os::raw::c_void,
inMagicCookieByteSize: UInt32,
) -> OSStatus,
>;
pub type AudioCodecUninitializeProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub type AudioCodecAppendInputDataProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inInputData: *const ::std::os::raw::c_void,
ioInputDataByteSize: *mut UInt32,
ioNumberPackets: *mut UInt32,
inPacketDescription: *const AudioStreamPacketDescription,
) -> OSStatus,
>;
pub type AudioCodecProduceOutputPacketsProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
outOutputData: *mut ::std::os::raw::c_void,
ioOutputDataByteSize: *mut UInt32,
ioNumberPackets: *mut UInt32,
outPacketDescription: *mut AudioStreamPacketDescription,
outStatus: *mut UInt32,
) -> OSStatus,
>;
pub type AudioCodecResetProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub type AudioCodecAppendInputBufferListProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
ioBufferList: *const AudioBufferList,
inNumberPackets: *mut UInt32,
inPacketDescription: *const AudioStreamPacketDescription,
outBytesConsumed: *mut UInt32,
) -> OSStatus,
>;
pub type AudioCodecProduceOutputBufferListProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
ioBufferList: *mut AudioBufferList,
ioNumberPackets: *mut UInt32,
outPacketDescription: *mut AudioStreamPacketDescription,
outStatus: *mut UInt32,
) -> OSStatus,
>;
pub const kAudioCodecPropertyMinimumDelayMode: _bindgen_ty_116 = 1835296108;
pub type _bindgen_ty_116 = ::std::os::raw::c_uint;
pub const kAudioCodecPropertyNameCFString: _bindgen_ty_117 = 1819173229;
pub const kAudioCodecPropertyManufacturerCFString: _bindgen_ty_117 = 1819107691;
pub const kAudioCodecPropertyFormatCFString: _bindgen_ty_117 = 1818652530;
pub type _bindgen_ty_117 = ::std::os::raw::c_uint;
pub const kAudioCodecPropertyRequiresPacketDescription: _bindgen_ty_118 = 1885432676;
pub const kAudioCodecPropertyAvailableBitRates: _bindgen_ty_118 = 1651668003;
pub const kAudioCodecExtendFrequencies: _bindgen_ty_118 = 1633903974;
pub const kAudioCodecUseRecommendedSampleRate: _bindgen_ty_118 = 1970434930;
pub const kAudioCodecOutputPrecedence: _bindgen_ty_118 = 1869639794;
pub const kAudioCodecBitRateFormat: _bindgen_ty_118 = 1633903206;
pub const kAudioCodecDoesSampleRateConversion: _bindgen_ty_118 = 1819112035;
pub const kAudioCodecInputFormatsForOutputFormat: _bindgen_ty_118 = 1768305775;
pub const kAudioCodecOutputFormatsForInputFormat: _bindgen_ty_118 = 1868969065;
pub const kAudioCodecPropertyInputChannelLayout: _bindgen_ty_118 = 1768123424;
pub const kAudioCodecPropertyOutputChannelLayout: _bindgen_ty_118 = 1868786720;
pub const kAudioCodecPropertyAvailableInputChannelLayouts: _bindgen_ty_118 = 1634296684;
pub const kAudioCodecPropertyAvailableOutputChannelLayouts: _bindgen_ty_118 = 1634689900;
pub const kAudioCodecPropertyZeroFramesPadded: _bindgen_ty_118 = 1885430832;
pub type _bindgen_ty_118 = ::std::os::raw::c_uint;
pub const kAudioCodecBitRateFormat_CBR: _bindgen_ty_119 = 0;
pub const kAudioCodecBitRateFormat_ABR: _bindgen_ty_119 = 1;
pub const kAudioCodecBitRateFormat_VBR: _bindgen_ty_119 = 2;
pub type _bindgen_ty_119 = ::std::os::raw::c_uint;
pub const kAudioCodecOutputPrecedenceNone: _bindgen_ty_120 = 0;
pub const kAudioCodecOutputPrecedenceBitRate: _bindgen_ty_120 = 1;
pub const kAudioCodecOutputPrecedenceSampleRate: _bindgen_ty_120 = 2;
pub type _bindgen_ty_120 = ::std::os::raw::c_uint;
pub type MagicCookieInfo = AudioCodecMagicCookieInfo;
pub const kHintBasic: _bindgen_ty_121 = 0;
pub const kHintAdvanced: _bindgen_ty_121 = 1;
pub const kHintHidden: _bindgen_ty_121 = 2;
pub type _bindgen_ty_121 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioOutputUnitStart(ci: AudioUnit) -> OSStatus;
}
extern "C" {
pub fn AudioOutputUnitStop(ci: AudioUnit) -> OSStatus;
}
pub const kAudioOutputUnitRange: _bindgen_ty_122 = 512;
pub const kAudioOutputUnitStartSelect: _bindgen_ty_122 = 513;
pub const kAudioOutputUnitStopSelect: _bindgen_ty_122 = 514;
pub type _bindgen_ty_122 = ::std::os::raw::c_uint;
pub type AudioOutputUnitStartProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub type AudioOutputUnitStopProc =
::std::option::Option<unsafe extern "C" fn(self_: *mut ::std::os::raw::c_void) -> OSStatus>;
pub const kAUGroupParameterID_Volume: _bindgen_ty_123 = 7;
pub const kAUGroupParameterID_Sustain: _bindgen_ty_123 = 64;
pub const kAUGroupParameterID_Sostenuto: _bindgen_ty_123 = 66;
pub const kAUGroupParameterID_AllNotesOff: _bindgen_ty_123 = 123;
pub const kAUGroupParameterID_ModWheel: _bindgen_ty_123 = 1;
pub const kAUGroupParameterID_PitchBend: _bindgen_ty_123 = 224;
pub const kAUGroupParameterID_AllSoundOff: _bindgen_ty_123 = 120;
pub const kAUGroupParameterID_ResetAllControllers: _bindgen_ty_123 = 121;
pub const kAUGroupParameterID_Pan: _bindgen_ty_123 = 10;
pub const kAUGroupParameterID_Foot: _bindgen_ty_123 = 4;
pub const kAUGroupParameterID_ChannelPressure: _bindgen_ty_123 = 208;
pub const kAUGroupParameterID_KeyPressure: _bindgen_ty_123 = 160;
pub const kAUGroupParameterID_Expression: _bindgen_ty_123 = 11;
pub const kAUGroupParameterID_DataEntry: _bindgen_ty_123 = 6;
pub const kAUGroupParameterID_Volume_LSB: _bindgen_ty_123 = 39;
pub const kAUGroupParameterID_ModWheel_LSB: _bindgen_ty_123 = 33;
pub const kAUGroupParameterID_Pan_LSB: _bindgen_ty_123 = 42;
pub const kAUGroupParameterID_Foot_LSB: _bindgen_ty_123 = 36;
pub const kAUGroupParameterID_Expression_LSB: _bindgen_ty_123 = 43;
pub const kAUGroupParameterID_DataEntry_LSB: _bindgen_ty_123 = 38;
pub const kAUGroupParameterID_KeyPressure_FirstKey: _bindgen_ty_123 = 256;
pub const kAUGroupParameterID_KeyPressure_LastKey: _bindgen_ty_123 = 383;
pub type _bindgen_ty_123 = ::std::os::raw::c_uint;
pub const kPannerParam_Gain: _bindgen_ty_124 = 0;
pub const kPannerParam_Azimuth: _bindgen_ty_124 = 1;
pub const kPannerParam_Elevation: _bindgen_ty_124 = 2;
pub const kPannerParam_Distance: _bindgen_ty_124 = 3;
pub const kPannerParam_CoordScale: _bindgen_ty_124 = 4;
pub const kPannerParam_RefDistance: _bindgen_ty_124 = 5;
pub type _bindgen_ty_124 = ::std::os::raw::c_uint;
pub const kSpatialMixerParam_Azimuth: _bindgen_ty_125 = 0;
pub const kSpatialMixerParam_Elevation: _bindgen_ty_125 = 1;
pub const kSpatialMixerParam_Distance: _bindgen_ty_125 = 2;
pub const kSpatialMixerParam_Gain: _bindgen_ty_125 = 3;
pub const kSpatialMixerParam_PlaybackRate: _bindgen_ty_125 = 4;
pub const kSpatialMixerParam_Enable: _bindgen_ty_125 = 5;
pub const kSpatialMixerParam_MinGain: _bindgen_ty_125 = 6;
pub const kSpatialMixerParam_MaxGain: _bindgen_ty_125 = 7;
pub const kSpatialMixerParam_ReverbBlend: _bindgen_ty_125 = 8;
pub const kSpatialMixerParam_GlobalReverbGain: _bindgen_ty_125 = 9;
pub const kSpatialMixerParam_OcclusionAttenuation: _bindgen_ty_125 = 10;
pub const kSpatialMixerParam_ObstructionAttenuation: _bindgen_ty_125 = 11;
pub const kSpatialMixerParam_HeadYaw: _bindgen_ty_125 = 19;
pub const kSpatialMixerParam_HeadPitch: _bindgen_ty_125 = 20;
pub const kSpatialMixerParam_HeadRoll: _bindgen_ty_125 = 21;
pub type _bindgen_ty_125 = ::std::os::raw::c_uint;
pub const kReverbParam_FilterFrequency: _bindgen_ty_126 = 14;
pub const kReverbParam_FilterBandwidth: _bindgen_ty_126 = 15;
pub const kReverbParam_FilterGain: _bindgen_ty_126 = 16;
pub const kReverbParam_FilterType: _bindgen_ty_126 = 17;
pub const kReverbParam_FilterEnable: _bindgen_ty_126 = 18;
pub type _bindgen_ty_126 = ::std::os::raw::c_uint;
pub const k3DMixerParam_Azimuth: _bindgen_ty_127 = 0;
pub const k3DMixerParam_Elevation: _bindgen_ty_127 = 1;
pub const k3DMixerParam_Distance: _bindgen_ty_127 = 2;
pub const k3DMixerParam_Gain: _bindgen_ty_127 = 3;
pub const k3DMixerParam_PlaybackRate: _bindgen_ty_127 = 4;
pub const k3DMixerParam_BusEnable: _bindgen_ty_127 = 20;
pub const k3DMixerParam_MinGainInDecibels: _bindgen_ty_127 = 21;
pub const k3DMixerParam_MaxGainInDecibels: _bindgen_ty_127 = 22;
pub const k3DMixerParam_DryWetReverbBlend: _bindgen_ty_127 = 23;
pub const k3DMixerParam_GlobalReverbGainInDecibels: _bindgen_ty_127 = 24;
pub const k3DMixerParam_OcclusionAttenuationInDecibels: _bindgen_ty_127 = 25;
pub const k3DMixerParam_ObstructionAttenuationInDecibels: _bindgen_ty_127 = 26;
pub const k3DMixerParam_ReverbBlend: _bindgen_ty_127 = 5;
pub const k3DMixerParam_GlobalReverbGain: _bindgen_ty_127 = 6;
pub const k3DMixerParam_OcclusionAttenuation: _bindgen_ty_127 = 7;
pub const k3DMixerParam_ObstructionAttenuation: _bindgen_ty_127 = 8;
pub const k3DMixerParam_MinGain: _bindgen_ty_127 = 9;
pub const k3DMixerParam_MaxGain: _bindgen_ty_127 = 10;
pub const k3DMixerParam_PreAveragePower: _bindgen_ty_127 = 1000;
pub const k3DMixerParam_PrePeakHoldLevel: _bindgen_ty_127 = 2000;
pub const k3DMixerParam_PostAveragePower: _bindgen_ty_127 = 3000;
pub const k3DMixerParam_PostPeakHoldLevel: _bindgen_ty_127 = 4000;
pub type _bindgen_ty_127 = ::std::os::raw::c_uint;
pub const kMultiChannelMixerParam_Volume: _bindgen_ty_128 = 0;
pub const kMultiChannelMixerParam_Enable: _bindgen_ty_128 = 1;
pub const kMultiChannelMixerParam_Pan: _bindgen_ty_128 = 2;
pub const kMultiChannelMixerParam_PreAveragePower: _bindgen_ty_128 = 1000;
pub const kMultiChannelMixerParam_PrePeakHoldLevel: _bindgen_ty_128 = 2000;
pub const kMultiChannelMixerParam_PostAveragePower: _bindgen_ty_128 = 3000;
pub const kMultiChannelMixerParam_PostPeakHoldLevel: _bindgen_ty_128 = 4000;
pub type _bindgen_ty_128 = ::std::os::raw::c_uint;
pub const kMatrixMixerParam_Volume: _bindgen_ty_129 = 0;
pub const kMatrixMixerParam_Enable: _bindgen_ty_129 = 1;
pub const kMatrixMixerParam_PreAveragePower: _bindgen_ty_129 = 1000;
pub const kMatrixMixerParam_PrePeakHoldLevel: _bindgen_ty_129 = 2000;
pub const kMatrixMixerParam_PostAveragePower: _bindgen_ty_129 = 3000;
pub const kMatrixMixerParam_PostPeakHoldLevel: _bindgen_ty_129 = 4000;
pub const kMatrixMixerParam_PreAveragePowerLinear: _bindgen_ty_129 = 5000;
pub const kMatrixMixerParam_PrePeakHoldLevelLinear: _bindgen_ty_129 = 6000;
pub const kMatrixMixerParam_PostAveragePowerLinear: _bindgen_ty_129 = 7000;
pub const kMatrixMixerParam_PostPeakHoldLevelLinear: _bindgen_ty_129 = 8000;
pub type _bindgen_ty_129 = ::std::os::raw::c_uint;
pub const kHALOutputParam_Volume: _bindgen_ty_130 = 14;
pub type _bindgen_ty_130 = ::std::os::raw::c_uint;
pub const kTimePitchParam_Rate: _bindgen_ty_131 = 0;
pub const kTimePitchParam_Pitch: _bindgen_ty_131 = 1;
pub const kTimePitchParam_EffectBlend: _bindgen_ty_131 = 2;
pub type _bindgen_ty_131 = ::std::os::raw::c_uint;
pub const kNewTimePitchParam_Rate: _bindgen_ty_132 = 0;
pub const kNewTimePitchParam_Pitch: _bindgen_ty_132 = 1;
pub const kNewTimePitchParam_Smoothness: _bindgen_ty_132 = 4;
pub const kNewTimePitchParam_Overlap: _bindgen_ty_132 = 4;
pub const kNewTimePitchParam_EnableSpectralCoherence: _bindgen_ty_132 = 6;
pub const kNewTimePitchParam_EnablePeakLocking: _bindgen_ty_132 = 6;
pub const kNewTimePitchParam_EnableTransientPreservation: _bindgen_ty_132 = 7;
pub type _bindgen_ty_132 = ::std::os::raw::c_uint;
pub const kAUSamplerParam_Gain: _bindgen_ty_133 = 900;
pub const kAUSamplerParam_CoarseTuning: _bindgen_ty_133 = 901;
pub const kAUSamplerParam_FineTuning: _bindgen_ty_133 = 902;
pub const kAUSamplerParam_Pan: _bindgen_ty_133 = 903;
pub type _bindgen_ty_133 = ::std::os::raw::c_uint;
pub const kBandpassParam_CenterFrequency: _bindgen_ty_134 = 0;
pub const kBandpassParam_Bandwidth: _bindgen_ty_134 = 1;
pub type _bindgen_ty_134 = ::std::os::raw::c_uint;
pub const kHipassParam_CutoffFrequency: _bindgen_ty_135 = 0;
pub const kHipassParam_Resonance: _bindgen_ty_135 = 1;
pub type _bindgen_ty_135 = ::std::os::raw::c_uint;
pub const kLowPassParam_CutoffFrequency: _bindgen_ty_136 = 0;
pub const kLowPassParam_Resonance: _bindgen_ty_136 = 1;
pub type _bindgen_ty_136 = ::std::os::raw::c_uint;
pub const kHighShelfParam_CutOffFrequency: _bindgen_ty_137 = 0;
pub const kHighShelfParam_Gain: _bindgen_ty_137 = 1;
pub type _bindgen_ty_137 = ::std::os::raw::c_uint;
pub const kAULowShelfParam_CutoffFrequency: _bindgen_ty_138 = 0;
pub const kAULowShelfParam_Gain: _bindgen_ty_138 = 1;
pub type _bindgen_ty_138 = ::std::os::raw::c_uint;
pub const kParametricEQParam_CenterFreq: _bindgen_ty_139 = 0;
pub const kParametricEQParam_Q: _bindgen_ty_139 = 1;
pub const kParametricEQParam_Gain: _bindgen_ty_139 = 2;
pub type _bindgen_ty_139 = ::std::os::raw::c_uint;
pub const kLimiterParam_AttackTime: _bindgen_ty_140 = 0;
pub const kLimiterParam_DecayTime: _bindgen_ty_140 = 1;
pub const kLimiterParam_PreGain: _bindgen_ty_140 = 2;
pub type _bindgen_ty_140 = ::std::os::raw::c_uint;
pub const kDynamicsProcessorParam_Threshold: _bindgen_ty_141 = 0;
pub const kDynamicsProcessorParam_HeadRoom: _bindgen_ty_141 = 1;
pub const kDynamicsProcessorParam_ExpansionRatio: _bindgen_ty_141 = 2;
pub const kDynamicsProcessorParam_ExpansionThreshold: _bindgen_ty_141 = 3;
pub const kDynamicsProcessorParam_AttackTime: _bindgen_ty_141 = 4;
pub const kDynamicsProcessorParam_ReleaseTime: _bindgen_ty_141 = 5;
pub const kDynamicsProcessorParam_OverallGain: _bindgen_ty_141 = 6;
pub const kDynamicsProcessorParam_MasterGain: _bindgen_ty_141 = 6;
pub const kDynamicsProcessorParam_CompressionAmount: _bindgen_ty_141 = 1000;
pub const kDynamicsProcessorParam_InputAmplitude: _bindgen_ty_141 = 2000;
pub const kDynamicsProcessorParam_OutputAmplitude: _bindgen_ty_141 = 3000;
pub type _bindgen_ty_141 = ::std::os::raw::c_uint;
pub const kVarispeedParam_PlaybackRate: _bindgen_ty_142 = 0;
pub const kVarispeedParam_PlaybackCents: _bindgen_ty_142 = 1;
pub type _bindgen_ty_142 = ::std::os::raw::c_uint;
pub const kDistortionParam_Delay: _bindgen_ty_143 = 0;
pub const kDistortionParam_Decay: _bindgen_ty_143 = 1;
pub const kDistortionParam_DelayMix: _bindgen_ty_143 = 2;
pub const kDistortionParam_Decimation: _bindgen_ty_143 = 3;
pub const kDistortionParam_Rounding: _bindgen_ty_143 = 4;
pub const kDistortionParam_DecimationMix: _bindgen_ty_143 = 5;
pub const kDistortionParam_LinearTerm: _bindgen_ty_143 = 6;
pub const kDistortionParam_SquaredTerm: _bindgen_ty_143 = 7;
pub const kDistortionParam_CubicTerm: _bindgen_ty_143 = 8;
pub const kDistortionParam_PolynomialMix: _bindgen_ty_143 = 9;
pub const kDistortionParam_RingModFreq1: _bindgen_ty_143 = 10;
pub const kDistortionParam_RingModFreq2: _bindgen_ty_143 = 11;
pub const kDistortionParam_RingModBalance: _bindgen_ty_143 = 12;
pub const kDistortionParam_RingModMix: _bindgen_ty_143 = 13;
pub const kDistortionParam_SoftClipGain: _bindgen_ty_143 = 14;
pub const kDistortionParam_FinalMix: _bindgen_ty_143 = 15;
pub type _bindgen_ty_143 = ::std::os::raw::c_uint;
pub const kDelayParam_WetDryMix: _bindgen_ty_144 = 0;
pub const kDelayParam_DelayTime: _bindgen_ty_144 = 1;
pub const kDelayParam_Feedback: _bindgen_ty_144 = 2;
pub const kDelayParam_LopassCutoff: _bindgen_ty_144 = 3;
pub type _bindgen_ty_144 = ::std::os::raw::c_uint;
pub const kSampleDelayParam_DelayFrames: _bindgen_ty_145 = 0;
pub type _bindgen_ty_145 = ::std::os::raw::c_uint;
pub const kAUNBandEQParam_GlobalGain: _bindgen_ty_146 = 0;
pub const kAUNBandEQParam_BypassBand: _bindgen_ty_146 = 1000;
pub const kAUNBandEQParam_FilterType: _bindgen_ty_146 = 2000;
pub const kAUNBandEQParam_Frequency: _bindgen_ty_146 = 3000;
pub const kAUNBandEQParam_Gain: _bindgen_ty_146 = 4000;
pub const kAUNBandEQParam_Bandwidth: _bindgen_ty_146 = 5000;
pub type _bindgen_ty_146 = ::std::os::raw::c_uint;
pub const kAUNBandEQFilterType_Parametric: _bindgen_ty_147 = 0;
pub const kAUNBandEQFilterType_2ndOrderButterworthLowPass: _bindgen_ty_147 = 1;
pub const kAUNBandEQFilterType_2ndOrderButterworthHighPass: _bindgen_ty_147 = 2;
pub const kAUNBandEQFilterType_ResonantLowPass: _bindgen_ty_147 = 3;
pub const kAUNBandEQFilterType_ResonantHighPass: _bindgen_ty_147 = 4;
pub const kAUNBandEQFilterType_BandPass: _bindgen_ty_147 = 5;
pub const kAUNBandEQFilterType_BandStop: _bindgen_ty_147 = 6;
pub const kAUNBandEQFilterType_LowShelf: _bindgen_ty_147 = 7;
pub const kAUNBandEQFilterType_HighShelf: _bindgen_ty_147 = 8;
pub const kAUNBandEQFilterType_ResonantLowShelf: _bindgen_ty_147 = 9;
pub const kAUNBandEQFilterType_ResonantHighShelf: _bindgen_ty_147 = 10;
pub const kNumAUNBandEQFilterTypes: _bindgen_ty_147 = 11;
pub type _bindgen_ty_147 = ::std::os::raw::c_uint;
pub const kRoundTripAACParam_Format: _bindgen_ty_148 = 0;
pub const kRoundTripAACParam_EncodingStrategy: _bindgen_ty_148 = 1;
pub const kRoundTripAACParam_RateOrQuality: _bindgen_ty_148 = 2;
pub const kRoundTripAACParam_BitRate: _bindgen_ty_148 = 1;
pub const kRoundTripAACParam_Quality: _bindgen_ty_148 = 2;
pub const kRoundTripAACParam_CompressedFormatSampleRate: _bindgen_ty_148 = 3;
pub type _bindgen_ty_148 = ::std::os::raw::c_uint;
pub const kAUSoundIsolationParam_WetDryMixPercent: _bindgen_ty_149 = 0;
pub const kAUSoundIsolationParam_SoundToIsolate: _bindgen_ty_149 = 1;
pub type _bindgen_ty_149 = ::std::os::raw::c_uint;
pub const kAUSoundIsolationSoundType_Voice: _bindgen_ty_150 = 1;
pub type _bindgen_ty_150 = ::std::os::raw::c_uint;
pub const kGraphicEQParam_NumberOfBands: _bindgen_ty_151 = 10000;
pub type _bindgen_ty_151 = ::std::os::raw::c_uint;
pub const kReverbParam_DryWetMix: _bindgen_ty_152 = 0;
pub const kReverbParam_SmallLargeMix: _bindgen_ty_152 = 1;
pub const kReverbParam_SmallSize: _bindgen_ty_152 = 2;
pub const kReverbParam_LargeSize: _bindgen_ty_152 = 3;
pub const kReverbParam_PreDelay: _bindgen_ty_152 = 4;
pub const kReverbParam_LargeDelay: _bindgen_ty_152 = 5;
pub const kReverbParam_SmallDensity: _bindgen_ty_152 = 6;
pub const kReverbParam_LargeDensity: _bindgen_ty_152 = 7;
pub const kReverbParam_LargeDelayRange: _bindgen_ty_152 = 8;
pub const kReverbParam_SmallBrightness: _bindgen_ty_152 = 9;
pub const kReverbParam_LargeBrightness: _bindgen_ty_152 = 10;
pub const kReverbParam_SmallDelayRange: _bindgen_ty_152 = 11;
pub const kReverbParam_ModulationRate: _bindgen_ty_152 = 12;
pub const kReverbParam_ModulationDepth: _bindgen_ty_152 = 13;
pub type _bindgen_ty_152 = ::std::os::raw::c_uint;
pub const kMultibandCompressorParam_Pregain: _bindgen_ty_153 = 0;
pub const kMultibandCompressorParam_Postgain: _bindgen_ty_153 = 1;
pub const kMultibandCompressorParam_Crossover1: _bindgen_ty_153 = 2;
pub const kMultibandCompressorParam_Crossover2: _bindgen_ty_153 = 3;
pub const kMultibandCompressorParam_Crossover3: _bindgen_ty_153 = 4;
pub const kMultibandCompressorParam_Threshold1: _bindgen_ty_153 = 5;
pub const kMultibandCompressorParam_Threshold2: _bindgen_ty_153 = 6;
pub const kMultibandCompressorParam_Threshold3: _bindgen_ty_153 = 7;
pub const kMultibandCompressorParam_Threshold4: _bindgen_ty_153 = 8;
pub const kMultibandCompressorParam_Headroom1: _bindgen_ty_153 = 9;
pub const kMultibandCompressorParam_Headroom2: _bindgen_ty_153 = 10;
pub const kMultibandCompressorParam_Headroom3: _bindgen_ty_153 = 11;
pub const kMultibandCompressorParam_Headroom4: _bindgen_ty_153 = 12;
pub const kMultibandCompressorParam_AttackTime: _bindgen_ty_153 = 13;
pub const kMultibandCompressorParam_ReleaseTime: _bindgen_ty_153 = 14;
pub const kMultibandCompressorParam_EQ1: _bindgen_ty_153 = 15;
pub const kMultibandCompressorParam_EQ2: _bindgen_ty_153 = 16;
pub const kMultibandCompressorParam_EQ3: _bindgen_ty_153 = 17;
pub const kMultibandCompressorParam_EQ4: _bindgen_ty_153 = 18;
pub const kMultibandCompressorParam_CompressionAmount1: _bindgen_ty_153 = 1000;
pub const kMultibandCompressorParam_CompressionAmount2: _bindgen_ty_153 = 2000;
pub const kMultibandCompressorParam_CompressionAmount3: _bindgen_ty_153 = 3000;
pub const kMultibandCompressorParam_CompressionAmount4: _bindgen_ty_153 = 4000;
pub const kMultibandCompressorParam_InputAmplitude1: _bindgen_ty_153 = 5000;
pub const kMultibandCompressorParam_InputAmplitude2: _bindgen_ty_153 = 6000;
pub const kMultibandCompressorParam_InputAmplitude3: _bindgen_ty_153 = 7000;
pub const kMultibandCompressorParam_InputAmplitude4: _bindgen_ty_153 = 8000;
pub const kMultibandCompressorParam_OutputAmplitude1: _bindgen_ty_153 = 9000;
pub const kMultibandCompressorParam_OutputAmplitude2: _bindgen_ty_153 = 10000;
pub const kMultibandCompressorParam_OutputAmplitude3: _bindgen_ty_153 = 11000;
pub const kMultibandCompressorParam_OutputAmplitude4: _bindgen_ty_153 = 12000;
pub type _bindgen_ty_153 = ::std::os::raw::c_uint;
pub const kMultibandFilter_LowFilterType: _bindgen_ty_154 = 0;
pub const kMultibandFilter_LowFrequency: _bindgen_ty_154 = 1;
pub const kMultibandFilter_LowGain: _bindgen_ty_154 = 2;
pub const kMultibandFilter_CenterFreq1: _bindgen_ty_154 = 3;
pub const kMultibandFilter_CenterGain1: _bindgen_ty_154 = 4;
pub const kMultibandFilter_Bandwidth1: _bindgen_ty_154 = 5;
pub const kMultibandFilter_CenterFreq2: _bindgen_ty_154 = 6;
pub const kMultibandFilter_CenterGain2: _bindgen_ty_154 = 7;
pub const kMultibandFilter_Bandwidth2: _bindgen_ty_154 = 8;
pub const kMultibandFilter_CenterFreq3: _bindgen_ty_154 = 9;
pub const kMultibandFilter_CenterGain3: _bindgen_ty_154 = 10;
pub const kMultibandFilter_Bandwidth3: _bindgen_ty_154 = 11;
pub const kMultibandFilter_HighFilterType: _bindgen_ty_154 = 12;
pub const kMultibandFilter_HighFrequency: _bindgen_ty_154 = 13;
pub const kMultibandFilter_HighGain: _bindgen_ty_154 = 14;
pub type _bindgen_ty_154 = ::std::os::raw::c_uint;
pub const kRogerBeepParam_InGateThreshold: _bindgen_ty_155 = 0;
pub const kRogerBeepParam_InGateThresholdTime: _bindgen_ty_155 = 1;
pub const kRogerBeepParam_OutGateThreshold: _bindgen_ty_155 = 2;
pub const kRogerBeepParam_OutGateThresholdTime: _bindgen_ty_155 = 3;
pub const kRogerBeepParam_Sensitivity: _bindgen_ty_155 = 4;
pub const kRogerBeepParam_RogerType: _bindgen_ty_155 = 5;
pub const kRogerBeepParam_RogerGain: _bindgen_ty_155 = 6;
pub type _bindgen_ty_155 = ::std::os::raw::c_uint;
pub const kStereoMixerParam_Volume: _bindgen_ty_156 = 0;
pub const kStereoMixerParam_Pan: _bindgen_ty_156 = 1;
pub const kStereoMixerParam_PreAveragePower: _bindgen_ty_156 = 1000;
pub const kStereoMixerParam_PrePeakHoldLevel: _bindgen_ty_156 = 2000;
pub const kStereoMixerParam_PostAveragePower: _bindgen_ty_156 = 3000;
pub const kStereoMixerParam_PostPeakHoldLevel: _bindgen_ty_156 = 4000;
pub type _bindgen_ty_156 = ::std::os::raw::c_uint;
pub const kAUNetReceiveParam_Status: _bindgen_ty_157 = 0;
pub const kAUNetReceiveParam_NumParameters: _bindgen_ty_157 = 1;
pub type _bindgen_ty_157 = ::std::os::raw::c_uint;
pub const kAUNetSendParam_Status: _bindgen_ty_158 = 0;
pub const kAUNetSendParam_NumParameters: _bindgen_ty_158 = 1;
pub type _bindgen_ty_158 = ::std::os::raw::c_uint;
pub const kAUNetStatus_NotConnected: _bindgen_ty_159 = 0;
pub const kAUNetStatus_Connected: _bindgen_ty_159 = 1;
pub const kAUNetStatus_Overflow: _bindgen_ty_159 = 2;
pub const kAUNetStatus_Underflow: _bindgen_ty_159 = 3;
pub const kAUNetStatus_Connecting: _bindgen_ty_159 = 4;
pub const kAUNetStatus_Listening: _bindgen_ty_159 = 5;
pub type _bindgen_ty_159 = ::std::os::raw::c_uint;
pub const kMusicDeviceParam_Tuning: _bindgen_ty_160 = 0;
pub const kMusicDeviceParam_Volume: _bindgen_ty_160 = 1;
pub const kMusicDeviceParam_ReverbVolume: _bindgen_ty_160 = 2;
pub type _bindgen_ty_160 = ::std::os::raw::c_uint;
pub const kRandomParam_BoundA: _bindgen_ty_161 = 0;
pub const kRandomParam_BoundB: _bindgen_ty_161 = 1;
pub const kRandomParam_Curve: _bindgen_ty_161 = 2;
pub type _bindgen_ty_161 = ::std::os::raw::c_uint;
pub const kReverb2Param_DryWetMix: _bindgen_ty_162 = 0;
pub const kReverb2Param_Gain: _bindgen_ty_162 = 1;
pub const kReverb2Param_MinDelayTime: _bindgen_ty_162 = 2;
pub const kReverb2Param_MaxDelayTime: _bindgen_ty_162 = 3;
pub const kReverb2Param_DecayTimeAt0Hz: _bindgen_ty_162 = 4;
pub const kReverb2Param_DecayTimeAtNyquist: _bindgen_ty_162 = 5;
pub const kReverb2Param_RandomizeReflections: _bindgen_ty_162 = 6;
pub type _bindgen_ty_162 = ::std::os::raw::c_uint;
pub const kAudioUnitScope_Global: _bindgen_ty_163 = 0;
pub const kAudioUnitScope_Input: _bindgen_ty_163 = 1;
pub const kAudioUnitScope_Output: _bindgen_ty_163 = 2;
pub const kAudioUnitScope_Group: _bindgen_ty_163 = 3;
pub const kAudioUnitScope_Part: _bindgen_ty_163 = 4;
pub const kAudioUnitScope_Note: _bindgen_ty_163 = 5;
pub const kAudioUnitScope_Layer: _bindgen_ty_163 = 6;
pub const kAudioUnitScope_LayerItem: _bindgen_ty_163 = 7;
pub type _bindgen_ty_163 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_ClassInfo: _bindgen_ty_164 = 0;
pub const kAudioUnitProperty_MakeConnection: _bindgen_ty_164 = 1;
pub const kAudioUnitProperty_SampleRate: _bindgen_ty_164 = 2;
pub const kAudioUnitProperty_ParameterList: _bindgen_ty_164 = 3;
pub const kAudioUnitProperty_ParameterInfo: _bindgen_ty_164 = 4;
pub const kAudioUnitProperty_CPULoad: _bindgen_ty_164 = 6;
pub const kAudioUnitProperty_StreamFormat: _bindgen_ty_164 = 8;
pub const kAudioUnitProperty_ElementCount: _bindgen_ty_164 = 11;
pub const kAudioUnitProperty_Latency: _bindgen_ty_164 = 12;
pub const kAudioUnitProperty_SupportedNumChannels: _bindgen_ty_164 = 13;
pub const kAudioUnitProperty_MaximumFramesPerSlice: _bindgen_ty_164 = 14;
pub const kAudioUnitProperty_ParameterValueStrings: _bindgen_ty_164 = 16;
pub const kAudioUnitProperty_AudioChannelLayout: _bindgen_ty_164 = 19;
pub const kAudioUnitProperty_TailTime: _bindgen_ty_164 = 20;
pub const kAudioUnitProperty_BypassEffect: _bindgen_ty_164 = 21;
pub const kAudioUnitProperty_LastRenderError: _bindgen_ty_164 = 22;
pub const kAudioUnitProperty_SetRenderCallback: _bindgen_ty_164 = 23;
pub const kAudioUnitProperty_FactoryPresets: _bindgen_ty_164 = 24;
pub const kAudioUnitProperty_RenderQuality: _bindgen_ty_164 = 26;
pub const kAudioUnitProperty_HostCallbacks: _bindgen_ty_164 = 27;
pub const kAudioUnitProperty_InPlaceProcessing: _bindgen_ty_164 = 29;
pub const kAudioUnitProperty_ElementName: _bindgen_ty_164 = 30;
pub const kAudioUnitProperty_SupportedChannelLayoutTags: _bindgen_ty_164 = 32;
pub const kAudioUnitProperty_PresentPreset: _bindgen_ty_164 = 36;
pub const kAudioUnitProperty_DependentParameters: _bindgen_ty_164 = 45;
pub const kAudioUnitProperty_InputSamplesInOutput: _bindgen_ty_164 = 49;
pub const kAudioUnitProperty_ShouldAllocateBuffer: _bindgen_ty_164 = 51;
pub const kAudioUnitProperty_FrequencyResponse: _bindgen_ty_164 = 52;
pub const kAudioUnitProperty_ParameterHistoryInfo: _bindgen_ty_164 = 53;
pub const kAudioUnitProperty_NickName: _bindgen_ty_164 = 54;
pub const kAudioUnitProperty_OfflineRender: _bindgen_ty_164 = 37;
pub const kAudioUnitProperty_ParameterIDName: _bindgen_ty_164 = 34;
pub const kAudioUnitProperty_ParameterStringFromValue: _bindgen_ty_164 = 33;
pub const kAudioUnitProperty_ParameterClumpName: _bindgen_ty_164 = 35;
pub const kAudioUnitProperty_ParameterValueFromString: _bindgen_ty_164 = 38;
pub const kAudioUnitProperty_ContextName: _bindgen_ty_164 = 25;
pub const kAudioUnitProperty_PresentationLatency: _bindgen_ty_164 = 40;
pub const kAudioUnitProperty_ClassInfoFromDocument: _bindgen_ty_164 = 50;
pub const kAudioUnitProperty_RequestViewController: _bindgen_ty_164 = 56;
pub const kAudioUnitProperty_ParametersForOverview: _bindgen_ty_164 = 57;
pub const kAudioUnitProperty_SupportsMPE: _bindgen_ty_164 = 58;
pub const kAudioUnitProperty_RenderContextObserver: _bindgen_ty_164 = 60;
pub const kAudioUnitProperty_LastRenderSampleTime: _bindgen_ty_164 = 61;
pub const kAudioUnitProperty_LoadedOutOfProcess: _bindgen_ty_164 = 62;
pub const kAudioUnitProperty_FastDispatch: _bindgen_ty_164 = 5;
pub const kAudioUnitProperty_SetExternalBuffer: _bindgen_ty_164 = 15;
pub const kAudioUnitProperty_GetUIComponentList: _bindgen_ty_164 = 18;
pub const kAudioUnitProperty_CocoaUI: _bindgen_ty_164 = 31;
pub const kAudioUnitProperty_IconLocation: _bindgen_ty_164 = 39;
pub const kAudioUnitProperty_AUHostIdentifier: _bindgen_ty_164 = 46;
pub const kAudioUnitProperty_MIDIOutputCallbackInfo: _bindgen_ty_164 = 47;
pub const kAudioUnitProperty_MIDIOutputCallback: _bindgen_ty_164 = 48;
pub const kAudioUnitProperty_MIDIOutputEventListCallback: _bindgen_ty_164 = 63;
pub const kAudioUnitProperty_AudioUnitMIDIProtocol: _bindgen_ty_164 = 64;
pub const kAudioUnitProperty_HostMIDIProtocol: _bindgen_ty_164 = 65;
pub const kAudioUnitProperty_MIDIOutputBufferSizeHint: _bindgen_ty_164 = 66;
pub type _bindgen_ty_164 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_RemoteControlEventListener: _bindgen_ty_165 = 100;
pub const kAudioUnitProperty_IsInterAppConnected: _bindgen_ty_165 = 101;
pub const kAudioUnitProperty_PeerURL: _bindgen_ty_165 = 102;
pub type _bindgen_ty_165 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitConnection {
pub sourceAudioUnit: AudioUnit,
pub sourceOutputNumber: UInt32,
pub destInputNumber: UInt32,
}
impl Default for AudioUnitConnection {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUChannelInfo {
pub inChannels: SInt16,
pub outChannels: SInt16,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitExternalBuffer {
pub buffer: *mut Byte,
pub size: UInt32,
}
impl Default for AudioUnitExternalBuffer {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AURenderCallbackStruct {
pub inputProc: AURenderCallback,
pub inputProcRefCon: *mut ::std::os::raw::c_void,
}
impl Default for AURenderCallbackStruct {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUPreset {
pub presetNumber: SInt32,
pub presetName: CFStringRef,
}
impl Default for AUPreset {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kRenderQuality_Max: _bindgen_ty_166 = 127;
pub const kRenderQuality_High: _bindgen_ty_166 = 96;
pub const kRenderQuality_Medium: _bindgen_ty_166 = 64;
pub const kRenderQuality_Low: _bindgen_ty_166 = 32;
pub const kRenderQuality_Min: _bindgen_ty_166 = 0;
pub type _bindgen_ty_166 = ::std::os::raw::c_uint;
pub const kNumberOfResponseFrequencies: _bindgen_ty_167 = 1024;
pub type _bindgen_ty_167 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitFrequencyResponseBin {
pub mFrequency: Float64,
pub mMagnitude: Float64,
}
pub type HostCallback_GetBeatAndTempo = ::std::option::Option<
unsafe extern "C" fn(
inHostUserData: *mut ::std::os::raw::c_void,
outCurrentBeat: *mut Float64,
outCurrentTempo: *mut Float64,
) -> OSStatus,
>;
pub type HostCallback_GetMusicalTimeLocation = ::std::option::Option<
unsafe extern "C" fn(
inHostUserData: *mut ::std::os::raw::c_void,
outDeltaSampleOffsetToNextBeat: *mut UInt32,
outTimeSig_Numerator: *mut Float32,
outTimeSig_Denominator: *mut UInt32,
outCurrentMeasureDownBeat: *mut Float64,
) -> OSStatus,
>;
pub type HostCallback_GetTransportState = ::std::option::Option<
unsafe extern "C" fn(
inHostUserData: *mut ::std::os::raw::c_void,
outIsPlaying: *mut Boolean,
outTransportStateChanged: *mut Boolean,
outCurrentSampleInTimeLine: *mut Float64,
outIsCycling: *mut Boolean,
outCycleStartBeat: *mut Float64,
outCycleEndBeat: *mut Float64,
) -> OSStatus,
>;
pub type HostCallback_GetTransportState2 = ::std::option::Option<
unsafe extern "C" fn(
inHostUserData: *mut ::std::os::raw::c_void,
outIsPlaying: *mut Boolean,
outIsRecording: *mut Boolean,
outTransportStateChanged: *mut Boolean,
outCurrentSampleInTimeLine: *mut Float64,
outIsCycling: *mut Boolean,
outCycleStartBeat: *mut Float64,
outCycleEndBeat: *mut Float64,
) -> OSStatus,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HostCallbackInfo {
pub hostUserData: *mut ::std::os::raw::c_void,
pub beatAndTempoProc: HostCallback_GetBeatAndTempo,
pub musicalTimeLocationProc: HostCallback_GetMusicalTimeLocation,
pub transportStateProc: HostCallback_GetTransportState,
pub transportStateProc2: HostCallback_GetTransportState2,
}
impl Default for HostCallbackInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUDependentParameter {
pub mScope: AudioUnitScope,
pub mParameterID: AudioUnitParameterID,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitCocoaViewInfo {
pub mCocoaAUViewBundleLocation: CFURLRef,
pub mCocoaAUViewClass: [CFStringRef; 1usize],
}
impl Default for AudioUnitCocoaViewInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUHostVersionIdentifier {
pub hostName: CFStringRef,
pub hostVersion: UInt32,
}
impl Default for AUHostVersionIdentifier {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MIDIPacketList {
_unused: [u8; 0],
}
pub type AUMIDIOutputCallback = ::std::option::Option<
unsafe extern "C" fn(
userData: *mut ::std::os::raw::c_void,
timeStamp: *const AudioTimeStamp,
midiOutNum: UInt32,
pktlist: *const MIDIPacketList,
) -> OSStatus,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUMIDIOutputCallbackStruct {
pub midiOutputCallback: AUMIDIOutputCallback,
pub userData: *mut ::std::os::raw::c_void,
}
impl Default for AUMIDIOutputCallbackStruct {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUInputSamplesInOutputCallbackStruct {
pub inputToOutputCallback: AUInputSamplesInOutputCallback,
pub userData: *mut ::std::os::raw::c_void,
}
impl Default for AUInputSamplesInOutputCallbackStruct {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitParameterHistoryInfo {
pub updatesPerSecond: Float32,
pub historyDurationInSeconds: Float32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitRenderContext {
pub workgroup: os_workgroup_t,
pub reserved: [u32; 6usize],
}
impl Default for AudioUnitRenderContext {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AURenderContextObserver = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MIDIEventList {
_unused: [u8; 0],
}
pub type AUEventSampleTime = i64;
pub type AUMIDIEventListBlock = *mut ::std::os::raw::c_void;
pub type AudioUnitParameterUnit = UInt32;
pub const kAudioUnitParameterUnit_Generic: _bindgen_ty_168 = 0;
pub const kAudioUnitParameterUnit_Indexed: _bindgen_ty_168 = 1;
pub const kAudioUnitParameterUnit_Boolean: _bindgen_ty_168 = 2;
pub const kAudioUnitParameterUnit_Percent: _bindgen_ty_168 = 3;
pub const kAudioUnitParameterUnit_Seconds: _bindgen_ty_168 = 4;
pub const kAudioUnitParameterUnit_SampleFrames: _bindgen_ty_168 = 5;
pub const kAudioUnitParameterUnit_Phase: _bindgen_ty_168 = 6;
pub const kAudioUnitParameterUnit_Rate: _bindgen_ty_168 = 7;
pub const kAudioUnitParameterUnit_Hertz: _bindgen_ty_168 = 8;
pub const kAudioUnitParameterUnit_Cents: _bindgen_ty_168 = 9;
pub const kAudioUnitParameterUnit_RelativeSemiTones: _bindgen_ty_168 = 10;
pub const kAudioUnitParameterUnit_MIDINoteNumber: _bindgen_ty_168 = 11;
pub const kAudioUnitParameterUnit_MIDIController: _bindgen_ty_168 = 12;
pub const kAudioUnitParameterUnit_Decibels: _bindgen_ty_168 = 13;
pub const kAudioUnitParameterUnit_LinearGain: _bindgen_ty_168 = 14;
pub const kAudioUnitParameterUnit_Degrees: _bindgen_ty_168 = 15;
pub const kAudioUnitParameterUnit_EqualPowerCrossfade: _bindgen_ty_168 = 16;
pub const kAudioUnitParameterUnit_MixerFaderCurve1: _bindgen_ty_168 = 17;
pub const kAudioUnitParameterUnit_Pan: _bindgen_ty_168 = 18;
pub const kAudioUnitParameterUnit_Meters: _bindgen_ty_168 = 19;
pub const kAudioUnitParameterUnit_AbsoluteCents: _bindgen_ty_168 = 20;
pub const kAudioUnitParameterUnit_Octaves: _bindgen_ty_168 = 21;
pub const kAudioUnitParameterUnit_BPM: _bindgen_ty_168 = 22;
pub const kAudioUnitParameterUnit_Beats: _bindgen_ty_168 = 23;
pub const kAudioUnitParameterUnit_Milliseconds: _bindgen_ty_168 = 24;
pub const kAudioUnitParameterUnit_Ratio: _bindgen_ty_168 = 25;
pub const kAudioUnitParameterUnit_CustomUnit: _bindgen_ty_168 = 26;
pub const kAudioUnitParameterUnit_MIDI2Controller: _bindgen_ty_168 = 27;
pub type _bindgen_ty_168 = ::std::os::raw::c_uint;
pub type AudioUnitParameterOptions = UInt32;
pub const kAudioUnitParameterFlag_CFNameRelease: _bindgen_ty_169 = 16;
pub const kAudioUnitParameterFlag_OmitFromPresets: _bindgen_ty_169 = 8192;
pub const kAudioUnitParameterFlag_PlotHistory: _bindgen_ty_169 = 16384;
pub const kAudioUnitParameterFlag_MeterReadOnly: _bindgen_ty_169 = 32768;
pub const kAudioUnitParameterFlag_DisplayMask: _bindgen_ty_169 = 4653056;
pub const kAudioUnitParameterFlag_DisplaySquareRoot: _bindgen_ty_169 = 65536;
pub const kAudioUnitParameterFlag_DisplaySquared: _bindgen_ty_169 = 131072;
pub const kAudioUnitParameterFlag_DisplayCubed: _bindgen_ty_169 = 196608;
pub const kAudioUnitParameterFlag_DisplayCubeRoot: _bindgen_ty_169 = 262144;
pub const kAudioUnitParameterFlag_DisplayExponential: _bindgen_ty_169 = 327680;
pub const kAudioUnitParameterFlag_HasClump: _bindgen_ty_169 = 1048576;
pub const kAudioUnitParameterFlag_ValuesHaveStrings: _bindgen_ty_169 = 2097152;
pub const kAudioUnitParameterFlag_DisplayLogarithmic: _bindgen_ty_169 = 4194304;
pub const kAudioUnitParameterFlag_IsHighResolution: _bindgen_ty_169 = 8388608;
pub const kAudioUnitParameterFlag_NonRealTime: _bindgen_ty_169 = 16777216;
pub const kAudioUnitParameterFlag_CanRamp: _bindgen_ty_169 = 33554432;
pub const kAudioUnitParameterFlag_ExpertMode: _bindgen_ty_169 = 67108864;
pub const kAudioUnitParameterFlag_HasCFNameString: _bindgen_ty_169 = 134217728;
pub const kAudioUnitParameterFlag_IsGlobalMeta: _bindgen_ty_169 = 268435456;
pub const kAudioUnitParameterFlag_IsElementMeta: _bindgen_ty_169 = 536870912;
pub const kAudioUnitParameterFlag_IsReadable: _bindgen_ty_169 = 1073741824;
pub const kAudioUnitParameterFlag_IsWritable: _bindgen_ty_169 = 2147483648;
pub type _bindgen_ty_169 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameterInfo {
pub name: [::std::os::raw::c_char; 52usize],
pub unitName: CFStringRef,
pub clumpID: UInt32,
pub cfNameString: CFStringRef,
pub unit: AudioUnitParameterUnit,
pub minValue: AudioUnitParameterValue,
pub maxValue: AudioUnitParameterValue,
pub defaultValue: AudioUnitParameterValue,
pub flags: AudioUnitParameterOptions,
}
impl Default for AudioUnitParameterInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAudioUnitClumpID_System: _bindgen_ty_170 = 0;
pub type _bindgen_ty_170 = ::std::os::raw::c_uint;
pub const kAudioUnitParameterName_Full: _bindgen_ty_171 = -1;
pub type _bindgen_ty_171 = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameterNameInfo {
pub inID: AudioUnitParameterID,
pub inDesiredLength: SInt32,
pub outName: CFStringRef,
}
impl Default for AudioUnitParameterNameInfo {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AudioUnitParameterIDName = AudioUnitParameterNameInfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameterStringFromValue {
pub inParamID: AudioUnitParameterID,
pub inValue: *const AudioUnitParameterValue,
pub outString: CFStringRef,
}
impl Default for AudioUnitParameterStringFromValue {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameterValueFromString {
pub inParamID: AudioUnitParameterID,
pub inString: CFStringRef,
pub outValue: AudioUnitParameterValue,
}
impl Default for AudioUnitParameterValueFromString {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type AudioUnitRemoteControlEvent = UInt32;
pub const kAudioUnitRemoteControlEvent_TogglePlayPause: _bindgen_ty_172 = 1;
pub const kAudioUnitRemoteControlEvent_ToggleRecord: _bindgen_ty_172 = 2;
pub const kAudioUnitRemoteControlEvent_Rewind: _bindgen_ty_172 = 3;
pub type _bindgen_ty_172 = ::std::os::raw::c_uint;
pub type AudioUnitRemoteControlEventListener = *mut ::std::os::raw::c_void;
pub const kAudioUnitProperty_AllParameterMIDIMappings: _bindgen_ty_173 = 41;
pub const kAudioUnitProperty_AddParameterMIDIMapping: _bindgen_ty_173 = 42;
pub const kAudioUnitProperty_RemoveParameterMIDIMapping: _bindgen_ty_173 = 43;
pub const kAudioUnitProperty_HotMapParameterMIDIMapping: _bindgen_ty_173 = 44;
pub type _bindgen_ty_173 = ::std::os::raw::c_uint;
pub type AUParameterMIDIMappingFlags = UInt32;
pub const kAUParameterMIDIMapping_AnyChannelFlag: _bindgen_ty_174 = 1;
pub const kAUParameterMIDIMapping_AnyNoteFlag: _bindgen_ty_174 = 2;
pub const kAUParameterMIDIMapping_SubRange: _bindgen_ty_174 = 4;
pub const kAUParameterMIDIMapping_Toggle: _bindgen_ty_174 = 8;
pub const kAUParameterMIDIMapping_Bipolar: _bindgen_ty_174 = 16;
pub const kAUParameterMIDIMapping_Bipolar_On: _bindgen_ty_174 = 32;
pub type _bindgen_ty_174 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUParameterMIDIMapping {
pub mScope: AudioUnitScope,
pub mElement: AudioUnitElement,
pub mParameterID: AudioUnitParameterID,
pub mFlags: AUParameterMIDIMappingFlags,
pub mSubRangeMin: AudioUnitParameterValue,
pub mSubRangeMax: AudioUnitParameterValue,
pub mStatus: UInt8,
pub mData1: UInt8,
pub reserved1: UInt8,
pub reserved2: UInt8,
pub reserved3: UInt32,
}
pub const kMusicDeviceProperty_MIDIXMLNames: _bindgen_ty_175 = 1006;
pub const kMusicDeviceProperty_PartGroup: _bindgen_ty_175 = 1010;
pub const kMusicDeviceProperty_DualSchedulingMode: _bindgen_ty_175 = 1013;
pub const kMusicDeviceProperty_SupportsStartStopNote: _bindgen_ty_175 = 1014;
pub type _bindgen_ty_175 = ::std::os::raw::c_uint;
pub const kMusicDeviceSampleFrameMask_SampleOffset: _bindgen_ty_176 = 16777215;
pub const kMusicDeviceSampleFrameMask_IsScheduled: _bindgen_ty_176 = 16777216;
pub type _bindgen_ty_176 = ::std::os::raw::c_uint;
pub const kAudioUnitOfflineProperty_InputSize: _bindgen_ty_177 = 3020;
pub const kAudioUnitOfflineProperty_OutputSize: _bindgen_ty_177 = 3021;
pub const kAudioUnitOfflineProperty_StartOffset: _bindgen_ty_177 = 3022;
pub const kAudioUnitOfflineProperty_PreflightRequirements: _bindgen_ty_177 = 3023;
pub const kAudioUnitOfflineProperty_PreflightName: _bindgen_ty_177 = 3024;
pub type _bindgen_ty_177 = ::std::os::raw::c_uint;
pub const kOfflinePreflight_NotRequired: _bindgen_ty_178 = 0;
pub const kOfflinePreflight_Optional: _bindgen_ty_178 = 1;
pub const kOfflinePreflight_Required: _bindgen_ty_178 = 2;
pub type _bindgen_ty_178 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_DistanceAttenuationData: _bindgen_ty_179 = 3600;
pub type _bindgen_ty_179 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUDistanceAttenuationData {
pub inNumberOfPairs: UInt32,
pub pairs: [AUDistanceAttenuationData__bindgen_ty_1; 1usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUDistanceAttenuationData__bindgen_ty_1 {
pub inDistance: Float32,
pub outGain: Float32,
}
pub const kAudioUnitMigrateProperty_FromPlugin: _bindgen_ty_180 = 4000;
pub const kAudioUnitMigrateProperty_OldAutomation: _bindgen_ty_180 = 4001;
pub type _bindgen_ty_180 = ::std::os::raw::c_uint;
pub const kOtherPluginFormat_Undefined: _bindgen_ty_181 = 0;
pub const kOtherPluginFormat_kMAS: _bindgen_ty_181 = 1;
pub const kOtherPluginFormat_kVST: _bindgen_ty_181 = 2;
pub const kOtherPluginFormat_AU: _bindgen_ty_181 = 3;
pub type _bindgen_ty_181 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitOtherPluginDesc {
pub format: UInt32,
pub plugin: AudioClassDescription,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitParameterValueTranslation {
pub otherDesc: AudioUnitOtherPluginDesc,
pub otherParamID: UInt32,
pub otherValue: Float32,
pub auParamID: AudioUnitParameterID,
pub auValue: AudioUnitParameterValue,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitPresetMAS_SettingData {
pub isStockSetting: UInt32,
pub settingID: UInt32,
pub dataLen: UInt32,
pub data: [UInt8; 1usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitPresetMAS_Settings {
pub manufacturerID: UInt32,
pub effectID: UInt32,
pub variantID: UInt32,
pub settingsVersion: UInt32,
pub numberOfSettings: UInt32,
pub settings: [AudioUnitPresetMAS_SettingData; 1usize],
}
pub const kAudioUnitProperty_SampleRateConverterComplexity: _bindgen_ty_182 = 3014;
pub type _bindgen_ty_182 = ::std::os::raw::c_uint;
pub const kAudioUnitSampleRateConverterComplexity_Linear: _bindgen_ty_183 = 1818848869;
pub const kAudioUnitSampleRateConverterComplexity_Normal: _bindgen_ty_183 = 1852797549;
pub const kAudioUnitSampleRateConverterComplexity_Mastering: _bindgen_ty_183 = 1650553971;
pub type _bindgen_ty_183 = ::std::os::raw::c_uint;
pub const kAudioOutputUnitProperty_CurrentDevice: _bindgen_ty_184 = 2000;
pub const kAudioOutputUnitProperty_IsRunning: _bindgen_ty_184 = 2001;
pub const kAudioOutputUnitProperty_ChannelMap: _bindgen_ty_184 = 2002;
pub const kAudioOutputUnitProperty_EnableIO: _bindgen_ty_184 = 2003;
pub const kAudioOutputUnitProperty_StartTime: _bindgen_ty_184 = 2004;
pub const kAudioOutputUnitProperty_SetInputCallback: _bindgen_ty_184 = 2005;
pub const kAudioOutputUnitProperty_HasIO: _bindgen_ty_184 = 2006;
pub const kAudioOutputUnitProperty_StartTimestampsAtZero: _bindgen_ty_184 = 2007;
pub const kAudioOutputUnitProperty_OSWorkgroup: _bindgen_ty_184 = 2015;
pub type _bindgen_ty_184 = ::std::os::raw::c_uint;
pub const kAudioOutputUnitProperty_MIDICallbacks: _bindgen_ty_185 = 2010;
pub const kAudioOutputUnitProperty_HostReceivesRemoteControlEvents: _bindgen_ty_185 = 2011;
pub const kAudioOutputUnitProperty_RemoteControlToHost: _bindgen_ty_185 = 2012;
pub const kAudioOutputUnitProperty_HostTransportState: _bindgen_ty_185 = 2013;
pub const kAudioOutputUnitProperty_NodeComponentDescription: _bindgen_ty_185 = 2014;
pub type _bindgen_ty_185 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioOutputUnitMIDICallbacks {
pub userData: *mut ::std::os::raw::c_void,
pub MIDIEventProc: ::std::option::Option<
unsafe extern "C" fn(
userData: *mut ::std::os::raw::c_void,
inStatus: UInt32,
inData1: UInt32,
inData2: UInt32,
inOffsetSampleFrame: UInt32,
),
>,
pub MIDISysExProc: ::std::option::Option<
unsafe extern "C" fn(
userData: *mut ::std::os::raw::c_void,
inData: *const UInt8,
inLength: UInt32,
),
>,
}
impl Default for AudioOutputUnitMIDICallbacks {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioOutputUnitStartAtTimeParams {
pub mTimestamp: AudioTimeStamp,
pub mFlags: UInt32,
}
pub const kAUVoiceIOProperty_BypassVoiceProcessing: _bindgen_ty_186 = 2100;
pub const kAUVoiceIOProperty_VoiceProcessingEnableAGC: _bindgen_ty_186 = 2101;
pub const kAUVoiceIOProperty_MuteOutput: _bindgen_ty_186 = 2104;
pub type _bindgen_ty_186 = ::std::os::raw::c_uint;
pub type AUVoiceIOSpeechActivityEvent = UInt32;
pub const kAUVoiceIOSpeechActivityHasStarted: _bindgen_ty_187 = 0;
pub const kAUVoiceIOSpeechActivityHasEnded: _bindgen_ty_187 = 1;
pub type _bindgen_ty_187 = ::std::os::raw::c_uint;
pub type AUVoiceIOMutedSpeechActivityEventListener = *mut ::std::os::raw::c_void;
pub const kAUVoiceIOProperty_MutedSpeechActivityEventListener: _bindgen_ty_188 = 2106;
pub type _bindgen_ty_188 = ::std::os::raw::c_uint;
pub type AUVoiceIOOtherAudioDuckingLevel = UInt32;
pub const kAUVoiceIOOtherAudioDuckingLevelDefault: _bindgen_ty_189 = 0;
pub const kAUVoiceIOOtherAudioDuckingLevelMin: _bindgen_ty_189 = 10;
pub const kAUVoiceIOOtherAudioDuckingLevelMid: _bindgen_ty_189 = 20;
pub const kAUVoiceIOOtherAudioDuckingLevelMax: _bindgen_ty_189 = 30;
pub type _bindgen_ty_189 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUVoiceIOOtherAudioDuckingConfiguration {
pub mEnableAdvancedDucking: Boolean,
pub mDuckingLevel: AUVoiceIOOtherAudioDuckingLevel,
}
pub const kAUVoiceIOProperty_OtherAudioDuckingConfiguration: _bindgen_ty_190 = 2108;
pub type _bindgen_ty_190 = ::std::os::raw::c_uint;
pub const kAUVoiceIOProperty_VoiceProcessingQuality: _bindgen_ty_191 = 2103;
pub type _bindgen_ty_191 = ::std::os::raw::c_uint;
pub const kAUNBandEQProperty_NumberOfBands: _bindgen_ty_192 = 2200;
pub const kAUNBandEQProperty_MaxNumberOfBands: _bindgen_ty_192 = 2201;
pub const kAUNBandEQProperty_BiquadCoefficients: _bindgen_ty_192 = 2203;
pub type _bindgen_ty_192 = ::std::os::raw::c_uint;
pub const kAUVoiceIOErr_UnexpectedNumberOfInputChannels: _bindgen_ty_193 = -66784;
pub type _bindgen_ty_193 = ::std::os::raw::c_int;
pub const kAudioUnitProperty_MeteringMode: _bindgen_ty_194 = 3007;
pub const kAudioUnitProperty_MatrixLevels: _bindgen_ty_194 = 3006;
pub const kAudioUnitProperty_MatrixDimensions: _bindgen_ty_194 = 3009;
pub const kAudioUnitProperty_MeterClipping: _bindgen_ty_194 = 3011;
pub const kAudioUnitProperty_InputAnchorTimeStamp: _bindgen_ty_194 = 3016;
pub type _bindgen_ty_194 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitMeterClipping {
pub peakValueSinceLastCall: Float32,
pub sawInfinity: Boolean,
pub sawNotANumber: Boolean,
}
pub const kAudioUnitProperty_ReverbRoomType: _bindgen_ty_195 = 10;
pub const kAudioUnitProperty_UsesInternalReverb: _bindgen_ty_195 = 1005;
pub const kAudioUnitProperty_SpatializationAlgorithm: _bindgen_ty_195 = 3000;
pub const kAudioUnitProperty_SpatialMixerRenderingFlags: _bindgen_ty_195 = 3003;
pub const kAudioUnitProperty_SpatialMixerSourceMode: _bindgen_ty_195 = 3005;
pub const kAudioUnitProperty_SpatialMixerDistanceParams: _bindgen_ty_195 = 3010;
pub const kAudioUnitProperty_SpatialMixerAttenuationCurve: _bindgen_ty_195 = 3013;
pub const kAudioUnitProperty_SpatialMixerOutputType: _bindgen_ty_195 = 3100;
pub const kAudioUnitProperty_SpatialMixerPointSourceInHeadMode: _bindgen_ty_195 = 3103;
pub const kAudioUnitProperty_SpatialMixerEnableHeadTracking: _bindgen_ty_195 = 3111;
pub const kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode: _bindgen_ty_195 = 3113;
pub const kAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF: _bindgen_ty_195 = 3116;
pub type _bindgen_ty_195 = ::std::os::raw::c_uint;
pub type AUSpatializationAlgorithm = UInt32;
pub const kSpatializationAlgorithm_EqualPowerPanning: _bindgen_ty_196 = 0;
pub const kSpatializationAlgorithm_SphericalHead: _bindgen_ty_196 = 1;
pub const kSpatializationAlgorithm_HRTF: _bindgen_ty_196 = 2;
pub const kSpatializationAlgorithm_SoundField: _bindgen_ty_196 = 3;
pub const kSpatializationAlgorithm_VectorBasedPanning: _bindgen_ty_196 = 4;
pub const kSpatializationAlgorithm_StereoPassThrough: _bindgen_ty_196 = 5;
pub const kSpatializationAlgorithm_HRTFHQ: _bindgen_ty_196 = 6;
pub const kSpatializationAlgorithm_UseOutputType: _bindgen_ty_196 = 7;
pub type _bindgen_ty_196 = ::std::os::raw::c_uint;
pub type AUSpatialMixerSourceMode = UInt32;
pub const kSpatialMixerSourceMode_SpatializeIfMono: _bindgen_ty_197 = 0;
pub const kSpatialMixerSourceMode_Bypass: _bindgen_ty_197 = 1;
pub const kSpatialMixerSourceMode_PointSource: _bindgen_ty_197 = 2;
pub const kSpatialMixerSourceMode_AmbienceBed: _bindgen_ty_197 = 3;
pub type _bindgen_ty_197 = ::std::os::raw::c_uint;
pub type AUReverbRoomType = UInt32;
pub const kReverbRoomType_SmallRoom: _bindgen_ty_198 = 0;
pub const kReverbRoomType_MediumRoom: _bindgen_ty_198 = 1;
pub const kReverbRoomType_LargeRoom: _bindgen_ty_198 = 2;
pub const kReverbRoomType_MediumHall: _bindgen_ty_198 = 3;
pub const kReverbRoomType_LargeHall: _bindgen_ty_198 = 4;
pub const kReverbRoomType_Plate: _bindgen_ty_198 = 5;
pub const kReverbRoomType_MediumChamber: _bindgen_ty_198 = 6;
pub const kReverbRoomType_LargeChamber: _bindgen_ty_198 = 7;
pub const kReverbRoomType_Cathedral: _bindgen_ty_198 = 8;
pub const kReverbRoomType_LargeRoom2: _bindgen_ty_198 = 9;
pub const kReverbRoomType_MediumHall2: _bindgen_ty_198 = 10;
pub const kReverbRoomType_MediumHall3: _bindgen_ty_198 = 11;
pub const kReverbRoomType_LargeHall2: _bindgen_ty_198 = 12;
pub type _bindgen_ty_198 = ::std::os::raw::c_uint;
pub type AUSpatialMixerAttenuationCurve = UInt32;
pub const kSpatialMixerAttenuationCurve_Power: _bindgen_ty_199 = 0;
pub const kSpatialMixerAttenuationCurve_Exponential: _bindgen_ty_199 = 1;
pub const kSpatialMixerAttenuationCurve_Inverse: _bindgen_ty_199 = 2;
pub const kSpatialMixerAttenuationCurve_Linear: _bindgen_ty_199 = 3;
pub type _bindgen_ty_199 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct MixerDistanceParams {
pub mReferenceDistance: Float32,
pub mMaxDistance: Float32,
pub mMaxAttenuation: Float32,
}
pub type AUSpatialMixerRenderingFlags = UInt32;
pub const kSpatialMixerRenderingFlags_InterAuralDelay: _bindgen_ty_200 = 1;
pub const kSpatialMixerRenderingFlags_DistanceAttenuation: _bindgen_ty_200 = 4;
pub type _bindgen_ty_200 = ::std::os::raw::c_uint;
pub type AUSpatialMixerPersonalizedHRTFMode = UInt32;
pub const kSpatialMixerPersonalizedHRTFMode_Off: _bindgen_ty_201 = 0;
pub const kSpatialMixerPersonalizedHRTFMode_On: _bindgen_ty_201 = 1;
pub const kSpatialMixerPersonalizedHRTFMode_Auto: _bindgen_ty_201 = 2;
pub type _bindgen_ty_201 = ::std::os::raw::c_uint;
pub type AUSpatialMixerOutputType = UInt32;
pub const kSpatialMixerOutputType_Headphones: _bindgen_ty_202 = 1;
pub const kSpatialMixerOutputType_BuiltInSpeakers: _bindgen_ty_202 = 2;
pub const kSpatialMixerOutputType_ExternalSpeakers: _bindgen_ty_202 = 3;
pub type _bindgen_ty_202 = ::std::os::raw::c_uint;
pub type AUSpatialMixerPointSourceInHeadMode = UInt32;
pub const kSpatialMixerPointSourceInHeadMode_Mono: _bindgen_ty_203 = 0;
pub const kSpatialMixerPointSourceInHeadMode_Bypass: _bindgen_ty_203 = 1;
pub type _bindgen_ty_203 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_3DMixerDistanceParams: _bindgen_ty_204 = 3010;
pub const kAudioUnitProperty_3DMixerAttenuationCurve: _bindgen_ty_204 = 3013;
pub const kAudioUnitProperty_DopplerShift: _bindgen_ty_204 = 3002;
pub const kAudioUnitProperty_3DMixerRenderingFlags: _bindgen_ty_204 = 3003;
pub const kAudioUnitProperty_3DMixerDistanceAtten: _bindgen_ty_204 = 3004;
pub const kAudioUnitProperty_ReverbPreset: _bindgen_ty_204 = 3012;
pub type _bindgen_ty_204 = ::std::os::raw::c_uint;
pub type AU3DMixerRenderingFlags = UInt32;
pub const k3DMixerRenderingFlags_InterAuralDelay: _bindgen_ty_205 = 1;
pub const k3DMixerRenderingFlags_DopplerShift: _bindgen_ty_205 = 2;
pub const k3DMixerRenderingFlags_DistanceAttenuation: _bindgen_ty_205 = 4;
pub const k3DMixerRenderingFlags_DistanceFilter: _bindgen_ty_205 = 8;
pub const k3DMixerRenderingFlags_DistanceDiffusion: _bindgen_ty_205 = 16;
pub const k3DMixerRenderingFlags_LinearDistanceAttenuation: _bindgen_ty_205 = 32;
pub const k3DMixerRenderingFlags_ConstantReverbBlend: _bindgen_ty_205 = 64;
pub type _bindgen_ty_205 = ::std::os::raw::c_uint;
pub type AU3DMixerAttenuationCurve = UInt32;
pub const k3DMixerAttenuationCurve_Power: _bindgen_ty_206 = 0;
pub const k3DMixerAttenuationCurve_Exponential: _bindgen_ty_206 = 1;
pub const k3DMixerAttenuationCurve_Inverse: _bindgen_ty_206 = 2;
pub const k3DMixerAttenuationCurve_Linear: _bindgen_ty_206 = 3;
pub type _bindgen_ty_206 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_ScheduleAudioSlice: _bindgen_ty_207 = 3300;
pub const kAudioUnitProperty_ScheduleStartTimeStamp: _bindgen_ty_207 = 3301;
pub const kAudioUnitProperty_CurrentPlayTime: _bindgen_ty_207 = 3302;
pub type _bindgen_ty_207 = ::std::os::raw::c_uint;
pub type AUScheduledAudioSliceFlags = UInt32;
pub const kScheduledAudioSliceFlag_Complete: _bindgen_ty_208 = 1;
pub const kScheduledAudioSliceFlag_BeganToRender: _bindgen_ty_208 = 2;
pub const kScheduledAudioSliceFlag_BeganToRenderLate: _bindgen_ty_208 = 4;
pub const kScheduledAudioSliceFlag_Loop: _bindgen_ty_208 = 8;
pub const kScheduledAudioSliceFlag_Interrupt: _bindgen_ty_208 = 16;
pub const kScheduledAudioSliceFlag_InterruptAtLoop: _bindgen_ty_208 = 32;
pub type _bindgen_ty_208 = ::std::os::raw::c_uint;
pub type ScheduledAudioSliceCompletionProc = ::std::option::Option<
unsafe extern "C" fn(
userData: *mut ::std::os::raw::c_void,
bufferList: *mut ScheduledAudioSlice,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ScheduledAudioSlice {
pub mTimeStamp: AudioTimeStamp,
pub mCompletionProc: ScheduledAudioSliceCompletionProc,
pub mCompletionProcUserData: *mut ::std::os::raw::c_void,
pub mFlags: AUScheduledAudioSliceFlags,
pub mReserved: UInt32,
pub mReserved2: *mut ::std::os::raw::c_void,
pub mNumberFrames: UInt32,
pub mBufferList: *mut AudioBufferList,
}
impl Default for ScheduledAudioSlice {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAudioUnitProperty_ScheduledFileIDs: _bindgen_ty_209 = 3310;
pub const kAudioUnitProperty_ScheduledFileRegion: _bindgen_ty_209 = 3311;
pub const kAudioUnitProperty_ScheduledFilePrime: _bindgen_ty_209 = 3312;
pub const kAudioUnitProperty_ScheduledFileBufferSizeFrames: _bindgen_ty_209 = 3313;
pub const kAudioUnitProperty_ScheduledFileNumberBuffers: _bindgen_ty_209 = 3314;
pub type _bindgen_ty_209 = ::std::os::raw::c_uint;
pub type ScheduledAudioFileRegionCompletionProc = ::std::option::Option<
unsafe extern "C" fn(
userData: *mut ::std::os::raw::c_void,
fileRegion: *mut ScheduledAudioFileRegion,
result: OSStatus,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ScheduledAudioFileRegion {
pub mTimeStamp: AudioTimeStamp,
pub mCompletionProc: ScheduledAudioFileRegionCompletionProc,
pub mCompletionProcUserData: *mut ::std::os::raw::c_void,
pub mAudioFile: *mut OpaqueAudioFileID,
pub mLoopCount: UInt32,
pub mStartFrame: SInt64,
pub mFramesToPlay: UInt32,
}
impl Default for ScheduledAudioFileRegion {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kMusicDeviceProperty_UsesInternalReverb: _bindgen_ty_210 = 1005;
pub const kMusicDeviceProperty_SoundBankData: _bindgen_ty_210 = 1008;
pub const kMusicDeviceProperty_StreamFromDisk: _bindgen_ty_210 = 1011;
pub const kMusicDeviceProperty_SoundBankFSRef: _bindgen_ty_210 = 1012;
pub type _bindgen_ty_210 = ::std::os::raw::c_uint;
pub const kMusicDeviceProperty_InstrumentName: _bindgen_ty_211 = 1001;
pub const kMusicDeviceProperty_InstrumentNumber: _bindgen_ty_211 = 1004;
pub type _bindgen_ty_211 = ::std::os::raw::c_uint;
pub const kMusicDeviceProperty_InstrumentCount: _bindgen_ty_212 = 1000;
pub const kMusicDeviceProperty_BankName: _bindgen_ty_212 = 1007;
pub const kMusicDeviceProperty_SoundBankURL: _bindgen_ty_212 = 1100;
pub type _bindgen_ty_212 = ::std::os::raw::c_uint;
pub const kAUMIDISynthProperty_EnablePreload: _bindgen_ty_213 = 4119;
pub type _bindgen_ty_213 = ::std::os::raw::c_uint;
pub const kAUSamplerProperty_LoadInstrument: _bindgen_ty_214 = 4102;
pub const kAUSamplerProperty_LoadAudioFiles: _bindgen_ty_214 = 4101;
pub type _bindgen_ty_214 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUSamplerInstrumentData {
pub fileURL: CFURLRef,
pub instrumentType: UInt8,
pub bankMSB: UInt8,
pub bankLSB: UInt8,
pub presetID: UInt8,
}
impl Default for AUSamplerInstrumentData {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kInstrumentType_DLSPreset: _bindgen_ty_215 = 1;
pub const kInstrumentType_SF2Preset: _bindgen_ty_215 = 1;
pub const kInstrumentType_AUPreset: _bindgen_ty_215 = 2;
pub const kInstrumentType_Audiofile: _bindgen_ty_215 = 3;
pub const kInstrumentType_EXS24: _bindgen_ty_215 = 4;
pub type _bindgen_ty_215 = ::std::os::raw::c_uint;
pub const kAUSampler_DefaultPercussionBankMSB: _bindgen_ty_216 = 120;
pub const kAUSampler_DefaultMelodicBankMSB: _bindgen_ty_216 = 121;
pub const kAUSampler_DefaultBankLSB: _bindgen_ty_216 = 0;
pub type _bindgen_ty_216 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_DeferredRendererPullSize: _bindgen_ty_217 = 3320;
pub const kAudioUnitProperty_DeferredRendererExtraLatency: _bindgen_ty_217 = 3321;
pub const kAudioUnitProperty_DeferredRendererWaitFrames: _bindgen_ty_217 = 3322;
pub type _bindgen_ty_217 = ::std::os::raw::c_uint;
pub const kAUNetReceiveProperty_Hostname: _bindgen_ty_218 = 3511;
pub const kAUNetReceiveProperty_Password: _bindgen_ty_218 = 3512;
pub type _bindgen_ty_218 = ::std::os::raw::c_uint;
pub const kAUNetSendProperty_PortNum: _bindgen_ty_219 = 3513;
pub const kAUNetSendProperty_TransmissionFormat: _bindgen_ty_219 = 3514;
pub const kAUNetSendProperty_TransmissionFormatIndex: _bindgen_ty_219 = 3515;
pub const kAUNetSendProperty_ServiceName: _bindgen_ty_219 = 3516;
pub const kAUNetSendProperty_Disconnect: _bindgen_ty_219 = 3517;
pub const kAUNetSendProperty_Password: _bindgen_ty_219 = 3518;
pub type _bindgen_ty_219 = ::std::os::raw::c_uint;
pub const kAUNetSendPresetFormat_PCMFloat32: _bindgen_ty_220 = 0;
pub const kAUNetSendPresetFormat_PCMInt24: _bindgen_ty_220 = 1;
pub const kAUNetSendPresetFormat_PCMInt16: _bindgen_ty_220 = 2;
pub const kAUNetSendPresetFormat_Lossless24: _bindgen_ty_220 = 3;
pub const kAUNetSendPresetFormat_Lossless16: _bindgen_ty_220 = 4;
pub const kAUNetSendPresetFormat_ULaw: _bindgen_ty_220 = 5;
pub const kAUNetSendPresetFormat_IMA4: _bindgen_ty_220 = 6;
pub const kAUNetSendPresetFormat_AAC_128kbpspc: _bindgen_ty_220 = 7;
pub const kAUNetSendPresetFormat_AAC_96kbpspc: _bindgen_ty_220 = 8;
pub const kAUNetSendPresetFormat_AAC_80kbpspc: _bindgen_ty_220 = 9;
pub const kAUNetSendPresetFormat_AAC_64kbpspc: _bindgen_ty_220 = 10;
pub const kAUNetSendPresetFormat_AAC_48kbpspc: _bindgen_ty_220 = 11;
pub const kAUNetSendPresetFormat_AAC_40kbpspc: _bindgen_ty_220 = 12;
pub const kAUNetSendPresetFormat_AAC_32kbpspc: _bindgen_ty_220 = 13;
pub const kAUNetSendPresetFormat_AAC_LD_64kbpspc: _bindgen_ty_220 = 14;
pub const kAUNetSendPresetFormat_AAC_LD_48kbpspc: _bindgen_ty_220 = 15;
pub const kAUNetSendPresetFormat_AAC_LD_40kbpspc: _bindgen_ty_220 = 16;
pub const kAUNetSendPresetFormat_AAC_LD_32kbpspc: _bindgen_ty_220 = 17;
pub const kAUNetSendNumPresetFormats: _bindgen_ty_220 = 18;
pub type _bindgen_ty_220 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AUNumVersion {
pub nonRelRev: UInt8,
pub stage: UInt8,
pub minorAndBugRev: UInt8,
pub majorRev: UInt8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUHostIdentifier {
pub hostName: CFStringRef,
pub hostVersion: AUNumVersion,
}
impl Default for AUHostIdentifier {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAudioUnitParameterFlag_Global: _bindgen_ty_221 = 1;
pub const kAudioUnitParameterFlag_Input: _bindgen_ty_221 = 2;
pub const kAudioUnitParameterFlag_Output: _bindgen_ty_221 = 4;
pub const kAudioUnitParameterFlag_Group: _bindgen_ty_221 = 8;
pub type _bindgen_ty_221 = ::std::os::raw::c_uint;
pub const kAudioUnitParameterFlag_HasName: _bindgen_ty_222 = 2097152;
pub type _bindgen_ty_222 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_SRCAlgorithm: _bindgen_ty_223 = 9;
pub const kAudioUnitProperty_MIDIControlMapping: _bindgen_ty_223 = 17;
pub const kAudioUnitProperty_CurrentPreset: _bindgen_ty_223 = 28;
pub const kAudioUnitProperty_ParameterValueName: _bindgen_ty_223 = 33;
pub const kAudioUnitProperty_BusCount: _bindgen_ty_223 = 11;
pub const kAudioOfflineUnitProperty_InputSize: _bindgen_ty_223 = 3020;
pub const kAudioOfflineUnitProperty_OutputSize: _bindgen_ty_223 = 3021;
pub type _bindgen_ty_223 = ::std::os::raw::c_uint;
pub const kAudioUnitSRCAlgorithm_Polyphase: _bindgen_ty_224 = 1886350457;
pub const kAudioUnitSRCAlgorithm_MediumQuality: _bindgen_ty_224 = 1668510307;
pub type _bindgen_ty_224 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioUnitMIDIControlMapping {
pub midiNRPN: UInt16,
pub midiControl: UInt8,
pub scope: UInt8,
pub element: AudioUnitElement,
pub parameter: AudioUnitParameterID,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioUnitParameterValueName {
pub inParamID: AudioUnitParameterID,
pub inValue: *const Float32,
pub outName: CFStringRef,
}
impl Default for AudioUnitParameterValueName {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kMusicDeviceProperty_GroupOutputBus: _bindgen_ty_225 = 1002;
pub const kMusicDeviceProperty_SoundBankFSSpec: _bindgen_ty_225 = 1003;
pub const kAudioUnitProperty_PannerMode: _bindgen_ty_225 = 3008;
pub type _bindgen_ty_225 = ::std::os::raw::c_uint;
pub const kAudioUnitProperty_SpeakerConfiguration: _bindgen_ty_226 = 3001;
pub type _bindgen_ty_226 = ::std::os::raw::c_uint;
pub const kSpeakerConfiguration_HeadPhones: _bindgen_ty_227 = 0;
pub const kSpeakerConfiguration_Stereo: _bindgen_ty_227 = 1;
pub const kSpeakerConfiguration_Quad: _bindgen_ty_227 = 2;
pub const kSpeakerConfiguration_5_0: _bindgen_ty_227 = 3;
pub const kSpeakerConfiguration_5_1: _bindgen_ty_227 = 3;
pub type _bindgen_ty_227 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AUSamplerBankPresetData {
pub bankURL: CFURLRef,
pub bankMSB: UInt8,
pub bankLSB: UInt8,
pub presetID: UInt8,
pub reserved: UInt8,
}
impl Default for AUSamplerBankPresetData {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAUSamplerProperty_LoadPresetFromBank: _bindgen_ty_228 = 4100;
pub const kAUSamplerProperty_BankAndPreset: _bindgen_ty_228 = 4100;
pub type _bindgen_ty_228 = ::std::os::raw::c_uint;
pub type MusicDeviceInstrumentID = UInt32;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct MusicDeviceStdNoteParams {
pub argCount: UInt32,
pub mPitch: Float32,
pub mVelocity: Float32,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct NoteParamsControlValue {
pub mID: AudioUnitParameterID,
pub mValue: AudioUnitParameterValue,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct MusicDeviceNoteParams {
pub argCount: UInt32,
pub mPitch: Float32,
pub mVelocity: Float32,
pub mControls: [NoteParamsControlValue; 1usize],
}
pub const kMusicNoteEvent_UseGroupInstrument: _bindgen_ty_229 = 4294967295;
pub const kMusicNoteEvent_Unused: _bindgen_ty_229 = 4294967295;
pub type _bindgen_ty_229 = ::std::os::raw::c_uint;
pub type MusicDeviceGroupID = UInt32;
pub type NoteInstanceID = UInt32;
pub type MusicDeviceComponent = AudioComponentInstance;
extern "C" {
pub fn MusicDeviceMIDIEvent(
inUnit: MusicDeviceComponent,
inStatus: UInt32,
inData1: UInt32,
inData2: UInt32,
inOffsetSampleFrame: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn MusicDeviceSysEx(
inUnit: MusicDeviceComponent,
inData: *const UInt8,
inLength: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn MusicDeviceMIDIEventList(
inUnit: MusicDeviceComponent,
inOffsetSampleFrame: UInt32,
evtList: *const MIDIEventList,
) -> OSStatus;
}
extern "C" {
pub fn MusicDeviceStartNote(
inUnit: MusicDeviceComponent,
inInstrument: MusicDeviceInstrumentID,
inGroupID: MusicDeviceGroupID,
outNoteInstanceID: *mut NoteInstanceID,
inOffsetSampleFrame: UInt32,
inParams: *const MusicDeviceNoteParams,
) -> OSStatus;
}
extern "C" {
pub fn MusicDeviceStopNote(
inUnit: MusicDeviceComponent,
inGroupID: MusicDeviceGroupID,
inNoteInstanceID: NoteInstanceID,
inOffsetSampleFrame: UInt32,
) -> OSStatus;
}
pub const kMusicDeviceRange: _bindgen_ty_230 = 256;
pub const kMusicDeviceMIDIEventSelect: _bindgen_ty_230 = 257;
pub const kMusicDeviceSysExSelect: _bindgen_ty_230 = 258;
pub const kMusicDevicePrepareInstrumentSelect: _bindgen_ty_230 = 259;
pub const kMusicDeviceReleaseInstrumentSelect: _bindgen_ty_230 = 260;
pub const kMusicDeviceStartNoteSelect: _bindgen_ty_230 = 261;
pub const kMusicDeviceStopNoteSelect: _bindgen_ty_230 = 262;
pub const kMusicDeviceMIDIEventListSelect: _bindgen_ty_230 = 263;
pub type _bindgen_ty_230 = ::std::os::raw::c_uint;
pub type MusicDeviceMIDIEventProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inStatus: UInt32,
inData1: UInt32,
inData2: UInt32,
inOffsetSampleFrame: UInt32,
) -> OSStatus,
>;
pub type MusicDeviceSysExProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inData: *const UInt8,
inLength: UInt32,
) -> OSStatus,
>;
pub type MusicDeviceStartNoteProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inInstrument: MusicDeviceInstrumentID,
inGroupID: MusicDeviceGroupID,
outNoteInstanceID: *mut NoteInstanceID,
inOffsetSampleFrame: UInt32,
inParams: *const MusicDeviceNoteParams,
) -> OSStatus,
>;
pub type MusicDeviceStopNoteProc = ::std::option::Option<
unsafe extern "C" fn(
self_: *mut ::std::os::raw::c_void,
inGroupID: MusicDeviceGroupID,
inNoteInstanceID: NoteInstanceID,
inOffsetSampleFrame: UInt32,
) -> OSStatus,
>;
extern "C" {
pub fn MusicDevicePrepareInstrument(
inUnit: MusicDeviceComponent,
inInstrument: MusicDeviceInstrumentID,
) -> OSStatus;
}
extern "C" {
pub fn MusicDeviceReleaseInstrument(
inUnit: MusicDeviceComponent,
inInstrument: MusicDeviceInstrumentID,
) -> OSStatus;
}
pub type AudioObjectID = UInt32;
pub type AudioClassID = UInt32;
pub type AudioObjectPropertySelector = UInt32;
pub type AudioObjectPropertyScope = UInt32;
pub type AudioObjectPropertyElement = UInt32;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioObjectPropertyAddress {
pub mSelector: AudioObjectPropertySelector,
pub mScope: AudioObjectPropertyScope,
pub mElement: AudioObjectPropertyElement,
}
pub const kAudioHardwareNoError: _bindgen_ty_231 = 0;
pub const kAudioHardwareNotRunningError: _bindgen_ty_231 = 1937010544;
pub const kAudioHardwareUnspecifiedError: _bindgen_ty_231 = 2003329396;
pub const kAudioHardwareUnknownPropertyError: _bindgen_ty_231 = 2003332927;
pub const kAudioHardwareBadPropertySizeError: _bindgen_ty_231 = 561211770;
pub const kAudioHardwareIllegalOperationError: _bindgen_ty_231 = 1852797029;
pub const kAudioHardwareBadObjectError: _bindgen_ty_231 = 560947818;
pub const kAudioHardwareBadDeviceError: _bindgen_ty_231 = 560227702;
pub const kAudioHardwareBadStreamError: _bindgen_ty_231 = 561214578;
pub const kAudioHardwareUnsupportedOperationError: _bindgen_ty_231 = 1970171760;
pub const kAudioHardwareNotReadyError: _bindgen_ty_231 = 1852990585;
pub const kAudioDeviceUnsupportedFormatError: _bindgen_ty_231 = 560226676;
pub const kAudioDevicePermissionsError: _bindgen_ty_231 = 560492391;
pub type _bindgen_ty_231 = ::std::os::raw::c_uint;
pub const kAudioObjectUnknown: _bindgen_ty_232 = 0;
pub type _bindgen_ty_232 = ::std::os::raw::c_uint;
pub const kAudioObjectPropertyScopeGlobal: _bindgen_ty_233 = 1735159650;
pub const kAudioObjectPropertyScopeInput: _bindgen_ty_233 = 1768845428;
pub const kAudioObjectPropertyScopeOutput: _bindgen_ty_233 = 1869968496;
pub const kAudioObjectPropertyScopePlayThrough: _bindgen_ty_233 = 1886679669;
pub const kAudioObjectPropertyElementMain: _bindgen_ty_233 = 0;
pub const kAudioObjectPropertyElementMaster: _bindgen_ty_233 = 0;
pub type _bindgen_ty_233 = ::std::os::raw::c_uint;
pub const kAudioObjectPropertySelectorWildcard: _bindgen_ty_234 = 707406378;
pub type _bindgen_ty_234 = ::std::os::raw::c_uint;
pub const kAudioObjectPropertyScopeWildcard: _bindgen_ty_235 = 707406378;
pub type _bindgen_ty_235 = ::std::os::raw::c_uint;
pub const kAudioObjectPropertyElementWildcard: _bindgen_ty_236 = 4294967295;
pub type _bindgen_ty_236 = ::std::os::raw::c_uint;
pub const kAudioObjectClassIDWildcard: _bindgen_ty_237 = 707406378;
pub type _bindgen_ty_237 = ::std::os::raw::c_uint;
pub const kAudioObjectClassID: _bindgen_ty_238 = 1634689642;
pub type _bindgen_ty_238 = ::std::os::raw::c_uint;
pub const kAudioObjectPropertyBaseClass: _bindgen_ty_239 = 1650682995;
pub const kAudioObjectPropertyClass: _bindgen_ty_239 = 1668047219;
pub const kAudioObjectPropertyOwner: _bindgen_ty_239 = 1937007734;
pub const kAudioObjectPropertyName: _bindgen_ty_239 = 1819173229;
pub const kAudioObjectPropertyModelName: _bindgen_ty_239 = 1819111268;
pub const kAudioObjectPropertyManufacturer: _bindgen_ty_239 = 1819107691;
pub const kAudioObjectPropertyElementName: _bindgen_ty_239 = 1818454126;
pub const kAudioObjectPropertyElementCategoryName: _bindgen_ty_239 = 1818452846;
pub const kAudioObjectPropertyElementNumberName: _bindgen_ty_239 = 1818455662;
pub const kAudioObjectPropertyOwnedObjects: _bindgen_ty_239 = 1870098020;
pub const kAudioObjectPropertyIdentify: _bindgen_ty_239 = 1768187246;
pub const kAudioObjectPropertySerialNumber: _bindgen_ty_239 = 1936618861;
pub const kAudioObjectPropertyFirmwareVersion: _bindgen_ty_239 = 1719105134;
pub type _bindgen_ty_239 = ::std::os::raw::c_uint;
pub const kAudioPlugInClassID: _bindgen_ty_240 = 1634757735;
pub type _bindgen_ty_240 = ::std::os::raw::c_uint;
pub const kAudioPlugInPropertyBundleID: _bindgen_ty_241 = 1885956452;
pub const kAudioPlugInPropertyDeviceList: _bindgen_ty_241 = 1684370979;
pub const kAudioPlugInPropertyTranslateUIDToDevice: _bindgen_ty_241 = 1969841252;
pub const kAudioPlugInPropertyBoxList: _bindgen_ty_241 = 1651472419;
pub const kAudioPlugInPropertyTranslateUIDToBox: _bindgen_ty_241 = 1969841250;
pub const kAudioPlugInPropertyClockDeviceList: _bindgen_ty_241 = 1668049699;
pub const kAudioPlugInPropertyTranslateUIDToClockDevice: _bindgen_ty_241 = 1969841251;
pub type _bindgen_ty_241 = ::std::os::raw::c_uint;
pub const kAudioTransportManagerClassID: _bindgen_ty_242 = 1953656941;
pub type _bindgen_ty_242 = ::std::os::raw::c_uint;
pub const kAudioTransportManagerPropertyEndPointList: _bindgen_ty_243 = 1701733411;
pub const kAudioTransportManagerPropertyTranslateUIDToEndPoint: _bindgen_ty_243 = 1969841253;
pub const kAudioTransportManagerPropertyTransportType: _bindgen_ty_243 = 1953653102;
pub type _bindgen_ty_243 = ::std::os::raw::c_uint;
pub const kAudioBoxClassID: _bindgen_ty_244 = 1633841016;
pub type _bindgen_ty_244 = ::std::os::raw::c_uint;
pub const kAudioBoxPropertyBoxUID: _bindgen_ty_245 = 1651861860;
pub const kAudioBoxPropertyTransportType: _bindgen_ty_245 = 1953653102;
pub const kAudioBoxPropertyHasAudio: _bindgen_ty_245 = 1651007861;
pub const kAudioBoxPropertyHasVideo: _bindgen_ty_245 = 1651013225;
pub const kAudioBoxPropertyHasMIDI: _bindgen_ty_245 = 1651010921;
pub const kAudioBoxPropertyIsProtected: _bindgen_ty_245 = 1651536495;
pub const kAudioBoxPropertyAcquired: _bindgen_ty_245 = 1652060014;
pub const kAudioBoxPropertyAcquisitionFailed: _bindgen_ty_245 = 1652060006;
pub const kAudioBoxPropertyDeviceList: _bindgen_ty_245 = 1650751011;
pub const kAudioBoxPropertyClockDeviceList: _bindgen_ty_245 = 1650682915;
pub type _bindgen_ty_245 = ::std::os::raw::c_uint;
pub const kAudioDeviceClassID: _bindgen_ty_246 = 1633969526;
pub type _bindgen_ty_246 = ::std::os::raw::c_uint;
pub const kAudioDeviceTransportTypeUnknown: _bindgen_ty_247 = 0;
pub const kAudioDeviceTransportTypeBuiltIn: _bindgen_ty_247 = 1651274862;
pub const kAudioDeviceTransportTypeAggregate: _bindgen_ty_247 = 1735554416;
pub const kAudioDeviceTransportTypeVirtual: _bindgen_ty_247 = 1986622068;
pub const kAudioDeviceTransportTypePCI: _bindgen_ty_247 = 1885563168;
pub const kAudioDeviceTransportTypeUSB: _bindgen_ty_247 = 1970496032;
pub const kAudioDeviceTransportTypeFireWire: _bindgen_ty_247 = 825440564;
pub const kAudioDeviceTransportTypeBluetooth: _bindgen_ty_247 = 1651275109;
pub const kAudioDeviceTransportTypeBluetoothLE: _bindgen_ty_247 = 1651271009;
pub const kAudioDeviceTransportTypeHDMI: _bindgen_ty_247 = 1751412073;
pub const kAudioDeviceTransportTypeDisplayPort: _bindgen_ty_247 = 1685090932;
pub const kAudioDeviceTransportTypeAirPlay: _bindgen_ty_247 = 1634300528;
pub const kAudioDeviceTransportTypeAVB: _bindgen_ty_247 = 1700886114;
pub const kAudioDeviceTransportTypeThunderbolt: _bindgen_ty_247 = 1953002862;
pub const kAudioDeviceTransportTypeContinuityCaptureWired: _bindgen_ty_247 = 1667463012;
pub const kAudioDeviceTransportTypeContinuityCaptureWireless: _bindgen_ty_247 = 1667463020;
pub const kAudioDeviceTransportTypeContinuityCapture: _bindgen_ty_247 = 1667457392;
pub type _bindgen_ty_247 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyConfigurationApplication: _bindgen_ty_248 = 1667330160;
pub const kAudioDevicePropertyDeviceUID: _bindgen_ty_248 = 1969841184;
pub const kAudioDevicePropertyModelUID: _bindgen_ty_248 = 1836411236;
pub const kAudioDevicePropertyTransportType: _bindgen_ty_248 = 1953653102;
pub const kAudioDevicePropertyRelatedDevices: _bindgen_ty_248 = 1634429294;
pub const kAudioDevicePropertyClockDomain: _bindgen_ty_248 = 1668049764;
pub const kAudioDevicePropertyDeviceIsAlive: _bindgen_ty_248 = 1818850926;
pub const kAudioDevicePropertyDeviceIsRunning: _bindgen_ty_248 = 1735354734;
pub const kAudioDevicePropertyDeviceCanBeDefaultDevice: _bindgen_ty_248 = 1684434036;
pub const kAudioDevicePropertyDeviceCanBeDefaultSystemDevice: _bindgen_ty_248 = 1936092276;
pub const kAudioDevicePropertyLatency: _bindgen_ty_248 = 1819569763;
pub const kAudioDevicePropertyStreams: _bindgen_ty_248 = 1937009955;
pub const kAudioObjectPropertyControlList: _bindgen_ty_248 = 1668575852;
pub const kAudioDevicePropertySafetyOffset: _bindgen_ty_248 = 1935763060;
pub const kAudioDevicePropertyNominalSampleRate: _bindgen_ty_248 = 1853059700;
pub const kAudioDevicePropertyAvailableNominalSampleRates: _bindgen_ty_248 = 1853059619;
pub const kAudioDevicePropertyIcon: _bindgen_ty_248 = 1768124270;
pub const kAudioDevicePropertyIsHidden: _bindgen_ty_248 = 1751737454;
pub const kAudioDevicePropertyPreferredChannelsForStereo: _bindgen_ty_248 = 1684236338;
pub const kAudioDevicePropertyPreferredChannelLayout: _bindgen_ty_248 = 1936879204;
pub type _bindgen_ty_248 = ::std::os::raw::c_uint;
pub const kAudioClockDeviceClassID: _bindgen_ty_249 = 1633905771;
pub type _bindgen_ty_249 = ::std::os::raw::c_uint;
pub const kAudioClockDevicePropertyDeviceUID: _bindgen_ty_250 = 1668639076;
pub const kAudioClockDevicePropertyTransportType: _bindgen_ty_250 = 1953653102;
pub const kAudioClockDevicePropertyClockDomain: _bindgen_ty_250 = 1668049764;
pub const kAudioClockDevicePropertyDeviceIsAlive: _bindgen_ty_250 = 1818850926;
pub const kAudioClockDevicePropertyDeviceIsRunning: _bindgen_ty_250 = 1735354734;
pub const kAudioClockDevicePropertyLatency: _bindgen_ty_250 = 1819569763;
pub const kAudioClockDevicePropertyControlList: _bindgen_ty_250 = 1668575852;
pub const kAudioClockDevicePropertyNominalSampleRate: _bindgen_ty_250 = 1853059700;
pub const kAudioClockDevicePropertyAvailableNominalSampleRates: _bindgen_ty_250 = 1853059619;
pub type _bindgen_ty_250 = ::std::os::raw::c_uint;
pub const kAudioEndPointDeviceClassID: _bindgen_ty_251 = 1701078390;
pub type _bindgen_ty_251 = ::std::os::raw::c_uint;
pub const kAudioEndPointDevicePropertyComposition: _bindgen_ty_252 = 1633906541;
pub const kAudioEndPointDevicePropertyEndPointList: _bindgen_ty_252 = 1634169456;
pub const kAudioEndPointDevicePropertyIsPrivate: _bindgen_ty_252 = 1886546294;
pub type _bindgen_ty_252 = ::std::os::raw::c_uint;
pub const kAudioEndPointClassID: _bindgen_ty_253 = 1701733488;
pub type _bindgen_ty_253 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct AudioStreamRangedDescription {
pub mFormat: AudioStreamBasicDescription,
pub mSampleRateRange: AudioValueRange,
}
pub const kAudioStreamClassID: _bindgen_ty_254 = 1634956402;
pub type _bindgen_ty_254 = ::std::os::raw::c_uint;
pub const kAudioStreamTerminalTypeUnknown: _bindgen_ty_255 = 0;
pub const kAudioStreamTerminalTypeLine: _bindgen_ty_255 = 1818848869;
pub const kAudioStreamTerminalTypeDigitalAudioInterface: _bindgen_ty_255 = 1936745574;
pub const kAudioStreamTerminalTypeSpeaker: _bindgen_ty_255 = 1936747378;
pub const kAudioStreamTerminalTypeHeadphones: _bindgen_ty_255 = 1751412840;
pub const kAudioStreamTerminalTypeLFESpeaker: _bindgen_ty_255 = 1818649971;
pub const kAudioStreamTerminalTypeReceiverSpeaker: _bindgen_ty_255 = 1920168043;
pub const kAudioStreamTerminalTypeMicrophone: _bindgen_ty_255 = 1835623282;
pub const kAudioStreamTerminalTypeHeadsetMicrophone: _bindgen_ty_255 = 1752000867;
pub const kAudioStreamTerminalTypeReceiverMicrophone: _bindgen_ty_255 = 1919773027;
pub const kAudioStreamTerminalTypeTTY: _bindgen_ty_255 = 1953790303;
pub const kAudioStreamTerminalTypeHDMI: _bindgen_ty_255 = 1751412073;
pub const kAudioStreamTerminalTypeDisplayPort: _bindgen_ty_255 = 1685090932;
pub type _bindgen_ty_255 = ::std::os::raw::c_uint;
pub const kAudioStreamPropertyIsActive: _bindgen_ty_256 = 1935762292;
pub const kAudioStreamPropertyDirection: _bindgen_ty_256 = 1935960434;
pub const kAudioStreamPropertyTerminalType: _bindgen_ty_256 = 1952805485;
pub const kAudioStreamPropertyStartingChannel: _bindgen_ty_256 = 1935894638;
pub const kAudioStreamPropertyLatency: _bindgen_ty_256 = 1819569763;
pub const kAudioStreamPropertyVirtualFormat: _bindgen_ty_256 = 1936092532;
pub const kAudioStreamPropertyAvailableVirtualFormats: _bindgen_ty_256 = 1936092513;
pub const kAudioStreamPropertyPhysicalFormat: _bindgen_ty_256 = 1885762592;
pub const kAudioStreamPropertyAvailablePhysicalFormats: _bindgen_ty_256 = 1885762657;
pub type _bindgen_ty_256 = ::std::os::raw::c_uint;
pub const kAudioControlClassID: _bindgen_ty_257 = 1633907820;
pub type _bindgen_ty_257 = ::std::os::raw::c_uint;
pub const kAudioControlPropertyScope: _bindgen_ty_258 = 1668506480;
pub const kAudioControlPropertyElement: _bindgen_ty_258 = 1667591277;
pub type _bindgen_ty_258 = ::std::os::raw::c_uint;
pub const kAudioSliderControlClassID: _bindgen_ty_259 = 1936483442;
pub type _bindgen_ty_259 = ::std::os::raw::c_uint;
pub const kAudioSliderControlPropertyValue: _bindgen_ty_260 = 1935962742;
pub const kAudioSliderControlPropertyRange: _bindgen_ty_260 = 1935962738;
pub type _bindgen_ty_260 = ::std::os::raw::c_uint;
pub const kAudioLevelControlClassID: _bindgen_ty_261 = 1818588780;
pub const kAudioVolumeControlClassID: _bindgen_ty_261 = 1986817381;
pub const kAudioLFEVolumeControlClassID: _bindgen_ty_261 = 1937072758;
pub type _bindgen_ty_261 = ::std::os::raw::c_uint;
pub const kAudioLevelControlPropertyScalarValue: _bindgen_ty_262 = 1818456950;
pub const kAudioLevelControlPropertyDecibelValue: _bindgen_ty_262 = 1818453110;
pub const kAudioLevelControlPropertyDecibelRange: _bindgen_ty_262 = 1818453106;
pub const kAudioLevelControlPropertyConvertScalarToDecibels: _bindgen_ty_262 = 1818456932;
pub const kAudioLevelControlPropertyConvertDecibelsToScalar: _bindgen_ty_262 = 1818453107;
pub type _bindgen_ty_262 = ::std::os::raw::c_uint;
pub const kAudioBooleanControlClassID: _bindgen_ty_263 = 1953458028;
pub const kAudioMuteControlClassID: _bindgen_ty_263 = 1836414053;
pub const kAudioSoloControlClassID: _bindgen_ty_263 = 1936682095;
pub const kAudioJackControlClassID: _bindgen_ty_263 = 1784767339;
pub const kAudioLFEMuteControlClassID: _bindgen_ty_263 = 1937072749;
pub const kAudioPhantomPowerControlClassID: _bindgen_ty_263 = 1885888878;
pub const kAudioPhaseInvertControlClassID: _bindgen_ty_263 = 1885893481;
pub const kAudioClipLightControlClassID: _bindgen_ty_263 = 1668049264;
pub const kAudioTalkbackControlClassID: _bindgen_ty_263 = 1952541794;
pub const kAudioListenbackControlClassID: _bindgen_ty_263 = 1819504226;
pub type _bindgen_ty_263 = ::std::os::raw::c_uint;
pub const kAudioBooleanControlPropertyValue: _bindgen_ty_264 = 1650685548;
pub type _bindgen_ty_264 = ::std::os::raw::c_uint;
pub const kAudioSelectorControlClassID: _bindgen_ty_265 = 1936483188;
pub const kAudioDataSourceControlClassID: _bindgen_ty_265 = 1685287523;
pub const kAudioDataDestinationControlClassID: _bindgen_ty_265 = 1684370292;
pub const kAudioClockSourceControlClassID: _bindgen_ty_265 = 1668047723;
pub const kAudioLineLevelControlClassID: _bindgen_ty_265 = 1852601964;
pub const kAudioHighPassFilterControlClassID: _bindgen_ty_265 = 1751740518;
pub type _bindgen_ty_265 = ::std::os::raw::c_uint;
pub const kAudioSelectorControlPropertyCurrentItem: _bindgen_ty_266 = 1935893353;
pub const kAudioSelectorControlPropertyAvailableItems: _bindgen_ty_266 = 1935892841;
pub const kAudioSelectorControlPropertyItemName: _bindgen_ty_266 = 1935894894;
pub const kAudioSelectorControlPropertyItemKind: _bindgen_ty_266 = 1668049771;
pub type _bindgen_ty_266 = ::std::os::raw::c_uint;
pub const kAudioSelectorControlItemKindSpacer: _bindgen_ty_267 = 1936745330;
pub type _bindgen_ty_267 = ::std::os::raw::c_uint;
pub const kAudioClockSourceItemKindInternal: _bindgen_ty_268 = 1768846368;
pub type _bindgen_ty_268 = ::std::os::raw::c_uint;
pub const kAudioStereoPanControlClassID: _bindgen_ty_269 = 1936744814;
pub type _bindgen_ty_269 = ::std::os::raw::c_uint;
pub const kAudioStereoPanControlPropertyValue: _bindgen_ty_270 = 1936745334;
pub const kAudioStereoPanControlPropertyPanningChannels: _bindgen_ty_270 = 1936745315;
pub type _bindgen_ty_270 = ::std::os::raw::c_uint;
pub const kAudioObjectSystemObject: _bindgen_ty_271 = 1;
pub type _bindgen_ty_271 = ::std::os::raw::c_uint;
pub type AudioObjectPropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
inObjectID: AudioObjectID,
inNumberAddresses: UInt32,
inAddresses: *const AudioObjectPropertyAddress,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioObjectPropertyListenerBlock = *mut ::std::os::raw::c_void;
pub const kAudioObjectPropertyCreator: _bindgen_ty_272 = 1869638759;
pub const kAudioObjectPropertyListenerAdded: _bindgen_ty_272 = 1818850145;
pub const kAudioObjectPropertyListenerRemoved: _bindgen_ty_272 = 1818850162;
pub type _bindgen_ty_272 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioObjectShow(inObjectID: AudioObjectID);
}
extern "C" {
pub fn AudioObjectHasProperty(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
) -> Boolean;
}
extern "C" {
pub fn AudioObjectIsPropertySettable(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
outIsSettable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectGetPropertyDataSize(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inQualifierDataSize: UInt32,
inQualifierData: *const ::std::os::raw::c_void,
outDataSize: *mut UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectGetPropertyData(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inQualifierDataSize: UInt32,
inQualifierData: *const ::std::os::raw::c_void,
ioDataSize: *mut UInt32,
outData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectSetPropertyData(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inQualifierDataSize: UInt32,
inQualifierData: *const ::std::os::raw::c_void,
inDataSize: UInt32,
inData: *const ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectAddPropertyListener(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inListener: AudioObjectPropertyListenerProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectRemovePropertyListener(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inListener: AudioObjectPropertyListenerProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectAddPropertyListenerBlock(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inDispatchQueue: dispatch_queue_t,
inListener: AudioObjectPropertyListenerBlock,
) -> OSStatus;
}
extern "C" {
pub fn AudioObjectRemovePropertyListenerBlock(
inObjectID: AudioObjectID,
inAddress: *const AudioObjectPropertyAddress,
inDispatchQueue: dispatch_queue_t,
inListener: AudioObjectPropertyListenerBlock,
) -> OSStatus;
}
pub const kAudioSystemObjectClassID: _bindgen_ty_273 = 1634957683;
pub type _bindgen_ty_273 = ::std::os::raw::c_uint;
pub type AudioHardwarePowerHint = UInt32;
pub const kAudioHardwarePowerHintNone: _bindgen_ty_274 = 0;
pub const kAudioHardwarePowerHintFavorSavingPower: _bindgen_ty_274 = 1;
pub type _bindgen_ty_274 = ::std::os::raw::c_uint;
pub const kAudioHardwarePropertyDevices: _bindgen_ty_275 = 1684370979;
pub const kAudioHardwarePropertyDefaultInputDevice: _bindgen_ty_275 = 1682533920;
pub const kAudioHardwarePropertyDefaultOutputDevice: _bindgen_ty_275 = 1682929012;
pub const kAudioHardwarePropertyDefaultSystemOutputDevice: _bindgen_ty_275 = 1934587252;
pub const kAudioHardwarePropertyTranslateUIDToDevice: _bindgen_ty_275 = 1969841252;
pub const kAudioHardwarePropertyMixStereoToMono: _bindgen_ty_275 = 1937010031;
pub const kAudioHardwarePropertyPlugInList: _bindgen_ty_275 = 1886152483;
pub const kAudioHardwarePropertyTranslateBundleIDToPlugIn: _bindgen_ty_275 = 1651074160;
pub const kAudioHardwarePropertyTransportManagerList: _bindgen_ty_275 = 1953326883;
pub const kAudioHardwarePropertyTranslateBundleIDToTransportManager: _bindgen_ty_275 = 1953325673;
pub const kAudioHardwarePropertyBoxList: _bindgen_ty_275 = 1651472419;
pub const kAudioHardwarePropertyTranslateUIDToBox: _bindgen_ty_275 = 1969841250;
pub const kAudioHardwarePropertyClockDeviceList: _bindgen_ty_275 = 1668049699;
pub const kAudioHardwarePropertyTranslateUIDToClockDevice: _bindgen_ty_275 = 1969841251;
pub const kAudioHardwarePropertyProcessIsMain: _bindgen_ty_275 = 1835100526;
pub const kAudioHardwarePropertyIsInitingOrExiting: _bindgen_ty_275 = 1768845172;
pub const kAudioHardwarePropertyUserIDChanged: _bindgen_ty_275 = 1702193508;
pub const kAudioHardwarePropertyProcessInputMute: _bindgen_ty_275 = 1886218606;
pub const kAudioHardwarePropertyProcessIsAudible: _bindgen_ty_275 = 1886221684;
pub const kAudioHardwarePropertySleepingIsAllowed: _bindgen_ty_275 = 1936483696;
pub const kAudioHardwarePropertyUnloadingIsAllowed: _bindgen_ty_275 = 1970170980;
pub const kAudioHardwarePropertyHogModeIsAllowed: _bindgen_ty_275 = 1752131442;
pub const kAudioHardwarePropertyUserSessionIsActiveOrHeadless: _bindgen_ty_275 = 1970496882;
pub const kAudioHardwarePropertyServiceRestarted: _bindgen_ty_275 = 1936880500;
pub const kAudioHardwarePropertyPowerHint: _bindgen_ty_275 = 1886353256;
pub const kAudioHardwarePropertyProcessObjectList: _bindgen_ty_275 = 1886548771;
pub const kAudioHardwarePropertyTranslatePIDToProcessObject: _bindgen_ty_275 = 1768174192;
pub const kAudioHardwarePropertyTapList: _bindgen_ty_275 = 1953526563;
pub const kAudioHardwarePropertyTranslateUIDToTap: _bindgen_ty_275 = 1969841268;
pub type _bindgen_ty_275 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioHardwareUnload() -> OSStatus;
}
extern "C" {
pub fn AudioHardwareCreateAggregateDevice(
inDescription: CFDictionaryRef,
outDeviceID: *mut AudioObjectID,
) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareDestroyAggregateDevice(inDeviceID: AudioObjectID) -> OSStatus;
}
pub const kAudioPlugInCreateAggregateDevice: _bindgen_ty_276 = 1667327847;
pub const kAudioPlugInDestroyAggregateDevice: _bindgen_ty_276 = 1684105063;
pub type _bindgen_ty_276 = ::std::os::raw::c_uint;
pub const kAudioTransportManagerCreateEndPointDevice: _bindgen_ty_277 = 1667523958;
pub const kAudioTransportManagerDestroyEndPointDevice: _bindgen_ty_277 = 1684301174;
pub type _bindgen_ty_277 = ::std::os::raw::c_uint;
pub type AudioDeviceIOProc = ::std::option::Option<
unsafe extern "C" fn(
inDevice: AudioObjectID,
inNow: *const AudioTimeStamp,
inInputData: *const AudioBufferList,
inInputTime: *const AudioTimeStamp,
outOutputData: *mut AudioBufferList,
inOutputTime: *const AudioTimeStamp,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub type AudioDeviceIOBlock = *mut ::std::os::raw::c_void;
pub type AudioDeviceIOProcID = AudioDeviceIOProc;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AudioHardwareIOProcStreamUsage {
pub mIOProc: *mut ::std::os::raw::c_void,
pub mNumberStreams: UInt32,
pub mStreamIsOn: [UInt32; 1usize],
}
impl Default for AudioHardwareIOProcStreamUsage {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const kAudioDeviceStartTimeIsInputFlag: _bindgen_ty_278 = 1;
pub const kAudioDeviceStartTimeDontConsultDeviceFlag: _bindgen_ty_278 = 2;
pub const kAudioDeviceStartTimeDontConsultHALFlag: _bindgen_ty_278 = 4;
pub type _bindgen_ty_278 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyPlugIn: _bindgen_ty_279 = 1886156135;
pub const kAudioDevicePropertyDeviceHasChanged: _bindgen_ty_279 = 1684629094;
pub const kAudioDevicePropertyDeviceIsRunningSomewhere: _bindgen_ty_279 = 1735356005;
pub const kAudioDeviceProcessorOverload: _bindgen_ty_279 = 1870030194;
pub const kAudioDevicePropertyIOStoppedAbnormally: _bindgen_ty_279 = 1937010788;
pub const kAudioDevicePropertyHogMode: _bindgen_ty_279 = 1869180523;
pub const kAudioDevicePropertyBufferFrameSize: _bindgen_ty_279 = 1718839674;
pub const kAudioDevicePropertyBufferFrameSizeRange: _bindgen_ty_279 = 1718843939;
pub const kAudioDevicePropertyUsesVariableBufferFrameSizes: _bindgen_ty_279 = 1986425722;
pub const kAudioDevicePropertyIOCycleUsage: _bindgen_ty_279 = 1852012899;
pub const kAudioDevicePropertyStreamConfiguration: _bindgen_ty_279 = 1936482681;
pub const kAudioDevicePropertyIOProcStreamUsage: _bindgen_ty_279 = 1937077093;
pub const kAudioDevicePropertyActualSampleRate: _bindgen_ty_279 = 1634955892;
pub const kAudioDevicePropertyClockDevice: _bindgen_ty_279 = 1634755428;
pub const kAudioDevicePropertyIOThreadOSWorkgroup: _bindgen_ty_279 = 1869838183;
pub const kAudioDevicePropertyProcessMute: _bindgen_ty_279 = 1634758765;
pub type _bindgen_ty_279 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyJackIsConnected: _bindgen_ty_280 = 1784767339;
pub const kAudioDevicePropertyVolumeScalar: _bindgen_ty_280 = 1987013741;
pub const kAudioDevicePropertyVolumeDecibels: _bindgen_ty_280 = 1987013732;
pub const kAudioDevicePropertyVolumeRangeDecibels: _bindgen_ty_280 = 1986290211;
pub const kAudioDevicePropertyVolumeScalarToDecibels: _bindgen_ty_280 = 1983013986;
pub const kAudioDevicePropertyVolumeDecibelsToScalar: _bindgen_ty_280 = 1684157046;
pub const kAudioDevicePropertyStereoPan: _bindgen_ty_280 = 1936744814;
pub const kAudioDevicePropertyStereoPanChannels: _bindgen_ty_280 = 1936748067;
pub const kAudioDevicePropertyMute: _bindgen_ty_280 = 1836414053;
pub const kAudioDevicePropertySolo: _bindgen_ty_280 = 1936682095;
pub const kAudioDevicePropertyPhantomPower: _bindgen_ty_280 = 1885888878;
pub const kAudioDevicePropertyPhaseInvert: _bindgen_ty_280 = 1885893481;
pub const kAudioDevicePropertyClipLight: _bindgen_ty_280 = 1668049264;
pub const kAudioDevicePropertyTalkback: _bindgen_ty_280 = 1952541794;
pub const kAudioDevicePropertyListenback: _bindgen_ty_280 = 1819504226;
pub const kAudioDevicePropertyDataSource: _bindgen_ty_280 = 1936945763;
pub const kAudioDevicePropertyDataSources: _bindgen_ty_280 = 1936941859;
pub const kAudioDevicePropertyDataSourceNameForIDCFString: _bindgen_ty_280 = 1819501422;
pub const kAudioDevicePropertyDataSourceKindForID: _bindgen_ty_280 = 1936941931;
pub const kAudioDevicePropertyClockSource: _bindgen_ty_280 = 1668510307;
pub const kAudioDevicePropertyClockSources: _bindgen_ty_280 = 1668506403;
pub const kAudioDevicePropertyClockSourceNameForIDCFString: _bindgen_ty_280 = 1818456942;
pub const kAudioDevicePropertyClockSourceKindForID: _bindgen_ty_280 = 1668506475;
pub const kAudioDevicePropertyPlayThru: _bindgen_ty_280 = 1953002101;
pub const kAudioDevicePropertyPlayThruSolo: _bindgen_ty_280 = 1953002099;
pub const kAudioDevicePropertyPlayThruVolumeScalar: _bindgen_ty_280 = 1836479331;
pub const kAudioDevicePropertyPlayThruVolumeDecibels: _bindgen_ty_280 = 1836475490;
pub const kAudioDevicePropertyPlayThruVolumeRangeDecibels: _bindgen_ty_280 = 1836475427;
pub const kAudioDevicePropertyPlayThruVolumeScalarToDecibels: _bindgen_ty_280 = 1836462692;
pub const kAudioDevicePropertyPlayThruVolumeDecibelsToScalar: _bindgen_ty_280 = 1836462707;
pub const kAudioDevicePropertyPlayThruStereoPan: _bindgen_ty_280 = 1836281966;
pub const kAudioDevicePropertyPlayThruStereoPanChannels: _bindgen_ty_280 = 1836281891;
pub const kAudioDevicePropertyPlayThruDestination: _bindgen_ty_280 = 1835295859;
pub const kAudioDevicePropertyPlayThruDestinations: _bindgen_ty_280 = 1835295779;
pub const kAudioDevicePropertyPlayThruDestinationNameForIDCFString: _bindgen_ty_280 = 1835295843;
pub const kAudioDevicePropertyChannelNominalLineLevel: _bindgen_ty_280 = 1852601964;
pub const kAudioDevicePropertyChannelNominalLineLevels: _bindgen_ty_280 = 1852601891;
pub const kAudioDevicePropertyChannelNominalLineLevelNameForIDCFString: _bindgen_ty_280 =
1818455660;
pub const kAudioDevicePropertyHighPassFilterSetting: _bindgen_ty_280 = 1751740518;
pub const kAudioDevicePropertyHighPassFilterSettings: _bindgen_ty_280 = 1751740451;
pub const kAudioDevicePropertyHighPassFilterSettingNameForIDCFString: _bindgen_ty_280 = 1751740524;
pub const kAudioDevicePropertySubVolumeScalar: _bindgen_ty_280 = 1937140845;
pub const kAudioDevicePropertySubVolumeDecibels: _bindgen_ty_280 = 1937140836;
pub const kAudioDevicePropertySubVolumeRangeDecibels: _bindgen_ty_280 = 1937138723;
pub const kAudioDevicePropertySubVolumeScalarToDecibels: _bindgen_ty_280 = 1937125988;
pub const kAudioDevicePropertySubVolumeDecibelsToScalar: _bindgen_ty_280 = 1935946358;
pub const kAudioDevicePropertySubMute: _bindgen_ty_280 = 1936553332;
pub const kAudioDevicePropertyVoiceActivityDetectionEnable: _bindgen_ty_280 = 1983996971;
pub const kAudioDevicePropertyVoiceActivityDetectionState: _bindgen_ty_280 = 1983997011;
pub type _bindgen_ty_280 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioDeviceCreateIOProcID(
inDevice: AudioObjectID,
inProc: AudioDeviceIOProc,
inClientData: *mut ::std::os::raw::c_void,
outIOProcID: *mut AudioDeviceIOProcID,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceCreateIOProcIDWithBlock(
outIOProcID: *mut AudioDeviceIOProcID,
inDevice: AudioObjectID,
inDispatchQueue: dispatch_queue_t,
inIOBlock: AudioDeviceIOBlock,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceDestroyIOProcID(
inDevice: AudioObjectID,
inIOProcID: AudioDeviceIOProcID,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceStart(inDevice: AudioObjectID, inProcID: AudioDeviceIOProcID) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceStartAtTime(
inDevice: AudioObjectID,
inProcID: AudioDeviceIOProcID,
ioRequestedStartTime: *mut AudioTimeStamp,
inFlags: UInt32,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceStop(inDevice: AudioObjectID, inProcID: AudioDeviceIOProcID) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceGetCurrentTime(
inDevice: AudioObjectID,
outTime: *mut AudioTimeStamp,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceTranslateTime(
inDevice: AudioObjectID,
inTime: *const AudioTimeStamp,
outTime: *mut AudioTimeStamp,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceGetNearestStartTime(
inDevice: AudioObjectID,
ioRequestedStartTime: *mut AudioTimeStamp,
inFlags: UInt32,
) -> OSStatus;
}
pub const kAudioAggregateDeviceClassID: _bindgen_ty_281 = 1633773415;
pub type _bindgen_ty_281 = ::std::os::raw::c_uint;
pub const kAudioAggregateDevicePropertyFullSubDeviceList: _bindgen_ty_282 = 1735554416;
pub const kAudioAggregateDevicePropertyActiveSubDeviceList: _bindgen_ty_282 = 1634169456;
pub const kAudioAggregateDevicePropertyComposition: _bindgen_ty_282 = 1633906541;
pub const kAudioAggregateDevicePropertyMainSubDevice: _bindgen_ty_282 = 1634562932;
pub const kAudioAggregateDevicePropertyClockDevice: _bindgen_ty_282 = 1634755428;
pub const kAudioAggregateDevicePropertyTapList: _bindgen_ty_282 = 1952542755;
pub const kAudioAggregateDevicePropertySubTapList: _bindgen_ty_282 = 1635017072;
pub type _bindgen_ty_282 = ::std::os::raw::c_uint;
pub const kAudioAggregateDriftCompensationMinQuality: _bindgen_ty_283 = 0;
pub const kAudioAggregateDriftCompensationLowQuality: _bindgen_ty_283 = 32;
pub const kAudioAggregateDriftCompensationMediumQuality: _bindgen_ty_283 = 64;
pub const kAudioAggregateDriftCompensationHighQuality: _bindgen_ty_283 = 96;
pub const kAudioAggregateDriftCompensationMaxQuality: _bindgen_ty_283 = 127;
pub type _bindgen_ty_283 = ::std::os::raw::c_uint;
pub const kAudioSubDeviceClassID: _bindgen_ty_284 = 1634956642;
pub type _bindgen_ty_284 = ::std::os::raw::c_uint;
pub const kAudioSubDeviceDriftCompensationMinQuality: _bindgen_ty_285 = 0;
pub const kAudioSubDeviceDriftCompensationLowQuality: _bindgen_ty_285 = 32;
pub const kAudioSubDeviceDriftCompensationMediumQuality: _bindgen_ty_285 = 64;
pub const kAudioSubDeviceDriftCompensationHighQuality: _bindgen_ty_285 = 96;
pub const kAudioSubDeviceDriftCompensationMaxQuality: _bindgen_ty_285 = 127;
pub type _bindgen_ty_285 = ::std::os::raw::c_uint;
pub const kAudioSubDevicePropertyExtraLatency: _bindgen_ty_286 = 2020373603;
pub const kAudioSubDevicePropertyDriftCompensation: _bindgen_ty_286 = 1685218932;
pub const kAudioSubDevicePropertyDriftCompensationQuality: _bindgen_ty_286 = 1685218929;
pub type _bindgen_ty_286 = ::std::os::raw::c_uint;
pub const kAudioSubTapClassID: _bindgen_ty_287 = 1937006960;
pub type _bindgen_ty_287 = ::std::os::raw::c_uint;
pub const kAudioSubTapPropertyExtraLatency: _bindgen_ty_288 = 2020373603;
pub const kAudioSubTapPropertyDriftCompensation: _bindgen_ty_288 = 1685218932;
pub const kAudioSubTapPropertyDriftCompensationQuality: _bindgen_ty_288 = 1685218929;
pub type _bindgen_ty_288 = ::std::os::raw::c_uint;
pub const kAudioProcessClassID: _bindgen_ty_289 = 1668050548;
pub type _bindgen_ty_289 = ::std::os::raw::c_uint;
pub const kAudioProcessPropertyPID: _bindgen_ty_290 = 1886415204;
pub const kAudioProcessPropertyBundleID: _bindgen_ty_290 = 1885497700;
pub const kAudioProcessPropertyDevices: _bindgen_ty_290 = 1885632035;
pub const kAudioProcessPropertyIsRunning: _bindgen_ty_290 = 1885958719;
pub const kAudioProcessPropertyIsRunningInput: _bindgen_ty_290 = 1885958761;
pub const kAudioProcessPropertyIsRunningOutput: _bindgen_ty_290 = 1885958767;
pub type _bindgen_ty_290 = ::std::os::raw::c_uint;
pub const kAudioTapClassID: _bindgen_ty_291 = 1952672883;
pub type _bindgen_ty_291 = ::std::os::raw::c_uint;
pub const kAudioTapPropertyUID: _bindgen_ty_292 = 1953851748;
pub const kAudioTapPropertyDescription: _bindgen_ty_292 = 1952740195;
pub const kAudioTapPropertyFormat: _bindgen_ty_292 = 1952869748;
pub type _bindgen_ty_292 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyScopeInput: _bindgen_ty_293 = 1768845428;
pub const kAudioDevicePropertyScopeOutput: _bindgen_ty_293 = 1869968496;
pub const kAudioDevicePropertyScopePlayThrough: _bindgen_ty_293 = 1886679669;
pub type _bindgen_ty_293 = ::std::os::raw::c_uint;
pub const kAudioPropertyWildcardPropertyID: _bindgen_ty_294 = 707406378;
pub type _bindgen_ty_294 = ::std::os::raw::c_uint;
pub const kAudioPropertyWildcardSection: _bindgen_ty_295 = 255;
pub type _bindgen_ty_295 = ::std::os::raw::c_uint;
pub const kAudioPropertyWildcardChannel: _bindgen_ty_296 = 4294967295;
pub type _bindgen_ty_296 = ::std::os::raw::c_uint;
pub const kAudioISubOwnerControlClassID: _bindgen_ty_297 = 1635017576;
pub type _bindgen_ty_297 = ::std::os::raw::c_uint;
pub const kAudioLevelControlPropertyDecibelsToScalarTransferFunction: _bindgen_ty_298 = 1818457190;
pub type _bindgen_ty_298 = ::std::os::raw::c_uint;
pub type AudioLevelControlTransferFunction = UInt32;
pub const kAudioLevelControlTranferFunctionLinear: _bindgen_ty_299 = 0;
pub const kAudioLevelControlTranferFunction1Over3: _bindgen_ty_299 = 1;
pub const kAudioLevelControlTranferFunction1Over2: _bindgen_ty_299 = 2;
pub const kAudioLevelControlTranferFunction3Over4: _bindgen_ty_299 = 3;
pub const kAudioLevelControlTranferFunction3Over2: _bindgen_ty_299 = 4;
pub const kAudioLevelControlTranferFunction2Over1: _bindgen_ty_299 = 5;
pub const kAudioLevelControlTranferFunction3Over1: _bindgen_ty_299 = 6;
pub const kAudioLevelControlTranferFunction4Over1: _bindgen_ty_299 = 7;
pub const kAudioLevelControlTranferFunction5Over1: _bindgen_ty_299 = 8;
pub const kAudioLevelControlTranferFunction6Over1: _bindgen_ty_299 = 9;
pub const kAudioLevelControlTranferFunction7Over1: _bindgen_ty_299 = 10;
pub const kAudioLevelControlTranferFunction8Over1: _bindgen_ty_299 = 11;
pub const kAudioLevelControlTranferFunction9Over1: _bindgen_ty_299 = 12;
pub const kAudioLevelControlTranferFunction10Over1: _bindgen_ty_299 = 13;
pub const kAudioLevelControlTranferFunction11Over1: _bindgen_ty_299 = 14;
pub const kAudioLevelControlTranferFunction12Over1: _bindgen_ty_299 = 15;
pub type _bindgen_ty_299 = ::std::os::raw::c_uint;
pub type AudioHardwarePropertyID = AudioObjectPropertySelector;
pub type AudioHardwarePropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
inPropertyID: AudioHardwarePropertyID,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub const kAudioHardwarePropertyRunLoop: _bindgen_ty_300 = 1919839344;
pub const kAudioHardwarePropertyDeviceForUID: _bindgen_ty_300 = 1685416292;
pub const kAudioHardwarePropertyPlugInForBundleID: _bindgen_ty_300 = 1885954665;
pub const kAudioHardwarePropertyProcessIsMaster: _bindgen_ty_300 = 1835103092;
pub type _bindgen_ty_300 = ::std::os::raw::c_uint;
pub const kAudioHardwarePropertyBootChimeVolumeScalar: _bindgen_ty_301 = 1650620019;
pub const kAudioHardwarePropertyBootChimeVolumeDecibels: _bindgen_ty_301 = 1650620004;
pub const kAudioHardwarePropertyBootChimeVolumeRangeDecibels: _bindgen_ty_301 = 1650615331;
pub const kAudioHardwarePropertyBootChimeVolumeScalarToDecibels: _bindgen_ty_301 = 1651913316;
pub const kAudioHardwarePropertyBootChimeVolumeDecibelsToScalar: _bindgen_ty_301 = 1650733686;
pub const kAudioHardwarePropertyBootChimeVolumeDecibelsToScalarTransferFunction: _bindgen_ty_301 =
1651930214;
pub type _bindgen_ty_301 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioHardwareAddRunLoopSource(inRunLoopSource: CFRunLoopSourceRef) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareRemoveRunLoopSource(inRunLoopSource: CFRunLoopSourceRef) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareGetPropertyInfo(
inPropertyID: AudioHardwarePropertyID,
outSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareGetProperty(
inPropertyID: AudioHardwarePropertyID,
ioPropertyDataSize: *mut UInt32,
outPropertyData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareSetProperty(
inPropertyID: AudioHardwarePropertyID,
inPropertyDataSize: UInt32,
inPropertyData: *const ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareAddPropertyListener(
inPropertyID: AudioHardwarePropertyID,
inProc: AudioHardwarePropertyListenerProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioHardwareRemovePropertyListener(
inPropertyID: AudioHardwarePropertyID,
inProc: AudioHardwarePropertyListenerProc,
) -> OSStatus;
}
pub type AudioDeviceID = AudioObjectID;
pub type AudioDevicePropertyID = AudioObjectPropertySelector;
pub type AudioDevicePropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
inDevice: AudioDeviceID,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub const kAudioDeviceUnknown: _bindgen_ty_302 = 0;
pub type _bindgen_ty_302 = ::std::os::raw::c_uint;
pub const kAudioDeviceTransportTypeAutoAggregate: _bindgen_ty_303 = 1718055536;
pub type _bindgen_ty_303 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyVolumeDecibelsToScalarTransferFunction: _bindgen_ty_304 = 1986229350;
pub const kAudioDevicePropertyPlayThruVolumeDecibelsToScalarTransferFunction: _bindgen_ty_304 =
1836479590;
pub const kAudioDevicePropertyDriverShouldOwniSub: _bindgen_ty_304 = 1769174370;
pub const kAudioDevicePropertySubVolumeDecibelsToScalarTransferFunction: _bindgen_ty_304 =
1937142886;
pub type _bindgen_ty_304 = ::std::os::raw::c_uint;
pub const kAudioDevicePropertyDeviceName: _bindgen_ty_305 = 1851878757;
pub const kAudioDevicePropertyDeviceNameCFString: _bindgen_ty_305 = 1819173229;
pub const kAudioDevicePropertyDeviceManufacturer: _bindgen_ty_305 = 1835101042;
pub const kAudioDevicePropertyDeviceManufacturerCFString: _bindgen_ty_305 = 1819107691;
pub const kAudioDevicePropertyRegisterBufferList: _bindgen_ty_305 = 1919055206;
pub const kAudioDevicePropertyBufferSize: _bindgen_ty_305 = 1651730810;
pub const kAudioDevicePropertyBufferSizeRange: _bindgen_ty_305 = 1651735075;
pub const kAudioDevicePropertyChannelName: _bindgen_ty_305 = 1667788397;
pub const kAudioDevicePropertyChannelNameCFString: _bindgen_ty_305 = 1818454126;
pub const kAudioDevicePropertyChannelCategoryName: _bindgen_ty_305 = 1667460717;
pub const kAudioDevicePropertyChannelCategoryNameCFString: _bindgen_ty_305 = 1818452846;
pub const kAudioDevicePropertyChannelNumberName: _bindgen_ty_305 = 1668181613;
pub const kAudioDevicePropertyChannelNumberNameCFString: _bindgen_ty_305 = 1818455662;
pub const kAudioDevicePropertySupportsMixing: _bindgen_ty_305 = 1835628607;
pub const kAudioDevicePropertyStreamFormat: _bindgen_ty_305 = 1936092532;
pub const kAudioDevicePropertyStreamFormats: _bindgen_ty_305 = 1936092451;
pub const kAudioDevicePropertyStreamFormatSupported: _bindgen_ty_305 = 1936092479;
pub const kAudioDevicePropertyStreamFormatMatch: _bindgen_ty_305 = 1936092525;
pub const kAudioDevicePropertyDataSourceNameForID: _bindgen_ty_305 = 1936941934;
pub const kAudioDevicePropertyClockSourceNameForID: _bindgen_ty_305 = 1668506478;
pub const kAudioDevicePropertyPlayThruDestinationNameForID: _bindgen_ty_305 = 1835295854;
pub const kAudioDevicePropertyChannelNominalLineLevelNameForID: _bindgen_ty_305 = 1668181110;
pub const kAudioDevicePropertyHighPassFilterSettingNameForID: _bindgen_ty_305 = 1667787120;
pub type _bindgen_ty_305 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioDeviceAddIOProc(
inDevice: AudioDeviceID,
inProc: AudioDeviceIOProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceRemoveIOProc(inDevice: AudioDeviceID, inProc: AudioDeviceIOProc) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceRead(
inDevice: AudioDeviceID,
inStartTime: *const AudioTimeStamp,
outData: *mut AudioBufferList,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceGetPropertyInfo(
inDevice: AudioDeviceID,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
outSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceGetProperty(
inDevice: AudioDeviceID,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
ioPropertyDataSize: *mut UInt32,
outPropertyData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceSetProperty(
inDevice: AudioDeviceID,
inWhen: *const AudioTimeStamp,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
inPropertyDataSize: UInt32,
inPropertyData: *const ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceAddPropertyListener(
inDevice: AudioDeviceID,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
inProc: AudioDevicePropertyListenerProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioDeviceRemovePropertyListener(
inDevice: AudioDeviceID,
inChannel: UInt32,
isInput: Boolean,
inPropertyID: AudioDevicePropertyID,
inProc: AudioDevicePropertyListenerProc,
) -> OSStatus;
}
pub const kAudioAggregateDevicePropertyMasterSubDevice: _bindgen_ty_306 = 1634562932;
pub type _bindgen_ty_306 = ::std::os::raw::c_uint;
pub type AudioStreamID = AudioObjectID;
pub type AudioStreamPropertyListenerProc = ::std::option::Option<
unsafe extern "C" fn(
inStream: AudioStreamID,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus,
>;
pub const kAudioStreamUnknown: _bindgen_ty_307 = 0;
pub type _bindgen_ty_307 = ::std::os::raw::c_uint;
pub const kAudioStreamPropertyOwningDevice: _bindgen_ty_308 = 1937007734;
pub const kAudioStreamPropertyPhysicalFormats: _bindgen_ty_308 = 1885762595;
pub const kAudioStreamPropertyPhysicalFormatSupported: _bindgen_ty_308 = 1885762623;
pub const kAudioStreamPropertyPhysicalFormatMatch: _bindgen_ty_308 = 1885762669;
pub type _bindgen_ty_308 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioStreamGetPropertyInfo(
inStream: AudioStreamID,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
outSize: *mut UInt32,
outWritable: *mut Boolean,
) -> OSStatus;
}
extern "C" {
pub fn AudioStreamGetProperty(
inStream: AudioStreamID,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
ioPropertyDataSize: *mut UInt32,
outPropertyData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioStreamSetProperty(
inStream: AudioStreamID,
inWhen: *const AudioTimeStamp,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
inPropertyDataSize: UInt32,
inPropertyData: *const ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioStreamAddPropertyListener(
inStream: AudioStreamID,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
inProc: AudioStreamPropertyListenerProc,
inClientData: *mut ::std::os::raw::c_void,
) -> OSStatus;
}
extern "C" {
pub fn AudioStreamRemovePropertyListener(
inStream: AudioStreamID,
inChannel: UInt32,
inPropertyID: AudioDevicePropertyID,
inProc: AudioStreamPropertyListenerProc,
) -> OSStatus;
}
pub const kAudioBootChimeVolumeControlClassID: _bindgen_ty_309 = 1886544237;
pub type _bindgen_ty_309 = ::std::os::raw::c_uint;
pub const kAudioControlPropertyVariant: _bindgen_ty_310 = 1668702578;
pub type _bindgen_ty_310 = ::std::os::raw::c_uint;
pub const kAudioClockSourceControlPropertyItemKind: _bindgen_ty_311 = 1668049771;
pub type _bindgen_ty_311 = ::std::os::raw::c_uint;
extern "C" {
pub fn AudioGetCurrentHostTime() -> UInt64;
}
extern "C" {
pub fn AudioGetHostClockFrequency() -> Float64;
}
extern "C" {
pub fn AudioGetHostClockMinimumTimeDelta() -> UInt32;
}
extern "C" {
pub fn AudioConvertHostTimeToNanos(inHostTime: UInt64) -> UInt64;
}
extern "C" {
pub fn AudioConvertNanosToHostTime(inNanos: UInt64) -> UInt64;
}
pub type UInt = ::std::os::raw::c_uint;
pub type SInt = ::std::os::raw::c_int;
pub const _IOAudioEngineMemory_kIOAudioStatusBuffer: _IOAudioEngineMemory = 0;
pub const _IOAudioEngineMemory_kIOAudioSampleBuffer: _IOAudioEngineMemory = 1;
pub const _IOAudioEngineMemory_kIOAudioMixBuffer: _IOAudioEngineMemory = 2;
pub const _IOAudioEngineMemory_kIOAudioBytesInInputBuffer: _IOAudioEngineMemory = 3;
pub const _IOAudioEngineMemory_kIOAudioBytesInOutputBuffer: _IOAudioEngineMemory = 4;
pub type _IOAudioEngineMemory = ::std::os::raw::c_uint;
pub use self::_IOAudioEngineMemory as IOAudioEngineMemory;
pub const _IOAudioEngineCalls_kIOAudioEngineCallRegisterClientBuffer: _IOAudioEngineCalls = 0;
pub const _IOAudioEngineCalls_kIOAudioEngineCallUnregisterClientBuffer: _IOAudioEngineCalls = 1;
pub const _IOAudioEngineCalls_kIOAudioEngineCallGetConnectionID: _IOAudioEngineCalls = 2;
pub const _IOAudioEngineCalls_kIOAudioEngineCallStart: _IOAudioEngineCalls = 3;
pub const _IOAudioEngineCalls_kIOAudioEngineCallStop: _IOAudioEngineCalls = 4;
pub const _IOAudioEngineCalls_kIOAudioEngineCallGetNearestStartTime: _IOAudioEngineCalls = 5;
pub type _IOAudioEngineCalls = ::std::os::raw::c_uint;
pub use self::_IOAudioEngineCalls as IOAudioEngineCalls;
pub const _IOAudioEngineTraps_kIOAudioEngineTrapPerformClientIO: _IOAudioEngineTraps = 0;
pub type _IOAudioEngineTraps = ::std::os::raw::c_uint;
pub use self::_IOAudioEngineTraps as IOAudioEngineTraps;
pub const _IOAudioEngineNotifications_kIOAudioEngineAllNotifications: _IOAudioEngineNotifications =
0;
pub const _IOAudioEngineNotifications_kIOAudioEngineStreamFormatChangeNotification:
_IOAudioEngineNotifications = 1;
pub const _IOAudioEngineNotifications_kIOAudioEngineChangeNotification:
_IOAudioEngineNotifications = 2;
pub const _IOAudioEngineNotifications_kIOAudioEngineStartedNotification:
_IOAudioEngineNotifications = 3;
pub const _IOAudioEngineNotifications_kIOAudioEngineStoppedNotification:
_IOAudioEngineNotifications = 4;
pub const _IOAudioEngineNotifications_kIOAudioEnginePausedNotification:
_IOAudioEngineNotifications = 5;
pub const _IOAudioEngineNotifications_kIOAudioEngineResumedNotification:
_IOAudioEngineNotifications = 6;
pub type _IOAudioEngineNotifications = ::std::os::raw::c_uint;
pub use self::_IOAudioEngineNotifications as IOAudioEngineNotifications;
pub const _IOAudioEngineState_kIOAudioEngineStopped: _IOAudioEngineState = 0;
pub const _IOAudioEngineState_kIOAudioEngineRunning: _IOAudioEngineState = 1;
pub const _IOAudioEngineState_kIOAudioEnginePaused: _IOAudioEngineState = 2;
pub const _IOAudioEngineState_kIOAudioEngineResumed: _IOAudioEngineState = 3;
pub type _IOAudioEngineState = ::std::os::raw::c_uint;
pub use self::_IOAudioEngineState as IOAudioEngineState;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioEngineStatus {
pub fVersion: UInt32,
pub fCurrentLoopCount: UInt32,
pub fLastLoopTime: AbsoluteTime,
pub fEraseHeadSampleFrame: UInt32,
}
pub type IOAudioEngineStatus = _IOAudioEngineStatus;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioStreamFormat {
pub fNumChannels: UInt32,
pub fSampleFormat: UInt32,
pub fNumericRepresentation: UInt32,
pub fBitDepth: UInt8,
pub fBitWidth: UInt8,
pub fAlignment: UInt8,
pub fByteOrder: UInt8,
pub fIsMixable: UInt8,
pub fDriverTag: UInt32,
}
pub type IOAudioStreamFormat = _IOAudioStreamFormat;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioStreamFormatExtension {
pub fVersion: UInt32,
pub fFlags: UInt32,
pub fFramesPerPacket: UInt32,
pub fBytesPerPacket: UInt32,
}
pub type IOAudioStreamFormatExtension = _IOAudioStreamFormatExtension;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioBufferDataDescriptor {
pub fActualDataByteSize: UInt32,
pub fActualNumSampleFrames: UInt32,
pub fTotalDataByteSize: UInt32,
pub fNominalDataByteSize: UInt32,
pub fData: [UInt8; 1usize],
}
pub type IOAudioBufferDataDescriptor = _IOAudioBufferDataDescriptor;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioStreamDataDescriptor {
pub fVersion: UInt32,
pub fNumberOfStreams: UInt32,
pub fStreamLength: [UInt32; 1usize],
}
pub type IOAudioStreamDataDescriptor = _IOAudioStreamDataDescriptor;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioSampleIntervalDescriptor {
pub sampleIntervalHi: UInt32,
pub sampleIntervalLo: UInt32,
}
pub type IOAudioSampleIntervalDescriptor = _IOAudioSampleIntervalDescriptor;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioSMPTETime {
pub fSubframes: SInt16,
pub fSubframeDivisor: SInt16,
pub fCounter: UInt32,
pub fType: UInt32,
pub fFlags: UInt32,
pub fHours: SInt16,
pub fMinutes: SInt16,
pub fSeconds: SInt16,
pub fFrames: SInt16,
}
pub type IOAudioSMPTETime = _IOAudioSMPTETime;
pub const kIOAudioSMPTETimeType24: _bindgen_ty_312 = 0;
pub const kIOAudioSMPTETimeType25: _bindgen_ty_312 = 1;
pub const kIOAudioSMPTETimeType30Drop: _bindgen_ty_312 = 2;
pub const kIOAudioSMPTETimeType30: _bindgen_ty_312 = 3;
pub const kIOAudioSMPTETimeType2997: _bindgen_ty_312 = 4;
pub const kIOAudioSMPTETimeType2997Drop: _bindgen_ty_312 = 5;
pub const kIOAudioSMPTETimeType60: _bindgen_ty_312 = 6;
pub const kIOAudioSMPTETimeType5994: _bindgen_ty_312 = 7;
pub const kIOAudioSMPTETimeType60Drop: _bindgen_ty_312 = 8;
pub const kIOAudioSMPTETimeType5994Drop: _bindgen_ty_312 = 9;
pub const kIOAudioSMPTETimeType50: _bindgen_ty_312 = 10;
pub const kIOAudioSMPTETimeType2398: _bindgen_ty_312 = 11;
pub type _bindgen_ty_312 = ::std::os::raw::c_uint;
pub const kIOAudioSMPTETimeValid: _bindgen_ty_313 = 1;
pub const kIOAudioSMPTETimeRunning: _bindgen_ty_313 = 2;
pub type _bindgen_ty_313 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioTimeStamp {
pub fSampleTime: UInt64,
pub fHostTime: UInt64,
pub fRateScalar: UInt64,
pub fWordClockTime: UInt64,
pub fSMPTETime: IOAudioSMPTETime,
pub fFlags: UInt32,
pub fReserved: UInt32,
}
pub type IOAudioTimeStamp = _IOAudioTimeStamp;
pub const kIOAudioTimeStampSampleTimeValid: _bindgen_ty_314 = 1;
pub const kIOAudioTimeStampHostTimeValid: _bindgen_ty_314 = 2;
pub const kIOAudioTimeStampRateScalarValid: _bindgen_ty_314 = 4;
pub const kIOAudioTimeStampWordClockTimeValid: _bindgen_ty_314 = 8;
pub const kIOAudioTimeStampSMPTETimeValid: _bindgen_ty_314 = 16;
pub type _bindgen_ty_314 = ::std::os::raw::c_uint;
pub const kIOAudioTimeStampSampleHostTimeValid: _bindgen_ty_315 = 3;
pub type _bindgen_ty_315 = ::std::os::raw::c_uint;
pub const _IOAudioStreamDirection_kIOAudioStreamDirectionOutput: _IOAudioStreamDirection = 0;
pub const _IOAudioStreamDirection_kIOAudioStreamDirectionInput: _IOAudioStreamDirection = 1;
pub type _IOAudioStreamDirection = ::std::os::raw::c_uint;
pub use self::_IOAudioStreamDirection as IOAudioStreamDirection;
pub const kIOAudioDeviceCanBeDefaultNothing: _bindgen_ty_316 = 0;
pub const kIOAudioDeviceCanBeDefaultInput: _bindgen_ty_316 = 1;
pub const kIOAudioDeviceCanBeDefaultOutput: _bindgen_ty_316 = 2;
pub const kIOAudioDeviceCanBeSystemOutput: _bindgen_ty_316 = 4;
pub type _bindgen_ty_316 = ::std::os::raw::c_uint;
pub const _IOAudioControlCalls_kIOAudioControlCallSetValue: _IOAudioControlCalls = 0;
pub const _IOAudioControlCalls_kIOAudioControlCallGetValue: _IOAudioControlCalls = 1;
pub type _IOAudioControlCalls = ::std::os::raw::c_uint;
pub use self::_IOAudioControlCalls as IOAudioControlCalls;
pub const _IOAudioControlNotifications_kIOAudioControlValueChangeNotification:
_IOAudioControlNotifications = 0;
pub const _IOAudioControlNotifications_kIOAudioControlRangeChangeNotification:
_IOAudioControlNotifications = 1;
pub type _IOAudioControlNotifications = ::std::os::raw::c_uint;
pub use self::_IOAudioControlNotifications as IOAudioControlNotifications;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IOAudioNotificationMessage {
pub messageHeader: mach_msg_header_t,
pub type_: UInt32,
pub ref_: UInt32,
pub sender: *mut ::std::os::raw::c_void,
}
impl Default for _IOAudioNotificationMessage {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type IOAudioNotificationMessage = _IOAudioNotificationMessage;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _IOAudioSampleRate {
pub whole: UInt32,
pub fraction: UInt32,
}
pub type IOAudioSampleRate = _IOAudioSampleRate;
pub const kIOAudioPortTypeOutput: _bindgen_ty_317 = 1869968496;
pub const kIOAudioPortTypeInput: _bindgen_ty_317 = 1768845428;
pub const kIOAudioPortTypeMixer: _bindgen_ty_317 = 1835628658;
pub const kIOAudioPortTypePassThru: _bindgen_ty_317 = 1885434739;
pub const kIOAudioPortTypeProcessing: _bindgen_ty_317 = 1886547811;
pub type _bindgen_ty_317 = ::std::os::raw::c_uint;
pub const kIOAudioOutputPortSubTypeInternalSpeaker: _bindgen_ty_318 = 1769173099;
pub const kIOAudioOutputPortSubTypeExternalSpeaker: _bindgen_ty_318 = 1702064235;
pub const kIOAudioOutputPortSubTypeHeadphones: _bindgen_ty_318 = 1751412846;
pub const kIOAudioOutputPortSubTypeLine: _bindgen_ty_318 = 1818848869;
pub const kIOAudioOutputPortSubTypeSPDIF: _bindgen_ty_318 = 1936745574;
pub const kIOAudioInputPortSubTypeInternalMicrophone: _bindgen_ty_318 = 1768778083;
pub const kIOAudioInputPortSubTypeExternalMicrophone: _bindgen_ty_318 = 1701669219;
pub const kIOAudioInputPortSubTypeCD: _bindgen_ty_318 = 1667506208;
pub const kIOAudioInputPortSubTypeLine: _bindgen_ty_318 = 1818848869;
pub const kIOAudioInputPortSubTypeSPDIF: _bindgen_ty_318 = 1936745574;
pub type _bindgen_ty_318 = ::std::os::raw::c_uint;
pub const kIOAudioControlTypeLevel: _bindgen_ty_319 = 1818588780;
pub const kIOAudioControlTypeToggle: _bindgen_ty_319 = 1953458028;
pub const kIOAudioControlTypeJack: _bindgen_ty_319 = 1784767339;
pub const kIOAudioControlTypeSelector: _bindgen_ty_319 = 1936483188;
pub type _bindgen_ty_319 = ::std::os::raw::c_uint;
pub const kIOAudioLevelControlSubTypeVolume: _bindgen_ty_320 = 1986817381;
pub const kIOAudioLevelControlSubTypeLFEVolume: _bindgen_ty_320 = 1937072758;
pub const kIOAudioLevelControlSubTypePRAMVolume: _bindgen_ty_320 = 1886544237;
pub const kIOAudioToggleControlSubTypeMute: _bindgen_ty_320 = 1836414053;
pub const kIOAudioToggleControlSubTypeSolo: _bindgen_ty_320 = 1936682095;
pub const kIOAudioToggleControlSubTypeLFEMute: _bindgen_ty_320 = 1937072749;
pub const kIOAudioToggleControlSubTypeiSubAttach: _bindgen_ty_320 = 1635017576;
pub const kIOAudioToggleControlSubTypePhantomPower: _bindgen_ty_320 = 1885888878;
pub const kIOAudioToggleControlSubTypePhaseInvert: _bindgen_ty_320 = 1885893481;
pub const kIOAudioSelectorControlSubTypeOutput: _bindgen_ty_320 = 1869968496;
pub const kIOAudioSelectorControlSubTypeInput: _bindgen_ty_320 = 1768845428;
pub const kIOAudioSelectorControlSubTypeClockSource: _bindgen_ty_320 = 1668047723;
pub const kIOAudioSelectorControlSubTypeDestination: _bindgen_ty_320 = 1684370292;
pub const kIOAudioSelectorControlSubTypeChannelNominalLineLevel: _bindgen_ty_320 = 1852597622;
pub const kIOAudioSelectorControlSubTypeChannelLevelPlus4dBu: _bindgen_ty_320 = 878994037;
pub const kIOAudioSelectorControlSubTypeChannelLevelMinus10dBV: _bindgen_ty_320 = 825255010;
pub const kIOAudioSelectorControlSubTypeChannelLevelMinus20dBV: _bindgen_ty_320 = 842032226;
pub const kIOAudioSelectorControlSubTypeChannelLevelMicLevel: _bindgen_ty_320 = 1835623276;
pub const kIOAudioSelectorControlSubTypeChannelLevelInstrumentLevel: _bindgen_ty_320 = 1769174124;
pub const kIOAudioSelectorControlSubTypeChannelHighPassFilter: _bindgen_ty_320 = 1751740518;
pub type _bindgen_ty_320 = ::std::os::raw::c_uint;
pub const kIOAudioControlUsageOutput: _bindgen_ty_321 = 1869968496;
pub const kIOAudioControlUsageInput: _bindgen_ty_321 = 1768845428;
pub const kIOAudioControlUsagePassThru: _bindgen_ty_321 = 1885434739;
pub const kIOAudioControlUsageCoreAudioProperty: _bindgen_ty_321 = 1886547824;
pub type _bindgen_ty_321 = ::std::os::raw::c_uint;
pub const kIOAudioControlChannelNumberInactive: _bindgen_ty_322 = -1;
pub const kIOAudioControlChannelIDAll: _bindgen_ty_322 = 0;
pub const kIOAudioControlChannelIDDefaultLeft: _bindgen_ty_322 = 1;
pub const kIOAudioControlChannelIDDefaultRight: _bindgen_ty_322 = 2;
pub const kIOAudioControlChannelIDDefaultCenter: _bindgen_ty_322 = 3;
pub const kIOAudioControlChannelIDDefaultLeftRear: _bindgen_ty_322 = 4;
pub const kIOAudioControlChannelIDDefaultRightRear: _bindgen_ty_322 = 5;
pub const kIOAudioControlChannelIDDefaultSub: _bindgen_ty_322 = 6;
pub const kIOAudioControlChannelIDDefaultFrontLeftCenter: _bindgen_ty_322 = 7;
pub const kIOAudioControlChannelIDDefaultFrontRightCenter: _bindgen_ty_322 = 8;
pub const kIOAudioControlChannelIDDefaultRearCenter: _bindgen_ty_322 = 9;
pub const kIOAudioControlChannelIDDefaultSurroundLeft: _bindgen_ty_322 = 10;
pub const kIOAudioControlChannelIDDefaultSurroundRight: _bindgen_ty_322 = 11;
pub type _bindgen_ty_322 = ::std::os::raw::c_int;
pub const kIOAudioSelectorControlSelectionValueNone: _bindgen_ty_323 = 1852796517;
pub const kIOAudioSelectorControlSelectionValueInternalSpeaker: _bindgen_ty_323 = 1769173099;
pub const kIOAudioSelectorControlSelectionValueExternalSpeaker: _bindgen_ty_323 = 1702064235;
pub const kIOAudioSelectorControlSelectionValueHeadphones: _bindgen_ty_323 = 1751412846;
pub const kIOAudioSelectorControlSelectionValueInternalMicrophone: _bindgen_ty_323 = 1768778083;
pub const kIOAudioSelectorControlSelectionValueExternalMicrophone: _bindgen_ty_323 = 1701669219;
pub const kIOAudioSelectorControlSelectionValueCD: _bindgen_ty_323 = 1667506208;
pub const kIOAudioSelectorControlSelectionValueLine: _bindgen_ty_323 = 1818848869;
pub const kIOAudioSelectorControlSelectionValueSPDIF: _bindgen_ty_323 = 1936745574;
pub type _bindgen_ty_323 = ::std::os::raw::c_uint;
pub const kIOAudioStreamSampleFormatLinearPCM: _bindgen_ty_324 = 1819304813;
pub const kIOAudioStreamSampleFormatIEEEFloat: _bindgen_ty_324 = 1768252773;
pub const kIOAudioStreamSampleFormatALaw: _bindgen_ty_324 = 1634492791;
pub const kIOAudioStreamSampleFormatMuLaw: _bindgen_ty_324 = 1970037111;
pub const kIOAudioStreamSampleFormatMPEG: _bindgen_ty_324 = 1836082535;
pub const kIOAudioStreamSampleFormatAC3: _bindgen_ty_324 = 1633889587;
pub const kIOAudioStreamSampleFormat1937AC3: _bindgen_ty_324 = 1667326771;
pub const kIOAudioStreamSampleFormat1937MPEG1: _bindgen_ty_324 = 1836082993;
pub const kIOAudioStreamSampleFormat1937MPEG2: _bindgen_ty_324 = 1836082994;
pub const kIOAudioStreamSampleFormatTimeCode: _bindgen_ty_324 = 1953066341;
pub type _bindgen_ty_324 = ::std::os::raw::c_uint;
pub const kIOAudioStreamNumericRepresentationSignedInt: _bindgen_ty_325 = 1936289396;
pub const kIOAudioStreamNumericRepresentationUnsignedInt: _bindgen_ty_325 = 1969843828;
pub const kIOAudioStreamNumericRepresentationIEEE754Float: _bindgen_ty_325 = 1718382452;
pub type _bindgen_ty_325 = ::std::os::raw::c_uint;
pub const kIOAudioClockSelectorTypeInternal: _bindgen_ty_326 = 1768846368;
pub const kIOAudioClockSelectorTypeExternal: _bindgen_ty_326 = 1702392864;
pub const kIOAudioClockSelectorTypeAESEBU: _bindgen_ty_326 = 1634951797;
pub const kIOAudioClockSelectorTypeTOSLink: _bindgen_ty_326 = 1953461100;
pub const kIOAudioClockSelectorTypeSPDIF: _bindgen_ty_326 = 1936745574;
pub const kIOAudioClockSelectorTypeADATOptical: _bindgen_ty_326 = 1633973359;
pub const kIOAudioClockSelectorTypeADAT9Pin: _bindgen_ty_326 = 1633973305;
pub const kIOAudioClockSelectorTypeSMPTE: _bindgen_ty_326 = 1936552052;
pub const kIOAudioClockSelectorTypeVideo: _bindgen_ty_326 = 1986291055;
pub const kIOAudioClockSelectorTypeControl: _bindgen_ty_326 = 1668182636;
pub const kIOAudioClockSelectorTypeOther: _bindgen_ty_326 = 1869899890;
pub type _bindgen_ty_326 = ::std::os::raw::c_uint;
pub const kIOAudioStreamAlignmentLowByte: _bindgen_ty_327 = 0;
pub const kIOAudioStreamAlignmentHighByte: _bindgen_ty_327 = 1;
pub type _bindgen_ty_327 = ::std::os::raw::c_uint;
pub const kIOAudioStreamByteOrderBigEndian: _bindgen_ty_328 = 0;
pub const kIOAudioStreamByteOrderLittleEndian: _bindgen_ty_328 = 1;
pub type _bindgen_ty_328 = ::std::os::raw::c_uint;
pub const kIOAudioLevelControlNegativeInfinity: _bindgen_ty_329 = 4294967295;
pub type _bindgen_ty_329 = ::std::os::raw::c_uint;
pub const kIOAudioBuiltInSystemClockDomain: _bindgen_ty_330 = 7567731;
pub const kIOAudioNewClockDomain: _bindgen_ty_330 = 4294967295;
pub type _bindgen_ty_330 = ::std::os::raw::c_uint;
pub const kIOAudioDeviceTransportTypeBuiltIn: _bindgen_ty_331 = 1651274862;
pub const kIOAudioDeviceTransportTypePCI: _bindgen_ty_331 = 1885563168;
pub const kIOAudioDeviceTransportTypeUSB: _bindgen_ty_331 = 1970496032;
pub const kIOAudioDeviceTransportTypeFireWire: _bindgen_ty_331 = 825440564;
pub const kIOAudioDeviceTransportTypeNetwork: _bindgen_ty_331 = 1853126507;
pub const kIOAudioDeviceTransportTypeWireless: _bindgen_ty_331 = 2003987571;
pub const kIOAudioDeviceTransportTypeOther: _bindgen_ty_331 = 1869899890;
pub const kIOAudioDeviceTransportTypeBluetooth: _bindgen_ty_331 = 1651275109;
pub const kIOAudioDeviceTransportTypeVirtual: _bindgen_ty_331 = 1986622068;
pub const kIOAudioDeviceTransportTypeDisplayPort: _bindgen_ty_331 = 1685090932;
pub const kIOAudioDeviceTransportTypeHdmi: _bindgen_ty_331 = 1751412073;
pub const kIOAudioDeviceTransportTypeAVB: _bindgen_ty_331 = 1700886114;
pub const kIOAudioDeviceTransportTypeThunderbolt: _bindgen_ty_331 = 1953002862;
pub type _bindgen_ty_331 = ::std::os::raw::c_uint;
pub const OUTPUT_NULL: _bindgen_ty_332 = 256;
pub const INPUT_NULL: _bindgen_ty_332 = 257;
pub type _bindgen_ty_332 = ::std::os::raw::c_uint;
pub const INPUT_UNDEFINED: _bindgen_ty_333 = 512;
pub const INPUT_MICROPHONE: _bindgen_ty_333 = 513;
pub const INPUT_DESKTOP_MICROPHONE: _bindgen_ty_333 = 514;
pub const INPUT_PERSONAL_MICROPHONE: _bindgen_ty_333 = 515;
pub const INPUT_OMNIDIRECTIONAL_MICROPHONE: _bindgen_ty_333 = 516;
pub const INPUT_MICROPHONE_ARRAY: _bindgen_ty_333 = 517;
pub const INPUT_PROCESSING_MICROPHONE_ARRAY: _bindgen_ty_333 = 518;
pub const INPUT_MODEM_AUDIO: _bindgen_ty_333 = 519;
pub type _bindgen_ty_333 = ::std::os::raw::c_uint;
pub const OUTPUT_UNDEFINED: _bindgen_ty_334 = 768;
pub const OUTPUT_SPEAKER: _bindgen_ty_334 = 769;
pub const OUTPUT_HEADPHONES: _bindgen_ty_334 = 770;
pub const OUTPUT_HEAD_MOUNTED_DISPLAY_AUDIO: _bindgen_ty_334 = 771;
pub const OUTPUT_DESKTOP_SPEAKER: _bindgen_ty_334 = 772;
pub const OUTPUT_ROOM_SPEAKER: _bindgen_ty_334 = 773;
pub const OUTPUT_COMMUNICATION_SPEAKER: _bindgen_ty_334 = 774;
pub const OUTPUT_LOW_FREQUENCY_EFFECTS_SPEAKER: _bindgen_ty_334 = 775;
pub type _bindgen_ty_334 = ::std::os::raw::c_uint;
pub const BIDIRECTIONAL_UNDEFINED: _bindgen_ty_335 = 1024;
pub const BIDIRECTIONAL_HANDSET: _bindgen_ty_335 = 1025;
pub const BIDIRECTIONAL_HEADSET: _bindgen_ty_335 = 1026;
pub const BIDIRECTIONAL_SPEAKERPHONE_NO_ECHO_REDX: _bindgen_ty_335 = 1027;
pub const BIDIRECTIONAL_ECHO_SUPPRESSING_SPEAKERPHONE: _bindgen_ty_335 = 1028;
pub const BIDIRECTIONAL_ECHO_CANCELING_SPEAKERPHONE: _bindgen_ty_335 = 1029;
pub type _bindgen_ty_335 = ::std::os::raw::c_uint;
pub const TELEPHONY_UNDEFINED: _bindgen_ty_336 = 1280;
pub const TELEPHONY_PHONE_LINE: _bindgen_ty_336 = 1281;
pub const TELEPHONY_TELEPHONE: _bindgen_ty_336 = 1282;
pub const TELEPHONY_DOWN_LINE_PHONE: _bindgen_ty_336 = 1283;
pub type _bindgen_ty_336 = ::std::os::raw::c_uint;
pub const EXTERNAL_UNDEFINED: _bindgen_ty_337 = 1536;
pub const EXTERNAL_ANALOG_CONNECTOR: _bindgen_ty_337 = 1537;
pub const EXTERNAL_DIGITAL_AUDIO_INTERFACE: _bindgen_ty_337 = 1538;
pub const EXTERNAL_LINE_CONNECTOR: _bindgen_ty_337 = 1539;
pub const EXTERNAL_LEGACY_AUDIO_CONNECTOR: _bindgen_ty_337 = 1540;
pub const EXTERNAL_SPDIF_INTERFACE: _bindgen_ty_337 = 1541;
pub const EXTERNAL_1394_DA_STREAM: _bindgen_ty_337 = 1542;
pub const EXTERNAL_1394_DV_STREAM_SOUNDTRACK: _bindgen_ty_337 = 1543;
pub const EXTERNAL_ADAT: _bindgen_ty_337 = 1544;
pub const EXTERNAL_TDIF: _bindgen_ty_337 = 1545;
pub const EXTERNAL_MADI: _bindgen_ty_337 = 1546;
pub type _bindgen_ty_337 = ::std::os::raw::c_uint;
pub const EMBEDDED_UNDEFINED: _bindgen_ty_338 = 1792;
pub const EMBEDDED_LEVEL_CALIBRATION_NOISE_SOURCE: _bindgen_ty_338 = 1793;
pub const EMBEDDED_EQUALIZATION_NOISE: _bindgen_ty_338 = 1794;
pub const EMBEDDED_CD_PLAYER: _bindgen_ty_338 = 1795;
pub const EMBEDDED_DAT: _bindgen_ty_338 = 1796;
pub const EMBEDDED_DCC: _bindgen_ty_338 = 1797;
pub const EMBEDDED_MINIDISK: _bindgen_ty_338 = 1798;
pub const EMBEDDED_ANALOG_TAPE: _bindgen_ty_338 = 1799;
pub const EMBEDDED_PHONOGRAPH: _bindgen_ty_338 = 1800;
pub const EMBEDDED_VCR_AUDIO: _bindgen_ty_338 = 1801;
pub const EMBEDDED_VIDEO_DISC_AUDIO: _bindgen_ty_338 = 1802;
pub const EMBEDDED_DVD_AUDIO: _bindgen_ty_338 = 1803;
pub const EMBEDDED_TV_TUNER_AUDIO: _bindgen_ty_338 = 1804;
pub const EMBEDDED_SATELLITE_RECEIVER_AUDIO: _bindgen_ty_338 = 1805;
pub const EMBEDDED_CABLE_TUNER_AUDIO: _bindgen_ty_338 = 1806;
pub const EMBEDDED_DSS_AUDIO: _bindgen_ty_338 = 1807;
pub const EMBEDDED_RADIO_RECEIVER: _bindgen_ty_338 = 1808;
pub const EMBEDDED_RADIO_TRANSMITTER: _bindgen_ty_338 = 1809;
pub const EMBEDDED_MULTITRACK_RECORDER: _bindgen_ty_338 = 1810;
pub const EMBEDDED_SYNTHESIZER: _bindgen_ty_338 = 1811;
pub type _bindgen_ty_338 = ::std::os::raw::c_uint;
pub const PROCESSOR_UNDEFINED: _bindgen_ty_339 = 2048;
pub const PROCESSOR_GENERAL: _bindgen_ty_339 = 2049;
pub type _bindgen_ty_339 = ::std::os::raw::c_uint;
pub const kIOAudioChannelLabel_Unknown: _bindgen_ty_340 = 4294967295;
pub const kIOAudioChannelLabel_Unused: _bindgen_ty_340 = 0;
pub const kIOAudioChannelLabel_UseCoordinates: _bindgen_ty_340 = 100;
pub const kIOAudioChannelLabel_Left: _bindgen_ty_340 = 1;
pub const kIOAudioChannelLabel_Right: _bindgen_ty_340 = 2;
pub const kIOAudioChannelLabel_Center: _bindgen_ty_340 = 3;
pub const kIOAudioChannelLabel_LFEScreen: _bindgen_ty_340 = 4;
pub const kIOAudioChannelLabel_LeftSurround: _bindgen_ty_340 = 5;
pub const kIOAudioChannelLabel_RightSurround: _bindgen_ty_340 = 6;
pub const kIOAudioChannelLabel_LeftCenter: _bindgen_ty_340 = 7;
pub const kIOAudioChannelLabel_RightCenter: _bindgen_ty_340 = 8;
pub const kIOAudioChannelLabel_CenterSurround: _bindgen_ty_340 = 9;
pub const kIOAudioChannelLabel_LeftSurroundDirect: _bindgen_ty_340 = 10;
pub const kIOAudioChannelLabel_RightSurroundDirect: _bindgen_ty_340 = 11;
pub const kIOAudioChannelLabel_TopCenterSurround: _bindgen_ty_340 = 12;
pub const kIOAudioChannelLabel_VerticalHeightLeft: _bindgen_ty_340 = 13;
pub const kIOAudioChannelLabel_VerticalHeightCenter: _bindgen_ty_340 = 14;
pub const kIOAudioChannelLabel_VerticalHeightRight: _bindgen_ty_340 = 15;
pub const kIOAudioChannelLabel_TopBackLeft: _bindgen_ty_340 = 16;
pub const kIOAudioChannelLabel_TopBackCenter: _bindgen_ty_340 = 17;
pub const kIOAudioChannelLabel_TopBackRight: _bindgen_ty_340 = 18;
pub const kIOAudioChannelLabel_RearSurroundLeft: _bindgen_ty_340 = 33;
pub const kIOAudioChannelLabel_RearSurroundRight: _bindgen_ty_340 = 34;
pub const kIOAudioChannelLabel_LeftWide: _bindgen_ty_340 = 35;
pub const kIOAudioChannelLabel_RightWide: _bindgen_ty_340 = 36;
pub const kIOAudioChannelLabel_LFE2: _bindgen_ty_340 = 37;
pub const kIOAudioChannelLabel_LeftTotal: _bindgen_ty_340 = 38;
pub const kIOAudioChannelLabel_RightTotal: _bindgen_ty_340 = 39;
pub const kIOAudioChannelLabel_HearingImpaired: _bindgen_ty_340 = 40;
pub const kIOAudioChannelLabel_Narration: _bindgen_ty_340 = 41;
pub const kIOAudioChannelLabel_Mono: _bindgen_ty_340 = 42;
pub const kIOAudioChannelLabel_DialogCentricMix: _bindgen_ty_340 = 43;
pub const kIOAudioChannelLabel_CenterSurroundDirect: _bindgen_ty_340 = 44;
pub const kIOAudioChannelLabel_Haptic: _bindgen_ty_340 = 45;
pub const kIOAudioChannelLabel_LeftTopFront: _bindgen_ty_340 = 13;
pub const kIOAudioChannelLabel_CenterTopFront: _bindgen_ty_340 = 14;
pub const kIOAudioChannelLabel_RightTopFront: _bindgen_ty_340 = 15;
pub const kIOAudioChannelLabel_LeftTopMiddle: _bindgen_ty_340 = 49;
pub const kIOAudioChannelLabel_CenterTopMiddle: _bindgen_ty_340 = 12;
pub const kIOAudioChannelLabel_RightTopMiddle: _bindgen_ty_340 = 51;
pub const kIOAudioChannelLabel_LeftTopRear: _bindgen_ty_340 = 52;
pub const kIOAudioChannelLabel_CenterTopRear: _bindgen_ty_340 = 53;
pub const kIOAudioChannelLabel_RightTopRear: _bindgen_ty_340 = 54;
pub const kIOAudioChannelLabel_Ambisonic_W: _bindgen_ty_340 = 200;
pub const kIOAudioChannelLabel_Ambisonic_X: _bindgen_ty_340 = 201;
pub const kIOAudioChannelLabel_Ambisonic_Y: _bindgen_ty_340 = 202;
pub const kIOAudioChannelLabel_Ambisonic_Z: _bindgen_ty_340 = 203;
pub const kIOAudioChannelLabel_MS_Mid: _bindgen_ty_340 = 204;
pub const kIOAudioChannelLabel_MS_Side: _bindgen_ty_340 = 205;
pub const kIOAudioChannelLabel_XY_X: _bindgen_ty_340 = 206;
pub const kIOAudioChannelLabel_XY_Y: _bindgen_ty_340 = 207;
pub const kIOAudioChannelLabel_HeadphonesLeft: _bindgen_ty_340 = 301;
pub const kIOAudioChannelLabel_HeadphonesRight: _bindgen_ty_340 = 302;
pub const kIOAudioChannelLabel_ClickTrack: _bindgen_ty_340 = 304;
pub const kIOAudioChannelLabel_ForeignLanguage: _bindgen_ty_340 = 305;
pub const kIOAudioChannelLabel_Discrete: _bindgen_ty_340 = 400;
pub const kIOAudioChannelLabel_Discrete_0: _bindgen_ty_340 = 65536;
pub const kIOAudioChannelLabel_Discrete_1: _bindgen_ty_340 = 65537;
pub const kIOAudioChannelLabel_Discrete_2: _bindgen_ty_340 = 65538;
pub const kIOAudioChannelLabel_Discrete_3: _bindgen_ty_340 = 65539;
pub const kIOAudioChannelLabel_Discrete_4: _bindgen_ty_340 = 65540;
pub const kIOAudioChannelLabel_Discrete_5: _bindgen_ty_340 = 65541;
pub const kIOAudioChannelLabel_Discrete_6: _bindgen_ty_340 = 65542;
pub const kIOAudioChannelLabel_Discrete_7: _bindgen_ty_340 = 65543;
pub const kIOAudioChannelLabel_Discrete_8: _bindgen_ty_340 = 65544;
pub const kIOAudioChannelLabel_Discrete_9: _bindgen_ty_340 = 65545;
pub const kIOAudioChannelLabel_Discrete_10: _bindgen_ty_340 = 65546;
pub const kIOAudioChannelLabel_Discrete_11: _bindgen_ty_340 = 65547;
pub const kIOAudioChannelLabel_Discrete_12: _bindgen_ty_340 = 65548;
pub const kIOAudioChannelLabel_Discrete_13: _bindgen_ty_340 = 65549;
pub const kIOAudioChannelLabel_Discrete_14: _bindgen_ty_340 = 65550;
pub const kIOAudioChannelLabel_Discrete_15: _bindgen_ty_340 = 65551;
pub const kIOAudioChannelLabel_Discrete_65535: _bindgen_ty_340 = 131071;
pub type _bindgen_ty_340 = ::std::os::raw::c_uint;
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
impl Default for __va_list_tag {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _os_object_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_object_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_group_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_source_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_channel_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_mach_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_mach_msg_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_semaphore_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dispatch_io_s {
pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct OpaqueAudioFileID {
pub _address: u8,
}