-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.rs
More file actions
5534 lines (4963 loc) · 354 KB
/
lib.rs
File metadata and controls
5534 lines (4963 loc) · 354 KB
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
// This file was generated by grust-gen 0.3.0
#![crate_name = "gio_2_0_sys"]
#![crate_type = "lib"]
extern crate gtypes;
extern crate glib_2_0_sys as glib;
extern crate gobject_2_0_sys as gobject;
extern crate libc;
use gtypes::*;
#[repr(C)]
pub enum GSocketFamily {
Invalid = 0,
Unix = glib::GLIB_SYSDEF_AF_UNIX as isize,
IPv4 = glib::GLIB_SYSDEF_AF_INET as isize,
IPv6 = glib::GLIB_SYSDEF_AF_INET6 as isize,
}
pub const G_SOCKET_FAMILY_INVALID: GSocketFamily = GSocketFamily::Invalid;
pub const G_SOCKET_FAMILY_UNIX: GSocketFamily = GSocketFamily::Unix;
pub const G_SOCKET_FAMILY_IPV4: GSocketFamily = GSocketFamily::IPv4;
pub const G_SOCKET_FAMILY_IPV6: GSocketFamily = GSocketFamily::IPv6;
#[repr(C)]
pub enum GSocketMsgFlags {
None = 0,
Oob = glib::GLIB_SYSDEF_MSG_OOB as isize,
Peek = glib::GLIB_SYSDEF_MSG_PEEK as isize,
DontRoute = glib::GLIB_SYSDEF_MSG_DONTROUTE as isize,
}
pub const G_SOCKET_MSG_NONE: guint = 0;
pub const G_SOCKET_MSG_OOB: guint = glib::GLIB_SYSDEF_MSG_OOB as guint;
pub const G_SOCKET_MSG_PEEK: guint = glib::GLIB_SYSDEF_MSG_PEEK as guint;
pub const G_SOCKET_MSG_DONTROUTE: guint = glib::GLIB_SYSDEF_MSG_DONTROUTE as guint;
pub enum GAction { }
#[repr(C)]
pub struct GActionEntry {
pub name: *const gchar,
pub activate: Option<extern "C" fn (*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
pub parameter_type: *const gchar,
pub state: *const gchar,
pub change_state: Option<extern "C" fn (*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
padding: [gsize; 3],
}
pub enum GActionGroup { }
#[repr(C)]
pub struct GActionGroupInterface {
pub g_iface: gobject::GTypeInterface,
pub has_action: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> gboolean>,
pub list_actions: Option<extern "C" fn (*mut GActionGroup) -> *mut *mut gchar>,
pub get_action_enabled: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> gboolean>,
pub get_action_parameter_type: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> *const glib::GVariantType>,
pub get_action_state_type: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> *const glib::GVariantType>,
pub get_action_state_hint: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> *mut glib::GVariant>,
pub get_action_state: Option<extern "C" fn (*mut GActionGroup, *const gchar) -> *mut glib::GVariant>,
pub change_action_state: Option<extern "C" fn (*mut GActionGroup, *const gchar, *mut glib::GVariant)>,
pub activate_action: Option<extern "C" fn (*mut GActionGroup, *const gchar, *mut glib::GVariant)>,
pub action_added: Option<extern "C" fn (*mut GActionGroup, *const gchar)>,
pub action_removed: Option<extern "C" fn (*mut GActionGroup, *const gchar)>,
pub action_enabled_changed: Option<extern "C" fn (*mut GActionGroup, *const gchar, gboolean)>,
pub action_state_changed: Option<extern "C" fn (*mut GActionGroup, *const gchar, *mut glib::GVariant)>,
pub query_action: Option<extern "C" fn (*mut GActionGroup, *const gchar, *mut gboolean, *mut *const glib::GVariantType, *mut *const glib::GVariantType, *mut *mut glib::GVariant, *mut *mut glib::GVariant) -> gboolean>,
}
#[repr(C)]
pub struct GActionInterface {
pub g_iface: gobject::GTypeInterface,
pub get_name: Option<extern "C" fn (*mut GAction) -> *const gchar>,
pub get_parameter_type: Option<extern "C" fn (*mut GAction) -> *const glib::GVariantType>,
pub get_state_type: Option<extern "C" fn (*mut GAction) -> *const glib::GVariantType>,
pub get_state_hint: Option<extern "C" fn (*mut GAction) -> *mut glib::GVariant>,
pub get_enabled: Option<extern "C" fn (*mut GAction) -> gboolean>,
pub get_state: Option<extern "C" fn (*mut GAction) -> *mut glib::GVariant>,
pub change_state: Option<extern "C" fn (*mut GAction, *mut glib::GVariant)>,
pub activate: Option<extern "C" fn (*mut GAction, *mut glib::GVariant)>,
}
pub enum GActionMap { }
#[repr(C)]
pub struct GActionMapInterface {
pub g_iface: gobject::GTypeInterface,
pub lookup_action: Option<extern "C" fn (*mut GActionMap, *const gchar) -> *mut GAction>,
pub add_action: Option<extern "C" fn (*mut GActionMap, *mut GAction)>,
pub remove_action: Option<extern "C" fn (*mut GActionMap, *const gchar)>,
}
pub enum GAppInfo { }
#[repr(C)]
pub enum GAppInfoCreateFlags {
None = 0,
NeedsTerminal = 1,
SupportsUris = 2,
SupportsStartupNotification = 4,
}
pub const G_APP_INFO_CREATE_NONE: guint = 0;
pub const G_APP_INFO_CREATE_NEEDS_TERMINAL: guint = 1;
pub const G_APP_INFO_CREATE_SUPPORTS_URIS: guint = 2;
pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: guint = 4;
#[repr(C)]
pub struct GAppInfoIface {
pub g_iface: gobject::GTypeInterface,
pub dup: Option<extern "C" fn (*mut GAppInfo) -> *mut GAppInfo>,
pub equal: Option<extern "C" fn (*mut GAppInfo, *mut GAppInfo) -> gboolean>,
pub get_id: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub get_name: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub get_description: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub get_executable: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub get_icon: Option<extern "C" fn (*mut GAppInfo) -> *mut GIcon>,
pub launch: Option<extern "C" fn (*mut GAppInfo, *mut glib::GList, *mut GAppLaunchContext, *mut *mut glib::GError) -> gboolean>,
pub supports_uris: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub supports_files: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub launch_uris: Option<extern "C" fn (*mut GAppInfo, *mut glib::GList, *mut GAppLaunchContext, *mut *mut glib::GError) -> gboolean>,
pub should_show: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub set_as_default_for_type: Option<extern "C" fn (*mut GAppInfo, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub set_as_default_for_extension: Option<extern "C" fn (*mut GAppInfo, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub add_supports_type: Option<extern "C" fn (*mut GAppInfo, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub can_remove_supports_type: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub remove_supports_type: Option<extern "C" fn (*mut GAppInfo, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub can_delete: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub do_delete: Option<extern "C" fn (*mut GAppInfo) -> gboolean>,
pub get_commandline: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub get_display_name: Option<extern "C" fn (*mut GAppInfo) -> *const gchar>,
pub set_as_last_used_for_type: Option<extern "C" fn (*mut GAppInfo, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub get_supported_types: Option<extern "C" fn (*mut GAppInfo) -> *mut *mut gchar>,
}
pub enum GAppInfoMonitor { }
#[repr(C)]
pub struct GAppLaunchContext {
pub parent_instance: gobject::GObject,
priv_: *mut GAppLaunchContextPrivate,
}
#[repr(C)]
pub struct GAppLaunchContextClass {
pub parent_class: gobject::GObjectClass,
pub get_display: Option<extern "C" fn (*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GList) -> *mut gchar>,
pub get_startup_notify_id: Option<extern "C" fn (*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GList) -> *mut gchar>,
pub launch_failed: Option<extern "C" fn (*mut GAppLaunchContext, *const gchar)>,
pub launched: Option<extern "C" fn (*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GAppLaunchContextPrivate(gpointer);
#[repr(C)]
pub struct GApplication {
parent_instance: gobject::GObject,
priv_: *mut GApplicationPrivate,
}
#[repr(C)]
pub struct GApplicationClass {
parent_class: gobject::GObjectClass,
pub startup: Option<extern "C" fn (*mut GApplication)>,
pub activate: Option<extern "C" fn (*mut GApplication)>,
pub open: Option<extern "C" fn (*mut GApplication, *mut *mut GFile, gint, *const gchar)>,
pub command_line: Option<extern "C" fn (*mut GApplication, *mut GApplicationCommandLine) -> gint>,
pub local_command_line: Option<extern "C" fn (*mut GApplication, *mut *mut *mut gchar, *mut gint) -> gboolean>,
pub before_emit: Option<extern "C" fn (*mut GApplication, *mut glib::GVariant)>,
pub after_emit: Option<extern "C" fn (*mut GApplication, *mut glib::GVariant)>,
pub add_platform_data: Option<extern "C" fn (*mut GApplication, *mut glib::GVariantBuilder)>,
pub quit_mainloop: Option<extern "C" fn (*mut GApplication)>,
pub run_mainloop: Option<extern "C" fn (*mut GApplication)>,
pub shutdown: Option<extern "C" fn (*mut GApplication)>,
pub dbus_register: Option<extern "C" fn (*mut GApplication, *mut GDBusConnection, *const gchar, *mut *mut glib::GError) -> gboolean>,
pub dbus_unregister: Option<extern "C" fn (*mut GApplication, *mut GDBusConnection, *const gchar)>,
pub handle_local_options: Option<extern "C" fn (*mut GApplication, *mut glib::GVariantDict) -> gint>,
padding: [gpointer; 8],
}
#[repr(C)]
pub struct GApplicationCommandLine {
parent_instance: gobject::GObject,
priv_: *mut GApplicationCommandLinePrivate,
}
#[repr(C)]
pub struct GApplicationCommandLineClass {
parent_class: gobject::GObjectClass,
pub print_literal: Option<extern "C" fn (*mut GApplicationCommandLine, *const gchar)>,
pub printerr_literal: Option<extern "C" fn (*mut GApplicationCommandLine, *const gchar)>,
pub get_stdin: Option<extern "C" fn (*mut GApplicationCommandLine) -> *mut GInputStream>,
padding: [gpointer; 11],
}
#[repr(C)]
pub struct GApplicationCommandLinePrivate(gpointer);
#[repr(C)]
pub enum GApplicationFlags {
FlagsNone = 0,
IsService = 1,
IsLauncher = 2,
HandlesOpen = 4,
HandlesCommandLine = 8,
SendEnvironment = 16,
NonUnique = 32,
}
pub const G_APPLICATION_FLAGS_NONE: guint = 0;
pub const G_APPLICATION_IS_SERVICE: guint = 1;
pub const G_APPLICATION_IS_LAUNCHER: guint = 2;
pub const G_APPLICATION_HANDLES_OPEN: guint = 4;
pub const G_APPLICATION_HANDLES_COMMAND_LINE: guint = 8;
pub const G_APPLICATION_SEND_ENVIRONMENT: guint = 16;
pub const G_APPLICATION_NON_UNIQUE: guint = 32;
#[repr(C)]
pub struct GApplicationPrivate(gpointer);
#[repr(C)]
pub enum GAskPasswordFlags {
NeedPassword = 1,
NeedUsername = 2,
NeedDomain = 4,
SavingSupported = 8,
AnonymousSupported = 16,
}
pub const G_ASK_PASSWORD_NEED_PASSWORD: guint = 1;
pub const G_ASK_PASSWORD_NEED_USERNAME: guint = 2;
pub const G_ASK_PASSWORD_NEED_DOMAIN: guint = 4;
pub const G_ASK_PASSWORD_SAVING_SUPPORTED: guint = 8;
pub const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: guint = 16;
pub enum GAsyncInitable { }
#[repr(C)]
pub struct GAsyncInitableIface {
pub g_iface: gobject::GTypeInterface,
pub init_async: Option<extern "C" fn (*mut GAsyncInitable, gint, *mut GCancellable, Option<GAsyncReadyCallback>, gpointer)>,
pub init_finish: Option<extern "C" fn (*mut GAsyncInitable, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean>,
}
pub type GAsyncReadyCallback = extern "C" fn (*mut gobject::GObject, *mut GAsyncResult, gpointer);
pub enum GAsyncResult { }
#[repr(C)]
pub struct GAsyncResultIface {
pub g_iface: gobject::GTypeInterface,
pub get_user_data: Option<extern "C" fn (*mut GAsyncResult) -> gpointer>,
pub get_source_object: Option<extern "C" fn (*mut GAsyncResult) -> *mut gobject::GObject>,
pub is_tagged: Option<extern "C" fn (*mut GAsyncResult, gpointer) -> gboolean>,
}
#[repr(C)]
pub struct GBufferedInputStream {
pub parent_instance: GFilterInputStream,
priv_: *mut GBufferedInputStreamPrivate,
}
#[repr(C)]
pub struct GBufferedInputStreamClass {
pub parent_class: GFilterInputStreamClass,
pub fill: Option<extern "C" fn (*mut GBufferedInputStream, gssize, *mut GCancellable, *mut *mut glib::GError) -> gssize>,
pub fill_async: Option<extern "C" fn (*mut GBufferedInputStream, gssize, gint, *mut GCancellable, Option<GAsyncReadyCallback>, gpointer)>,
pub fill_finish: Option<extern "C" fn (*mut GBufferedInputStream, *mut GAsyncResult, *mut *mut glib::GError) -> gssize>,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
pub _g_reserved5: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GBufferedInputStreamPrivate(gpointer);
#[repr(C)]
pub struct GBufferedOutputStream {
pub parent_instance: GFilterOutputStream,
pub priv_: *mut GBufferedOutputStreamPrivate,
}
#[repr(C)]
pub struct GBufferedOutputStreamClass {
pub parent_class: GFilterOutputStreamClass,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GBufferedOutputStreamPrivate(gpointer);
pub type GBusAcquiredCallback = extern "C" fn (*mut GDBusConnection, *const gchar, gpointer);
pub type GBusNameAcquiredCallback = extern "C" fn (*mut GDBusConnection, *const gchar, gpointer);
pub type GBusNameAppearedCallback = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, gpointer);
pub type GBusNameLostCallback = extern "C" fn (*mut GDBusConnection, *const gchar, gpointer);
#[repr(C)]
pub enum GBusNameOwnerFlags {
None = 0,
AllowReplacement = 1,
Replace = 2,
}
pub const G_BUS_NAME_OWNER_FLAGS_NONE: guint = 0;
pub const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: guint = 1;
pub const G_BUS_NAME_OWNER_FLAGS_REPLACE: guint = 2;
pub type GBusNameVanishedCallback = extern "C" fn (*mut GDBusConnection, *const gchar, gpointer);
#[repr(C)]
pub enum GBusNameWatcherFlags {
None = 0,
AutoStart = 1,
}
pub const G_BUS_NAME_WATCHER_FLAGS_NONE: guint = 0;
pub const G_BUS_NAME_WATCHER_FLAGS_AUTO_START: guint = 1;
#[repr(C)]
pub enum GBusType {
Starter = -1,
None = 0,
System = 1,
Session = 2,
}
pub const G_BUS_TYPE_STARTER: GBusType = GBusType::Starter;
pub const G_BUS_TYPE_NONE: GBusType = GBusType::None;
pub const G_BUS_TYPE_SYSTEM: GBusType = GBusType::System;
pub const G_BUS_TYPE_SESSION: GBusType = GBusType::Session;
pub enum GBytesIcon { }
#[repr(C)]
pub struct GCancellable {
pub parent_instance: gobject::GObject,
priv_: *mut GCancellablePrivate,
}
#[repr(C)]
pub struct GCancellableClass {
pub parent_class: gobject::GObjectClass,
pub cancelled: Option<extern "C" fn (*mut GCancellable)>,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
pub _g_reserved5: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GCancellablePrivate(gpointer);
pub type GCancellableSourceFunc = extern "C" fn (*mut GCancellable, gpointer) -> gboolean;
pub enum GCharsetConverter { }
#[repr(C)]
pub struct GCharsetConverterClass {
pub parent_class: gobject::GObjectClass,
}
pub enum GConverter { }
#[repr(C)]
pub enum GConverterFlags {
None = 0,
InputAtEnd = 1,
Flush = 2,
}
pub const G_CONVERTER_NO_FLAGS: guint = 0;
pub const G_CONVERTER_INPUT_AT_END: guint = 1;
pub const G_CONVERTER_FLUSH: guint = 2;
#[repr(C)]
pub struct GConverterIface {
pub g_iface: gobject::GTypeInterface,
pub convert: Option<extern "C" fn (*mut GConverter, *mut u8, gsize, *mut u8, gsize, GConverterFlags, *mut gsize, *mut gsize, *mut *mut glib::GError) -> GConverterResult>,
pub reset: Option<extern "C" fn (*mut GConverter)>,
}
#[repr(C)]
pub struct GConverterInputStream {
pub parent_instance: GFilterInputStream,
priv_: *mut GConverterInputStreamPrivate,
}
#[repr(C)]
pub struct GConverterInputStreamClass {
pub parent_class: GFilterInputStreamClass,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
pub _g_reserved5: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GConverterInputStreamPrivate(gpointer);
#[repr(C)]
pub struct GConverterOutputStream {
pub parent_instance: GFilterOutputStream,
priv_: *mut GConverterOutputStreamPrivate,
}
#[repr(C)]
pub struct GConverterOutputStreamClass {
pub parent_class: GFilterOutputStreamClass,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
pub _g_reserved5: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GConverterOutputStreamPrivate(gpointer);
#[repr(C)]
pub enum GConverterResult {
Error = 0,
Converted = 1,
Finished = 2,
Flushed = 3,
}
pub const G_CONVERTER_ERROR: GConverterResult = GConverterResult::Error;
pub const G_CONVERTER_CONVERTED: GConverterResult = GConverterResult::Converted;
pub const G_CONVERTER_FINISHED: GConverterResult = GConverterResult::Finished;
pub const G_CONVERTER_FLUSHED: GConverterResult = GConverterResult::Flushed;
pub enum GCredentials { }
#[repr(C)]
pub struct GCredentialsClass(gpointer);
#[repr(C)]
pub enum GCredentialsType {
Invalid = 0,
LinuxUcred = 1,
FreebsdCmsgcred = 2,
OpenbsdSockpeercred = 3,
SolarisUcred = 4,
NetbsdUnpcbid = 5,
}
pub const G_CREDENTIALS_TYPE_INVALID: GCredentialsType = GCredentialsType::Invalid;
pub const G_CREDENTIALS_TYPE_LINUX_UCRED: GCredentialsType = GCredentialsType::LinuxUcred;
pub const G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: GCredentialsType = GCredentialsType::FreebsdCmsgcred;
pub const G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: GCredentialsType = GCredentialsType::OpenbsdSockpeercred;
pub const G_CREDENTIALS_TYPE_SOLARIS_UCRED: GCredentialsType = GCredentialsType::SolarisUcred;
pub const G_CREDENTIALS_TYPE_NETBSD_UNPCBID: GCredentialsType = GCredentialsType::NetbsdUnpcbid;
pub enum GDBusActionGroup { }
#[repr(C)]
pub struct GDBusAnnotationInfo {
pub ref_count: gint,
pub key: *mut gchar,
pub value: *mut gchar,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[repr(C)]
pub struct GDBusArgInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub signature: *mut gchar,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
pub enum GDBusAuthObserver { }
#[repr(C)]
pub enum GDBusCallFlags {
None = 0,
NoAutoStart = 1,
AllowInteractiveAuthorization = 2,
}
pub const G_DBUS_CALL_FLAGS_NONE: guint = 0;
pub const G_DBUS_CALL_FLAGS_NO_AUTO_START: guint = 1;
pub const G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: guint = 2;
#[repr(C)]
pub enum GDBusCapabilityFlags {
None = 0,
UnixFdPassing = 1,
}
pub const G_DBUS_CAPABILITY_FLAGS_NONE: guint = 0;
pub const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: guint = 1;
pub enum GDBusConnection { }
#[repr(C)]
pub enum GDBusConnectionFlags {
None = 0,
AuthenticationClient = 1,
AuthenticationServer = 2,
AuthenticationAllowAnonymous = 4,
MessageBusConnection = 8,
DelayMessageProcessing = 16,
}
pub const G_DBUS_CONNECTION_FLAGS_NONE: guint = 0;
pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: guint = 1;
pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: guint = 2;
pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: guint = 4;
pub const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: guint = 8;
pub const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: guint = 16;
#[repr(C)]
pub enum GDBusError {
Failed = 0,
NoMemory = 1,
ServiceUnknown = 2,
NameHasNoOwner = 3,
NoReply = 4,
IoError = 5,
BadAddress = 6,
NotSupported = 7,
LimitsExceeded = 8,
AccessDenied = 9,
AuthFailed = 10,
NoServer = 11,
Timeout = 12,
NoNetwork = 13,
AddressInUse = 14,
Disconnected = 15,
InvalidArgs = 16,
FileNotFound = 17,
FileExists = 18,
UnknownMethod = 19,
TimedOut = 20,
MatchRuleNotFound = 21,
MatchRuleInvalid = 22,
SpawnExecFailed = 23,
SpawnForkFailed = 24,
SpawnChildExited = 25,
SpawnChildSignaled = 26,
SpawnFailed = 27,
SpawnSetupFailed = 28,
SpawnConfigInvalid = 29,
SpawnServiceInvalid = 30,
SpawnServiceNotFound = 31,
SpawnPermissionsInvalid = 32,
SpawnFileInvalid = 33,
SpawnNoMemory = 34,
UnixProcessIdUnknown = 35,
InvalidSignature = 36,
InvalidFileContent = 37,
SelinuxSecurityContextUnknown = 38,
AdtAuditDataUnknown = 39,
ObjectPathInUse = 40,
UnknownObject = 41,
UnknownInterface = 42,
UnknownProperty = 43,
PropertyReadOnly = 44,
}
pub const G_DBUS_ERROR_FAILED: GDBusError = GDBusError::Failed;
pub const G_DBUS_ERROR_NO_MEMORY: GDBusError = GDBusError::NoMemory;
pub const G_DBUS_ERROR_SERVICE_UNKNOWN: GDBusError = GDBusError::ServiceUnknown;
pub const G_DBUS_ERROR_NAME_HAS_NO_OWNER: GDBusError = GDBusError::NameHasNoOwner;
pub const G_DBUS_ERROR_NO_REPLY: GDBusError = GDBusError::NoReply;
pub const G_DBUS_ERROR_IO_ERROR: GDBusError = GDBusError::IoError;
pub const G_DBUS_ERROR_BAD_ADDRESS: GDBusError = GDBusError::BadAddress;
pub const G_DBUS_ERROR_NOT_SUPPORTED: GDBusError = GDBusError::NotSupported;
pub const G_DBUS_ERROR_LIMITS_EXCEEDED: GDBusError = GDBusError::LimitsExceeded;
pub const G_DBUS_ERROR_ACCESS_DENIED: GDBusError = GDBusError::AccessDenied;
pub const G_DBUS_ERROR_AUTH_FAILED: GDBusError = GDBusError::AuthFailed;
pub const G_DBUS_ERROR_NO_SERVER: GDBusError = GDBusError::NoServer;
pub const G_DBUS_ERROR_TIMEOUT: GDBusError = GDBusError::Timeout;
pub const G_DBUS_ERROR_NO_NETWORK: GDBusError = GDBusError::NoNetwork;
pub const G_DBUS_ERROR_ADDRESS_IN_USE: GDBusError = GDBusError::AddressInUse;
pub const G_DBUS_ERROR_DISCONNECTED: GDBusError = GDBusError::Disconnected;
pub const G_DBUS_ERROR_INVALID_ARGS: GDBusError = GDBusError::InvalidArgs;
pub const G_DBUS_ERROR_FILE_NOT_FOUND: GDBusError = GDBusError::FileNotFound;
pub const G_DBUS_ERROR_FILE_EXISTS: GDBusError = GDBusError::FileExists;
pub const G_DBUS_ERROR_UNKNOWN_METHOD: GDBusError = GDBusError::UnknownMethod;
pub const G_DBUS_ERROR_TIMED_OUT: GDBusError = GDBusError::TimedOut;
pub const G_DBUS_ERROR_MATCH_RULE_NOT_FOUND: GDBusError = GDBusError::MatchRuleNotFound;
pub const G_DBUS_ERROR_MATCH_RULE_INVALID: GDBusError = GDBusError::MatchRuleInvalid;
pub const G_DBUS_ERROR_SPAWN_EXEC_FAILED: GDBusError = GDBusError::SpawnExecFailed;
pub const G_DBUS_ERROR_SPAWN_FORK_FAILED: GDBusError = GDBusError::SpawnForkFailed;
pub const G_DBUS_ERROR_SPAWN_CHILD_EXITED: GDBusError = GDBusError::SpawnChildExited;
pub const G_DBUS_ERROR_SPAWN_CHILD_SIGNALED: GDBusError = GDBusError::SpawnChildSignaled;
pub const G_DBUS_ERROR_SPAWN_FAILED: GDBusError = GDBusError::SpawnFailed;
pub const G_DBUS_ERROR_SPAWN_SETUP_FAILED: GDBusError = GDBusError::SpawnSetupFailed;
pub const G_DBUS_ERROR_SPAWN_CONFIG_INVALID: GDBusError = GDBusError::SpawnConfigInvalid;
pub const G_DBUS_ERROR_SPAWN_SERVICE_INVALID: GDBusError = GDBusError::SpawnServiceInvalid;
pub const G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND: GDBusError = GDBusError::SpawnServiceNotFound;
pub const G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID: GDBusError = GDBusError::SpawnPermissionsInvalid;
pub const G_DBUS_ERROR_SPAWN_FILE_INVALID: GDBusError = GDBusError::SpawnFileInvalid;
pub const G_DBUS_ERROR_SPAWN_NO_MEMORY: GDBusError = GDBusError::SpawnNoMemory;
pub const G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN: GDBusError = GDBusError::UnixProcessIdUnknown;
pub const G_DBUS_ERROR_INVALID_SIGNATURE: GDBusError = GDBusError::InvalidSignature;
pub const G_DBUS_ERROR_INVALID_FILE_CONTENT: GDBusError = GDBusError::InvalidFileContent;
pub const G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN: GDBusError = GDBusError::SelinuxSecurityContextUnknown;
pub const G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN: GDBusError = GDBusError::AdtAuditDataUnknown;
pub const G_DBUS_ERROR_OBJECT_PATH_IN_USE: GDBusError = GDBusError::ObjectPathInUse;
pub const G_DBUS_ERROR_UNKNOWN_OBJECT: GDBusError = GDBusError::UnknownObject;
pub const G_DBUS_ERROR_UNKNOWN_INTERFACE: GDBusError = GDBusError::UnknownInterface;
pub const G_DBUS_ERROR_UNKNOWN_PROPERTY: GDBusError = GDBusError::UnknownProperty;
pub const G_DBUS_ERROR_PROPERTY_READ_ONLY: GDBusError = GDBusError::PropertyReadOnly;
#[repr(C)]
pub struct GDBusErrorEntry {
pub error_code: gint,
pub dbus_error_name: *const gchar,
}
pub enum GDBusInterface { }
pub type GDBusInterfaceGetPropertyFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, *const gchar, *mut *mut glib::GError, gpointer) -> *mut glib::GVariant;
#[repr(C)]
pub struct GDBusInterfaceIface {
pub parent_iface: gobject::GTypeInterface,
pub get_info: Option<extern "C" fn (*mut GDBusInterface) -> *mut GDBusInterfaceInfo>,
pub get_object: Option<extern "C" fn (*mut GDBusInterface) -> *mut GDBusObject>,
pub set_object: Option<extern "C" fn (*mut GDBusInterface, *mut GDBusObject)>,
pub dup_object: Option<extern "C" fn (*mut GDBusInterface) -> *mut GDBusObject>,
}
#[repr(C)]
pub struct GDBusInterfaceInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub methods: *mut *mut GDBusMethodInfo,
pub signals: *mut *mut GDBusSignalInfo,
pub properties: *mut *mut GDBusPropertyInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
pub type GDBusInterfaceMethodCallFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, *const gchar, *mut glib::GVariant, *mut GDBusMethodInvocation, gpointer);
pub type GDBusInterfaceSetPropertyFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, *const gchar, *mut glib::GVariant, *mut *mut glib::GError, gpointer) -> gboolean;
#[repr(C)]
pub struct GDBusInterfaceSkeleton {
parent_instance: gobject::GObject,
priv_: *mut GDBusInterfaceSkeletonPrivate,
}
#[repr(C)]
pub struct GDBusInterfaceSkeletonClass {
pub parent_class: gobject::GObjectClass,
pub get_info: Option<extern "C" fn (*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo>,
pub get_vtable: Option<extern "C" fn (*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable>,
pub get_properties: Option<extern "C" fn (*mut GDBusInterfaceSkeleton) -> *mut glib::GVariant>,
pub flush: Option<extern "C" fn (*mut GDBusInterfaceSkeleton)>,
vfunc_padding: [gpointer; 8],
pub g_authorize_method: Option<extern "C" fn (*mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean>,
signal_padding: [gpointer; 8],
}
#[repr(C)]
pub enum GDBusInterfaceSkeletonFlags {
None = 0,
HandleMethodInvocationsInThread = 1,
}
pub const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: guint = 0;
pub const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD: guint = 1;
#[repr(C)]
pub struct GDBusInterfaceSkeletonPrivate(gpointer);
#[repr(C)]
pub struct GDBusInterfaceVTable {
pub method_call: Option<GDBusInterfaceMethodCallFunc>,
pub get_property: Option<GDBusInterfaceGetPropertyFunc>,
pub set_property: Option<GDBusInterfaceSetPropertyFunc>,
padding: [gpointer; 8],
}
pub enum GDBusMenuModel { }
pub enum GDBusMessage { }
#[repr(C)]
pub enum GDBusMessageByteOrder {
BigEndian = 66,
LittleEndian = 108,
}
pub const G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: GDBusMessageByteOrder = GDBusMessageByteOrder::BigEndian;
pub const G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: GDBusMessageByteOrder = GDBusMessageByteOrder::LittleEndian;
pub type GDBusMessageFilterFunction = extern "C" fn (*mut GDBusConnection, *mut GDBusMessage, gboolean, gpointer) -> *mut GDBusMessage;
#[repr(C)]
pub enum GDBusMessageFlags {
None = 0,
NoReplyExpected = 1,
NoAutoStart = 2,
AllowInteractiveAuthorization = 4,
}
pub const G_DBUS_MESSAGE_FLAGS_NONE: guint = 0;
pub const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: guint = 1;
pub const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: guint = 2;
pub const G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: guint = 4;
#[repr(C)]
pub enum GDBusMessageHeaderField {
Invalid = 0,
Path = 1,
Interface = 2,
Member = 3,
ErrorName = 4,
ReplySerial = 5,
Destination = 6,
Sender = 7,
Signature = 8,
NumUnixFds = 9,
}
pub const G_DBUS_MESSAGE_HEADER_FIELD_INVALID: GDBusMessageHeaderField = GDBusMessageHeaderField::Invalid;
pub const G_DBUS_MESSAGE_HEADER_FIELD_PATH: GDBusMessageHeaderField = GDBusMessageHeaderField::Path;
pub const G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: GDBusMessageHeaderField = GDBusMessageHeaderField::Interface;
pub const G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: GDBusMessageHeaderField = GDBusMessageHeaderField::Member;
pub const G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: GDBusMessageHeaderField = GDBusMessageHeaderField::ErrorName;
pub const G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: GDBusMessageHeaderField = GDBusMessageHeaderField::ReplySerial;
pub const G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: GDBusMessageHeaderField = GDBusMessageHeaderField::Destination;
pub const G_DBUS_MESSAGE_HEADER_FIELD_SENDER: GDBusMessageHeaderField = GDBusMessageHeaderField::Sender;
pub const G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: GDBusMessageHeaderField = GDBusMessageHeaderField::Signature;
pub const G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: GDBusMessageHeaderField = GDBusMessageHeaderField::NumUnixFds;
#[repr(C)]
pub enum GDBusMessageType {
Invalid = 0,
MethodCall = 1,
MethodReturn = 2,
Error = 3,
Signal = 4,
}
pub const G_DBUS_MESSAGE_TYPE_INVALID: GDBusMessageType = GDBusMessageType::Invalid;
pub const G_DBUS_MESSAGE_TYPE_METHOD_CALL: GDBusMessageType = GDBusMessageType::MethodCall;
pub const G_DBUS_MESSAGE_TYPE_METHOD_RETURN: GDBusMessageType = GDBusMessageType::MethodReturn;
pub const G_DBUS_MESSAGE_TYPE_ERROR: GDBusMessageType = GDBusMessageType::Error;
pub const G_DBUS_MESSAGE_TYPE_SIGNAL: GDBusMessageType = GDBusMessageType::Signal;
#[repr(C)]
pub struct GDBusMethodInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub in_args: *mut *mut GDBusArgInfo,
pub out_args: *mut *mut GDBusArgInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
pub enum GDBusMethodInvocation { }
#[repr(C)]
pub struct GDBusNodeInfo {
pub ref_count: gint,
pub path: *mut gchar,
pub interfaces: *mut *mut GDBusInterfaceInfo,
pub nodes: *mut *mut GDBusNodeInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
pub enum GDBusObject { }
#[repr(C)]
pub struct GDBusObjectIface {
pub parent_iface: gobject::GTypeInterface,
pub get_object_path: Option<extern "C" fn (*mut GDBusObject) -> *const gchar>,
pub get_interfaces: Option<extern "C" fn (*mut GDBusObject) -> *mut glib::GList>,
pub get_interface: Option<extern "C" fn (*mut GDBusObject, *const gchar) -> *mut GDBusInterface>,
pub interface_added: Option<extern "C" fn (*mut GDBusObject, *mut GDBusInterface)>,
pub interface_removed: Option<extern "C" fn (*mut GDBusObject, *mut GDBusInterface)>,
}
pub enum GDBusObjectManager { }
#[repr(C)]
pub struct GDBusObjectManagerClient {
parent_instance: gobject::GObject,
priv_: *mut GDBusObjectManagerClientPrivate,
}
#[repr(C)]
pub struct GDBusObjectManagerClientClass {
pub parent_class: gobject::GObjectClass,
pub interface_proxy_signal: Option<extern "C" fn (*mut GDBusObjectManagerClient, *mut GDBusObjectProxy, *mut GDBusProxy, *const gchar, *const gchar, *mut glib::GVariant)>,
pub interface_proxy_properties_changed: Option<extern "C" fn (*mut GDBusObjectManagerClient, *mut GDBusObjectProxy, *mut GDBusProxy, *mut glib::GVariant, *const *const gchar)>,
padding: [gpointer; 8],
}
#[repr(C)]
pub enum GDBusObjectManagerClientFlags {
None = 0,
DoNotAutoStart = 1,
}
pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: guint = 0;
pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: guint = 1;
#[repr(C)]
pub struct GDBusObjectManagerClientPrivate(gpointer);
#[repr(C)]
pub struct GDBusObjectManagerIface {
pub parent_iface: gobject::GTypeInterface,
pub get_object_path: Option<extern "C" fn (*mut GDBusObjectManager) -> *const gchar>,
pub get_objects: Option<extern "C" fn (*mut GDBusObjectManager) -> *mut glib::GList>,
pub get_object: Option<extern "C" fn (*mut GDBusObjectManager, *const gchar) -> *mut GDBusObject>,
pub get_interface: Option<extern "C" fn (*mut GDBusObjectManager, *const gchar, *const gchar) -> *mut GDBusInterface>,
pub object_added: Option<extern "C" fn (*mut GDBusObjectManager, *mut GDBusObject)>,
pub object_removed: Option<extern "C" fn (*mut GDBusObjectManager, *mut GDBusObject)>,
pub interface_added: Option<extern "C" fn (*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface)>,
pub interface_removed: Option<extern "C" fn (*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface)>,
}
#[repr(C)]
pub struct GDBusObjectManagerServer {
parent_instance: gobject::GObject,
priv_: *mut GDBusObjectManagerServerPrivate,
}
#[repr(C)]
pub struct GDBusObjectManagerServerClass {
pub parent_class: gobject::GObjectClass,
padding: [gpointer; 8],
}
#[repr(C)]
pub struct GDBusObjectManagerServerPrivate(gpointer);
#[repr(C)]
pub struct GDBusObjectProxy {
parent_instance: gobject::GObject,
priv_: *mut GDBusObjectProxyPrivate,
}
#[repr(C)]
pub struct GDBusObjectProxyClass {
pub parent_class: gobject::GObjectClass,
padding: [gpointer; 8],
}
#[repr(C)]
pub struct GDBusObjectProxyPrivate(gpointer);
#[repr(C)]
pub struct GDBusObjectSkeleton {
parent_instance: gobject::GObject,
priv_: *mut GDBusObjectSkeletonPrivate,
}
#[repr(C)]
pub struct GDBusObjectSkeletonClass {
pub parent_class: gobject::GObjectClass,
pub authorize_method: Option<extern "C" fn (*mut GDBusObjectSkeleton, *mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean>,
padding: [gpointer; 8],
}
#[repr(C)]
pub struct GDBusObjectSkeletonPrivate(gpointer);
#[repr(C)]
pub struct GDBusPropertyInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub signature: *mut gchar,
pub flags: GDBusPropertyInfoFlags,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[repr(C)]
pub enum GDBusPropertyInfoFlags {
None = 0,
Readable = 1,
Writable = 2,
}
pub const G_DBUS_PROPERTY_INFO_FLAGS_NONE: guint = 0;
pub const G_DBUS_PROPERTY_INFO_FLAGS_READABLE: guint = 1;
pub const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: guint = 2;
#[repr(C)]
pub struct GDBusProxy {
parent_instance: gobject::GObject,
priv_: *mut GDBusProxyPrivate,
}
#[repr(C)]
pub struct GDBusProxyClass {
parent_class: gobject::GObjectClass,
pub g_properties_changed: Option<extern "C" fn (*mut GDBusProxy, *mut glib::GVariant, *const *const gchar)>,
pub g_signal: Option<extern "C" fn (*mut GDBusProxy, *const gchar, *const gchar, *mut glib::GVariant)>,
padding: [gpointer; 32],
}
#[repr(C)]
pub enum GDBusProxyFlags {
None = 0,
DoNotLoadProperties = 1,
DoNotConnectSignals = 2,
DoNotAutoStart = 4,
GetInvalidatedProperties = 8,
DoNotAutoStartAtConstruction = 16,
}
pub const G_DBUS_PROXY_FLAGS_NONE: guint = 0;
pub const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: guint = 1;
pub const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: guint = 2;
pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: guint = 4;
pub const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: guint = 8;
pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: guint = 16;
#[repr(C)]
pub struct GDBusProxyPrivate(gpointer);
pub type GDBusProxyTypeFunc = extern "C" fn (*mut GDBusObjectManagerClient, *const gchar, *const gchar, gpointer) -> GType;
#[repr(C)]
pub enum GDBusSendMessageFlags {
None = 0,
PreserveSerial = 1,
}
pub const G_DBUS_SEND_MESSAGE_FLAGS_NONE: guint = 0;
pub const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: guint = 1;
pub enum GDBusServer { }
#[repr(C)]
pub enum GDBusServerFlags {
None = 0,
RunInThread = 1,
AuthenticationAllowAnonymous = 2,
}
pub const G_DBUS_SERVER_FLAGS_NONE: guint = 0;
pub const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: guint = 1;
pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: guint = 2;
pub type GDBusSignalCallback = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, *const gchar, *mut glib::GVariant, gpointer);
#[repr(C)]
pub enum GDBusSignalFlags {
None = 0,
NoMatchRule = 1,
MatchArg0Namespace = 2,
MatchArg0Path = 4,
}
pub const G_DBUS_SIGNAL_FLAGS_NONE: guint = 0;
pub const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: guint = 1;
pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: guint = 2;
pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: guint = 4;
#[repr(C)]
pub struct GDBusSignalInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub args: *mut *mut GDBusArgInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
pub type GDBusSubtreeDispatchFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, *const gchar, gpointer, gpointer) -> *const GDBusInterfaceVTable;
pub type GDBusSubtreeEnumerateFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, gpointer) -> *mut *mut gchar;
#[repr(C)]
pub enum GDBusSubtreeFlags {
None = 0,
DispatchToUnenumeratedNodes = 1,
}
pub const G_DBUS_SUBTREE_FLAGS_NONE: guint = 0;
pub const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: guint = 1;
pub type GDBusSubtreeIntrospectFunc = extern "C" fn (*mut GDBusConnection, *const gchar, *const gchar, *const gchar, gpointer) -> *mut *mut GDBusInterfaceInfo;
#[repr(C)]
pub struct GDBusSubtreeVTable {
pub enumerate: Option<GDBusSubtreeEnumerateFunc>,
pub introspect: Option<GDBusSubtreeIntrospectFunc>,
pub dispatch: Option<GDBusSubtreeDispatchFunc>,
padding: [gpointer; 8],
}
pub const G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: &'static [u8] = b"gio-desktop-app-info-lookup\0";
#[repr(C)]
pub struct GDataInputStream {
pub parent_instance: GBufferedInputStream,
priv_: *mut GDataInputStreamPrivate,
}
#[repr(C)]
pub struct GDataInputStreamClass {
pub parent_class: GBufferedInputStreamClass,
pub _g_reserved1: Option<extern "C" fn ()>,
pub _g_reserved2: Option<extern "C" fn ()>,
pub _g_reserved3: Option<extern "C" fn ()>,
pub _g_reserved4: Option<extern "C" fn ()>,
pub _g_reserved5: Option<extern "C" fn ()>,
}
#[repr(C)]
pub struct GDataInputStreamPrivate(gpointer);
#[repr(C)]
pub struct GDataOutputStream {