This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Gir.toml
628 lines (604 loc) · 15.2 KB
/
Gir.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
[options]
girs_dir = "gir-files"
library = "GLib"
version = "2.0"
min_cfg_version = "2.42"
target_path = "."
work_mode = "normal"
single_version_file = true
deprecate_by_min_version = true
trust_return_value_nullability = true
generate = [
"GLib.DateDay",
"GLib.DateMonth",
"GLib.DateWeekday",
"GLib.DateYear",
"GLib.FileSetContentsFlags",
"GLib.FormatSizeFlags",
"GLib.KeyFileError",
"GLib.KeyFileFlags",
"GLib.LogLevelFlags",
"GLib.OptionArg",
"GLib.OptionFlags",
"GLib.SeekType",
"GLib.SpawnFlags",
"GLib.Time",
"GLib.TimeType",
"GLib.TimeSpan",
"GLib.FileTest",
"GLib.IOCondition",
"GLib.UriError",
"GLib.UriFlags",
"GLib.UriHideFlags",
"GLib.UriParamsFlags",
"GLib.UriParamsIter",
]
ignore = [
]
manual = [
"GLib.Bytes",
"GLib.ByteArray",
"GLib.Error",
"GLib.Variant",
"GLib.VariantType",
"GLib.UserDirectory",
"GObject.Object",
]
[[object]]
name = "GLib.*"
status = "generate"
[[object.function]]
name = "propagate_error"
#empty first parameter
ignore = true
[[object.function]]
name = "set_error_literal"
#empty first parameter
ignore = true
[[object.function]]
pattern = "atomic_.+"
ignore = true
[[object.function]]
pattern = "bit_.*lock"
ignore = true
[[object.function]]
name = "get_filename_charsets"
#string
ignore = true
[[object.function]]
pattern = "str.+v"
#string
ignore = true
[[object.function]]
name = "strv_length"
#string
ignore = true
[[object.function]]
name = "unix_open_pipe"
ignore = true
[[object.function]]
pattern = "str.+"
ignore = true
[[object.function]]
pattern = "ucs4_.+"
ignore = true
[[object.function]]
pattern = "utf16_.+"
ignore = true
[[object.function]]
pattern = "utf8_.+"
ignore = true
[[object.function]]
pattern = "unichar_.+"
ignore = true
[[object.function]]
pattern = "ascii_.+"
ignore = true
[[object.function]]
name = "assertion_message_error"
#Quark
ignore = true
[[object.function]]
name = "assertion_message_expr"
ignore = true # function is useless
[[object.function]]
pattern = "test_.+"
ignore = true # functions are useless
[[object.function]]
pattern = ".+_error_quark"
#Quark
ignore = true
[[object.function]]
pattern = "quark_.+_string"
#Quark
ignore = true
[[object.function]]
name = "spawn_close_pid"
#Pid
ignore = true
[[object.function]]
name = "get_current_dir"
#manual
ignore = true
[[object.function]]
pattern = "[gs]et_prgname"
#manual pathbuf
ignore = true
[[object.function]]
name = "filename_from_utf8"
#not in 64bit lib for Windows
ignore = true
[[object.function]]
name = "get_user_name"
#manual pathbuf is_windows_utf8
ignore = true
[[object.function]]
pattern = "[gs]etenv"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "unsetenv"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "filename_to_uri"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "filename_from_uri"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "find_program_in_path"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "get_home_dir"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "get_real_name"
#manual pathbuf? is_windows_utf8
ignore = true
[[object.function]]
name = "get_tmp_dir"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "mkstemp"
#manual is_windows_utf8
ignore = true
[[object.function]]
name = "strdup"
#not needed
ignore = true
[[object.function]]
pattern = "unix_.+"
cfg_condition = "unix"
[[object.function]]
name = "spawn_command_line_async"
cfg_condition = "unix"
[[object.function]]
name = "convert_with_fallback"
#out param not in .gir
ignore = true
[[object.function]]
name = "unicode_canonical_decomposition"
#out param not in .gir
ignore = true
[[object.function]]
name = "unicode_canonical_ordering"
#UCS-4 encoded string
ignore = true
[[object.function]]
name = "convert"
#unusable
ignore = true
[[object.function]]
name = "filename_to_utf8"
#unusable
ignore = true
[[object.function]]
name = "locale_from_utf8"
#unusable
ignore = true
[[object.function]]
name = "locale_to_utf8"
#unusable
ignore = true
[[object.function]]
name = "child_watch_source_new"
# Need manual bindings to be useful
ignore = true
[[object.function]]
name = "idle_source_new"
# Need manual bindings to be useful
ignore = true
[[object.function]]
name = "timeout_source_new"
# Need manual bindings to be useful
ignore = true
[[object.function]]
name = "timeout_source_new_seconds"
# Need manual bindings to be useful
ignore = true
[[object.function]]
name = "unix_signal_source_new"
# Need manual bindings to be useful
ignore = true
[[object.function]]
pattern = "unix_fd.*"
# Need manual binding for RawFd
ignore = true
[[object.function]]
name = "close"
# Need manual binding for RawFd
ignore = true
[[object.function]]
name = "log_writer_is_journald"
# Need manual binding for RawFd
ignore = true
[[object.function]]
name = "log_writer_supports_color"
# Need manual binding for RawFd
ignore = true
[[object.function]]
name = "unix_set_fd_nonblocking"
# Need manual binding for RawFd
ignore = true
[[object.function]]
name = "environ_getenv"
# manual input &[OsString]
ignore = true
[[object.function]]
pattern = "environ_(un)?setenv"
# unusable
ignore = true
[[object.function]]
name = "get_environ"
[object.function.return]
string_type = "os_string"
[[object.function]]
name = "listenv"
[object.function.return]
string_type = "os_string"
[[object.function]]
name = "shell_parse_argv"
[[object.function.parameter]]
name = "command_line"
string_type = "os_string"
[[object.function.parameter]]
name = "argvp"
string_type = "os_string"
[[object.function]]
name = "shell_quote"
[[object.function.parameter]]
name = "unquoted_string"
string_type = "os_string"
[object.function.return]
string_type = "os_string"
[[object.function]]
name = "shell_unquote"
[[object.function.parameter]]
name = "quoted_string"
string_type = "os_string"
[object.function.return]
string_type = "os_string"
[[object.function]]
name = "spawn_command_line_async"
[[object.function.parameter]]
name = "command_line"
string_type = "os_string"
[[object.function]]
name = "intern_static_string"
ignore = true
[[object.function]]
name = "intern_string"
ignore = true
[[object.function]]
# Pid conversion issue
name = "child_watch_add"
ignore = true
[[object.function]]
# Pid conversion issue
name = "child_watch_add_full"
ignore = true
[[object.function]]
name = "idle_add"
ignore = true
[[object.function]]
name = "idle_add_full"
ignore = true
[[object.function]]
name = "timeout_add"
ignore = true
[[object.function]]
name = "timeout_add_full"
ignore = true
[[object.function]]
name = "timeout_add_seconds"
ignore = true
[[object.function]]
name = "timeout_add_seconds_full"
ignore = true
[[object.function]]
name = "unix_signal_add"
ignore = true
[[object.function]]
name = "unix_signal_add_full"
ignore = true
[[object.function]]
pattern = "rc_box_.+"
#need manual implementation
ignore = true
[[object.function]]
pattern = "ref_count_.+"
#need manual implementation
ignore = true
[[object.function]]
pattern = "ref_string_.+"
#need manual implementation
ignore = true
[[object.function]]
name = "spawn_async_with_fds"
# generates invalid FDs
ignore = true
[[object.function]]
name = "spawn_async_with_pipes"
# generates invalid FDs
ignore = true
[[object.function]]
name = "log_set_handler"
# leaks closure
ignore = true
[[object.function]]
name = "log_default_handler"
# last argument is unused
ignore = true
[[object.function]]
name = "log_set_handler_full"
# from_glib_borrow on non-pointer objects
ignore = true
[[object.function]]
name = "log_set_writer_func"
# from_glib_borrow on non-pointer objects
ignore = true
[[object.function]]
name = "log_structured"
# implemented with a macro because of var args and weird arguments pairing
ignore = true
[[object.function]]
name = "log"
# implemented with a macro because of var args
ignore = true
[[object.function]]
name = "log_set_default_handler"
# It returned the old callback, which is problematic
ignore = true
[[object.function]]
name = "log_remove_handler"
# Change handler_id parameter type to LogHandlerId
ignore = true
[[object.function]]
name = "log_set_always_fatal"
# update of arguments and return type
ignore = true
[[object.function]]
name = "log_variant"
# usage of LogLevelFlags
ignore = true
[[object.function]]
name = "log_set_fatal_mask"
# update of arguments and return type
ignore = true
[[object.constant]]
pattern = "DIR_SEPARATOR(_S)?"
#not cross-platform
ignore = true
[[object.constant]]
pattern = "SEARCHPATH_SEPARATOR(_S)?"
#not cross-platform
ignore = true
[[object.constant]]
name = "MODULE_SUFFIX"
#not cross-platform
ignore = true
[[object.constant]]
pattern = "GU?INT(16)?(32)?(64)?(PTR)?_FORMAT"
#for C printf
ignore = true
[[object.constant]]
pattern = "GU?INT(16)?(32)?(64)?(PTR)?_MODIFIER"
#for C printf
ignore = true
[[object.constant]]
pattern = "GS?SIZE_(FORMAT)?(MODIFIER)?"
#for C printf
ignore = true
[[object.constant]]
pattern = "GNUC_(PRETTY_)?FUNCTION"
#for C printf
ignore = true
[[object.constant]]
pattern = "PID_FORMAT"
#for C printf
ignore = true
[[object.constant]]
pattern = "POLLFD_FORMAT"
#for C printf
ignore = true
[[object.function]]
name = "variant_get_gtype"
# get_type() function that should be used in StaticType impl instead
ignore = true
[[object]]
name = "GLib.Checksum"
status = "generate"
concurrency = "send+sync"
[[object.function]]
name = "get_digest"
#wrong array definition
ignore = true
[[object.function]]
name = "get_string"
#consume
ignore = true
[[object]]
name = "GLib.ChecksumType"
status = "generate"
[[object.member]]
name = "sha512"
version = "2.36"
[[object.member]]
name = "sha384"
version = "2.52"
[[object]]
name = "GLib.KeyFile"
status = "generate"
[[object.function]]
name = "load_from_data_dirs"
ignore = true
[[object.function]]
name = "load_from_dirs"
ignore = true
[[object.function]]
name = "save_to_file"
# file parameter needs to be a PathBuf
ignore = true
[[object.function]]
name = "set_locale_string_list"
#[&str] to *mut i8
ignore = true
[[object.function]]
name = "set_string_list"
#[&str] to *mut i8
ignore = true
[[object.function]]
name = "to_data"
#manual
ignore = true
[[object.function]]
name = "set_double_list"
#wrong array type
ignore = true
[[object.function]]
name = "set_integer_list"
#wrong array type
ignore = true
[[object.function]]
name = "get_boolean"
#boolean return value needs to be returned
ignore = true
[[object.function]]
name = "has_key"
#boolean return value needs to be returned
ignore = true
[[object.function]]
name = "get_boolean_list"
#boolean array needs to be converted to Vec<bool>
ignore = true
[[object.function]]
name = "get_string"
# can return an error but still a value to be freed
ignore = true
[[object.function]]
name = "get_string_list"
# can return an error but still a value to be freed
ignore = true
[[object.function]]
name = "get_locale_string"
# can return an error but still a value to be freed
ignore = true
[[object.function]]
name = "get_locale_string_list"
# can return an error but still a value to be freed
ignore = true
# Fixed in GLib 2.66.2
[[object.function]]
name = "get_start_group"
[object.function.return]
nullable = true
[[object]]
name = "GLib.DateTime"
status = "generate"
concurrency = "send+sync"
[[object]]
name = "GLib.MainContext"
status = "generate"
concurrency = "send+sync"
[[object.function]]
name = "prepare"
# out parameter not marked as such
ignore = true
[[object.function]]
name = "find_source_by_id"
# source id is a newtype
ignore = true
[[object.function]]
name = "invoke"
ignore = true
[[object.function]]
name = "invoke_full"
ignore = true
# Fixed in GLib 2.66.2
[[object.function]]
name = "get_thread_default"
[object.function.return]
nullable = true
# Fixed in GLib 2.66.2
[[object.function]]
name = "current_source"
[object.function.return]
nullable = true
[[object]]
name = "GLib.MainLoop"
status = "generate"
concurrency = "send+sync"
[[object]]
name = "GLib.Source"
status = "generate"
concurrency = "send+sync"
[[object.function]]
pattern = "set_.+"
# Setters are generally not thread-safe
# while GSource itself is
ignore = true
[[object.function]]
pattern = "attach"
# return type
ignore = true
[[object.function]]
pattern = "get_id"
# unsafe as it would allow multiple times to remove
ignore = true
[[object.function]]
pattern = "remove"
# parameter type
ignore = true
# Fixed in GLib 2.66.2
[[object.function]]
name = "get_name"
[object.function.return]
nullable = true
[[object]]
name = "GLib.TimeZone"
status = "generate"
concurrency = "send+sync"
[[object.function]]
name = "adjust_time"
# in-out parameter
ignore = true
[[object]]
name = "GLib.Uri"
status = "generate"
concurrency = "send+sync"
# Fixed in GLib 2.66.2
[[object.function]]
name = "unescape_string"
[object.function.return]
nullable = true
# Fixed in GLib 2.66.2
[[object.function]]
name = "unescape_segment"
[object.function.return]
nullable = true