forked from madsmtm/objc2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslation-config.toml
75 lines (64 loc) · 2.45 KB
/
translation-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
framework = "Dispatch"
crate = "dispatch2"
required-crates = ["bitflags"]
link = false
modulemap = "usr/include/dispatch.modulemap"
is-library = true
custom-lib-rs = true
macos = "10.0"
maccatalyst = "13.0"
ios = "8.0"
tvos = "9.0"
watchos = "2.0"
visionos = "1.0"
gnustep = true
# Needs os_workgroup_t
fn.dispatch_workloop_set_os_workgroup.skipped = true
# Needs va_list, and deprecated anyhow.
fn.dispatch_debugv.skipped = true
# Actually enums
# FIXME: Update the source to make these enums too.
typedef.dispatch_queue_priority_t.skipped = true
typedef.dispatch_source_mach_send_flags_t.skipped = true
typedef.dispatch_source_mach_recv_flags_t.skipped = true
typedef.dispatch_source_memorypressure_flags_t.skipped = true
typedef.dispatch_source_proc_flags_t.skipped = true
typedef.dispatch_source_vnode_flags_t.skipped = true
typedef.dispatch_source_timer_flags_t.skipped = true
typedef.dispatch_io_type_t.skipped = true
typedef.dispatch_io_close_flags_t.skipped = true
typedef.dispatch_io_interval_flags_t.skipped = true
# Lonely enum constant that we want to tie to dispatch_time_t
enum.anonymous.constants.DISPATCH_WALLTIME_NOW.skipped = true
# We want to implement TryFrom on this
typedef.dispatch_time_t.skipped = true
# Marked as noreturn, but header-translator doesn't handle that yet.
fn.dispatch_main.skipped = true
# Nullability is not yet properly tracked on uses of this.
#
# Furthermore, it should be `extern "C"` to get better error messages
# on unwinding.
typedef.dispatch_function_t.skipped = true
# The libc definition is unsound (?)
typedef.dispatch_qos_class_t.skipped = true
# We need the inner struct to be available
typedef.dispatch_queue_t.skipped = true
typedef.dispatch_queue_global_t.skipped = true
typedef.dispatch_queue_serial_executor_t.skipped = true
typedef.dispatch_queue_serial_t.skipped = true
typedef.dispatch_queue_main_t.skipped = true
typedef.dispatch_queue_concurrent_t.skipped = true
typedef.dispatch_queue_attr_t.skipped = true
typedef.dispatch_source_t.skipped = true
struct.dispatch_source_type_s.skipped = true
typedef.dispatch_source_type_t.skipped = true
typedef.dispatch_group_t.skipped = true
typedef.dispatch_semaphore_t.skipped = true
typedef.dispatch_data_t.skipped = true
typedef.dispatch_io_t.skipped = true
typedef.dispatch_workloop_t.skipped = true
# Inline, defined manually for now
fn.dispatch_get_main_queue.skipped = true
# Fast paths for dispatch_once, done manually
fn._dispatch_once.skipped = true
fn._dispatch_once_f.skipped = true