use core::ffi::*;
use crate::*;
extern "C-unwind" {
#[cfg(feature = "AEDataModel")]
pub fn CreateOffsetDescriptor(the_offset: c_long, the_descriptor: *mut AEDesc) -> OSErr;
}
#[cfg(feature = "AEDataModel")]
#[inline]
pub unsafe extern "C-unwind" fn CreateCompDescriptor(
comparison_operator: DescType,
operand1: *mut AEDesc,
operand2: *mut AEDesc,
dispose_inputs: bool,
the_descriptor: *mut AEDesc,
) -> OSErr {
extern "C-unwind" {
fn CreateCompDescriptor(
comparison_operator: DescType,
operand1: *mut AEDesc,
operand2: *mut AEDesc,
dispose_inputs: Boolean,
the_descriptor: *mut AEDesc,
) -> OSErr;
}
unsafe {
CreateCompDescriptor(
comparison_operator,
operand1,
operand2,
dispose_inputs as _,
the_descriptor,
)
}
}
#[cfg(feature = "AEDataModel")]
#[inline]
pub unsafe extern "C-unwind" fn CreateLogicalDescriptor(
the_logical_terms: *mut AEDescList,
the_logic_operator: DescType,
dispose_inputs: bool,
the_descriptor: *mut AEDesc,
) -> OSErr {
extern "C-unwind" {
fn CreateLogicalDescriptor(
the_logical_terms: *mut AEDescList,
the_logic_operator: DescType,
dispose_inputs: Boolean,
the_descriptor: *mut AEDesc,
) -> OSErr;
}
unsafe {
CreateLogicalDescriptor(
the_logical_terms,
the_logic_operator,
dispose_inputs as _,
the_descriptor,
)
}
}
#[cfg(feature = "AEDataModel")]
#[inline]
pub unsafe extern "C-unwind" fn CreateObjSpecifier(
desired_class: DescType,
the_container: *mut AEDesc,
key_form: DescType,
key_data: *mut AEDesc,
dispose_inputs: bool,
obj_specifier: *mut AEDesc,
) -> OSErr {
extern "C-unwind" {
fn CreateObjSpecifier(
desired_class: DescType,
the_container: *mut AEDesc,
key_form: DescType,
key_data: *mut AEDesc,
dispose_inputs: Boolean,
obj_specifier: *mut AEDesc,
) -> OSErr;
}
unsafe {
CreateObjSpecifier(
desired_class,
the_container,
key_form,
key_data,
dispose_inputs as _,
obj_specifier,
)
}
}
#[cfg(feature = "AEDataModel")]
#[inline]
pub unsafe extern "C-unwind" fn CreateRangeDescriptor(
range_start: *mut AEDesc,
range_stop: *mut AEDesc,
dispose_inputs: bool,
the_descriptor: *mut AEDesc,
) -> OSErr {
extern "C-unwind" {
fn CreateRangeDescriptor(
range_start: *mut AEDesc,
range_stop: *mut AEDesc,
dispose_inputs: Boolean,
the_descriptor: *mut AEDesc,
) -> OSErr;
}
unsafe { CreateRangeDescriptor(range_start, range_stop, dispose_inputs as _, the_descriptor) }
}