objc2_core_services/generated/AE/
AEPackObject.rs1use core::ffi::*;
4
5use crate::*;
6
7extern "C-unwind" {
8 #[cfg(feature = "AEDataModel")]
12 pub fn CreateOffsetDescriptor(the_offset: c_long, the_descriptor: *mut AEDesc) -> OSErr;
13}
14
15#[cfg(feature = "AEDataModel")]
21#[inline]
22pub unsafe extern "C-unwind" fn CreateCompDescriptor(
23 comparison_operator: DescType,
24 operand1: *mut AEDesc,
25 operand2: *mut AEDesc,
26 dispose_inputs: bool,
27 the_descriptor: *mut AEDesc,
28) -> OSErr {
29 extern "C-unwind" {
30 fn CreateCompDescriptor(
31 comparison_operator: DescType,
32 operand1: *mut AEDesc,
33 operand2: *mut AEDesc,
34 dispose_inputs: Boolean,
35 the_descriptor: *mut AEDesc,
36 ) -> OSErr;
37 }
38 unsafe {
39 CreateCompDescriptor(
40 comparison_operator,
41 operand1,
42 operand2,
43 dispose_inputs as _,
44 the_descriptor,
45 )
46 }
47}
48
49#[cfg(feature = "AEDataModel")]
54#[inline]
55pub unsafe extern "C-unwind" fn CreateLogicalDescriptor(
56 the_logical_terms: *mut AEDescList,
57 the_logic_operator: DescType,
58 dispose_inputs: bool,
59 the_descriptor: *mut AEDesc,
60) -> OSErr {
61 extern "C-unwind" {
62 fn CreateLogicalDescriptor(
63 the_logical_terms: *mut AEDescList,
64 the_logic_operator: DescType,
65 dispose_inputs: Boolean,
66 the_descriptor: *mut AEDesc,
67 ) -> OSErr;
68 }
69 unsafe {
70 CreateLogicalDescriptor(
71 the_logical_terms,
72 the_logic_operator,
73 dispose_inputs as _,
74 the_descriptor,
75 )
76 }
77}
78
79#[cfg(feature = "AEDataModel")]
85#[inline]
86pub unsafe extern "C-unwind" fn CreateObjSpecifier(
87 desired_class: DescType,
88 the_container: *mut AEDesc,
89 key_form: DescType,
90 key_data: *mut AEDesc,
91 dispose_inputs: bool,
92 obj_specifier: *mut AEDesc,
93) -> OSErr {
94 extern "C-unwind" {
95 fn CreateObjSpecifier(
96 desired_class: DescType,
97 the_container: *mut AEDesc,
98 key_form: DescType,
99 key_data: *mut AEDesc,
100 dispose_inputs: Boolean,
101 obj_specifier: *mut AEDesc,
102 ) -> OSErr;
103 }
104 unsafe {
105 CreateObjSpecifier(
106 desired_class,
107 the_container,
108 key_form,
109 key_data,
110 dispose_inputs as _,
111 obj_specifier,
112 )
113 }
114}
115
116#[cfg(feature = "AEDataModel")]
122#[inline]
123pub unsafe extern "C-unwind" fn CreateRangeDescriptor(
124 range_start: *mut AEDesc,
125 range_stop: *mut AEDesc,
126 dispose_inputs: bool,
127 the_descriptor: *mut AEDesc,
128) -> OSErr {
129 extern "C-unwind" {
130 fn CreateRangeDescriptor(
131 range_start: *mut AEDesc,
132 range_stop: *mut AEDesc,
133 dispose_inputs: Boolean,
134 the_descriptor: *mut AEDesc,
135 ) -> OSErr;
136 }
137 unsafe { CreateRangeDescriptor(range_start, range_stop, dispose_inputs as _, the_descriptor) }
138}