-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
GioUnix-2.0.gir
2998 lines (2895 loc) · 151 KB
/
GioUnix-2.0.gir
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
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0" version="1.2">
<include name="GLib" version="2.0"/>
<include name="GModule" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<package name="gio-unix-2.0"/>
<c:include name="gio/gdesktopappinfo.h"/>
<c:include name="gio/gfiledescriptorbased.h"/>
<c:include name="gio/gio.h"/>
<c:include name="gio/gunixfdmessage.h"/>
<c:include name="gio/gunixinputstream.h"/>
<c:include name="gio/gunixmounts.h"/>
<c:include name="gio/gunixoutputstream.h"/>
<namespace name="GioUnix" version="2.0" shared-library="libgio-2.0.so.0" c:identifier-prefixes="GUnix,G" c:symbol-prefixes="gio,g_unix,g">
<function-macro name="DESKTOP_APP_INFO" c:identifier="G_DESKTOP_APP_INFO" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="DESKTOP_APP_INFO_CLASS" c:identifier="G_DESKTOP_APP_INFO_CLASS" introspectable="0">
<parameters>
<parameter name="k">
</parameter>
</parameters>
</function-macro>
<function-macro name="DESKTOP_APP_INFO_GET_CLASS" c:identifier="G_DESKTOP_APP_INFO_GET_CLASS" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="DESKTOP_APP_INFO_LOOKUP" c:identifier="G_DESKTOP_APP_INFO_LOOKUP" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<constant name="DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME" value="gio-desktop-app-info-lookup" c:type="G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME" deprecated="1" deprecated-version="2.28">
<doc xml:space="preserve">Extension point for default handler to URI association. See
[Extending GIO][extending-gio].</doc>
<doc-deprecated xml:space="preserve">The #GDesktopAppInfoLookup interface is deprecated and
unused by GIO.</doc-deprecated>
<type name="utf8" c:type="gchar*"/>
</constant>
<function-macro name="DESKTOP_APP_INFO_LOOKUP_GET_IFACE" c:identifier="G_DESKTOP_APP_INFO_LOOKUP_GET_IFACE" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<class name="DesktopAppInfo" c:symbol-prefix="desktop_app_info" c:type="GDesktopAppInfo" parent="GObject.Object" glib:type-name="GDesktopAppInfo" glib:get-type="g_desktop_app_info_get_type" glib:type-struct="DesktopAppInfoClass">
<doc xml:space="preserve">`GDesktopAppInfo` is an implementation of [iface@Gio.AppInfo] based on
desktop files.
Note that `<gio/gdesktopappinfo.h>` belongs to the UNIX-specific
GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
file or the `GioUnix-2.0` GIR namespace when using it.</doc>
<implements name="Gio.AppInfo"/>
<constructor name="new" c:identifier="g_desktop_app_info_new">
<doc xml:space="preserve">Creates a new [class@Gio.DesktopAppInfo] based on a desktop file ID.
A desktop file ID is the basename of the desktop file, including the
`.desktop` extension. GIO is looking for a desktop file with this name
in the `applications` subdirectories of the XDG
data directories (i.e. the directories specified in the `XDG_DATA_HOME`
and `XDG_DATA_DIRS` environment variables). GIO also supports the
prefix-to-subdirectory mapping that is described in the
[Menu Spec](http://standards.freedesktop.org/menu-spec/latest/)
(i.e. a desktop ID of `kde-foo.desktop` will match
`/usr/share/applications/kde/foo.desktop`).</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a new [class@Gio.DesktopAppInfo], or `NULL` if no
desktop file with that ID exists.</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</return-value>
<parameters>
<parameter name="desktop_id" transfer-ownership="none">
<doc xml:space="preserve">the desktop file ID</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_filename" c:identifier="g_desktop_app_info_new_from_filename">
<doc xml:space="preserve">Creates a new [class@Gio.DesktopAppInfo].</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a new [class@Gio.DesktopAppInfo] or `NULL` on error.</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</return-value>
<parameters>
<parameter name="filename" transfer-ownership="none">
<doc xml:space="preserve">the path of a desktop file, in the GLib
filename encoding</doc>
<type name="filename" c:type="const char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_keyfile" c:identifier="g_desktop_app_info_new_from_keyfile" version="2.18">
<doc xml:space="preserve">Creates a new [class@Gio.DesktopAppInfo].</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a new [class@Gio.DesktopAppInfo] or `NULL` on error.</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</return-value>
<parameters>
<parameter name="key_file" transfer-ownership="none">
<doc xml:space="preserve">an opened [type@GLib.KeyFile]</doc>
<type name="GLib.KeyFile" c:type="GKeyFile*"/>
</parameter>
</parameters>
</constructor>
<function name="get_action_name" c:identifier="g_desktop_app_info_get_action_name" version="2.38">
<doc xml:space="preserve">Gets the user-visible display name of the
[‘additional application actions’](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s11.html)
specified by @action_name.
This corresponds to the `Name` key within the keyfile group for the
action.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the locale-specific action name</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="action_name" transfer-ownership="none">
<doc xml:space="preserve">the name of the action as from
[method@Gio.DesktopAppInfo.list_actions]</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="get_boolean" c:identifier="g_desktop_app_info_get_boolean" version="2.36">
<doc xml:space="preserve">Looks up a boolean value in the keyfile backing @info.
The @key is looked up in the `Desktop Entry` group.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the boolean value, or `FALSE` if the key is not found</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the key to look up</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<function name="get_categories" c:identifier="g_desktop_app_info_get_categories">
<doc xml:space="preserve">Gets the categories from the desktop file.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">The unparsed
[`Categories` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-categories)
from the desktop file;
i.e. no attempt is made to split it by `;` or validate it.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_filename" c:identifier="g_desktop_app_info_get_filename" version="2.24">
<doc xml:space="preserve">When @info was created from a known filename, return it. In some
situations such as a [class@Gio.DesktopAppInfo] returned from
[ctor@Gio.DesktopAppInfo.new_from_keyfile], this function will return `NULL`.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">The full path to the file for @info,
or `NULL` if not known.</doc>
<type name="filename" c:type="const char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_generic_name" c:identifier="g_desktop_app_info_get_generic_name">
<doc xml:space="preserve">Gets the generic name from the desktop file.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">The value of the
[`GenericName` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-genericname)</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_implementations" c:identifier="g_desktop_app_info_get_implementations" version="2.42">
<doc xml:space="preserve">Gets all applications that implement @interface.
An application implements an interface if that interface is listed in
the `Implements` line of the desktop file of the application.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of
[class@Gio.DesktopAppInfo] objects.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Gio.DesktopAppInfo"/>
</type>
</return-value>
<parameters>
<parameter name="interface" transfer-ownership="none">
<doc xml:space="preserve">the name of the interface</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="get_is_hidden" c:identifier="g_desktop_app_info_get_is_hidden">
<doc xml:space="preserve">A desktop file is hidden if the
[`Hidden` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-hidden)
in it is set to `True`.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">`TRUE` if hidden, `FALSE` otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo].</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_keywords" c:identifier="g_desktop_app_info_get_keywords" version="2.32">
<doc xml:space="preserve">Gets the keywords from the desktop file.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The value of the
[`Keywords` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-keywords)</doc>
<array c:type="const char* const*">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_locale_string" c:identifier="g_desktop_app_info_get_locale_string" version="2.56">
<doc xml:space="preserve">Looks up a localized string value in the keyfile backing @info
translated to the current locale.
The @key is looked up in the `Desktop Entry` group.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a newly allocated string, or `NULL` if the key is not
found</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the key to look up</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<function name="get_nodisplay" c:identifier="g_desktop_app_info_get_nodisplay" version="2.30">
<doc xml:space="preserve">Gets the value of the
[`NoDisplay` key](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-nodisplay)
which helps determine if the application info should be shown in menus. See
`G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY` and [method@Gio.AppInfo.should_show].</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The value of the `NoDisplay` key</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_show_in" c:identifier="g_desktop_app_info_get_show_in" version="2.30">
<doc xml:space="preserve">Checks if the application info should be shown in menus that list available
applications for a specific name of the desktop, based on the
[`OnlyShowIn`](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-onlyshowin)
and [`NotShowIn`](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-notshowin)
keys.
@desktop_env should typically be given as `NULL`, in which case the
`XDG_CURRENT_DESKTOP` environment variable is consulted. If you want
to override the default mechanism then you may specify @desktop_env,
but this is not recommended.
Note that [method@Gio.AppInfo.should_show] for @info will include this check
(with `NULL` for @desktop_env) as well as additional checks.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">`TRUE` if the @info should be shown in @desktop_env according to the
`OnlyShowIn` and `NotShowIn` keys, `FALSE` otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="desktop_env" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a string specifying a desktop name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="get_startup_wm_class" c:identifier="g_desktop_app_info_get_startup_wm_class" version="2.34">
<doc xml:space="preserve">Retrieves the `StartupWMClass` field from @info. This represents the
`WM_CLASS` property of the main window of the application, if launched
through @info.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the startup WM class, or `NULL` if none
is set in the desktop file.</doc>
<type name="utf8" c:type="const char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo] that supports startup notify</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="get_string" c:identifier="g_desktop_app_info_get_string" version="2.36">
<doc xml:space="preserve">Looks up a string value in the keyfile backing @info.
The @key is looked up in the `Desktop Entry` group.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a newly allocated string, or `NULL` if the key is not
found</doc>
<type name="utf8" c:type="char*"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the key to look up</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<function name="get_string_list" c:identifier="g_desktop_app_info_get_string_list" version="2.60">
<doc xml:space="preserve">Looks up a string list value in the keyfile backing @info.
The @key is looked up in the `Desktop Entry` group.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">
a `NULL`-terminated string array or `NULL` if the specified
key cannot be found. The array should be freed with [func@GLib.strfreev].</doc>
<array length="2" zero-terminated="1" c:type="gchar**">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the key to look up</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
<parameter name="length" direction="out" caller-allocates="0" transfer-ownership="full" optional="1" allow-none="1">
<doc xml:space="preserve">return location for the number of returned
strings, or `NULL`</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</function>
<function name="has_key" c:identifier="g_desktop_app_info_has_key" version="2.36">
<doc xml:space="preserve">Returns whether @key exists in the `Desktop Entry` group
of the keyfile backing @info.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">`TRUE` if the @key exists</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the key to look up</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<function name="launch_action" c:identifier="g_desktop_app_info_launch_action" version="2.38">
<doc xml:space="preserve">Activates the named application action.
You may only call this function on action names that were
returned from [method@Gio.DesktopAppInfo.list_actions].
Note that if the main entry of the desktop file indicates that the
application supports startup notification, and @launch_context is
non-`NULL`, then startup notification will be used when activating the
action (and as such, invocation of the action on the receiving side
must signal the end of startup notification when it is completed).
This is the expected behaviour of applications declaring additional
actions, as per the
[desktop file specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s11.html).
As with [method@Gio.AppInfo.launch] there is no way to detect failures that
occur while using this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="action_name" transfer-ownership="none">
<doc xml:space="preserve">the name of the action as from
[method@Gio.DesktopAppInfo.list_actions]</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="launch_context" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a [class@Gio.AppLaunchContext]</doc>
<type name="Gio.AppLaunchContext" c:type="GAppLaunchContext*"/>
</parameter>
</parameters>
</function>
<function name="launch_uris_as_manager" c:identifier="g_desktop_app_info_launch_uris_as_manager" throws="1">
<doc xml:space="preserve">This function performs the equivalent of [method@Gio.AppInfo.launch_uris],
but is intended primarily for operating system components that
launch applications. Ordinary applications should use
[method@Gio.AppInfo.launch_uris].
If the application is launched via GSpawn, then @spawn_flags, @user_setup
and @user_setup_data are used for the call to [func@GLib.spawn_async].
Additionally, @pid_callback (with @pid_callback_data) will be called to
inform about the PID of the created process. See
[func@GLib.spawn_async_with_pipes] for information on certain parameter
conditions that can enable an optimized [`posix_spawn()`](man:posix_spawn(3))
code path to be used.
If application launching occurs via some other mechanism (for example, D-Bus
activation) then @spawn_flags, @user_setup, @user_setup_data,
@pid_callback and @pid_callback_data are ignored.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">`TRUE` on successful launch, `FALSE` otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="appinfo" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="uris" transfer-ownership="none">
<doc xml:space="preserve">List of URIs</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</parameter>
<parameter name="launch_context" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a [class@Gio.AppLaunchContext]</doc>
<type name="Gio.AppLaunchContext" c:type="GAppLaunchContext*"/>
</parameter>
<parameter name="spawn_flags" transfer-ownership="none">
<doc xml:space="preserve">[flags@GLib.SpawnFlags], used for each process</doc>
<type name="GLib.SpawnFlags" c:type="GSpawnFlags"/>
</parameter>
<parameter name="user_setup" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="5">
<doc xml:space="preserve">a [callback@GLib.SpawnChildSetupFunc],
used once for each process.</doc>
<type name="GLib.SpawnChildSetupFunc" c:type="GSpawnChildSetupFunc"/>
</parameter>
<parameter name="user_setup_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">User data for @user_setup</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="pid_callback" transfer-ownership="none" nullable="1" allow-none="1" scope="call" closure="7">
<doc xml:space="preserve">Callback for child processes</doc>
<type name="Gio.DesktopAppLaunchCallback" c:type="GDesktopAppLaunchCallback"/>
</parameter>
<parameter name="pid_callback_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">User data for @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="launch_uris_as_manager_with_fds" c:identifier="g_desktop_app_info_launch_uris_as_manager_with_fds" version="2.58" throws="1">
<doc xml:space="preserve">Equivalent to [method@Gio.DesktopAppInfo.launch_uris_as_manager] but allows
you to pass in file descriptors for the stdin, stdout and stderr streams
of the launched process.
If application launching occurs via some non-spawn mechanism (e.g. D-Bus
activation) then @stdin_fd, @stdout_fd and @stderr_fd are ignored.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">`TRUE` on successful launch, `FALSE` otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="appinfo" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="uris" transfer-ownership="none">
<doc xml:space="preserve">List of URIs</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</parameter>
<parameter name="launch_context" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a [class@Gio.AppLaunchContext]</doc>
<type name="Gio.AppLaunchContext" c:type="GAppLaunchContext*"/>
</parameter>
<parameter name="spawn_flags" transfer-ownership="none">
<doc xml:space="preserve">[flags@GLib.SpawnFlags], used for each process</doc>
<type name="GLib.SpawnFlags" c:type="GSpawnFlags"/>
</parameter>
<parameter name="user_setup" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="5">
<doc xml:space="preserve">a
[callback@GLib.SpawnChildSetupFunc], used once for each process.</doc>
<type name="GLib.SpawnChildSetupFunc" c:type="GSpawnChildSetupFunc"/>
</parameter>
<parameter name="user_setup_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">User data for @user_setup</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="pid_callback" transfer-ownership="none" nullable="1" allow-none="1" scope="call" closure="7">
<doc xml:space="preserve">Callback for child processes</doc>
<type name="Gio.DesktopAppLaunchCallback" c:type="GDesktopAppLaunchCallback"/>
</parameter>
<parameter name="pid_callback_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">User data for @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="stdin_fd" transfer-ownership="none">
<doc xml:space="preserve">file descriptor to use for child’s stdin, or `-1`</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="stdout_fd" transfer-ownership="none">
<doc xml:space="preserve">file descriptor to use for child’s stdout, or `-1`</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="stderr_fd" transfer-ownership="none">
<doc xml:space="preserve">file descriptor to use for child’s stderr, or `-1`</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</function>
<function name="list_actions" c:identifier="g_desktop_app_info_list_actions" version="2.38">
<doc xml:space="preserve">Returns the list of
[‘additional application actions’](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s11.html)
supported on the desktop file, as per the desktop file specification.
As per the specification, this is the list of actions that are
explicitly listed in the `Actions` key of the `Desktop Entry` group.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a
list of strings, always non-`NULL`</doc>
<array c:type="const gchar* const*">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a [class@Gio.DesktopAppInfo]</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
</parameters>
</function>
<function name="search" c:identifier="g_desktop_app_info_search">
<doc xml:space="preserve">Searches desktop files for ones that match @search_string.
The return value is an array of strvs. Each strv contains a list of
applications that matched @search_string with an equal score. The
outer list is sorted by score so that the first strv contains the
best-matching applications, and so on.
The algorithm for determining matches is undefined and may change at
any time.
None of the search results are subjected to the normal validation
checks performed by [ctor@Gio.DesktopAppInfo.new] (for example, checking that
the executable referenced by a result exists), and so it is possible for
[ctor@Gio.DesktopAppInfo.new] to return `NULL` when passed an app ID returned
by this function. It is expected that calling code will do this when
subsequently creating a [class@Gio.DesktopAppInfo] for each result.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a
list of strvs. Free each item with [func@GLib.strfreev] and free the outer
list with [func@GLib.free].</doc>
<array c:type="gchar***">
<array>
<type name="utf8"/>
</array>
</array>
</return-value>
<parameters>
<parameter name="search_string" transfer-ownership="none">
<doc xml:space="preserve">the search string to use</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="set_desktop_env" c:identifier="g_desktop_app_info_set_desktop_env" deprecated="1" deprecated-version="2.42">
<doc xml:space="preserve">Sets the name of the desktop that the application is running in.
This is used by [method@Gio.AppInfo.should_show] and
[method@Gio.DesktopAppInfo.get_show_in] to evaluate the
[`OnlyShowIn`](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-onlyshowin)
and [`NotShowIn`](https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#key-notshowin)
keys.
Should be called only once; subsequent calls are ignored.</doc>
<doc-deprecated xml:space="preserve">do not use this API. Since 2.42 the value of the
`XDG_CURRENT_DESKTOP` environment variable will be used.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="desktop_env" transfer-ownership="none">
<doc xml:space="preserve">a string specifying what desktop this is</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
<property name="filename" writable="1" construct-only="1" transfer-ownership="none" default-value="NULL">
<doc xml:space="preserve">The origin filename of this [class@Gio.DesktopAppInfo]</doc>
<type name="utf8" c:type="gchar*"/>
</property>
</class>
<record name="DesktopAppInfoClass" c:type="GDesktopAppInfoClass" glib:is-gtype-struct-for="DesktopAppInfo">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<interface name="DesktopAppInfoLookup" c:symbol-prefix="desktop_app_info_lookup" c:type="GDesktopAppInfoLookup" deprecated="1" deprecated-version="2.28" glib:type-name="GDesktopAppInfoLookup" glib:get-type="g_desktop_app_info_lookup_get_type" glib:type-struct="DesktopAppInfoLookupIface">
<doc xml:space="preserve">#GDesktopAppInfoLookup is an opaque data structure and can only be accessed
using the following functions.</doc>
<doc-deprecated xml:space="preserve">The [iface@Gio.DesktopAppInfoLookup] interface is
deprecated and unused by GIO.</doc-deprecated>
<function name="get_default_for_uri_scheme" c:identifier="g_desktop_app_info_lookup_get_default_for_uri_scheme" deprecated="1" deprecated-version="2.28">
<doc xml:space="preserve">Gets the default application for launching applications
using this URI scheme for a particular [iface@Gio.DesktopAppInfoLookup]
implementation.
The [iface@Gio.DesktopAppInfoLookup] interface and this function is used
to implement [func@Gio.AppInfo.get_default_for_uri_scheme] backends
in a GIO module. There is no reason for applications to use it
directly. Applications should use
[func@Gio.AppInfo.get_default_for_uri_scheme].</doc>
<doc-deprecated xml:space="preserve">The [iface@Gio.DesktopAppInfoLookup] interface is
deprecated and unused by GIO.</doc-deprecated>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">[iface@Gio.AppInfo] for given
@uri_scheme or `NULL` on error.</doc>
<type name="Gio.AppInfo" c:type="GAppInfo*"/>
</return-value>
<parameters>
<parameter name="lookup" transfer-ownership="none">
<doc xml:space="preserve">a [iface@Gio.DesktopAppInfoLookup]</doc>
<type name="Gio.DesktopAppInfoLookup" c:type="GDesktopAppInfoLookup*"/>
</parameter>
<parameter name="uri_scheme" transfer-ownership="none">
<doc xml:space="preserve">a string containing a URI scheme.</doc>
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</function>
</interface>
<record name="DesktopAppInfoLookupIface" c:type="GDesktopAppInfoLookupIface" glib:is-gtype-struct-for="DesktopAppInfoLookup">
<doc xml:space="preserve">Interface that is used by backends to associate default
handlers with URI schemes.</doc>
<field name="g_iface">
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="get_default_for_uri_scheme" introspectable="0">
<doc xml:space="preserve">Virtual method for
g_desktop_app_info_lookup_get_default_for_uri_scheme().</doc>
<callback name="get_default_for_uri_scheme" introspectable="0">
<return-value>
<type name="Gio.AppInfo" c:type="GAppInfo*"/>
</return-value>
<parameters>
<parameter name="lookup" transfer-ownership="none">
<type name="Gio.DesktopAppInfoLookup" c:type="GDesktopAppInfoLookup*"/>
</parameter>
<parameter name="uri_scheme" transfer-ownership="none">
<type name="utf8" c:type="const char*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<callback name="DesktopAppLaunchCallback" c:type="GDesktopAppLaunchCallback">
<doc xml:space="preserve">During invocation, g_desktop_app_info_launch_uris_as_manager() may
create one or more child processes. This callback is invoked once
for each, providing the process ID.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="appinfo" transfer-ownership="none">
<doc xml:space="preserve">a #GDesktopAppInfo</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</parameter>
<parameter name="pid" transfer-ownership="none">
<doc xml:space="preserve">Process identifier</doc>
<type name="GLib.Pid" c:type="GPid"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="2">
<doc xml:space="preserve">User data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<class name="FDMessage" c:symbol-prefix="fd_message" c:type="GUnixFDMessage" parent="Gio.SocketControlMessage" glib:type-name="GUnixFDMessage" glib:get-type="g_unix_fd_message_get_type" glib:type-struct="FDMessageClass">
<doc xml:space="preserve">This [class@Gio.SocketControlMessage] contains a [class@Gio.UnixFDList].
It may be sent using [method@Gio.Socket.send_message] and received using
[method@Gio.Socket.receive_message] over UNIX sockets (ie: sockets in the
`G_SOCKET_FAMILY_UNIX` family). The file descriptors are copied
between processes by the kernel.
For an easier way to send and receive file descriptors over
stream-oriented UNIX sockets, see [method@Gio.UnixConnection.send_fd] and
[method@Gio.UnixConnection.receive_fd].
Note that `<gio/gunixfdmessage.h>` belongs to the UNIX-specific GIO
interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
file or the `GioUnix-2.0` GIR namespace when using it.</doc>
<constructor name="new" c:identifier="g_unix_fd_message_new" version="2.22">
<doc xml:space="preserve">Creates a new #GUnixFDMessage containing an empty file descriptor
list.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GUnixFDMessage</doc>
<type name="Gio.SocketControlMessage" c:type="GSocketControlMessage*"/>
</return-value>
</constructor>
<constructor name="new_with_fd_list" c:identifier="g_unix_fd_message_new_with_fd_list" version="2.24">
<doc xml:space="preserve">Creates a new #GUnixFDMessage containing @list.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GUnixFDMessage</doc>
<type name="Gio.SocketControlMessage" c:type="GSocketControlMessage*"/>
</return-value>
<parameters>
<parameter name="fd_list" transfer-ownership="none">
<doc xml:space="preserve">a #GUnixFDList</doc>
<type name="Gio.UnixFDList" c:type="GUnixFDList*"/>
</parameter>
</parameters>
</constructor>
<function name="append_fd" c:identifier="g_unix_fd_message_append_fd" version="2.22" throws="1">
<doc xml:space="preserve">Adds a file descriptor to @message.
The file descriptor is duplicated using dup(). You keep your copy
of the descriptor and the copy contained in @message will be closed
when @message is finalized.
A possible cause of failure is exceeding the per-process or
system-wide file descriptor limit.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE in case of success, else %FALSE (and @error is set)</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve">a #GUnixFDMessage</doc>
<type name="Gio.UnixFDMessage" c:type="GUnixFDMessage*"/>
</parameter>
<parameter name="fd" transfer-ownership="none">
<doc xml:space="preserve">a valid open file descriptor</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</function>
<function name="get_fd_list" c:identifier="g_unix_fd_message_get_fd_list" version="2.24">
<doc xml:space="preserve">Gets the #GUnixFDList contained in @message. This function does not
return a reference to the caller, but the returned list is valid for
the lifetime of @message.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the #GUnixFDList from @message</doc>
<type name="Gio.UnixFDList" c:type="GUnixFDList*"/>
</return-value>
<parameters>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve">a #GUnixFDMessage</doc>
<type name="Gio.UnixFDMessage" c:type="GUnixFDMessage*"/>
</parameter>
</parameters>
</function>
<function name="steal_fds" c:identifier="g_unix_fd_message_steal_fds" version="2.22">
<doc xml:space="preserve">Returns the array of file descriptors that is contained in this
object.
After this call, the descriptors are no longer contained in
@message. Further calls will return an empty list (unless more
descriptors have been added).
The return result of this function must be freed with g_free().
The caller is also responsible for closing all of the file
descriptors.
If @length is non-%NULL then it is set to the number of file
descriptors in the returned array. The returned array is also
terminated with -1.
This function never returns %NULL. In case there are no file
descriptors contained in @message, an empty array is returned.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an array of file
descriptors</doc>
<array length="1" zero-terminated="0" c:type="gint*">
<type name="gint" c:type="gint"/>
</array>
</return-value>
<parameters>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve">a #GUnixFDMessage</doc>
<type name="Gio.UnixFDMessage" c:type="GUnixFDMessage*"/>
</parameter>
<parameter name="length" direction="out" caller-allocates="0" transfer-ownership="full" optional="1" allow-none="1">
<doc xml:space="preserve">pointer to the length of the returned
array, or %NULL</doc>
<type name="gint" c:type="gint*"/>
</parameter>
</parameters>
</function>
<property name="fd-list" version="2.22" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The [class@Gio.UnixFDList] object to send with the message.</doc>
<type name="Gio.UnixFDList"/>
</property>
<field name="parent_instance">
<type name="Gio.SocketControlMessage" c:type="GSocketControlMessage"/>
</field>
<field name="priv">
<type name="Gio.UnixFDMessagePrivate" c:type="GUnixFDMessagePrivate*"/>
</field>
</class>
<record name="FDMessageClass" c:type="GUnixFDMessageClass" glib:is-gtype-struct-for="FDMessage">
<field name="parent_class">
<type name="Gio.SocketControlMessageClass" c:type="GSocketControlMessageClass"/>
</field>
<field name="_g_reserved1" introspectable="0">
<callback name="_g_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_g_reserved2" introspectable="0">
<callback name="_g_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="FDMessagePrivate" c:type="GUnixFDMessagePrivate" disguised="1" opaque="1"/>
<function-macro name="FD_MESSAGE" c:identifier="G_UNIX_FD_MESSAGE" introspectable="0">
<parameters>
<parameter name="inst">
</parameter>
</parameters>
</function-macro>
<function-macro name="FD_MESSAGE_CLASS" c:identifier="G_UNIX_FD_MESSAGE_CLASS" introspectable="0">
<parameters>
<parameter name="class">
</parameter>
</parameters>
</function-macro>
<function-macro name="FD_MESSAGE_GET_CLASS" c:identifier="G_UNIX_FD_MESSAGE_GET_CLASS" introspectable="0">
<parameters>
<parameter name="inst">
</parameter>
</parameters>
</function-macro>
<function-macro name="FILE_DESCRIPTOR_BASED" c:identifier="G_FILE_DESCRIPTOR_BASED" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<function-macro name="FILE_DESCRIPTOR_BASED_GET_IFACE" c:identifier="G_FILE_DESCRIPTOR_BASED_GET_IFACE" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<interface name="FileDescriptorBased" c:symbol-prefix="file_descriptor_based" c:type="GFileDescriptorBased" version="2.24" glib:type-name="GFileDescriptorBased" glib:get-type="g_file_descriptor_based_get_type" glib:type-struct="FileDescriptorBasedIface">
<doc xml:space="preserve">`GFileDescriptorBased` is an interface for file descriptor based IO.
It is implemented by streams (implementations of [class@Gio.InputStream] or
[class@Gio.OutputStream]) that are based on file descriptors.
Note that `<gio/gfiledescriptorbased.h>` belongs to the UNIX-specific
GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
file or the `GioUnix-2.0` GIR namespace when using it.</doc>
<function name="get_fd" c:identifier="g_file_descriptor_based_get_fd" version="2.24">
<doc xml:space="preserve">Gets the underlying file descriptor.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The file descriptor</doc>
<type name="gint" c:type="int"/>
</return-value>
<parameters>
<parameter name="fd_based" transfer-ownership="none">
<doc xml:space="preserve">a #GFileDescriptorBased.</doc>
<type name="Gio.FileDescriptorBased" c:type="GFileDescriptorBased*"/>
</parameter>
</parameters>
</function>
</interface>
<record name="FileDescriptorBasedIface" c:type="GFileDescriptorBasedIface" glib:is-gtype-struct-for="FileDescriptorBased">
<doc xml:space="preserve">An interface for file descriptor based io objects.</doc>
<field name="g_iface">
<doc xml:space="preserve">The parent interface.</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="get_fd">
<doc xml:space="preserve">Gets the underlying file descriptor.</doc>
<callback name="get_fd">
<return-value transfer-ownership="none">
<type name="gint" c:type="int"/>
</return-value>
<parameters>
<parameter name="fd_based" transfer-ownership="none">
<type name="Gio.FileDescriptorBased" c:type="GFileDescriptorBased*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<function-macro name="INPUT_STREAM" c:identifier="G_UNIX_INPUT_STREAM" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="INPUT_STREAM_CLASS" c:identifier="G_UNIX_INPUT_STREAM_CLASS" introspectable="0">
<parameters>
<parameter name="k">
</parameter>
</parameters>
</function-macro>
<function-macro name="INPUT_STREAM_GET_CLASS" c:identifier="G_UNIX_INPUT_STREAM_GET_CLASS" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_DESKTOP_APP_INFO" c:identifier="G_IS_DESKTOP_APP_INFO" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_DESKTOP_APP_INFO_CLASS" c:identifier="G_IS_DESKTOP_APP_INFO_CLASS" introspectable="0">
<parameters>
<parameter name="k">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_DESKTOP_APP_INFO_LOOKUP" c:identifier="G_IS_DESKTOP_APP_INFO_LOOKUP" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_FILE_DESCRIPTOR_BASED" c:identifier="G_IS_FILE_DESCRIPTOR_BASED" introspectable="0">
<parameters>
<parameter name="obj">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_UNIX_FD_MESSAGE" c:identifier="G_IS_UNIX_FD_MESSAGE" introspectable="0">
<parameters>
<parameter name="inst">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_UNIX_FD_MESSAGE_CLASS" c:identifier="G_IS_UNIX_FD_MESSAGE_CLASS" introspectable="0">
<parameters>
<parameter name="class">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_UNIX_INPUT_STREAM" c:identifier="G_IS_UNIX_INPUT_STREAM" introspectable="0">
<parameters>
<parameter name="o">
</parameter>
</parameters>
</function-macro>
<function-macro name="IS_UNIX_INPUT_STREAM_CLASS" c:identifier="G_IS_UNIX_INPUT_STREAM_CLASS" introspectable="0">
<parameters>