apple_cf/ffi/core_foundation.rs
1#![allow(missing_docs)]
2
3use core::ffi::{c_char, c_void};
4
5extern "C" {
6/// Swift bridge function `acf_object_release` for the corresponding Apple API.
7 pub fn acf_object_release(value: *mut c_void);
8/// Swift bridge function `acf_object_retain` for the corresponding Apple API.
9 pub fn acf_object_retain(value: *mut c_void) -> *mut c_void;
10/// Swift bridge function `acf_object_hash` for the corresponding Apple API.
11 pub fn acf_object_hash(value: *mut c_void) -> usize;
12
13/// Swift bridge function `cf_type_release` for the corresponding Apple API.
14 pub fn cf_type_release(value: *mut c_void);
15/// Swift bridge function `cf_type_retain` for the corresponding Apple API.
16 pub fn cf_type_retain(value: *mut c_void) -> *mut c_void;
17/// Swift bridge function `cf_type_hash` for the corresponding Apple API.
18 pub fn cf_type_hash(value: *mut c_void) -> usize;
19/// Swift bridge function `cf_type_equal` for the corresponding Apple API.
20 pub fn cf_type_equal(lhs: *mut c_void, rhs: *mut c_void) -> bool;
21/// Swift bridge function `cf_type_get_type_id` for the corresponding Apple API.
22 pub fn cf_type_get_type_id(value: *mut c_void) -> usize;
23/// Swift bridge function `cf_type_copy_description` for the corresponding Apple API.
24 pub fn cf_type_copy_description(value: *mut c_void) -> *mut c_char;
25
26/// Swift bridge function `cf_string_get_type_id` for the corresponding Apple API.
27 pub fn cf_string_get_type_id() -> usize;
28/// Swift bridge function `cf_string_create_with_cstring` for the corresponding Apple API.
29 pub fn cf_string_create_with_cstring(value: *const c_char) -> *mut c_void;
30/// Swift bridge function `cf_string_copy_cstring` for the corresponding Apple API.
31 pub fn cf_string_copy_cstring(value: *mut c_void) -> *mut c_char;
32/// Swift bridge function `cf_string_get_length` for the corresponding Apple API.
33 pub fn cf_string_get_length(value: *mut c_void) -> usize;
34
35/// Swift bridge function `cf_number_get_type_id` for the corresponding Apple API.
36 pub fn cf_number_get_type_id() -> usize;
37/// Swift bridge function `cf_number_create_i64` for the corresponding Apple API.
38 pub fn cf_number_create_i64(value: i64) -> *mut c_void;
39/// Swift bridge function `cf_number_create_u64` for the corresponding Apple API.
40 pub fn cf_number_create_u64(value: u64) -> *mut c_void;
41/// Swift bridge function `cf_number_create_f64` for the corresponding Apple API.
42 pub fn cf_number_create_f64(value: f64) -> *mut c_void;
43/// Swift bridge function `cf_number_get_i64` for the corresponding Apple API.
44 pub fn cf_number_get_i64(value: *mut c_void, out: *mut i64) -> bool;
45/// Swift bridge function `cf_number_get_u64` for the corresponding Apple API.
46 pub fn cf_number_get_u64(value: *mut c_void, out: *mut u64) -> bool;
47/// Swift bridge function `cf_number_get_f64` for the corresponding Apple API.
48 pub fn cf_number_get_f64(value: *mut c_void, out: *mut f64) -> bool;
49/// Swift bridge function `cf_number_is_float_type` for the corresponding Apple API.
50 pub fn cf_number_is_float_type(value: *mut c_void) -> bool;
51
52/// Swift bridge function `cf_data_get_type_id` for the corresponding Apple API.
53 pub fn cf_data_get_type_id() -> usize;
54/// Swift bridge function `cf_data_create` for the corresponding Apple API.
55 pub fn cf_data_create(bytes: *const u8, len: usize) -> *mut c_void;
56/// Swift bridge function `cf_data_get_length` for the corresponding Apple API.
57 pub fn cf_data_get_length(value: *mut c_void) -> usize;
58/// Swift bridge function `cf_data_copy_bytes` for the corresponding Apple API.
59 pub fn cf_data_copy_bytes(value: *mut c_void, buffer: *mut u8);
60
61/// Swift bridge function `cf_date_get_type_id` for the corresponding Apple API.
62 pub fn cf_date_get_type_id() -> usize;
63/// Swift bridge function `cf_date_create` for the corresponding Apple API.
64 pub fn cf_date_create(absolute_time: f64) -> *mut c_void;
65/// Swift bridge function `cf_date_get_absolute_time` for the corresponding Apple API.
66 pub fn cf_date_get_absolute_time(value: *mut c_void) -> f64;
67
68/// Swift bridge function `cf_uuid_get_type_id` for the corresponding Apple API.
69 pub fn cf_uuid_get_type_id() -> usize;
70/// Swift bridge function `cf_uuid_create` for the corresponding Apple API.
71 pub fn cf_uuid_create() -> *mut c_void;
72/// Swift bridge function `cf_uuid_create_from_string` for the corresponding Apple API.
73 pub fn cf_uuid_create_from_string(value: *const c_char) -> *mut c_void;
74/// Swift bridge function `cf_uuid_copy_string` for the corresponding Apple API.
75 pub fn cf_uuid_copy_string(value: *mut c_void) -> *mut c_void;
76/// Swift bridge function `cf_uuid_get_bytes` for the corresponding Apple API.
77 pub fn cf_uuid_get_bytes(value: *mut c_void, out_bytes: *mut u8);
78
79/// Swift bridge function `cf_error_get_type_id` for the corresponding Apple API.
80 pub fn cf_error_get_type_id() -> usize;
81/// Swift bridge function `cf_error_create` for the corresponding Apple API.
82 pub fn cf_error_create(
83 domain: *mut c_void,
84 code: i64,
85 description: *const c_char,
86 ) -> *mut c_void;
87/// Swift bridge function `cf_error_get_domain` for the corresponding Apple API.
88 pub fn cf_error_get_domain(value: *mut c_void) -> *mut c_void;
89/// Swift bridge function `cf_error_get_code` for the corresponding Apple API.
90 pub fn cf_error_get_code(value: *mut c_void) -> i64;
91/// Swift bridge function `cf_error_copy_description` for the corresponding Apple API.
92 pub fn cf_error_copy_description(value: *mut c_void) -> *mut c_void;
93/// Swift bridge function `cf_error_copy_failure_reason` for the corresponding Apple API.
94 pub fn cf_error_copy_failure_reason(value: *mut c_void) -> *mut c_void;
95
96/// Swift bridge function `cf_url_get_type_id` for the corresponding Apple API.
97 pub fn cf_url_get_type_id() -> usize;
98/// Swift bridge function `cf_url_create_with_string` for the corresponding Apple API.
99 pub fn cf_url_create_with_string(value: *const c_char) -> *mut c_void;
100/// Swift bridge function `cf_url_create_file_path` for the corresponding Apple API.
101 pub fn cf_url_create_file_path(path: *const c_char, is_directory: bool) -> *mut c_void;
102/// Swift bridge function `cf_url_copy_absolute_string` for the corresponding Apple API.
103 pub fn cf_url_copy_absolute_string(value: *mut c_void) -> *mut c_void;
104/// Swift bridge function `cf_url_copy_file_system_path` for the corresponding Apple API.
105 pub fn cf_url_copy_file_system_path(value: *mut c_void) -> *mut c_void;
106/// Swift bridge function `cf_url_has_directory_path` for the corresponding Apple API.
107 pub fn cf_url_has_directory_path(value: *mut c_void) -> bool;
108
109/// Swift bridge function `cf_bundle_get_type_id` for the corresponding Apple API.
110 pub fn cf_bundle_get_type_id() -> usize;
111/// Swift bridge function `cf_bundle_get_main` for the corresponding Apple API.
112 pub fn cf_bundle_get_main() -> *mut c_void;
113/// Swift bridge function `cf_bundle_create` for the corresponding Apple API.
114 pub fn cf_bundle_create(url: *mut c_void) -> *mut c_void;
115/// Swift bridge function `cf_bundle_copy_identifier` for the corresponding Apple API.
116 pub fn cf_bundle_copy_identifier(value: *mut c_void) -> *mut c_void;
117/// Swift bridge function `cf_bundle_copy_bundle_url` for the corresponding Apple API.
118 pub fn cf_bundle_copy_bundle_url(value: *mut c_void) -> *mut c_void;
119/// Swift bridge function `cf_bundle_copy_resource_url` for the corresponding Apple API.
120 pub fn cf_bundle_copy_resource_url(
121 value: *mut c_void,
122 name: *const c_char,
123 extension: *const c_char,
124 subdir: *const c_char,
125 ) -> *mut c_void;
126
127/// Swift bridge function `cf_locale_get_type_id` for the corresponding Apple API.
128 pub fn cf_locale_get_type_id() -> usize;
129/// Swift bridge function `cf_locale_copy_current` for the corresponding Apple API.
130 pub fn cf_locale_copy_current() -> *mut c_void;
131/// Swift bridge function `cf_locale_create` for the corresponding Apple API.
132 pub fn cf_locale_create(identifier: *const c_char) -> *mut c_void;
133/// Swift bridge function `cf_locale_copy_identifier` for the corresponding Apple API.
134 pub fn cf_locale_copy_identifier(value: *mut c_void) -> *mut c_void;
135
136/// Swift bridge function `cf_calendar_get_type_id` for the corresponding Apple API.
137 pub fn cf_calendar_get_type_id() -> usize;
138/// Swift bridge function `cf_calendar_copy_current` for the corresponding Apple API.
139 pub fn cf_calendar_copy_current() -> *mut c_void;
140/// Swift bridge function `cf_calendar_create` for the corresponding Apple API.
141 pub fn cf_calendar_create(identifier: *const c_char) -> *mut c_void;
142/// Swift bridge function `cf_calendar_copy_identifier` for the corresponding Apple API.
143 pub fn cf_calendar_copy_identifier(value: *mut c_void) -> *mut c_void;
144/// Swift bridge function `cf_calendar_copy_time_zone` for the corresponding Apple API.
145 pub fn cf_calendar_copy_time_zone(value: *mut c_void) -> *mut c_void;
146/// Swift bridge function `cf_calendar_set_time_zone` for the corresponding Apple API.
147 pub fn cf_calendar_set_time_zone(value: *mut c_void, time_zone: *mut c_void);
148
149/// Swift bridge function `cf_time_zone_get_type_id` for the corresponding Apple API.
150 pub fn cf_time_zone_get_type_id() -> usize;
151/// Swift bridge function `cf_time_zone_copy_current` for the corresponding Apple API.
152 pub fn cf_time_zone_copy_current() -> *mut c_void;
153/// Swift bridge function `cf_time_zone_create` for the corresponding Apple API.
154 pub fn cf_time_zone_create(name: *const c_char) -> *mut c_void;
155/// Swift bridge function `cf_time_zone_copy_name` for the corresponding Apple API.
156 pub fn cf_time_zone_copy_name(value: *mut c_void) -> *mut c_void;
157/// Swift bridge function `cf_time_zone_get_seconds_from_gmt` for the corresponding Apple API.
158 pub fn cf_time_zone_get_seconds_from_gmt(value: *mut c_void, date: *mut c_void) -> i32;
159
160/// Swift bridge function `cf_character_set_get_type_id` for the corresponding Apple API.
161 pub fn cf_character_set_get_type_id() -> usize;
162/// Swift bridge function `cf_character_set_create_with_characters_in_string` for the corresponding Apple API.
163 pub fn cf_character_set_create_with_characters_in_string(value: *mut c_void) -> *mut c_void;
164/// Swift bridge function `cf_character_set_create_inverted_set` for the corresponding Apple API.
165 pub fn cf_character_set_create_inverted_set(value: *mut c_void) -> *mut c_void;
166/// Swift bridge function `cf_character_set_is_character_member` for the corresponding Apple API.
167 pub fn cf_character_set_is_character_member(value: *mut c_void, scalar: u32) -> bool;
168
169/// Swift bridge function `cf_number_formatter_get_type_id` for the corresponding Apple API.
170 pub fn cf_number_formatter_get_type_id() -> usize;
171/// Swift bridge function `cf_number_formatter_create` for the corresponding Apple API.
172 pub fn cf_number_formatter_create(locale: *mut c_void, style: i32) -> *mut c_void;
173/// Swift bridge function `cf_number_formatter_create_string_with_number` for the corresponding Apple API.
174 pub fn cf_number_formatter_create_string_with_number(
175 value: *mut c_void,
176 number: *mut c_void,
177 ) -> *mut c_void;
178/// Swift bridge function `cf_number_formatter_create_number_from_string` for the corresponding Apple API.
179 pub fn cf_number_formatter_create_number_from_string(
180 value: *mut c_void,
181 string: *mut c_void,
182 ) -> *mut c_void;
183
184/// Swift bridge function `cf_date_formatter_get_type_id` for the corresponding Apple API.
185 pub fn cf_date_formatter_get_type_id() -> usize;
186/// Swift bridge function `cf_date_formatter_create` for the corresponding Apple API.
187 pub fn cf_date_formatter_create(
188 locale: *mut c_void,
189 date_style: i32,
190 time_style: i32,
191 ) -> *mut c_void;
192/// Swift bridge function `cf_date_formatter_create_string_with_date` for the corresponding Apple API.
193 pub fn cf_date_formatter_create_string_with_date(
194 value: *mut c_void,
195 date: *mut c_void,
196 ) -> *mut c_void;
197
198/// Swift bridge function `cf_file_security_get_type_id` for the corresponding Apple API.
199 pub fn cf_file_security_get_type_id() -> usize;
200/// Swift bridge function `cf_file_security_create` for the corresponding Apple API.
201 pub fn cf_file_security_create() -> *mut c_void;
202/// Swift bridge function `cf_file_security_copy_owner_uuid` for the corresponding Apple API.
203 pub fn cf_file_security_copy_owner_uuid(value: *mut c_void) -> *mut c_void;
204/// Swift bridge function `cf_file_security_set_owner_uuid` for the corresponding Apple API.
205 pub fn cf_file_security_set_owner_uuid(value: *mut c_void, uuid: *mut c_void) -> bool;
206/// Swift bridge function `cf_file_security_get_mode` for the corresponding Apple API.
207 pub fn cf_file_security_get_mode(value: *mut c_void, out_mode: *mut u32) -> bool;
208/// Swift bridge function `cf_file_security_set_mode` for the corresponding Apple API.
209 pub fn cf_file_security_set_mode(value: *mut c_void, mode: u32) -> bool;
210
211/// Swift bridge function `cf_property_list_create_deep_copy` for the corresponding Apple API.
212 pub fn cf_property_list_create_deep_copy(value: *mut c_void, options: u64) -> *mut c_void;
213/// Swift bridge function `cf_property_list_create_with_data` for the corresponding Apple API.
214 pub fn cf_property_list_create_with_data(
215 data: *mut c_void,
216 options: u64,
217 out_format: *mut isize,
218 out_error: *mut *mut c_void,
219 ) -> *mut c_void;
220/// Swift bridge function `cf_property_list_create_with_stream` for the corresponding Apple API.
221 pub fn cf_property_list_create_with_stream(
222 stream: *mut c_void,
223 stream_length: isize,
224 options: u64,
225 out_format: *mut isize,
226 out_error: *mut *mut c_void,
227 ) -> *mut c_void;
228/// Swift bridge function `cf_property_list_write` for the corresponding Apple API.
229 pub fn cf_property_list_write(
230 value: *mut c_void,
231 stream: *mut c_void,
232 format: isize,
233 options: u64,
234 out_error: *mut *mut c_void,
235 ) -> isize;
236/// Swift bridge function `cf_property_list_create_data` for the corresponding Apple API.
237 pub fn cf_property_list_create_data(
238 value: *mut c_void,
239 format: isize,
240 options: u64,
241 out_error: *mut *mut c_void,
242 ) -> *mut c_void;
243/// Swift bridge function `cf_property_list_is_valid` for the corresponding Apple API.
244 pub fn cf_property_list_is_valid(value: *mut c_void, format: isize) -> bool;
245
246/// Swift bridge function `cf_array_get_type_id` for the corresponding Apple API.
247 pub fn cf_array_get_type_id() -> usize;
248/// Swift bridge function `cf_array_create` for the corresponding Apple API.
249 pub fn cf_array_create(values: *const *mut c_void, count: usize) -> *mut c_void;
250/// Swift bridge function `cf_array_get_count` for the corresponding Apple API.
251 pub fn cf_array_get_count(value: *mut c_void) -> usize;
252/// Swift bridge function `cf_array_get_value_at_index` for the corresponding Apple API.
253 pub fn cf_array_get_value_at_index(value: *mut c_void, index: usize) -> *mut c_void;
254
255/// Swift bridge function `cf_dictionary_get_type_id` for the corresponding Apple API.
256 pub fn cf_dictionary_get_type_id() -> usize;
257/// Swift bridge function `cf_dictionary_create` for the corresponding Apple API.
258 pub fn cf_dictionary_create(
259 keys: *const *mut c_void,
260 values: *const *mut c_void,
261 count: usize,
262 ) -> *mut c_void;
263/// Swift bridge function `cf_dictionary_get_count` for the corresponding Apple API.
264 pub fn cf_dictionary_get_count(value: *mut c_void) -> usize;
265/// Swift bridge function `cf_dictionary_contains_key` for the corresponding Apple API.
266 pub fn cf_dictionary_contains_key(value: *mut c_void, key: *mut c_void) -> bool;
267/// Swift bridge function `cf_dictionary_get_value` for the corresponding Apple API.
268 pub fn cf_dictionary_get_value(value: *mut c_void, key: *mut c_void) -> *mut c_void;
269/// Swift bridge function `cf_dictionary_copy_keys` for the corresponding Apple API.
270 pub fn cf_dictionary_copy_keys(value: *mut c_void) -> *mut c_void;
271/// Swift bridge function `cf_dictionary_copy_values` for the corresponding Apple API.
272 pub fn cf_dictionary_copy_values(value: *mut c_void) -> *mut c_void;
273
274/// Swift bridge function `cf_bag_get_type_id` for the corresponding Apple API.
275 pub fn cf_bag_get_type_id() -> usize;
276/// Swift bridge function `cf_bag_create` for the corresponding Apple API.
277 pub fn cf_bag_create(values: *const *mut c_void, count: usize) -> *mut c_void;
278/// Swift bridge function `cf_bag_get_count` for the corresponding Apple API.
279 pub fn cf_bag_get_count(value: *mut c_void) -> usize;
280/// Swift bridge function `cf_bag_contains_value` for the corresponding Apple API.
281 pub fn cf_bag_contains_value(value: *mut c_void, candidate: *mut c_void) -> bool;
282/// Swift bridge function `cf_bag_get_count_of_value` for the corresponding Apple API.
283 pub fn cf_bag_get_count_of_value(value: *mut c_void, candidate: *mut c_void) -> usize;
284
285/// Swift bridge function `cf_set_get_type_id` for the corresponding Apple API.
286 pub fn cf_set_get_type_id() -> usize;
287/// Swift bridge function `cf_set_create` for the corresponding Apple API.
288 pub fn cf_set_create(values: *const *mut c_void, count: usize, callbacks: i32) -> *mut c_void;
289/// Swift bridge function `cf_set_create_copy` for the corresponding Apple API.
290 pub fn cf_set_create_copy(value: *mut c_void) -> *mut c_void;
291/// Swift bridge function `cf_set_create_mutable` for the corresponding Apple API.
292 pub fn cf_set_create_mutable(capacity: usize, callbacks: i32) -> *mut c_void;
293/// Swift bridge function `cf_set_create_mutable_copy` for the corresponding Apple API.
294 pub fn cf_set_create_mutable_copy(value: *mut c_void, capacity: usize) -> *mut c_void;
295/// Swift bridge function `cf_set_get_count` for the corresponding Apple API.
296 pub fn cf_set_get_count(value: *mut c_void) -> usize;
297/// Swift bridge function `cf_set_get_count_of_value` for the corresponding Apple API.
298 pub fn cf_set_get_count_of_value(value: *mut c_void, candidate: *mut c_void) -> usize;
299/// Swift bridge function `cf_set_contains_value` for the corresponding Apple API.
300 pub fn cf_set_contains_value(value: *mut c_void, candidate: *mut c_void) -> bool;
301/// Swift bridge function `cf_set_get_value` for the corresponding Apple API.
302 pub fn cf_set_get_value(value: *mut c_void, candidate: *mut c_void) -> *mut c_void;
303/// Swift bridge function `cf_set_get_value_if_present` for the corresponding Apple API.
304 pub fn cf_set_get_value_if_present(
305 value: *mut c_void,
306 candidate: *mut c_void,
307 out_value: *mut *mut c_void,
308 ) -> bool;
309/// Swift bridge function `cf_set_get_values` for the corresponding Apple API.
310 pub fn cf_set_get_values(value: *mut c_void, out_values: *mut *mut c_void);
311/// Swift bridge function `cf_set_apply_function` for the corresponding Apple API.
312 pub fn cf_set_apply_function(
313 value: *mut c_void,
314 context: *mut c_void,
315 callback: extern "C" fn(*mut c_void, *mut c_void),
316 );
317/// Swift bridge function `cf_set_add_value` for the corresponding Apple API.
318 pub fn cf_set_add_value(value: *mut c_void, candidate: *mut c_void);
319/// Swift bridge function `cf_set_replace_value` for the corresponding Apple API.
320 pub fn cf_set_replace_value(value: *mut c_void, candidate: *mut c_void);
321/// Swift bridge function `cf_set_set_value` for the corresponding Apple API.
322 pub fn cf_set_set_value(value: *mut c_void, candidate: *mut c_void);
323/// Swift bridge function `cf_set_remove_value` for the corresponding Apple API.
324 pub fn cf_set_remove_value(value: *mut c_void, candidate: *mut c_void);
325/// Swift bridge function `cf_set_remove_all_values` for the corresponding Apple API.
326 pub fn cf_set_remove_all_values(value: *mut c_void);
327
328/// Swift bridge function `cf_attributed_string_get_type_id` for the corresponding Apple API.
329 pub fn cf_attributed_string_get_type_id() -> usize;
330/// Swift bridge function `cf_attributed_string_create` for the corresponding Apple API.
331 pub fn cf_attributed_string_create(string: *mut c_void) -> *mut c_void;
332/// Swift bridge function `cf_attributed_string_get_string` for the corresponding Apple API.
333 pub fn cf_attributed_string_get_string(value: *mut c_void) -> *mut c_void;
334/// Swift bridge function `cf_attributed_string_get_length` for the corresponding Apple API.
335 pub fn cf_attributed_string_get_length(value: *mut c_void) -> usize;
336
337/// Swift bridge function `cf_tree_create` for the corresponding Apple API.
338 pub fn cf_tree_create(value: *mut c_void) -> *mut c_void;
339/// Swift bridge function `cf_tree_append_child` for the corresponding Apple API.
340 pub fn cf_tree_append_child(parent: *mut c_void, child: *mut c_void);
341/// Swift bridge function `cf_tree_get_child_count` for the corresponding Apple API.
342 pub fn cf_tree_get_child_count(value: *mut c_void) -> usize;
343/// Swift bridge function `cf_tree_get_child_at_index` for the corresponding Apple API.
344 pub fn cf_tree_get_child_at_index(value: *mut c_void, index: usize) -> *mut c_void;
345/// Swift bridge function `cf_tree_copy_value` for the corresponding Apple API.
346 pub fn cf_tree_copy_value(value: *mut c_void) -> *mut c_void;
347
348/// Swift bridge function `cf_preferences_set_app_value` for the corresponding Apple API.
349 pub fn cf_preferences_set_app_value(key: *mut c_void, value: *mut c_void, app_id: *mut c_void);
350/// Swift bridge function `cf_preferences_copy_app_value` for the corresponding Apple API.
351 pub fn cf_preferences_copy_app_value(key: *mut c_void, app_id: *mut c_void) -> *mut c_void;
352/// Swift bridge function `cf_preferences_app_synchronize` for the corresponding Apple API.
353 pub fn cf_preferences_app_synchronize(app_id: *mut c_void) -> bool;
354
355/// Swift bridge function `cf_notification_center_get_type_id` for the corresponding Apple API.
356 pub fn cf_notification_center_get_type_id() -> usize;
357/// Swift bridge function `cf_notification_center_get_local` for the corresponding Apple API.
358 pub fn cf_notification_center_get_local() -> *mut c_void;
359/// Swift bridge function `cf_notification_center_get_distributed` for the corresponding Apple API.
360 pub fn cf_notification_center_get_distributed() -> *mut c_void;
361/// Swift bridge function `cf_notification_center_get_darwin` for the corresponding Apple API.
362 pub fn cf_notification_center_get_darwin() -> *mut c_void;
363/// Swift bridge function `cf_notification_center_post_notification` for the corresponding Apple API.
364 pub fn cf_notification_center_post_notification(
365 center: *mut c_void,
366 name: *mut c_void,
367 user_info: *mut c_void,
368 deliver_immediately: bool,
369 );
370
371/// Swift bridge function `cf_run_loop_get_type_id` for the corresponding Apple API.
372 pub fn cf_run_loop_get_type_id() -> usize;
373/// Swift bridge function `cf_run_loop_get_current` for the corresponding Apple API.
374 pub fn cf_run_loop_get_current() -> *mut c_void;
375/// Swift bridge function `cf_run_loop_get_main` for the corresponding Apple API.
376 pub fn cf_run_loop_get_main() -> *mut c_void;
377/// Swift bridge function `cf_run_loop_run_in_default_mode` for the corresponding Apple API.
378 pub fn cf_run_loop_run_in_default_mode(seconds: f64, return_after_source_handled: bool) -> i32;
379/// Swift bridge function `cf_run_loop_stop` for the corresponding Apple API.
380 pub fn cf_run_loop_stop(value: *mut c_void);
381/// Swift bridge function `cf_run_loop_wake_up` for the corresponding Apple API.
382 pub fn cf_run_loop_wake_up(value: *mut c_void);
383/// Swift bridge function `cf_run_loop_add_timer` for the corresponding Apple API.
384 pub fn cf_run_loop_add_timer(value: *mut c_void, timer: *mut c_void);
385
386/// Swift bridge function `cf_run_loop_timer_get_type_id` for the corresponding Apple API.
387 pub fn cf_run_loop_timer_get_type_id() -> usize;
388/// Swift bridge function `cf_run_loop_timer_create` for the corresponding Apple API.
389 pub fn cf_run_loop_timer_create(interval_seconds: f64, repeats: bool) -> *mut c_void;
390/// Swift bridge function `cf_run_loop_timer_is_valid` for the corresponding Apple API.
391 pub fn cf_run_loop_timer_is_valid(value: *mut c_void) -> bool;
392/// Swift bridge function `cf_run_loop_timer_invalidate` for the corresponding Apple API.
393 pub fn cf_run_loop_timer_invalidate(value: *mut c_void);
394/// Swift bridge function `cf_run_loop_timer_fire` for the corresponding Apple API.
395 pub fn cf_run_loop_timer_fire(value: *mut c_void);
396
397/// Swift bridge function `cf_message_port_get_type_id` for the corresponding Apple API.
398 pub fn cf_message_port_get_type_id() -> usize;
399/// Swift bridge function `cf_message_port_create_echo_local` for the corresponding Apple API.
400 pub fn cf_message_port_create_echo_local(name: *const c_char) -> *mut c_void;
401/// Swift bridge function `cf_message_port_create_remote` for the corresponding Apple API.
402 pub fn cf_message_port_create_remote(name: *const c_char) -> *mut c_void;
403/// Swift bridge function `cf_message_port_send_request` for the corresponding Apple API.
404 pub fn cf_message_port_send_request(
405 value: *mut c_void,
406 bytes: *const u8,
407 len: usize,
408 timeout_seconds: f64,
409 out_bytes: *mut *mut u8,
410 out_len: *mut usize,
411 ) -> i32;
412/// Swift bridge function `cf_message_port_free_bytes` for the corresponding Apple API.
413 pub fn cf_message_port_free_bytes(bytes: *mut u8, len: usize);
414/// Swift bridge function `cf_message_port_invalidate` for the corresponding Apple API.
415 pub fn cf_message_port_invalidate(value: *mut c_void);
416
417/// Swift bridge function `cf_read_stream_get_type_id` for the corresponding Apple API.
418 pub fn cf_read_stream_get_type_id() -> usize;
419/// Swift bridge function `cf_write_stream_get_type_id` for the corresponding Apple API.
420 pub fn cf_write_stream_get_type_id() -> usize;
421/// Swift bridge function `cf_stream_create_bound_pair` for the corresponding Apple API.
422 pub fn cf_stream_create_bound_pair(
423 transfer_buffer_size: usize,
424 out_read: *mut *mut c_void,
425 out_write: *mut *mut c_void,
426 );
427/// Swift bridge function `cf_read_stream_open` for the corresponding Apple API.
428 pub fn cf_read_stream_open(value: *mut c_void) -> bool;
429/// Swift bridge function `cf_read_stream_close` for the corresponding Apple API.
430 pub fn cf_read_stream_close(value: *mut c_void);
431/// Swift bridge function `cf_read_stream_read` for the corresponding Apple API.
432 pub fn cf_read_stream_read(value: *mut c_void, buffer: *mut u8, len: usize) -> isize;
433/// Swift bridge function `cf_write_stream_open` for the corresponding Apple API.
434 pub fn cf_write_stream_open(value: *mut c_void) -> bool;
435/// Swift bridge function `cf_write_stream_close` for the corresponding Apple API.
436 pub fn cf_write_stream_close(value: *mut c_void);
437/// Swift bridge function `cf_write_stream_write` for the corresponding Apple API.
438 pub fn cf_write_stream_write(value: *mut c_void, buffer: *const u8, len: usize) -> isize;
439
440/// Swift bridge function `cf_socket_get_type_id` for the corresponding Apple API.
441 pub fn cf_socket_get_type_id() -> usize;
442/// Swift bridge function `cf_socket_create_udp_ipv4` for the corresponding Apple API.
443 pub fn cf_socket_create_udp_ipv4() -> *mut c_void;
444/// Swift bridge function `cf_socket_get_native` for the corresponding Apple API.
445 pub fn cf_socket_get_native(value: *mut c_void) -> i32;
446/// Swift bridge function `cf_socket_invalidate` for the corresponding Apple API.
447 pub fn cf_socket_invalidate(value: *mut c_void);
448/// Swift bridge function `cf_socket_is_valid` for the corresponding Apple API.
449 pub fn cf_socket_is_valid(value: *mut c_void) -> bool;
450
451/// Swift bridge function `cf_file_descriptor_get_type_id` for the corresponding Apple API.
452 pub fn cf_file_descriptor_get_type_id() -> usize;
453/// Swift bridge function `cf_file_descriptor_create` for the corresponding Apple API.
454 pub fn cf_file_descriptor_create(native_fd: i32, close_on_invalidate: bool) -> *mut c_void;
455/// Swift bridge function `cf_file_descriptor_get_native` for the corresponding Apple API.
456 pub fn cf_file_descriptor_get_native(value: *mut c_void) -> i32;
457/// Swift bridge function `cf_file_descriptor_invalidate` for the corresponding Apple API.
458 pub fn cf_file_descriptor_invalidate(value: *mut c_void);
459
460/// Swift bridge function `cf_xml_create_string_by_escaping_entities` for the corresponding Apple API.
461 pub fn cf_xml_create_string_by_escaping_entities(value: *mut c_void) -> *mut c_void;
462/// Swift bridge function `cf_xml_create_string_by_unescaping_entities` for the corresponding Apple API.
463 pub fn cf_xml_create_string_by_unescaping_entities(value: *mut c_void) -> *mut c_void;
464}