File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
system-configuration-sys/src Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ bindgen \
23
23
--whitelist-var " kSCDynamicStore.*" \
24
24
--blacklist-type " (__)?CF.*" \
25
25
--blacklist-type " Boolean" \
26
+ --blacklist-type " dispatch_queue_[ts]" \
26
27
--raw-line " // Generated using:" \
27
28
--raw-line " // $BINDGEN_VERSION " \
28
29
--raw-line " // macOS SDK $SDK_VERSION ." \
@@ -33,6 +34,9 @@ bindgen \
33
34
--raw-line " use core_foundation_sys::dictionary::CFDictionaryRef;" \
34
35
--raw-line " use core_foundation_sys::propertylist::CFPropertyListRef;" \
35
36
--raw-line " use core_foundation_sys::runloop::CFRunLoopSourceRef;" \
37
+ --raw-line " " \
38
+ --raw-line " /// This is a temporary solution." \
39
+ --raw-line " pub type dispatch_queue_t = *mut ::std::os::raw::c_void;" \
36
40
-o $BINDING_PATH \
37
41
$HEADER_PATH -- \
38
42
-I$SDK_PATH /usr/include \
Original file line number Diff line number Diff line change @@ -11,12 +11,9 @@ use core_foundation_sys::propertylist::CFPropertyListRef;
11
11
use core_foundation_sys:: runloop:: CFRunLoopSourceRef ;
12
12
use core_foundation_sys:: string:: CFStringRef ;
13
13
14
- pub type dispatch_queue_t = * mut dispatch_queue_s ;
15
- #[ repr( C ) ]
16
- #[ derive( Debug , Copy , Clone ) ]
17
- pub struct dispatch_queue_s {
18
- pub _address : u8 ,
19
- }
14
+ /// This is a temporary solution.
15
+ pub type dispatch_queue_t = * mut :: std:: os:: raw:: c_void ;
16
+
20
17
#[ repr( C ) ]
21
18
#[ derive( Debug , Copy , Clone ) ]
22
19
pub struct __SCDynamicStore {
You can’t perform that action at this time.
0 commit comments