-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGLib-2.0.d.ts
4960 lines (2523 loc) · 95.7 KB
/
GLib-2.0.d.ts
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
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
declare namespace imports.gi.GLib {
class Array {
public data: string;
public len: number;
}
class AsyncQueue {
public length () : number;
public length_unlocked () : number;
public lock () : void;
public pop () : any;
public pop_unlocked () : any;
public push (data: any) : void;
public push_sorted (data: any, _func: CompareDataFunc, user_data: any) : void;
public push_sorted_unlocked (data: any, _func: CompareDataFunc, user_data: any) : void;
public push_unlocked (data: any) : void;
public ref () : AsyncQueue;
public ref_unlocked () : void;
public sort (_func: CompareDataFunc, user_data: any) : void;
public sort_unlocked (_func: CompareDataFunc, user_data: any) : void;
public timed_pop (end_time: TimeVal) : any;
public timed_pop_unlocked (end_time: TimeVal) : any;
public timeout_pop (timeout: number) : any;
public timeout_pop_unlocked (timeout: number) : any;
public try_pop () : any;
public try_pop_unlocked () : any;
public unlock () : void;
public unref () : void;
public unref_and_unlock () : void;
}
class BookmarkFile {
public add_application (uri: string, name: string, exec: string) : void;
public add_group (uri: string, group: string) : void;
public free () : void;
public get_added (uri: string) : number;
public get_app_info (uri: string, name: string, exec: string, count: number, stamp: number) : boolean;
public get_applications (uri: string, length: number) : string[];
public get_description (uri: string) : string;
public get_groups (uri: string, length: number) : string[];
public get_icon (uri: string, href: string, mime_type: string) : boolean;
public get_is_private (uri: string) : boolean;
public get_mime_type (uri: string) : string;
public get_modified (uri: string) : number;
public get_size () : number;
public get_title (uri: string) : string;
public get_uris (length: number) : string[];
public get_visited (uri: string) : number;
public has_application (uri: string, name: string) : boolean;
public has_group (uri: string, group: string) : boolean;
public has_item (uri: string) : boolean;
public load_from_data (data: string, length: number) : boolean;
public load_from_data_dirs (file: string, full_path: string) : boolean;
public load_from_file (filename: string) : boolean;
public move_item (old_uri: string, new_uri: string) : boolean;
public remove_application (uri: string, name: string) : boolean;
public remove_group (uri: string, group: string) : boolean;
public remove_item (uri: string) : boolean;
public set_added (uri: string, added: number) : void;
public set_app_info (uri: string, name: string, exec: string, count: number, stamp: number) : boolean;
public set_description (uri: string, description: string) : void;
public set_groups (uri: string, groups: string, length: number) : void;
public set_icon (uri: string, href: string, mime_type: string) : void;
public set_is_private (uri: string, is_private: boolean) : void;
public set_mime_type (uri: string, mime_type: string) : void;
public set_modified (uri: string, modified: number) : void;
public set_title (uri: string, title: string) : void;
public set_visited (uri: string, visited: number) : void;
public to_data (length: number) : string;
public to_file (filename: string) : boolean;
}
class ByteArray {
public data: number;
public len: number;
}
class Bytes {
public compare (bytes2: Bytes) : number;
public equal (bytes2: Bytes) : boolean;
public get_data (size: number) : number[];
public get_size () : number;
public hash () : number;
public new_from_bytes (offset: number, length: number) : Bytes;
public ref () : Bytes;
public unref () : void;
public unref_to_array () : number[];
public unref_to_data (size: number) : any;
}
class Checksum {
public copy () : Checksum;
public free () : void;
public get_digest (buffer: number, digest_len: number) : void;
public get_string () : string;
public reset () : void;
public update (data: number[], length: number) : void;
}
class Cond {
public p: any;
public i: number[];
public broadcast () : void;
public clear () : void;
public init () : void;
public signal () : void;
public wait (mutex: Mutex) : void;
public wait_until (mutex: Mutex, end_time: number) : boolean;
}
class Data {
}
class Date {
public julian_days: number;
public julian: number;
public dmy: number;
public day: number;
public month: number;
public year: number;
public add_days (n_days: number) : void;
public add_months (n_months: number) : void;
public add_years (n_years: number) : void;
public clamp (min_date: Date, max_date: Date) : void;
public clear (n_dates: number) : void;
public compare (rhs: Date) : number;
public days_between (date2: Date) : number;
public free () : void;
public get_day () : DateDay;
public get_day_of_year () : number;
public get_iso8601_week_of_year () : number;
public get_julian () : number;
public get_monday_week_of_year () : number;
public get_month () : DateMonth;
public get_sunday_week_of_year () : number;
public get_weekday () : DateWeekday;
public get_year () : DateYear;
public is_first_of_month () : boolean;
public is_last_of_month () : boolean;
public order (date2: Date) : void;
public set_day (day: DateDay) : void;
public set_dmy (day: DateDay, month: DateMonth, _y: DateYear) : void;
public set_julian (julian_date: number) : void;
public set_month (month: DateMonth) : void;
public set_parse (_str: string) : void;
public set_time (time_: Time) : void;
public set_time_t (timet: number) : void;
public set_time_val (timeval: TimeVal) : void;
public set_year (year: DateYear) : void;
public subtract_days (n_days: number) : void;
public subtract_months (n_months: number) : void;
public subtract_years (n_years: number) : void;
public to_struct_tm (tm: any) : void;
public valid () : boolean;
}
class DateTime {
public add (timespan: TimeSpan) : DateTime;
public add_days (days: number) : DateTime;
public add_full (years: number, months: number, days: number, hours: number, minutes: number, seconds: number) : DateTime;
public add_hours (hours: number) : DateTime;
public add_minutes (minutes: number) : DateTime;
public add_months (months: number) : DateTime;
public add_seconds (seconds: number) : DateTime;
public add_weeks (weeks: number) : DateTime;
public add_years (years: number) : DateTime;
public difference (begin: DateTime) : TimeSpan;
public format (format: string) : string;
public get_day_of_month () : number;
public get_day_of_week () : number;
public get_day_of_year () : number;
public get_hour () : number;
public get_microsecond () : number;
public get_minute () : number;
public get_month () : number;
public get_second () : number;
public get_seconds () : number;
public get_timezone_abbreviation () : string;
public get_utc_offset () : TimeSpan;
public get_week_numbering_year () : number;
public get_week_of_year () : number;
public get_year () : number;
public get_ymd (year: number, month: number, day: number) : void;
public is_daylight_savings () : boolean;
public ref () : DateTime;
public to_local () : DateTime;
public to_timeval (tv: TimeVal) : boolean;
public to_timezone (tz: TimeZone) : DateTime;
public to_unix () : number;
public to_utc () : DateTime;
public unref () : void;
}
class DebugKey {
public key: string;
public value: number;
}
class Dir {
public close () : void;
public read_name () : string;
public rewind () : void;
}
class Error {
public domain: Quark;
public code: number;
public message: string;
public copy () : Error;
public free () : void;
public matches (domain: Quark, code: number) : boolean;
}
class HashTable {
}
class HashTableIter {
public dummy1: any;
public dummy2: any;
public dummy3: any;
public dummy4: number;
public dummy5: boolean;
public dummy6: any;
public get_hash_table () : GLib.HashTable;
public init (hash_table: GLib.HashTable) : void;
public next (key: any, value: any) : boolean;
public remove () : void;
public replace (value: any) : void;
public steal () : void;
}
class Hmac {
public copy () : Hmac;
public get_digest (buffer: number, digest_len: number) : void;
public get_string () : string;
public ref () : Hmac;
public unref () : void;
public update (data: number[], length: number) : void;
}
class Hook {
public data: any;
public next: Hook;
public prev: Hook;
public ref_count: number;
public hook_id: number;
public flags: number;
public func: any;
public destroy: DestroyNotify;
public compare_ids (sibling: Hook) : number;
}
class HookList {
public seq_id: number;
public hook_size: number;
public is_setup: number;
public hooks: Hook;
public dummy3: any;
public finalize_hook: HookFinalizeFunc;
public dummy: any[];
public clear () : void;
public init (hook_size: number) : void;
public invoke (may_recurse: boolean) : void;
public invoke_check (may_recurse: boolean) : void;
public marshal (may_recurse: boolean, marshaller: HookMarshaller, marshal_data: any) : void;
public marshal_check (may_recurse: boolean, marshaller: HookCheckMarshaller, marshal_data: any) : void;
}
class IConv {
public (inbuf: string, inbytes_left: number, outbuf: string, outbytes_left: number) : number;
public close () : number;
}
class IOChannel {
public ref_count: number;
public funcs: IOFuncs;
public encoding: string;
public read_cd: IConv;
public write_cd: IConv;
public line_term: string;
public line_term_len: number;
public buf_size: number;
public read_buf: String;
public encoded_read_buf: String;
public write_buf: String;
public partial_write_buf: string[];
public use_buffer: number;
public do_encode: number;
public close_on_unref: number;
public is_readable: number;
public is_writeable: number;
public is_seekable: number;
public reserved1: any;
public reserved2: any;
public close () : void;
public flush () : IOStatus;
public get_buffer_condition () : IOCondition;
public get_buffer_size () : number;
public get_buffered () : boolean;
public get_close_on_unref () : boolean;
public get_encoding () : string;
public get_flags () : IOFlags;
public get_line_term (length: number) : string;
public init () : void;
public read (buf: string, count: number, bytes_read: number) : IOError;
public read_chars (buf: number[], count: number, bytes_read: number) : IOStatus;
public read_line (str_return: string, length: number, terminator_pos: number) : IOStatus;
public read_line_string (buffer: String, terminator_pos: number) : IOStatus;
public read_to_end (str_return: number[], length: number) : IOStatus;
public read_unichar (thechar: string) : IOStatus;
public ref () : IOChannel;
public seek (offset: number, _type: SeekType) : IOError;
public seek_position (offset: number, _type: SeekType) : IOStatus;
public set_buffer_size (size: number) : void;
public set_buffered (buffered: boolean) : void;
public set_close_on_unref (do_close: boolean) : void;
public set_encoding (encoding: string) : IOStatus;
public set_flags (flags: IOFlags) : IOStatus;
public set_line_term (line_term: string, length: number) : void;
public shutdown (flush: boolean) : IOStatus;
public unix_get_fd () : number;
public unref () : void;
public write (buf: string, count: number, bytes_written: number) : IOError;
public write_chars (buf: number[], count: number, bytes_written: number) : IOStatus;
public write_unichar (thechar: string) : IOStatus;
}
class IOFuncs {
io_read : {(channel: IOChannel, buf: string, count: number, bytes_read: number) : IOStatus;};
io_write : {(channel: IOChannel, buf: string, count: number, bytes_written: number) : IOStatus;};
io_seek : {(channel: IOChannel, offset: number, _type: SeekType) : IOStatus;};
io_close : {(channel: IOChannel) : IOStatus;};
io_create_watch : {(channel: IOChannel, condition: IOCondition) : Source;};
io_free : {(channel: IOChannel) : void;};
io_set_flags : {(channel: IOChannel, flags: IOFlags) : IOStatus;};
io_get_flags : {(channel: IOChannel) : IOFlags;};
}
class KeyFile {
public free () : void;
public get_boolean (group_name: string, key: string) : boolean;
public get_boolean_list (group_name: string, key: string, length: number) : boolean[];
public get_comment (group_name: string, key: string) : string;
public get_double (group_name: string, key: string) : number;
public get_double_list (group_name: string, key: string, length: number) : number[];
public get_groups (length: number) : string[];
public get_int64 (group_name: string, key: string) : number;
public get_integer (group_name: string, key: string) : number;
public get_integer_list (group_name: string, key: string, length: number) : number[];
public get_keys (group_name: string, length: number) : string[];
public get_locale_string (group_name: string, key: string, locale: string) : string;
public get_locale_string_list (group_name: string, key: string, locale: string, length: number) : string[];
public get_start_group () : string;
public get_string (group_name: string, key: string) : string;
public get_string_list (group_name: string, key: string, length: number) : string[];
public get_uint64 (group_name: string, key: string) : number;
public get_value (group_name: string, key: string) : string;
public has_group (group_name: string) : boolean;
public has_key (group_name: string, key: string) : boolean;
public load_from_data (data: string, length: number, flags: KeyFileFlags) : boolean;
public load_from_data_dirs (file: string, full_path: string, flags: KeyFileFlags) : boolean;
public load_from_dirs (file: string, search_dirs: string[], full_path: string, flags: KeyFileFlags) : boolean;
public load_from_file (file: string, flags: KeyFileFlags) : boolean;
public ref () : KeyFile;
public remove_comment (group_name: string, key: string) : boolean;
public remove_group (group_name: string) : boolean;
public remove_key (group_name: string, key: string) : boolean;
public save_to_file (filename: string) : boolean;
public set_boolean (group_name: string, key: string, value: boolean) : void;
public set_boolean_list (group_name: string, key: string, list: boolean[], length: number) : void;
public set_comment (group_name: string, key: string, comment: string) : boolean;
public set_double (group_name: string, key: string, value: number) : void;
public set_double_list (group_name: string, key: string, list: number[], length: number) : void;
public set_int64 (group_name: string, key: string, value: number) : void;
public set_integer (group_name: string, key: string, value: number) : void;
public set_integer_list (group_name: string, key: string, list: number[], length: number) : void;
public set_list_separator (separator: string) : void;
public set_locale_string (group_name: string, key: string, locale: string, string: string) : void;
public set_locale_string_list (group_name: string, key: string, locale: string, list: string[], length: number) : void;
public set_string (group_name: string, key: string, string: string) : void;
public set_string_list (group_name: string, key: string, list: string[], length: number) : void;
public set_uint64 (group_name: string, key: string, value: number) : void;
public set_value (group_name: string, key: string, value: string) : void;
public to_data (length: number) : string;
public unref () : void;
}
class List {
public data: any;
public next: GLib.List;
public prev: GLib.List;
}
class MainContext {
public acquire () : boolean;
public add_poll (fd: PollFD, priority: number) : void;
public check (max_priority: number, fds: PollFD[], n_fds: number) : number;
public dispatch () : void;
public find_source_by_funcs_user_data (funcs: SourceFuncs, user_data: any) : Source;
public find_source_by_id (source_id: number) : Source;
public find_source_by_user_data (user_data: any) : Source;
public get_poll_func () : PollFunc;
public invoke (_function: SourceFunc, data: any) : void;
public invoke_full (priority: number, _function: SourceFunc, data: any, notify: DestroyNotify) : void;
public is_owner () : boolean;
public iteration (may_block: boolean) : boolean;
public pending () : boolean;
public pop_thread_default () : void;
public prepare (priority: number) : boolean;
public push_thread_default () : void;
public query (max_priority: number, timeout_: number, fds: PollFD[], n_fds: number) : number;
public ref () : MainContext;
public release () : void;
public remove_poll (fd: PollFD) : void;
public set_poll_func (_func: PollFunc) : void;
public unref () : void;
public wait (cond: Cond, mutex: Mutex) : boolean;
public wakeup () : void;
}
class MainLoop {
public get_context () : MainContext;
public is_running () : boolean;
public quit () : void;
public ref () : MainLoop;
public run () : void;
public unref () : void;
}
class MappedFile {
public free () : void;
public get_bytes () : Bytes;
public get_contents () : string;
public get_length () : number;
public ref () : MappedFile;
public unref () : void;
}
class MarkupParseContext {
public end_parse () : boolean;
public free () : void;
public get_element () : string;
public get_element_stack () : GLib.SList;
public get_position (line_number: number, char_number: number) : void;
public get_user_data () : any;
public parse (text: string, text_len: number) : boolean;
public pop () : any;
public push (parser: MarkupParser, user_data: any) : void;
public ref () : MarkupParseContext;
public unref () : void;
}
class MarkupParser {
start_element : {(context: MarkupParseContext, element_name: string, attribute_names: string, attribute_values: string, user_data: any) : void;};
end_element : {(context: MarkupParseContext, element_name: string, user_data: any) : void;};
text : {(context: MarkupParseContext, text: string, text_len: number, user_data: any) : void;};
passthrough : {(context: MarkupParseContext, passthrough_text: string, text_len: number, user_data: any) : void;};
error : {(context: MarkupParseContext, error: Error, user_data: any) : void;};
}
class MatchInfo {
public expand_references (string_to_expand: string) : string;
public fetch (match_num: number) : string;
public fetch_all () : string[];
public fetch_named (name: string) : string;
public fetch_named_pos (name: string, start_pos: number, end_pos: number) : boolean;
public fetch_pos (match_num: number, start_pos: number, end_pos: number) : boolean;
public free () : void;
public get_match_count () : number;
public get_regex () : Regex;
public get_string () : string;
public is_partial_match () : boolean;
public matches () : boolean;
public next () : boolean;
public ref () : MatchInfo;
public unref () : void;
}
class MemVTable {
malloc : {(n_bytes: number) : any;};
realloc : {(mem: any, n_bytes: number) : any;};
free : {(mem: any) : void;};
calloc : {(n_blocks: number, n_block_bytes: number) : any;};
try_malloc : {(n_bytes: number) : any;};
try_realloc : {(mem: any, n_bytes: number) : any;};
}
class Node {
public data: any;
public next: Node;
public prev: Node;
public parent: Node;
public children: Node;
public child_index (data: any) : number;
public child_position (child: Node) : number;
public children_foreach (flags: TraverseFlags, _func: NodeForeachFunc, data: any) : void;
public copy () : Node;
public copy_deep (copy_func: CopyFunc, data: any) : Node;
public depth () : number;
public destroy () : void;
public find (order: TraverseType, flags: TraverseFlags, data: any) : Node;
public find_child (flags: TraverseFlags, data: any) : Node;
public first_sibling () : Node;
public get_root () : Node;
public insert (position: number, node: Node) : Node;
public insert_after (sibling: Node, node: Node) : Node;
public insert_before (sibling: Node, node: Node) : Node;
public is_ancestor (descendant: Node) : boolean;
public last_child () : Node;
public last_sibling () : Node;
public max_height () : number;
public n_children () : number;
public n_nodes (flags: TraverseFlags) : number;
public nth_child (_n: number) : Node;
public prepend (node: Node) : Node;
public reverse_children () : void;
public traverse (order: TraverseType, flags: TraverseFlags, max_depth: number, _func: NodeTraverseFunc, data: any) : void;
public unlink () : void;
}
class Once {
public status: OnceStatus;
public retval: any;
public impl (_func: ThreadFunc, _arg: any) : any;
}
class OptionContext {
public add_group (group: OptionGroup) : void;
public add_main_entries (entries: OptionEntry, translation_domain: string) : void;
public free () : void;
public get_description () : string;
public get_help (main_help: boolean, group: OptionGroup) : string;
public get_help_enabled () : boolean;
public get_ignore_unknown_options () : boolean;
public get_main_group () : OptionGroup;
public get_strict_posix () : boolean;
public get_summary () : string;
public parse (argc: number, argv: string[]) : boolean;
public parse_strv (_arguments: string[]) : boolean;
public set_description (description: string) : void;
public set_help_enabled (help_enabled: boolean) : void;
public set_ignore_unknown_options (ignore_unknown: boolean) : void;
public set_main_group (group: OptionGroup) : void;
public set_strict_posix (strict_posix: boolean) : void;
public set_summary (summary: string) : void;
public set_translate_func (_func: TranslateFunc, data: any, destroy_notify: DestroyNotify) : void;
public set_translation_domain (domain: string) : void;
}
class OptionEntry {
public long_name: string;
public short_name: string;
public flags: number;
public arg: OptionArg;
public arg_data: any;
public description: string;
public arg_description: string;
}
class OptionGroup {
public add_entries (entries: OptionEntry) : void;
public free () : void;
public ref () : OptionGroup;
public set_error_hook (error_func: OptionErrorFunc) : void;
public set_parse_hooks (pre_parse_func: OptionParseFunc, post_parse_func: OptionParseFunc) : void;
public set_translate_func (_func: TranslateFunc, data: any, destroy_notify: DestroyNotify) : void;
public set_translation_domain (domain: string) : void;
public unref () : void;
}
class PatternSpec {
public equal (pspec2: PatternSpec) : boolean;
public free () : void;
}
class PollFD {
public fd: number;
public events: number;
public revents: number;
}
class Private {
public p: any;
public notify: DestroyNotify;
public future: any[];
public get () : any;
public replace (value: any) : void;
public set (value: any) : void;
}
class PtrArray {
public pdata: any;
public len: number;
}
class Queue {
public head: GLib.List;
public tail: GLib.List;
public length: number;
public clear () : void;
public copy () : Queue;
public delete_link (link_: GLib.List) : void;
public find (data: any) : GLib.List;
public find_custom (data: any, _func: CompareFunc) : GLib.List;
public foreach (_func: Func, user_data: any) : void;
public free () : void;
public free_full (free_func: DestroyNotify) : void;
public get_length () : number;
public index (data: any) : number;
public init () : void;
public insert_after (sibling: GLib.List, data: any) : void;
public insert_before (sibling: GLib.List, data: any) : void;
public insert_sorted (data: any, _func: CompareDataFunc, user_data: any) : void;
public is_empty () : boolean;
public link_index (link_: GLib.List) : number;
public peek_head () : any;
public peek_head_link () : GLib.List;
public peek_nth (_n: number) : any;
public peek_nth_link (_n: number) : GLib.List;
public peek_tail () : any;
public peek_tail_link () : GLib.List;
public pop_head () : any;
public pop_head_link () : GLib.List;
public pop_nth (_n: number) : any;
public pop_nth_link (_n: number) : GLib.List;
public pop_tail () : any;
public pop_tail_link () : GLib.List;
public push_head (data: any) : void;
public push_head_link (link_: GLib.List) : void;
public push_nth (data: any, _n: number) : void;
public push_nth_link (_n: number, link_: GLib.List) : void;
public push_tail (data: any) : void;
public push_tail_link (link_: GLib.List) : void;
public remove (data: any) : boolean;
public remove_all (data: any) : number;
public reverse () : void;
public sort (compare_func: CompareDataFunc, user_data: any) : void;
public unlink (link_: GLib.List) : void;
}
class RWLock {
public p: any;
public i: number[];
public clear () : void;
public init () : void;
public reader_lock () : void;
public reader_trylock () : boolean;
public reader_unlock () : void;
public writer_lock () : void;
public writer_trylock () : boolean;
public writer_unlock () : void;
}
class Rand {
public copy () : Rand;
public double () : number;
public double_range (begin: number, _end: number) : number;
public free () : void;
public int () : number;
public int_range (begin: number, _end: number) : number;
public set_seed (seed: number) : void;
public set_seed_array (seed: number, seed_length: number) : void;
}
class RecMutex {
public p: any;
public i: number[];
public clear () : void;
public init () : void;
public lock () : void;
public trylock () : boolean;
public unlock () : void;
}
class Regex {
public get_capture_count () : number;
public get_compile_flags () : RegexCompileFlags;
public get_has_cr_or_lf () : boolean;
public get_match_flags () : RegexMatchFlags;
public get_max_backref () : number;
public get_max_lookbehind () : number;
public get_pattern () : string;
public get_string_number (name: string) : number;
public match (string: string, match_options: RegexMatchFlags, match_info: MatchInfo) : boolean;
public match_all (string: string, match_options: RegexMatchFlags, match_info: MatchInfo) : boolean;
public match_all_full (string: string[], string_len: number, start_position: number, match_options: RegexMatchFlags, match_info: MatchInfo) : boolean;
public match_full (string: string[], string_len: number, start_position: number, match_options: RegexMatchFlags, match_info: MatchInfo) : boolean;
public ref () : Regex;
public replace (string: string[], string_len: number, start_position: number, replacement: string, match_options: RegexMatchFlags) : string;
public replace_eval (string: string[], string_len: number, start_position: number, match_options: RegexMatchFlags, _eval: RegexEvalCallback, user_data: any) : string;
public replace_literal (string: string[], string_len: number, start_position: number, replacement: string, match_options: RegexMatchFlags) : string;
public split (string: string, match_options: RegexMatchFlags) : string[];
public split_full (string: string[], string_len: number, start_position: number, match_options: RegexMatchFlags, max_tokens: number) : string[];
public unref () : void;
}
class SList {
public data: any;
public next: GLib.SList;
}
class Scanner {
public user_data: any;
public max_parse_errors: number;
public parse_errors: number;
public input_name: string;
public qdata: Data;
public config: ScannerConfig;
public token: TokenType;
public value: TokenValue;
public line: number;
public position: number;
public next_token: TokenType;
public next_value: TokenValue;
public next_line: number;
public next_position: number;
public symbol_table: GLib.HashTable;
public input_fd: number;
public text: string;
public text_end: string;
public buffer: string;
public scope_id: number;
public msg_handler: ScannerMsgFunc;
public cur_line () : number;
public cur_position () : number;
public cur_token () : TokenType;
public cur_value () : TokenValue;
public destroy () : void;
public eof () : boolean;
public error (format: string) : void;
public get_next_token () : TokenType;
public input_file (input_fd: number) : void;
public input_text (text: string, text_len: number) : void;
public lookup_symbol (symbol: string) : any;
public peek_next_token () : TokenType;
public scope_add_symbol (scope_id: number, symbol: string, value: any) : void;
public scope_foreach_symbol (scope_id: number, _func: HFunc, user_data: any) : void;
public scope_lookup_symbol (scope_id: number, symbol: string) : any;
public scope_remove_symbol (scope_id: number, symbol: string) : void;
public set_scope (scope_id: number) : number;
public sync_file_offset () : void;
public unexp_token (expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number) : void;
public warn (format: string) : void;
}
class ScannerConfig {
public cset_skip_characters: string;
public cset_identifier_first: string;
public cset_identifier_nth: string;
public cpair_comment_single: string;
public case_sensitive: number;
public skip_comment_multi: number;
public skip_comment_single: number;
public scan_comment_multi: number;
public scan_identifier: number;
public scan_identifier_1char: number;
public scan_identifier_NULL: number;
public scan_symbols: number;
public scan_binary: number;
public scan_octal: number;
public scan_float: number;
public scan_hex: number;
public scan_hex_dollar: number;
public scan_string_sq: number;
public scan_string_dq: number;
public numbers_2_int: number;
public int_2_float: number;
public identifier_2_string: number;
public char_2_token: number;
public symbol_2_token: number;
public scope_0_fallback: number;
public store_int64: number;
public padding_dummy: number;
}
class Sequence {
public append (data: any) : SequenceIter;
public foreach (_func: Func, user_data: any) : void;
public free () : void;
public get_begin_iter () : SequenceIter;
public get_end_iter () : SequenceIter;
public get_iter_at_pos (pos: number) : SequenceIter;
public get_length () : number;
public insert_sorted (data: any, cmp_func: CompareDataFunc, cmp_data: any) : SequenceIter;
public insert_sorted_iter (data: any, iter_cmp: SequenceIterCompareFunc, cmp_data: any) : SequenceIter;
public lookup (data: any, cmp_func: CompareDataFunc, cmp_data: any) : SequenceIter;
public lookup_iter (data: any, iter_cmp: SequenceIterCompareFunc, cmp_data: any) : SequenceIter;
public prepend (data: any) : SequenceIter;
public search (data: any, cmp_func: CompareDataFunc, cmp_data: any) : SequenceIter;
public search_iter (data: any, iter_cmp: SequenceIterCompareFunc, cmp_data: any) : SequenceIter;
public sort (cmp_func: CompareDataFunc, cmp_data: any) : void;
public sort_iter (cmp_func: SequenceIterCompareFunc, cmp_data: any) : void;
}
class SequenceIter {
public compare (_b: SequenceIter) : number;
public get_position () : number;
public get_sequence () : Sequence;
public is_begin () : boolean;
public is_end () : boolean;
public move (delta: number) : SequenceIter;
public next () : SequenceIter;
public prev () : SequenceIter;
}