Skip to main content

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