/
gio-2.0.vapi
4921 lines (4920 loc) · 259 KB
/
gio-2.0.vapi
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
/* gio-2.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "G", gir_namespace = "Gio", gir_version = "2.0", lower_case_cprefix = "g_")]
namespace GLib {
namespace Bus {
[CCode (cheader_filename = "gio/gio.h")]
public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (cheader_filename = "gio/gio.h")]
public static async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (cheader_filename = "gio/gio.h")]
public static T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (cheader_filename = "gio/gio.h")]
public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_with_closures")]
[Version (since = "2.26")]
public static uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback? bus_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
[CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_on_connection_with_closures")]
[Version (since = "2.26")]
public static uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static void unown_name (uint owner_id);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static void unwatch_name (uint watcher_id);
[CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_with_closures")]
[Version (since = "2.26")]
public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
[CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_on_connection_with_closures")]
[Version (since = "2.26")]
public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
}
namespace ContentType {
[CCode (cheader_filename = "gio/gio.h")]
public static bool can_be_executable (string type);
[CCode (cheader_filename = "gio/gio.h")]
public static bool equals (string type1, string type2);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.18")]
public static string? from_mime_type (string mime_type);
[CCode (cheader_filename = "gio/gio.h")]
public static string get_description (string type);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.34")]
public static string? get_generic_icon_name (string type);
[CCode (cheader_filename = "gio/gio.h")]
public static GLib.Icon get_icon (string type);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
[Version (since = "2.60")]
public static unowned string[] get_mime_dirs ();
[CCode (cheader_filename = "gio/gio.h")]
public static string? get_mime_type (string type);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.34")]
public static GLib.Icon get_symbolic_icon (string type);
[CCode (cheader_filename = "gio/gio.h")]
public static string guess (string? filename, [CCode (array_length_cname = "data_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[]? data, out bool result_uncertain);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
[Version (since = "2.18")]
public static string[] guess_for_tree (GLib.File root);
[CCode (cheader_filename = "gio/gio.h")]
public static bool is_a (string type, string supertype);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.52")]
public static bool is_mime_type (string type, string mime_type);
[CCode (cheader_filename = "gio/gio.h")]
public static bool is_unknown (string type);
[CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
public static GLib.List<string> list_registered ();
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.60")]
public static void set_mime_dirs ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
}
namespace DBus {
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.36")]
public static string address_escape_value (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static async GLib.IOStream address_get_stream (string address, GLib.Cancellable? cancellable = null, out string out_guid) throws GLib.Error;
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static GLib.IOStream address_get_stream_sync (string address, out string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static unowned string annotation_info_lookup ([CCode (array_length = false, array_null_terminated = true)] GLib.DBusAnnotationInfo[]? annotations, string name);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static string generate_guid ();
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.30")]
public static GLib.Variant gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.30")]
public static GLib.Value gvariant_to_gvalue (GLib.Variant value);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_address (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_guid (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_interface_name (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_member_name (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_name (string string);
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_supported_address (string string) throws GLib.Error;
[CCode (cheader_filename = "gio/gio.h")]
[Version (since = "2.26")]
public static bool is_unique_name (string string);
}
namespace FileAttribute {
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE")]
public const string ACCESS_CAN_DELETE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE")]
public const string ACCESS_CAN_EXECUTE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_READ")]
public const string ACCESS_CAN_READ;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME")]
public const string ACCESS_CAN_RENAME;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH")]
public const string ACCESS_CAN_TRASH;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE")]
public const string ACCESS_CAN_WRITE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE")]
public const string DOS_IS_ARCHIVE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT")]
[Version (since = "2.60")]
public const string DOS_IS_MOUNTPOINT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_SYSTEM")]
public const string DOS_IS_SYSTEM;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG")]
[Version (since = "2.60")]
public const string DOS_REPARSE_POINT_TAG;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ETAG_VALUE")]
public const string ETAG_VALUE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_FREE")]
public const string FILESYSTEM_FREE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_READONLY")]
public const string FILESYSTEM_READONLY;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE")]
public const string FILESYSTEM_REMOTE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_SIZE")]
public const string FILESYSTEM_SIZE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_TYPE")]
public const string FILESYSTEM_TYPE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USED")]
[Version (since = "2.32")]
public const string FILESYSTEM_USED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW")]
public const string FILESYSTEM_USE_PREVIEW;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_GVFS_BACKEND")]
public const string GVFS_BACKEND;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILE")]
public const string ID_FILE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILESYSTEM")]
public const string ID_FILESYSTEM;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT")]
public const string MOUNTABLE_CAN_EJECT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT")]
public const string MOUNTABLE_CAN_MOUNT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL")]
[Version (since = "2.22")]
public const string MOUNTABLE_CAN_POLL;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START")]
[Version (since = "2.22")]
public const string MOUNTABLE_CAN_START;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED")]
[Version (since = "2.22")]
public const string MOUNTABLE_CAN_START_DEGRADED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP")]
[Version (since = "2.22")]
public const string MOUNTABLE_CAN_STOP;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT")]
public const string MOUNTABLE_CAN_UNMOUNT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI")]
public const string MOUNTABLE_HAL_UDI;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
[Version (since = "2.22")]
public const string MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE")]
[Version (since = "2.22")]
public const string MOUNTABLE_START_STOP_TYPE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE")]
public const string MOUNTABLE_UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE")]
[Version (since = "2.22")]
public const string MOUNTABLE_UNIX_DEVICE_FILE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_GROUP")]
public const string OWNER_GROUP;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER")]
public const string OWNER_USER;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER_REAL")]
public const string OWNER_USER_REAL;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_PREVIEW_ICON")]
[Version (since = "2.20")]
public const string PREVIEW_ICON;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_RECENT_MODIFIED")]
[Version (since = "2.52")]
public const string RECENT_MODIFIED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_SELINUX_CONTEXT")]
public const string SELINUX_CONTEXT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE")]
[Version (since = "2.20")]
public const string STANDARD_ALLOCATED_SIZE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE")]
public const string STANDARD_CONTENT_TYPE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_COPY_NAME")]
public const string STANDARD_COPY_NAME;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION")]
public const string STANDARD_DESCRIPTION;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME")]
public const string STANDARD_DISPLAY_NAME;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME")]
public const string STANDARD_EDIT_NAME;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE")]
public const string STANDARD_FAST_CONTENT_TYPE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ICON")]
public const string STANDARD_ICON;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP")]
public const string STANDARD_IS_BACKUP;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN")]
public const string STANDARD_IS_HIDDEN;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK")]
public const string STANDARD_IS_SYMLINK;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL")]
public const string STANDARD_IS_VIRTUAL;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE")]
[Version (since = "2.46")]
public const string STANDARD_IS_VOLATILE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_NAME")]
public const string STANDARD_NAME;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SIZE")]
public const string STANDARD_SIZE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER")]
public const string STANDARD_SORT_ORDER;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON")]
[Version (since = "2.34")]
public const string STANDARD_SYMBOLIC_ICON;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET")]
public const string STANDARD_SYMLINK_TARGET;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TARGET_URI")]
public const string STANDARD_TARGET_URI;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TYPE")]
public const string STANDARD_TYPE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAILING_FAILED")]
public const string THUMBNAILING_FAILED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID")]
[Version (since = "2.40")]
public const string THUMBNAIL_IS_VALID;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_PATH")]
public const string THUMBNAIL_PATH;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS")]
public const string TIME_ACCESS;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_USEC")]
public const string TIME_ACCESS_USEC;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED")]
public const string TIME_CHANGED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_USEC")]
public const string TIME_CHANGED_USEC;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED")]
public const string TIME_CREATED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_USEC")]
public const string TIME_CREATED_USEC;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED")]
public const string TIME_MODIFIED;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC")]
public const string TIME_MODIFIED_USEC;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_DELETION_DATE")]
[Version (since = "2.24")]
public const string TRASH_DELETION_DATE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT")]
public const string TRASH_ITEM_COUNT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ORIG_PATH")]
[Version (since = "2.24")]
public const string TRASH_ORIG_PATH;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCKS")]
public const string UNIX_BLOCKS;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE")]
public const string UNIX_BLOCK_SIZE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_DEVICE")]
public const string UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_GID")]
public const string UNIX_GID;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_INODE")]
public const string UNIX_INODE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT")]
public const string UNIX_IS_MOUNTPOINT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_MODE")]
public const string UNIX_MODE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_NLINK")]
public const string UNIX_NLINK;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_RDEV")]
public const string UNIX_RDEV;
[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_UID")]
public const string UNIX_UID;
}
namespace VolumeIdentifier {
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_CLASS")]
public const string CLASS;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_HAL_UDI")]
[Version (deprecated = true, deprecated_since = "2.58")]
public const string HAL_UDI;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_LABEL")]
public const string LABEL;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT")]
public const string NFS_MOUNT;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE")]
public const string UNIX_DEVICE;
[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UUID")]
public const string UUID;
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_monitor_get_type ()")]
[Version (since = "2.40")]
public class AppInfoMonitor : GLib.Object {
[CCode (has_construct_function = false)]
protected AppInfoMonitor ();
public static GLib.AppInfoMonitor @get ();
public signal void changed ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_app_launch_context_get_type ()")]
public class AppLaunchContext : GLib.Object {
[CCode (has_construct_function = false)]
public AppLaunchContext ();
public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "2.32")]
public string[] get_environment ();
public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
[Version (since = "2.32")]
public void setenv (string variable, string value);
[Version (since = "2.32")]
public void unsetenv (string variable);
[HasEmitter]
[Version (since = "2.36")]
public virtual signal void launch_failed (string startup_notify_id);
[Version (since = "2.36")]
public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_application_get_type ()")]
[Version (since = "2.28")]
public class Application : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
[CCode (has_construct_function = false)]
public Application (string? application_id, GLib.ApplicationFlags flags);
[Version (since = "2.42")]
public void add_main_option (string long_name, char short_name, GLib.OptionFlags flags, GLib.OptionArg arg, string description, string? arg_description);
[Version (since = "2.40")]
public void add_main_option_entries ([CCode (array_length = false, array_null_terminated = true)] GLib.OptionEntry[] entries);
[Version (since = "2.40")]
public void add_option_group (owned GLib.OptionGroup group);
[NoWrapper]
public virtual void add_platform_data (GLib.VariantBuilder builder);
[NoWrapper]
public virtual void after_emit (GLib.Variant platform_data);
[NoWrapper]
public virtual void before_emit (GLib.Variant platform_data);
[Version (since = "2.44")]
public void bind_busy_property (GLib.Object object, string property);
[NoWrapper]
public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws GLib.Error;
[NoWrapper]
public virtual void dbus_unregister (GLib.DBusConnection connection, string object_path);
public unowned string get_application_id ();
[Version (since = "2.34")]
public unowned GLib.DBusConnection get_dbus_connection ();
[Version (since = "2.34")]
public unowned string get_dbus_object_path ();
[Version (since = "2.32")]
public static unowned GLib.Application get_default ();
public GLib.ApplicationFlags get_flags ();
public uint get_inactivity_timeout ();
[Version (since = "2.44")]
public bool get_is_busy ();
public bool get_is_registered ();
public bool get_is_remote ();
[Version (since = "2.42")]
public unowned string? get_resource_base_path ();
public void hold ();
public static bool id_is_valid (string application_id);
[NoWrapper]
public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
[Version (since = "2.38")]
public void mark_busy ();
[Version (since = "2.32")]
public void quit ();
[NoWrapper]
public virtual void quit_mainloop ();
public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
public void release ();
public int run ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] string[]? argv = null);
[NoWrapper]
public virtual void run_mainloop ();
[Version (since = "2.40")]
public void send_notification (string? id, GLib.Notification notification);
[Version (deprecated = true, deprecated_since = "2.32", since = "2.28")]
public void set_action_group (GLib.ActionGroup? action_group);
public void set_application_id (string? application_id);
[Version (since = "2.32")]
public static void set_default (GLib.Application? application);
public void set_flags (GLib.ApplicationFlags flags);
public void set_inactivity_timeout (uint inactivity_timeout);
[Version (since = "2.56")]
public void set_option_context_description (string? description);
[Version (since = "2.56")]
public void set_option_context_parameter_string (string? parameter_string);
[Version (since = "2.56")]
public void set_option_context_summary (string? summary);
[Version (since = "2.42")]
public void set_resource_base_path (string? resource_path);
[Version (since = "2.44")]
public void unbind_busy_property (GLib.Object object, string property);
[Version (since = "2.38")]
public void unmark_busy ();
[Version (since = "2.40")]
public void withdraw_notification (string id);
public GLib.ActionGroup action_group { set; }
public string application_id { get; set construct; }
public GLib.ApplicationFlags flags { get; set; }
public uint inactivity_timeout { get; set; }
[Version (since = "2.44")]
public bool is_busy { get; }
public bool is_registered { get; }
public bool is_remote { get; }
public string resource_base_path { get; set; }
[HasEmitter]
public virtual signal void activate ();
public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
[Version (since = "2.40")]
public virtual signal int handle_local_options (GLib.VariantDict options);
[Version (since = "2.60")]
public virtual signal bool name_lost ();
[HasEmitter]
public virtual signal void open ([CCode (array_length_cname = "n_files", array_length_pos = 1.5)] GLib.File[] files, string hint);
public virtual signal void shutdown ();
public virtual signal void startup ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_application_command_line_get_type ()")]
public class ApplicationCommandLine : GLib.Object {
[CCode (has_construct_function = false)]
protected ApplicationCommandLine ();
[Version (since = "2.36")]
public GLib.File create_file_for_arg (string arg);
[CCode (array_length_pos = 0.1)]
[Version (since = "2.28")]
public string[] get_arguments ();
[Version (since = "2.28")]
public unowned string? get_cwd ();
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "2.28")]
public unowned string[] get_environ ();
[Version (since = "2.28")]
public int get_exit_status ();
[Version (since = "2.28")]
public bool get_is_remote ();
[Version (since = "2.40")]
public unowned GLib.VariantDict get_options_dict ();
[Version (since = "2.28")]
public GLib.Variant? get_platform_data ();
[Version (since = "2.34")]
public virtual GLib.InputStream get_stdin ();
[Version (since = "2.28")]
public unowned string getenv (string name);
[PrintfFormat]
[Version (since = "2.28")]
public void print (string format, ...);
[NoWrapper]
public virtual void print_literal (string message);
[PrintfFormat]
[Version (since = "2.28")]
public void printerr (string format, ...);
[NoWrapper]
public virtual void printerr_literal (string message);
[Version (since = "2.28")]
public void set_exit_status (int exit_status);
[NoAccessorMethod]
public GLib.Variant arguments { construct; }
public bool is_remote { get; }
[NoAccessorMethod]
public GLib.Variant options { construct; }
[NoAccessorMethod]
public GLib.Variant platform_data { construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_input_stream_get_type ()")]
public class BufferedInputStream : GLib.FilterInputStream, GLib.Seekable {
[CCode (has_construct_function = false, type = "GInputStream*")]
public BufferedInputStream (GLib.InputStream base_stream);
public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
public size_t get_available ();
public size_t get_buffer_size ();
public size_t peek ([CCode (array_length_cname = "count", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] buffer, size_t offset = 0);
[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
public unowned uint8[] peek_buffer ();
public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_buffer_size (size_t size);
[CCode (has_construct_function = false, type = "GInputStream*")]
public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_output_stream_get_type ()")]
public class BufferedOutputStream : GLib.FilterOutputStream, GLib.Seekable {
[CCode (has_construct_function = false, type = "GOutputStream*")]
public BufferedOutputStream (GLib.OutputStream base_stream);
public bool get_auto_grow ();
public size_t get_buffer_size ();
public void set_auto_grow (bool auto_grow);
public void set_buffer_size (size_t size);
[CCode (has_construct_function = false, type = "GOutputStream*")]
public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
public bool auto_grow { get; set; }
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_bytes_icon_get_type ()")]
[Version (since = "2.38")]
public class BytesIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
[CCode (has_construct_function = false, type = "GIcon*")]
public BytesIcon (GLib.Bytes bytes);
public unowned GLib.Bytes get_bytes ();
public GLib.Bytes bytes { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_cancellable_get_type ()")]
public class Cancellable : GLib.Object {
[CCode (has_construct_function = false)]
public Cancellable ();
public void cancel ();
[Version (since = "2.22")]
public ulong connect ([CCode (type = "GCallback")] owned GLib.Func<GLib.Cancellable> callback);
[Version (since = "2.22")]
public void disconnect (ulong handler_id);
public static unowned GLib.Cancellable? get_current ();
public int get_fd ();
public bool is_cancelled ();
[Version (since = "2.22")]
public bool make_pollfd (GLib.PollFD pollfd);
public void pop_current ();
public void push_current ();
[Version (since = "2.22")]
public void release_fd ();
public void reset ();
public bool set_error_if_cancelled () throws GLib.IOError;
[Version (deprecated_since = "vala-0.44", replacement = "CancellableSource", since = "2.28")]
public GLib.CancellableSource source_new ();
public virtual signal void cancelled ();
}
[CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
[Compact]
public class CancellableSource : GLib.Source {
[CCode (has_construct_function = false)]
[Version (since = "2.28")]
public CancellableSource (GLib.Cancellable? cancellable);
[CCode (cname = "g_source_set_callback")]
public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.CancellableSourceFunc func);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_charset_converter_get_type ()")]
public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
[CCode (has_construct_function = false)]
[Version (since = "2.24")]
public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
[Version (since = "2.24")]
public uint get_num_fallbacks ();
[Version (since = "2.24")]
public bool get_use_fallback ();
[Version (since = "2.24")]
public void set_use_fallback (bool use_fallback);
[NoAccessorMethod]
public string from_charset { owned get; construct; }
[NoAccessorMethod]
public string to_charset { owned get; construct; }
public bool use_fallback { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_input_stream_get_type ()")]
public class ConverterInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
[CCode (has_construct_function = false, type = "GInputStream*")]
public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
[Version (since = "2.24")]
public unowned GLib.Converter get_converter ();
public GLib.Converter converter { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_output_stream_get_type ()")]
public class ConverterOutputStream : GLib.FilterOutputStream, GLib.PollableOutputStream {
[CCode (has_construct_function = false, type = "GOutputStream*")]
public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
[Version (since = "2.24")]
public unowned GLib.Converter get_converter ();
public GLib.Converter converter { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_credentials_get_type ()")]
[Version (since = "2.26")]
public class Credentials : GLib.Object {
[CCode (has_construct_function = false)]
public Credentials ();
public void* get_native (GLib.CredentialsType native_type);
[Version (since = "2.36")]
public int get_unix_pid () throws GLib.Error;
public uint get_unix_user () throws GLib.Error;
public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
public void set_native (GLib.CredentialsType native_type, void* native);
public bool set_unix_user (uint uid) throws GLib.Error;
public string to_string ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_action_group_get_type ()")]
public class DBusActionGroup : GLib.Object, GLib.ActionGroup, GLib.RemoteActionGroup {
[CCode (has_construct_function = false)]
protected DBusActionGroup ();
[Version (since = "2.32")]
public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string? bus_name, string object_path);
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_annotation_info_ref", type_id = "g_dbus_annotation_info_get_type ()", unref_function = "g_dbus_annotation_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusAnnotationInfo {
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusAnnotationInfo[] annotations;
public string key;
public int ref_count;
public string value;
public unowned GLib.DBusAnnotationInfo @ref ();
public void unref ();
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_arg_info_ref", type_id = "g_dbus_arg_info_get_type ()", unref_function = "g_dbus_arg_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusArgInfo {
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusAnnotationInfo[] annotations;
public string name;
public int ref_count;
public string signature;
public unowned GLib.DBusArgInfo @ref ();
public void unref ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_auth_observer_get_type ()")]
[Version (since = "2.26")]
public class DBusAuthObserver : GLib.Object {
[CCode (has_construct_function = false)]
public DBusAuthObserver ();
[HasEmitter]
[Version (since = "2.34")]
public signal bool allow_mechanism (string mechanism);
public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials? credentials);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_connection_get_type ()")]
[Version (since = "2.26")]
public class DBusConnection : GLib.Object, GLib.AsyncInitable, GLib.Initable {
[CCode (cname = "g_dbus_connection_new", has_construct_function = false)]
public async DBusConnection (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
public async GLib.Variant call (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.Variant call_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "2.30")]
public async GLib.Variant call_with_unix_fd_list (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error;
[Version (since = "2.30")]
public GLib.Variant call_with_unix_fd_list_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error;
[Version (since = "2.32")]
public uint export_action_group (string object_path, GLib.ActionGroup action_group) throws GLib.Error;
[Version (since = "2.32")]
public uint export_menu_model (string object_path, GLib.MenuModel menu) throws GLib.Error;
public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "g_dbus_connection_new_for_address", has_construct_function = false)]
public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.DBusCapabilityFlags get_capabilities ();
public bool get_exit_on_close ();
[Version (since = "2.60")]
public GLib.DBusConnectionFlags get_flags ();
public unowned string get_guid ();
[Version (since = "2.34")]
public uint32 get_last_serial ();
public unowned GLib.Credentials? get_peer_credentials ();
public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public unowned GLib.IOStream get_stream ();
public unowned string? get_unique_name ();
public bool is_closed ();
[CCode (cname = "g_dbus_connection_new", finish_name = "g_dbus_connection_new_finish")]
[Version (deprecated_since = "vala-0.36", replacement = "DBusConnection")]
public static async GLib.DBusConnection @new (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "g_dbus_connection_new_for_address", finish_name = "g_dbus_connection_new_for_address_finish")]
[Version (deprecated_since = "vala-0.36", replacement = "DBusConnection.for_address")]
public static async GLib.DBusConnection new_for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
public uint register_object<T> (string object_path, T object) throws GLib.IOError;
[Version (since = "2.46")]
public uint register_object_with_closures (string object_path, GLib.DBusInterfaceInfo interface_info, GLib.Closure? method_call_closure, GLib.Closure? get_property_closure, GLib.Closure? set_property_closure) throws GLib.Error;
public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, void* user_data, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
public void remove_filter (uint filter_id);
public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32* out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public void set_exit_on_close (bool exit_on_close);
public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
public void signal_unsubscribe (uint subscription_id);
public void start_message_processing ();
[CCode (has_construct_function = false)]
public DBusConnection.sync (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "2.32")]
public void unexport_action_group (uint export_id);
[Version (since = "2.32")]
public void unexport_menu_model (uint export_id);
public bool unregister_object (uint registration_id);
public bool unregister_subtree (uint registration_id);
[NoAccessorMethod]
public string address { construct; }
[NoAccessorMethod]
public GLib.DBusAuthObserver authentication_observer { construct; }
public GLib.DBusCapabilityFlags capabilities { get; }
[NoAccessorMethod]
public bool closed { get; }
public bool exit_on_close { get; set; }
public GLib.DBusConnectionFlags flags { get; construct; }
public string guid { get; construct; }
public GLib.IOStream stream { get; construct; }
public string unique_name { get; }
[CCode (cname = "closed")]
public signal void on_closed (bool remote_peer_vanished, GLib.Error? error);
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_interface_info_ref", type_id = "g_dbus_interface_info_get_type ()", unref_function = "g_dbus_interface_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusInterfaceInfo {
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusAnnotationInfo[] annotations;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusMethodInfo[] methods;
public string name;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusPropertyInfo[] properties;
public int ref_count;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusSignalInfo[] signals;
[Version (since = "2.30")]
public void cache_build ();
[Version (since = "2.30")]
public void cache_release ();
public void generate_xml (uint indent, GLib.StringBuilder string_builder);
public unowned GLib.DBusMethodInfo lookup_method (string name);
public unowned GLib.DBusPropertyInfo lookup_property (string name);
public unowned GLib.DBusSignalInfo lookup_signal (string name);
public unowned GLib.DBusInterfaceInfo @ref ();
public void unref ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_skeleton_get_type ()")]
[Version (since = "2.30")]
public abstract class DBusInterfaceSkeleton : GLib.Object, GLib.DBusInterface {
[CCode (has_construct_function = false)]
protected DBusInterfaceSkeleton ();
public bool export (GLib.DBusConnection connection, string object_path) throws GLib.Error;
public virtual void flush ();
public unowned GLib.DBusConnection get_connection ();
[Version (since = "2.32")]
public GLib.List<GLib.DBusConnection> get_connections ();
public GLib.DBusInterfaceSkeletonFlags get_flags ();
public virtual unowned GLib.DBusInterfaceInfo get_info ();
public unowned string get_object_path ();
public virtual GLib.Variant get_properties ();
public virtual GLib.DBusInterfaceVTable? get_vtable ();
[Version (since = "2.32")]
public bool has_connection (GLib.DBusConnection connection);
public void set_flags (GLib.DBusInterfaceSkeletonFlags flags);
public void unexport ();
[Version (since = "2.32")]
public void unexport_from_connection (GLib.DBusConnection connection);
[NoAccessorMethod]
public GLib.DBusInterfaceSkeletonFlags g_flags { get; set; }
public virtual signal bool g_authorize_method (GLib.DBusMethodInvocation invocation);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_menu_model_get_type ()")]
public class DBusMenuModel : GLib.MenuModel {
[CCode (has_construct_function = false)]
protected DBusMenuModel ();
[Version (since = "2.32")]
public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string? bus_name, string object_path);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
[Version (since = "2.26")]
public class DBusMessage : GLib.Object {
[CCode (has_construct_function = false)]
public DBusMessage ();
public static ssize_t bytes_needed ([CCode (array_length_cname = "blob_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] blob) throws GLib.Error;
public GLib.DBusMessage copy () throws GLib.Error;
[CCode (has_construct_function = false)]
public DBusMessage.from_blob ([CCode (array_length_cname = "blob_len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] blob, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
public unowned string get_arg0 ();
public unowned GLib.Variant get_body ();
public GLib.DBusMessageByteOrder get_byte_order ();
public unowned string get_destination ();
public unowned string get_error_name ();
public GLib.DBusMessageFlags get_flags ();
public unowned GLib.Variant? get_header (GLib.DBusMessageHeaderField header_field);
[CCode (array_length = false, array_null_terminated = true)]
public uchar[] get_header_fields ();
public unowned string get_interface ();
public bool get_locked ();
public unowned string get_member ();
public GLib.DBusMessageType get_message_type ();
public uint32 get_num_unix_fds ();
public unowned string get_path ();
public uint32 get_reply_serial ();
public unowned string get_sender ();
public uint32 get_serial ();
public unowned string get_signature ();
public unowned GLib.UnixFDList get_unix_fd_list ();
public void @lock ();
[CCode (has_construct_function = false)]
public DBusMessage.method_call (string? name, string path, string? interface_, string method);
[CCode (has_construct_function = false)]
[PrintfFormat]
public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format, ...);
[CCode (has_construct_function = false)]
public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
[CCode (has_construct_function = false)]
public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, va_list var_args);
[CCode (has_construct_function = false)]
public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
public string print (uint indent = 0);
public void set_body (GLib.Variant body);
public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
public void set_destination (string value);
public void set_error_name (string value);
public void set_flags (GLib.DBusMessageFlags flags);
public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant? value);
public void set_interface (string value);
public void set_member (string value);
public void set_message_type (GLib.DBusMessageType type);
public void set_num_unix_fds (uint32 value);
public void set_path (string value);
public void set_reply_serial (uint32 value);
public void set_sender (string value);
public void set_serial (uint32 serial);
public void set_signature (string value);
public void set_unix_fd_list (GLib.UnixFDList? fd_list);
[CCode (has_construct_function = false)]
public DBusMessage.@signal (string path, string interface_, string @signal);
[CCode (array_length_pos = 0.5, array_length_type = "gsize")]
public uint8[] to_blob (GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
public bool to_gerror () throws GLib.Error;
public bool locked { get; }
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_method_info_ref", type_id = "g_dbus_method_info_get_type ()", unref_function = "g_dbus_method_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusMethodInfo {
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusAnnotationInfo[] annotations;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusArgInfo[] in_args;
public string name;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusArgInfo[] out_args;
public int ref_count;
public unowned GLib.DBusMethodInfo @ref ();
public void unref ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_method_invocation_get_type ()")]
[Version (since = "2.26")]
public class DBusMethodInvocation : GLib.Object {
[CCode (has_construct_function = false)]
protected DBusMethodInvocation ();
public unowned GLib.DBusConnection get_connection ();
public unowned string get_interface_name ();
public unowned GLib.DBusMessage get_message ();
public unowned GLib.DBusMethodInfo get_method_info ();
public unowned string get_method_name ();
public unowned string get_object_path ();
public unowned GLib.Variant get_parameters ();
[Version (since = "2.38")]
public unowned GLib.DBusPropertyInfo get_property_info ();
public unowned string get_sender ();
public void* get_user_data ();
[DestroysInstance]
public void return_dbus_error (string error_name, string error_message);
[DestroysInstance]
public void return_error (GLib.Quark domain, int code, string format, ...);
[DestroysInstance]
public void return_error_literal (GLib.Quark domain, int code, string message);
[DestroysInstance]
public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
[DestroysInstance]
public void return_gerror (GLib.Error error);
[DestroysInstance]
public void return_value (GLib.Variant? parameters);
[DestroysInstance]
[Version (since = "2.30")]
public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
[DestroysInstance]
[Version (since = "2.30")]
public void take_error (owned GLib.Error error);
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_node_info_ref", type_id = "g_dbus_node_info_get_type ()", unref_function = "g_dbus_node_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusNodeInfo {
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusAnnotationInfo[] annotations;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusInterfaceInfo[] interfaces;
[CCode (array_length = false, array_null_terminated = true)]
public GLib.DBusNodeInfo[] nodes;
public string path;
public int ref_count;
[CCode (has_construct_function = false)]
public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
public void generate_xml (uint indent, GLib.StringBuilder string_builder);
public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
public unowned GLib.DBusNodeInfo @ref ();
public void unref ();
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
[Version (since = "2.30")]
public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable {
[CCode (cname = "g_dbus_object_manager_client_new", has_construct_function = false)]
public async DBusObjectManagerClient (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "g_dbus_object_manager_client_new_for_bus", has_construct_function = false)]
public async DBusObjectManagerClient.for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false, type = "GDBusObjectManager*")]
public DBusObjectManagerClient.for_bus_sync (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
public unowned GLib.DBusConnection get_connection ();
public GLib.DBusObjectManagerClientFlags get_flags ();
public unowned string get_name ();
public string? get_name_owner ();
[CCode (cname = "g_dbus_object_manager_client_new", finish_name = "g_dbus_object_manager_client_new_finish")]
[Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient")]
public static async GLib.DBusObjectManagerClient @new (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "g_dbus_object_manager_client_new_for_bus", finish_name = "g_dbus_object_manager_client_new_for_bus_finish")]
[Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient.for_bus")]
public static async GLib.DBusObjectManagerClient new_for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false, type = "GDBusObjectManager*")]
public DBusObjectManagerClient.sync (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string? name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
[NoAccessorMethod]
public GLib.BusType bus_type { construct; }
public GLib.DBusConnection connection { get; construct; }
public GLib.DBusObjectManagerClientFlags flags { get; construct; }
[NoAccessorMethod]
public void* get_proxy_type_destroy_notify { get; construct; }
[NoAccessorMethod]
public void* get_proxy_type_func { get; construct; }
[NoAccessorMethod]
public void* get_proxy_type_user_data { get; construct; }
public string name { get; construct; }
public string? name_owner { owned get; }
[NoAccessorMethod]
public string object_path { owned get; construct; }
public virtual signal void interface_proxy_properties_changed (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
public virtual signal void interface_proxy_signal (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, string sender_name, string signal_name, GLib.Variant parameters);
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_server_get_type ()")]
[Version (since = "2.30")]
public class DBusObjectManagerServer : GLib.Object, GLib.DBusObjectManager {
[CCode (has_construct_function = false)]
public DBusObjectManagerServer (string object_path);
public void export (GLib.DBusObjectSkeleton object);
public void export_uniquely (GLib.DBusObjectSkeleton object);
public GLib.DBusConnection get_connection ();
[Version (since = "2.34")]
public bool is_exported (GLib.DBusObjectSkeleton object);
public void set_connection (GLib.DBusConnection? connection);
public bool unexport (string object_path);
public GLib.DBusConnection connection { owned get; set; }
[NoAccessorMethod]
public string object_path { owned get; construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_proxy_get_type ()")]
[Version (since = "2.30")]
public class DBusObjectProxy : GLib.Object, GLib.DBusObject {
[CCode (has_construct_function = false)]
public DBusObjectProxy (GLib.DBusConnection connection, string object_path);
public unowned GLib.DBusConnection get_connection ();
[NoAccessorMethod]
public GLib.DBusConnection g_connection { owned get; construct; }
[NoAccessorMethod]
public string g_object_path { owned get; construct; }
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_skeleton_get_type ()")]
[Version (since = "2.30")]
public class DBusObjectSkeleton : GLib.Object, GLib.DBusObject {
[CCode (has_construct_function = false)]
public DBusObjectSkeleton (string object_path);
public void add_interface (GLib.DBusInterfaceSkeleton interface_);
public void flush ();
public void remove_interface (GLib.DBusInterfaceSkeleton interface_);
public void remove_interface_by_name (string interface_name);
public void set_object_path (string object_path);
[NoAccessorMethod]
public string g_object_path { owned get; set construct; }
public virtual signal bool authorize_method (GLib.DBusInterfaceSkeleton interface_, GLib.DBusMethodInvocation invocation);
}
[CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_property_info_ref", type_id = "g_dbus_property_info_get_type ()", unref_function = "g_dbus_property_info_unref")]
[Compact]
[Version (since = "2.26")]
public class DBusPropertyInfo {