1/* automatically generated by rust-bindgen 0.71.1 */
2
3pub const DISPATCH_TIME_NOW: u32 = 0;
4pub const DISPATCH_QUEUE_PRIORITY_HIGH: u32 = 2;
5pub const DISPATCH_QUEUE_PRIORITY_DEFAULT: u32 = 0;
6pub const DISPATCH_QUEUE_PRIORITY_LOW: i32 = -2;
7pub type dispatch_function_t =
8 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
9pub type dispatch_time_t = u64;
10unsafe extern "C" {
11 pub fn dispatch_time(when: dispatch_time_t, delta: i64) -> dispatch_time_t;
12}
13#[repr(C)]
14#[derive(Copy, Clone)]
15pub union dispatch_object_t {
16 pub _os_obj: *mut _os_object_s,
17 pub _do: *mut dispatch_object_s,
18 pub _dq: *mut dispatch_queue_s,
19 pub _dqa: *mut dispatch_queue_attr_s,
20 pub _dg: *mut dispatch_group_s,
21 pub _ds: *mut dispatch_source_s,
22 pub _dch: *mut dispatch_channel_s,
23 pub _dm: *mut dispatch_mach_s,
24 pub _dmsg: *mut dispatch_mach_msg_s,
25 pub _dsema: *mut dispatch_semaphore_s,
26 pub _ddata: *mut dispatch_data_s,
27 pub _dchannel: *mut dispatch_io_s,
28}
29unsafe extern "C" {
30 pub fn dispatch_set_context(object: dispatch_object_t, context: *mut ::std::os::raw::c_void);
31}
32unsafe extern "C" {
33 pub fn dispatch_suspend(object: dispatch_object_t);
34}
35unsafe extern "C" {
36 pub fn dispatch_resume(object: dispatch_object_t);
37}
38pub type dispatch_queue_t = *mut dispatch_queue_s;
39pub type dispatch_queue_global_t = dispatch_queue_t;
40unsafe extern "C" {
41 pub fn dispatch_async_f(
42 queue: dispatch_queue_t,
43 context: *mut ::std::os::raw::c_void,
44 work: dispatch_function_t,
45 );
46}
47#[repr(C)]
48#[derive(Debug, Copy, Clone)]
49pub struct dispatch_queue_s {
50 pub _address: u8,
51}
52unsafe extern "C" {
53 pub static mut _dispatch_main_q: dispatch_queue_s;
54}
55unsafe extern "C" {
56 pub fn dispatch_get_global_queue(identifier: isize, flags: usize) -> dispatch_queue_global_t;
57}
58#[repr(C)]
59#[derive(Debug, Copy, Clone)]
60pub struct dispatch_queue_attr_s {
61 pub _address: u8,
62}
63unsafe extern "C" {
64 pub fn dispatch_after_f(
65 when: dispatch_time_t,
66 queue: dispatch_queue_t,
67 context: *mut ::std::os::raw::c_void,
68 work: dispatch_function_t,
69 );
70}
71pub type dispatch_source_t = *mut dispatch_source_s;
72#[repr(C)]
73#[derive(Debug, Copy, Clone)]
74pub struct dispatch_source_type_s {
75 _unused: [u8; 0],
76}
77pub type dispatch_source_type_t = *const dispatch_source_type_s;
78unsafe extern "C" {
79 pub static _dispatch_source_type_data_add: dispatch_source_type_s;
80}
81unsafe extern "C" {
82 pub fn dispatch_source_create(
83 type_: dispatch_source_type_t,
84 handle: usize,
85 mask: usize,
86 queue: dispatch_queue_t,
87 ) -> dispatch_source_t;
88}
89unsafe extern "C" {
90 pub fn dispatch_source_set_event_handler_f(
91 source: dispatch_source_t,
92 handler: dispatch_function_t,
93 );
94}
95unsafe extern "C" {
96 pub fn dispatch_source_cancel(source: dispatch_source_t);
97}
98unsafe extern "C" {
99 pub fn dispatch_source_merge_data(source: dispatch_source_t, value: usize);
100}
101#[repr(C)]
102#[derive(Debug, Copy, Clone)]
103pub struct dispatch_data_s {
104 pub _address: u8,
105}
106#[repr(C)]
107#[derive(Debug, Copy, Clone)]
108pub struct _os_object_s {
109 pub _address: u8,
110}
111#[repr(C)]
112#[derive(Debug, Copy, Clone)]
113pub struct dispatch_object_s {
114 pub _address: u8,
115}
116#[repr(C)]
117#[derive(Debug, Copy, Clone)]
118pub struct dispatch_group_s {
119 pub _address: u8,
120}
121#[repr(C)]
122#[derive(Debug, Copy, Clone)]
123pub struct dispatch_source_s {
124 pub _address: u8,
125}
126#[repr(C)]
127#[derive(Debug, Copy, Clone)]
128pub struct dispatch_channel_s {
129 pub _address: u8,
130}
131#[repr(C)]
132#[derive(Debug, Copy, Clone)]
133pub struct dispatch_mach_s {
134 pub _address: u8,
135}
136#[repr(C)]
137#[derive(Debug, Copy, Clone)]
138pub struct dispatch_mach_msg_s {
139 pub _address: u8,
140}
141#[repr(C)]
142#[derive(Debug, Copy, Clone)]
143pub struct dispatch_semaphore_s {
144 pub _address: u8,
145}
146#[repr(C)]
147#[derive(Debug, Copy, Clone)]
148pub struct dispatch_io_s {
149 pub _address: u8,
150}