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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
#![allow(non_camel_case_types, non_snake_case)]
extern crate glib_sys;
use glib_sys::{GSList, GHashTable, GString, GArray, GVariant};
pub type __int8_t = ::std::os::raw::c_char;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed1 {
pub _bindgen_data_: [u64; 16usize],
}
impl Union_Unnamed1 {
pub unsafe fn __mbstate8(&mut self)
-> *mut [::std::os::raw::c_char; 128usize] {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
pub unsafe fn _mbstateL(&mut self) -> *mut ::std::os::raw::c_longlong {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
}
impl ::std::clone::Clone for Union_Unnamed1 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Union_Unnamed1 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type __mbstate_t = Union_Unnamed1;
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Copy)]
pub struct Struct___darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __next: *mut Struct___darwin_pthread_handler_rec,
}
impl ::std::clone::Clone for Struct___darwin_pthread_handler_rec {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct___darwin_pthread_handler_rec {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_attr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_attr_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_attr_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_cond_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 40usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_cond_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_cond_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_condattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_condattr_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_condattr_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_mutex_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_mutex_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_mutex_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_mutexattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_mutexattr_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_mutexattr_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_once_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_once_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_once_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_rwlock_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 192usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_rwlock_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_rwlock_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_rwlockattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 16usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_rwlockattr_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_rwlockattr_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct__opaque_pthread_t {
pub __sig: ::std::os::raw::c_long,
pub __cleanup_stack: *mut Struct___darwin_pthread_handler_rec,
pub __opaque: [::std::os::raw::c_char; 8176usize],
}
impl ::std::clone::Clone for Struct__opaque_pthread_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__opaque_pthread_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type __darwin_pthread_attr_t = Struct__opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = Struct__opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = Struct__opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = Struct__opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = Struct__opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = Struct__opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = Struct__opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = Struct__opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut Struct__opaque_pthread_t;
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
pub type va_list = __darwin_va_list;
pub type size_t = __darwin_size_t;
pub type fpos_t = __darwin_off_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct___sbuf {
pub _base: *mut ::std::os::raw::c_uchar,
pub _size: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct___sbuf {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct___sbuf {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub enum Struct___sFILEX { }
#[repr(C)]
#[derive(Copy)]
pub struct Struct___sFILE {
pub _p: *mut ::std::os::raw::c_uchar,
pub _r: ::std::os::raw::c_int,
pub _w: ::std::os::raw::c_int,
pub _flags: ::std::os::raw::c_short,
pub _file: ::std::os::raw::c_short,
pub _bf: Struct___sbuf,
pub _lbfsize: ::std::os::raw::c_int,
pub _cookie: *mut ::std::os::raw::c_void,
pub _close: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>,
pub _read: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*mut ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub _seek: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2: fpos_t,
arg3:
::std::os::raw::c_int)
-> fpos_t>,
pub _write: ::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*const ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
pub _ub: Struct___sbuf,
pub _extra: *mut Struct___sFILEX,
pub _ur: ::std::os::raw::c_int,
pub _ubuf: [::std::os::raw::c_uchar; 3usize],
pub _nbuf: [::std::os::raw::c_uchar; 1usize],
pub _lb: Struct___sbuf,
pub _blksize: ::std::os::raw::c_int,
pub _offset: fpos_t,
}
impl ::std::clone::Clone for Struct___sFILE {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct___sFILE {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type FILE = Struct___sFILE;
pub type off_t = __darwin_off_t;
pub type ssize_t = __darwin_ssize_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_fd_set {
pub fds_bits: [__int32_t; 32usize],
}
impl ::std::clone::Clone for Struct_fd_set {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_fd_set {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type fd_set = Struct_fd_set;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_timespec {
pub tv_sec: __darwin_time_t,
pub tv_nsec: ::std::os::raw::c_long,
}
impl ::std::clone::Clone for Struct_timespec {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_timespec {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_timeval {
pub tv_sec: __darwin_time_t,
pub tv_usec: __darwin_suseconds_t,
}
impl ::std::clone::Clone for Struct_timeval {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_timeval {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type time_t = __darwin_time_t;
pub type suseconds_t = __darwin_suseconds_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_itimerval {
pub it_interval: Struct_timeval,
pub it_value: Struct_timeval,
}
impl ::std::clone::Clone for Struct_itimerval {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_itimerval {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_timezone {
pub tz_minuteswest: ::std::os::raw::c_int,
pub tz_dsttime: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_timezone {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_timezone {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_clockinfo {
pub hz: ::std::os::raw::c_int,
pub tick: ::std::os::raw::c_int,
pub tickadj: ::std::os::raw::c_int,
pub stathz: ::std::os::raw::c_int,
pub profhz: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_clockinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_clockinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type clock_t = __darwin_clock_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_tm {
pub tm_sec: ::std::os::raw::c_int,
pub tm_min: ::std::os::raw::c_int,
pub tm_hour: ::std::os::raw::c_int,
pub tm_mday: ::std::os::raw::c_int,
pub tm_mon: ::std::os::raw::c_int,
pub tm_year: ::std::os::raw::c_int,
pub tm_wday: ::std::os::raw::c_int,
pub tm_yday: ::std::os::raw::c_int,
pub tm_isdst: ::std::os::raw::c_int,
pub tm_gmtoff: ::std::os::raw::c_long,
pub tm_zone: *mut ::std::os::raw::c_char,
}
impl ::std::clone::Clone for Struct_tm {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_tm {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type int8_t = ::std::os::raw::c_char;
pub type int16_t = ::std::os::raw::c_short;
pub type int32_t = ::std::os::raw::c_int;
pub type int64_t = ::std::os::raw::c_longlong;
pub type uint8_t = ::std::os::raw::c_uchar;
pub type uint16_t = ::std::os::raw::c_ushort;
pub type uint32_t = ::std::os::raw::c_uint;
pub type uint64_t = ::std::os::raw::c_ulonglong;
pub type int_least8_t = int8_t;
pub type int_least16_t = int16_t;
pub type int_least32_t = int32_t;
pub type int_least64_t = int64_t;
pub type uint_least8_t = uint8_t;
pub type uint_least16_t = uint16_t;
pub type uint_least32_t = uint32_t;
pub type uint_least64_t = uint64_t;
pub type int_fast8_t = int8_t;
pub type int_fast16_t = int16_t;
pub type int_fast32_t = int32_t;
pub type int_fast64_t = int64_t;
pub type uint_fast8_t = uint8_t;
pub type uint_fast16_t = uint16_t;
pub type uint_fast32_t = uint32_t;
pub type uint_fast64_t = uint64_t;
pub type intptr_t = __darwin_intptr_t;
pub type uintptr_t = ::std::os::raw::c_ulong;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type wchar_t = __darwin_wchar_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed2 {
pub quot: intmax_t,
pub rem: intmax_t,
}
impl ::std::clone::Clone for Struct_Unnamed2 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed2 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type imaxdiv_t = Struct_Unnamed2;
pub type gboolean = ::std::os::raw::c_char;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed3 {
}
impl ::std::clone::Clone for Struct_Unnamed3 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed3 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed4 {
}
impl ::std::clone::Clone for Struct_Unnamed4 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed4 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed5 {
}
impl ::std::clone::Clone for Struct_Unnamed5 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed5 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed6 {
}
impl ::std::clone::Clone for Struct_Unnamed6 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed6 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed7 {
}
impl ::std::clone::Clone for Struct_Unnamed7 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed7 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type gssize = ::std::os::raw::c_ulong;
#[derive(Clone, Copy)]
#[repr(i32)]
pub enum Enum_sr_error_code {
SR_OK = 0,
SR_ERR = -1,
SR_ERR_MALLOC = -2,
SR_ERR_ARG = -3,
SR_ERR_BUG = -4,
SR_ERR_SAMPLERATE = -5,
SR_ERR_NA = -6,
SR_ERR_DEV_CLOSED = -7,
SR_ERR_TIMEOUT = -8,
SR_ERR_CHANNEL_GROUP = -9,
SR_ERR_DATA = -10,
SR_ERR_IO = -11,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_loglevel {
SR_LOG_NONE = 0,
SR_LOG_ERR = 1,
SR_LOG_WARN = 2,
SR_LOG_INFO = 3,
SR_LOG_DBG = 4,
SR_LOG_SPEW = 5,
}
pub type sr_receive_data_callback =
::std::option::Option<unsafe extern "C" fn(fd: ::std::os::raw::c_int,
revents: ::std::os::raw::c_int,
cb_data:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_datatype {
SR_T_UINT64 = 10000,
SR_T_STRING = 10001,
SR_T_BOOL = 10002,
SR_T_FLOAT = 10003,
SR_T_RATIONAL_PERIOD = 10004,
SR_T_RATIONAL_VOLT = 10005,
SR_T_KEYVALUE = 10006,
SR_T_UINT64_RANGE = 10007,
SR_T_DOUBLE_RANGE = 10008,
SR_T_INT32 = 10009,
SR_T_MQ = 10010,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_packettype {
SR_DF_HEADER = 10000,
SR_DF_END = 10001,
SR_DF_META = 10002,
SR_DF_TRIGGER = 10003,
SR_DF_LOGIC = 10004,
SR_DF_ANALOG_OLD = 10005,
SR_DF_FRAME_BEGIN = 10006,
SR_DF_FRAME_END = 10007,
SR_DF_ANALOG = 10008,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_mq {
SR_MQ_VOLTAGE = 10000,
SR_MQ_CURRENT = 10001,
SR_MQ_RESISTANCE = 10002,
SR_MQ_CAPACITANCE = 10003,
SR_MQ_TEMPERATURE = 10004,
SR_MQ_FREQUENCY = 10005,
SR_MQ_DUTY_CYCLE = 10006,
SR_MQ_CONTINUITY = 10007,
SR_MQ_PULSE_WIDTH = 10008,
SR_MQ_CONDUCTANCE = 10009,
SR_MQ_POWER = 10010,
SR_MQ_GAIN = 10011,
SR_MQ_SOUND_PRESSURE_LEVEL = 10012,
SR_MQ_CARBON_MONOXIDE = 10013,
SR_MQ_RELATIVE_HUMIDITY = 10014,
SR_MQ_TIME = 10015,
SR_MQ_WIND_SPEED = 10016,
SR_MQ_PRESSURE = 10017,
SR_MQ_PARALLEL_INDUCTANCE = 10018,
SR_MQ_PARALLEL_CAPACITANCE = 10019,
SR_MQ_PARALLEL_RESISTANCE = 10020,
SR_MQ_SERIES_INDUCTANCE = 10021,
SR_MQ_SERIES_CAPACITANCE = 10022,
SR_MQ_SERIES_RESISTANCE = 10023,
SR_MQ_DISSIPATION_FACTOR = 10024,
SR_MQ_QUALITY_FACTOR = 10025,
SR_MQ_PHASE_ANGLE = 10026,
SR_MQ_DIFFERENCE = 10027,
SR_MQ_COUNT = 10028,
SR_MQ_POWER_FACTOR = 10029,
SR_MQ_APPARENT_POWER = 10030,
SR_MQ_MASS = 10031,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_unit {
SR_UNIT_VOLT = 10000,
SR_UNIT_AMPERE = 10001,
SR_UNIT_OHM = 10002,
SR_UNIT_FARAD = 10003,
SR_UNIT_KELVIN = 10004,
SR_UNIT_CELSIUS = 10005,
SR_UNIT_FAHRENHEIT = 10006,
SR_UNIT_HERTZ = 10007,
SR_UNIT_PERCENTAGE = 10008,
SR_UNIT_BOOLEAN = 10009,
SR_UNIT_SECOND = 10010,
SR_UNIT_SIEMENS = 10011,
SR_UNIT_DECIBEL_MW = 10012,
SR_UNIT_DECIBEL_VOLT = 10013,
SR_UNIT_UNITLESS = 10014,
SR_UNIT_DECIBEL_SPL = 10015,
SR_UNIT_CONCENTRATION = 10016,
SR_UNIT_REVOLUTIONS_PER_MINUTE = 10017,
SR_UNIT_VOLT_AMPERE = 10018,
SR_UNIT_WATT = 10019,
SR_UNIT_WATT_HOUR = 10020,
SR_UNIT_METER_SECOND = 10021,
SR_UNIT_HECTOPASCAL = 10022,
SR_UNIT_HUMIDITY_293K = 10023,
SR_UNIT_DEGREE = 10024,
SR_UNIT_HENRY = 10025,
SR_UNIT_GRAM = 10026,
SR_UNIT_CARAT = 10027,
SR_UNIT_OUNCE = 10028,
SR_UNIT_TROY_OUNCE = 10029,
SR_UNIT_POUND = 10030,
SR_UNIT_PENNYWEIGHT = 10031,
SR_UNIT_GRAIN = 10032,
SR_UNIT_TAEL = 10033,
SR_UNIT_MOMME = 10034,
SR_UNIT_TOLA = 10035,
SR_UNIT_PIECE = 10036,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_mqflag {
SR_MQFLAG_AC = 1,
SR_MQFLAG_DC = 2,
SR_MQFLAG_RMS = 4,
SR_MQFLAG_DIODE = 8,
SR_MQFLAG_HOLD = 16,
SR_MQFLAG_MAX = 32,
SR_MQFLAG_MIN = 64,
SR_MQFLAG_AUTORANGE = 128,
SR_MQFLAG_RELATIVE = 256,
SR_MQFLAG_SPL_FREQ_WEIGHT_A = 512,
SR_MQFLAG_SPL_FREQ_WEIGHT_C = 1024,
SR_MQFLAG_SPL_FREQ_WEIGHT_Z = 2048,
SR_MQFLAG_SPL_FREQ_WEIGHT_FLAT = 4096,
SR_MQFLAG_SPL_TIME_WEIGHT_S = 8192,
SR_MQFLAG_SPL_TIME_WEIGHT_F = 16384,
SR_MQFLAG_SPL_LAT = 32768,
SR_MQFLAG_SPL_PCT_OVER_ALARM = 65536,
SR_MQFLAG_DURATION = 131072,
SR_MQFLAG_AVG = 262144,
SR_MQFLAG_REFERENCE = 524288,
SR_MQFLAG_UNSTABLE = 1048576,
SR_MQFLAG_FOUR_WIRE = 2097152,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_trigger_matches {
SR_TRIGGER_ZERO = 1,
SR_TRIGGER_ONE = 2,
SR_TRIGGER_RISING = 3,
SR_TRIGGER_FALLING = 4,
SR_TRIGGER_EDGE = 5,
SR_TRIGGER_OVER = 6,
SR_TRIGGER_UNDER = 7,
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_trigger {
pub name: *mut ::std::os::raw::c_char,
pub stages: *mut GSList,
}
impl ::std::clone::Clone for Struct_sr_trigger {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_trigger {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_trigger_stage {
pub stage: ::std::os::raw::c_int,
pub matches: *mut GSList,
}
impl ::std::clone::Clone for Struct_sr_trigger_stage {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_trigger_stage {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_trigger_match {
pub channel: *mut Struct_sr_channel,
pub _match: ::std::os::raw::c_int,
pub value: ::std::os::raw::c_float,
}
impl ::std::clone::Clone for Struct_sr_trigger_match {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_trigger_match {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub enum Struct_sr_context { }
pub enum Struct_sr_session { }
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_rational {
pub p: int64_t,
pub q: uint64_t,
}
impl ::std::clone::Clone for Struct_sr_rational {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_rational {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_packet {
pub _type: uint16_t,
pub payload: *const ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct_sr_datafeed_packet {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_packet {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_header {
pub feed_version: ::std::os::raw::c_int,
pub starttime: Struct_timeval,
}
impl ::std::clone::Clone for Struct_sr_datafeed_header {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_header {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_meta {
pub config: *mut GSList,
}
impl ::std::clone::Clone for Struct_sr_datafeed_meta {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_meta {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_logic {
pub length: uint64_t,
pub unitsize: uint16_t,
pub data: *mut ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct_sr_datafeed_logic {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_logic {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_analog_old {
pub channels: *mut GSList,
pub num_samples: ::std::os::raw::c_int,
pub mq: ::std::os::raw::c_int,
pub unit: ::std::os::raw::c_int,
pub mqflags: uint64_t,
pub data: *mut ::std::os::raw::c_float,
}
impl ::std::clone::Clone for Struct_sr_datafeed_analog_old {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_analog_old {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_datafeed_analog {
pub data: *mut ::std::os::raw::c_void,
pub num_samples: uint32_t,
pub encoding: *mut Struct_sr_analog_encoding,
pub meaning: *mut Struct_sr_analog_meaning,
pub spec: *mut Struct_sr_analog_spec,
}
impl ::std::clone::Clone for Struct_sr_datafeed_analog {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_datafeed_analog {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_analog_encoding {
pub unitsize: uint8_t,
pub is_signed: gboolean,
pub is_float: gboolean,
pub is_bigendian: gboolean,
pub digits: uint8_t,
pub is_digits_decimal: gboolean,
pub scale: Struct_sr_rational,
pub offset: Struct_sr_rational,
}
impl ::std::clone::Clone for Struct_sr_analog_encoding {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_analog_encoding {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_analog_meaning {
pub mq: Enum_sr_mq,
pub unit: Enum_sr_unit,
pub mqflags: Enum_sr_mqflag,
pub channels: *mut GSList,
}
impl ::std::clone::Clone for Struct_sr_analog_meaning {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_analog_meaning {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_analog_spec {
pub spec_digits: uint8_t,
}
impl ::std::clone::Clone for Struct_sr_analog_spec {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_analog_spec {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_option {
pub id: *const ::std::os::raw::c_char,
pub name: *const ::std::os::raw::c_char,
pub desc: *const ::std::os::raw::c_char,
pub def: *mut GVariant,
pub values: *mut GSList,
}
impl ::std::clone::Clone for Struct_sr_option {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_option {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_resource_type { SR_RESOURCE_FIRMWARE = 1, }
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_resource {
pub size: uint64_t,
pub handle: *mut ::std::os::raw::c_void,
pub _type: ::std::os::raw::c_int,
}
impl ::std::clone::Clone for Struct_sr_resource {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_resource {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_output_flag { SR_OUTPUT_INTERNAL_IO_HANDLING = 1, }
pub enum Struct_sr_input { }
pub enum Struct_sr_input_module { }
pub enum Struct_sr_output { }
pub enum Struct_sr_output_module { }
pub enum Struct_sr_transform { }
pub enum Struct_sr_transform_module { }
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_channeltype {
SR_CHANNEL_LOGIC = 10000,
SR_CHANNEL_ANALOG = 10001,
}
pub enum Struct_sr_dev_inst { }
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_channel {
pub sdi: *mut Struct_sr_dev_inst,
pub index: ::std::os::raw::c_int,
pub _type: ::std::os::raw::c_int,
pub enabled: gboolean,
pub name: *mut ::std::os::raw::c_char,
pub _priv: *mut ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct_sr_channel {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_channel {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_channel_group {
pub name: *mut ::std::os::raw::c_char,
pub channels: *mut GSList,
pub _priv: *mut ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct_sr_channel_group {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_channel_group {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_config {
pub key: uint32_t,
pub data: *mut GVariant,
}
impl ::std::clone::Clone for Struct_sr_config {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_config {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_keytype {
SR_KEY_CONFIG = 0,
SR_KEY_MQ = 1,
SR_KEY_MQFLAGS = 2,
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_key_info {
pub key: uint32_t,
pub datatype: ::std::os::raw::c_int,
pub id: *const ::std::os::raw::c_char,
pub name: *const ::std::os::raw::c_char,
pub description: *const ::std::os::raw::c_char,
}
impl ::std::clone::Clone for Struct_sr_key_info {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_key_info {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[derive(Clone, Copy)]
#[repr(i32)]
pub enum Enum_sr_configcap {
SR_CONF_GET = -2147483648,
SR_CONF_SET = 1073741824,
SR_CONF_LIST = 536870912,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_configkey {
SR_CONF_LOGIC_ANALYZER = 10000,
SR_CONF_OSCILLOSCOPE = 10001,
SR_CONF_MULTIMETER = 10002,
SR_CONF_DEMO_DEV = 10003,
SR_CONF_SOUNDLEVELMETER = 10004,
SR_CONF_THERMOMETER = 10005,
SR_CONF_HYGROMETER = 10006,
SR_CONF_ENERGYMETER = 10007,
SR_CONF_DEMODULATOR = 10008,
SR_CONF_POWER_SUPPLY = 10009,
SR_CONF_LCRMETER = 10010,
SR_CONF_ELECTRONIC_LOAD = 10011,
SR_CONF_SCALE = 10012,
SR_CONF_CONN = 20000,
SR_CONF_SERIALCOMM = 20001,
SR_CONF_MODBUSADDR = 20002,
SR_CONF_SAMPLERATE = 30000,
SR_CONF_CAPTURE_RATIO = 30001,
SR_CONF_PATTERN_MODE = 30002,
SR_CONF_RLE = 30003,
SR_CONF_TRIGGER_SLOPE = 30004,
SR_CONF_AVERAGING = 30005,
SR_CONF_AVG_SAMPLES = 30006,
SR_CONF_TRIGGER_SOURCE = 30007,
SR_CONF_HORIZ_TRIGGERPOS = 30008,
SR_CONF_BUFFERSIZE = 30009,
SR_CONF_TIMEBASE = 30010,
SR_CONF_FILTER = 30011,
SR_CONF_VDIV = 30012,
SR_CONF_COUPLING = 30013,
SR_CONF_TRIGGER_MATCH = 30014,
SR_CONF_SAMPLE_INTERVAL = 30015,
SR_CONF_NUM_HDIV = 30016,
SR_CONF_NUM_VDIV = 30017,
SR_CONF_SPL_WEIGHT_FREQ = 30018,
SR_CONF_SPL_WEIGHT_TIME = 30019,
SR_CONF_SPL_MEASUREMENT_RANGE = 30020,
SR_CONF_HOLD_MAX = 30021,
SR_CONF_HOLD_MIN = 30022,
SR_CONF_VOLTAGE_THRESHOLD = 30023,
SR_CONF_EXTERNAL_CLOCK = 30024,
SR_CONF_SWAP = 30025,
SR_CONF_CENTER_FREQUENCY = 30026,
SR_CONF_NUM_LOGIC_CHANNELS = 30027,
SR_CONF_NUM_ANALOG_CHANNELS = 30028,
SR_CONF_VOLTAGE = 30029,
SR_CONF_VOLTAGE_TARGET = 30030,
SR_CONF_CURRENT = 30031,
SR_CONF_CURRENT_LIMIT = 30032,
SR_CONF_ENABLED = 30033,
SR_CONF_CHANNEL_CONFIG = 30034,
SR_CONF_OVER_VOLTAGE_PROTECTION_ENABLED = 30035,
SR_CONF_OVER_VOLTAGE_PROTECTION_ACTIVE = 30036,
SR_CONF_OVER_VOLTAGE_PROTECTION_THRESHOLD = 30037,
SR_CONF_OVER_CURRENT_PROTECTION_ENABLED = 30038,
SR_CONF_OVER_CURRENT_PROTECTION_ACTIVE = 30039,
SR_CONF_OVER_CURRENT_PROTECTION_THRESHOLD = 30040,
SR_CONF_CLOCK_EDGE = 30041,
SR_CONF_AMPLITUDE = 30042,
SR_CONF_REGULATION = 30043,
SR_CONF_OVER_TEMPERATURE_PROTECTION = 30044,
SR_CONF_OUTPUT_FREQUENCY = 30045,
SR_CONF_OUTPUT_FREQUENCY_TARGET = 30046,
SR_CONF_MEASURED_QUANTITY = 30047,
SR_CONF_EQUIV_CIRCUIT_MODEL = 30048,
SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE = 30049,
SR_CONF_UNDER_VOLTAGE_CONDITION = 30050,
SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE = 30051,
SR_CONF_SESSIONFILE = 40000,
SR_CONF_CAPTUREFILE = 40001,
SR_CONF_CAPTURE_UNITSIZE = 40002,
SR_CONF_POWER_OFF = 40003,
SR_CONF_DATA_SOURCE = 40004,
SR_CONF_PROBE_FACTOR = 40005,
SR_CONF_ADC_POWERLINE_CYCLES = 40006,
SR_CONF_LIMIT_MSEC = 50000,
SR_CONF_LIMIT_SAMPLES = 50001,
SR_CONF_LIMIT_FRAMES = 50002,
SR_CONF_CONTINUOUS = 50003,
SR_CONF_DATALOG = 50004,
SR_CONF_DEVICE_MODE = 50005,
SR_CONF_TEST_MODE = 50006,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_dev_inst_type {
SR_INST_USB = 10000,
SR_INST_SERIAL = 10001,
SR_INST_SCPI = 10002,
SR_INST_USER = 10003,
SR_INST_MODBUS = 10004,
}
#[derive(Clone, Copy)]
#[repr(u32)]
pub enum Enum_sr_dev_inst_status {
SR_ST_NOT_FOUND = 10000,
SR_ST_INITIALIZING = 10001,
SR_ST_INACTIVE = 10002,
SR_ST_ACTIVE = 10003,
SR_ST_STOPPING = 10004,
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_dev_driver {
pub name: *const ::std::os::raw::c_char,
pub longname: *const ::std::os::raw::c_char,
pub api_version: ::std::os::raw::c_int,
pub init: ::std::option::Option<unsafe extern "C" fn(driver:
*mut Struct_sr_dev_driver,
sr_ctx:
*mut Struct_sr_context)
-> ::std::os::raw::c_int>,
pub cleanup: ::std::option::Option<unsafe extern "C" fn(driver:
*const Struct_sr_dev_driver)
-> ::std::os::raw::c_int>,
pub scan: ::std::option::Option<unsafe extern "C" fn(driver:
*mut Struct_sr_dev_driver,
options: *mut GSList)
-> *mut GSList>,
pub dev_list: ::std::option::Option<unsafe extern "C" fn(driver:
*const Struct_sr_dev_driver)
-> *mut GSList>,
pub dev_clear: ::std::option::Option<unsafe extern "C" fn(driver:
*const Struct_sr_dev_driver)
-> ::std::os::raw::c_int>,
pub config_get: ::std::option::Option<unsafe extern "C" fn(key: uint32_t,
data:
*mut *mut GVariant,
sdi:
*const Struct_sr_dev_inst,
cg:
*const Struct_sr_channel_group)
-> ::std::os::raw::c_int>,
pub config_set: ::std::option::Option<unsafe extern "C" fn(key: uint32_t,
data:
*mut GVariant,
sdi:
*const Struct_sr_dev_inst,
cg:
*const Struct_sr_channel_group)
-> ::std::os::raw::c_int>,
pub config_channel_set: ::std::option::Option<unsafe extern "C" fn(sdi:
*const Struct_sr_dev_inst,
ch:
*mut Struct_sr_channel,
changes:
::std::os::raw::c_uint)
->
::std::os::raw::c_int>,
pub config_commit: ::std::option::Option<unsafe extern "C" fn(sdi:
*const Struct_sr_dev_inst)
-> ::std::os::raw::c_int>,
pub config_list: ::std::option::Option<unsafe extern "C" fn(key: uint32_t,
data:
*mut *mut GVariant,
sdi:
*const Struct_sr_dev_inst,
cg:
*const Struct_sr_channel_group)
-> ::std::os::raw::c_int>,
pub dev_open: ::std::option::Option<unsafe extern "C" fn(sdi:
*mut Struct_sr_dev_inst)
-> ::std::os::raw::c_int>,
pub dev_close: ::std::option::Option<unsafe extern "C" fn(sdi:
*mut Struct_sr_dev_inst)
-> ::std::os::raw::c_int>,
pub dev_acquisition_start: ::std::option::Option<unsafe extern "C" fn(sdi:
*const Struct_sr_dev_inst)
->
::std::os::raw::c_int>,
pub dev_acquisition_stop: ::std::option::Option<unsafe extern "C" fn(sdi:
*mut Struct_sr_dev_inst)
->
::std::os::raw::c_int>,
pub context: *mut ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct_sr_dev_driver {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_dev_driver {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sr_serial_port {
pub name: *mut ::std::os::raw::c_char,
pub description: *mut ::std::os::raw::c_char,
}
impl ::std::clone::Clone for Struct_sr_serial_port {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sr_serial_port {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type sr_log_callback =
::std::option::Option<unsafe extern "C" fn(cb_data:
*mut ::std::os::raw::c_void,
loglevel:
::std::os::raw::c_int,
format:
*const ::std::os::raw::c_char,
args: va_list)
-> ::std::os::raw::c_int>;
pub type sr_session_stopped_callback =
::std::option::Option<unsafe extern "C" fn(data:
*mut ::std::os::raw::c_void)>;
pub type sr_datafeed_callback =
::std::option::Option<unsafe extern "C" fn(sdi: *const Struct_sr_dev_inst,
packet:
*const Struct_sr_datafeed_packet,
cb_data:
*mut ::std::os::raw::c_void)>;
pub type sr_resource_open_callback =
::std::option::Option<unsafe extern "C" fn(res: *mut Struct_sr_resource,
name:
*const ::std::os::raw::c_char,
cb_data:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type sr_resource_close_callback =
::std::option::Option<unsafe extern "C" fn(res: *mut Struct_sr_resource,
cb_data:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
pub type sr_resource_read_callback =
::std::option::Option<unsafe extern "C" fn(res: *const Struct_sr_resource,
buf:
*mut ::std::os::raw::c_void,
count: size_t,
cb_data:
*mut ::std::os::raw::c_void)
-> gssize>;
pub type __builtin_va_list = [__va_list_tag; 1usize];
pub type __va_list_tag = Struct___va_list_tag;
#[repr(C)]
#[derive(Copy)]
pub struct Struct___va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
impl ::std::clone::Clone for Struct___va_list_tag {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct___va_list_tag {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
extern "C" {
pub static mut __stdinp: *mut FILE;
pub static mut __stdoutp: *mut FILE;
pub static mut __stderrp: *mut FILE;
pub static sys_nerr: ::std::os::raw::c_int;
pub static mut sys_errlist: *const *const ::std::os::raw::c_char;
pub static mut tzname: *mut *mut ::std::os::raw::c_char;
pub static mut getdate_err: ::std::os::raw::c_int;
pub static mut timezone: ::std::os::raw::c_long;
pub static mut daylight: ::std::os::raw::c_int;
}
extern "C" {
pub fn renameat(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn clearerr(arg1: *mut FILE);
pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t)
-> ::std::os::raw::c_int;
pub fn fgets(arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int, arg3: *mut FILE)
-> *mut ::std::os::raw::c_char;
pub fn fopen(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char) -> *mut FILE;
pub fn fprintf(arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn fread(arg1: *mut ::std::os::raw::c_void, arg2: size_t,
arg3: size_t, arg4: *mut FILE) -> size_t;
pub fn freopen(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, arg3: *mut FILE)
-> *mut FILE;
pub fn fscanf(arg1: *mut FILE, arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn fseek(arg1: *mut FILE, arg2: ::std::os::raw::c_long,
arg3: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t)
-> ::std::os::raw::c_int;
pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long;
pub fn fwrite(arg1: *const ::std::os::raw::c_void, arg2: size_t,
arg3: size_t, arg4: *mut FILE) -> size_t;
pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn getchar() -> ::std::os::raw::c_int;
pub fn gets(arg1: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn perror(arg1: *const ::std::os::raw::c_char);
pub fn printf(arg1: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
pub fn remove(arg1: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn rename(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn rewind(arg1: *mut FILE);
pub fn scanf(arg1: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char);
pub fn setvbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int, arg4: size_t)
-> ::std::os::raw::c_int;
pub fn sprintf(arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn sscanf(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn tmpfile() -> *mut FILE;
pub fn tmpnam(arg1: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn vfprintf(arg1: *mut FILE, arg2: *const ::std::os::raw::c_char,
arg3: va_list) -> ::std::os::raw::c_int;
pub fn vprintf(arg1: *const ::std::os::raw::c_char, arg2: va_list)
-> ::std::os::raw::c_int;
pub fn vsprintf(arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, arg3: va_list)
-> ::std::os::raw::c_int;
pub fn ctermid(arg1: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn fdopen(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char) -> *mut FILE;
pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn popen(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char) -> *mut FILE;
pub fn __srget(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn __svfscanf(arg1: *mut FILE, arg2: *const ::std::os::raw::c_char,
arg3: va_list) -> ::std::os::raw::c_int;
pub fn __swbuf(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn __sputc(_c: ::std::os::raw::c_int, _p: *mut FILE)
-> ::std::os::raw::c_int;
pub fn flockfile(arg1: *mut FILE);
pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn funlockfile(arg1: *mut FILE);
pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn getchar_unlocked() -> ::std::os::raw::c_int;
pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn putchar_unlocked(arg1: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE)
-> ::std::os::raw::c_int;
pub fn tempnam(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn fseeko(arg1: *mut FILE, arg2: off_t, arg3: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
pub fn ftello(arg1: *mut FILE) -> off_t;
pub fn snprintf(arg1: *mut ::std::os::raw::c_char, arg2: size_t,
arg3: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn vfscanf(arg1: *mut FILE, arg2: *const ::std::os::raw::c_char,
arg3: va_list) -> ::std::os::raw::c_int;
pub fn vscanf(arg1: *const ::std::os::raw::c_char, arg2: va_list)
-> ::std::os::raw::c_int;
pub fn vsnprintf(arg1: *mut ::std::os::raw::c_char, arg2: size_t,
arg3: *const ::std::os::raw::c_char, arg4: va_list)
-> ::std::os::raw::c_int;
pub fn vsscanf(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, arg3: va_list)
-> ::std::os::raw::c_int;
pub fn dprintf(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn vdprintf(arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char, arg3: va_list)
-> ::std::os::raw::c_int;
pub fn getdelim(arg1: *mut *mut ::std::os::raw::c_char, arg2: *mut size_t,
arg3: ::std::os::raw::c_int, arg4: *mut FILE) -> ssize_t;
pub fn getline(arg1: *mut *mut ::std::os::raw::c_char, arg2: *mut size_t,
arg3: *mut FILE) -> ssize_t;
pub fn asprintf(arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn ctermid_r(arg1: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn fgetln(arg1: *mut FILE, arg2: *mut size_t)
-> *mut ::std::os::raw::c_char;
pub fn fmtcheck(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char)
-> *const ::std::os::raw::c_char;
pub fn fpurge(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn setbuffer(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int);
pub fn setlinebuf(arg1: *mut FILE) -> ::std::os::raw::c_int;
pub fn vasprintf(arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, arg3: va_list)
-> ::std::os::raw::c_int;
pub fn zopen(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int) -> *mut FILE;
pub fn funopen(arg1: *const ::std::os::raw::c_void,
arg2:
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*mut ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
arg3:
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
*const ::std::os::raw::c_char,
arg3:
::std::os::raw::c_int)
-> ::std::os::raw::c_int>,
arg4:
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void,
arg2:
fpos_t,
arg3:
::std::os::raw::c_int)
-> fpos_t>,
arg5:
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>)
-> *mut FILE;
pub fn __sprintf_chk(arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int, arg3: size_t,
arg4: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn __snprintf_chk(arg1: *mut ::std::os::raw::c_char, arg2: size_t,
arg3: ::std::os::raw::c_int, arg4: size_t,
arg5: *const ::std::os::raw::c_char, ...)
-> ::std::os::raw::c_int;
pub fn __vsprintf_chk(arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int, arg3: size_t,
arg4: *const ::std::os::raw::c_char, arg5: va_list)
-> ::std::os::raw::c_int;
pub fn __vsnprintf_chk(arg1: *mut ::std::os::raw::c_char, arg2: size_t,
arg3: ::std::os::raw::c_int, arg4: size_t,
arg5: *const ::std::os::raw::c_char, arg6: va_list)
-> ::std::os::raw::c_int;
pub fn asctime(arg1: *const Struct_tm) -> *mut ::std::os::raw::c_char;
pub fn clock() -> clock_t;
pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char;
pub fn difftime(arg1: time_t, arg2: time_t) -> ::std::os::raw::c_double;
pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut Struct_tm;
pub fn gmtime(arg1: *const time_t) -> *mut Struct_tm;
pub fn localtime(arg1: *const time_t) -> *mut Struct_tm;
pub fn mktime(arg1: *mut Struct_tm) -> time_t;
pub fn strftime(arg1: *mut ::std::os::raw::c_char, arg2: size_t,
arg3: *const ::std::os::raw::c_char,
arg4: *const Struct_tm) -> size_t;
pub fn strptime(arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char, arg3: *mut Struct_tm)
-> *mut ::std::os::raw::c_char;
pub fn time(arg1: *mut time_t) -> time_t;
pub fn tzset();
pub fn asctime_r(arg1: *const Struct_tm,
arg2: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn ctime_r(arg1: *const time_t, arg2: *mut ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn gmtime_r(arg1: *const time_t, arg2: *mut Struct_tm)
-> *mut Struct_tm;
pub fn localtime_r(arg1: *const time_t, arg2: *mut Struct_tm)
-> *mut Struct_tm;
pub fn posix2time(arg1: time_t) -> time_t;
pub fn tzsetwall();
pub fn time2posix(arg1: time_t) -> time_t;
pub fn timelocal(arg1: *mut Struct_tm) -> time_t;
pub fn timegm(arg1: *mut Struct_tm) -> time_t;
pub fn nanosleep(arg1: *const Struct_timespec, arg2: *mut Struct_timespec)
-> ::std::os::raw::c_int;
pub fn adjtime(arg1: *const Struct_timeval, arg2: *mut Struct_timeval)
-> ::std::os::raw::c_int;
pub fn futimes(arg1: ::std::os::raw::c_int, arg2: *const Struct_timeval)
-> ::std::os::raw::c_int;
pub fn lutimes(arg1: *const ::std::os::raw::c_char,
arg2: *const Struct_timeval) -> ::std::os::raw::c_int;
pub fn settimeofday(arg1: *const Struct_timeval,
arg2: *const Struct_timezone)
-> ::std::os::raw::c_int;
pub fn getitimer(arg1: ::std::os::raw::c_int, arg2: *mut Struct_itimerval)
-> ::std::os::raw::c_int;
pub fn gettimeofday(arg1: *mut Struct_timeval,
arg2: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
pub fn select(arg1: ::std::os::raw::c_int, arg2: *mut fd_set,
arg3: *mut fd_set, arg4: *mut fd_set,
arg5: *mut Struct_timeval) -> ::std::os::raw::c_int;
pub fn setitimer(arg1: ::std::os::raw::c_int,
arg2: *const Struct_itimerval,
arg3: *mut Struct_itimerval) -> ::std::os::raw::c_int;
pub fn utimes(arg1: *const ::std::os::raw::c_char,
arg2: *const Struct_timeval) -> ::std::os::raw::c_int;
pub fn imaxabs(j: intmax_t) -> intmax_t;
pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
pub fn strtoimax(__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int) -> intmax_t;
pub fn strtoumax(__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int) -> uintmax_t;
pub fn wcstoimax(__nptr: *const wchar_t, __endptr: *mut *mut wchar_t,
__base: ::std::os::raw::c_int) -> intmax_t;
pub fn wcstoumax(__nptr: *const wchar_t, __endptr: *mut *mut wchar_t,
__base: ::std::os::raw::c_int) -> uintmax_t;
pub fn sr_analog_to_float(analog: *const Struct_sr_datafeed_analog,
buf: *mut ::std::os::raw::c_float)
-> ::std::os::raw::c_int;
pub fn sr_analog_unit_to_string(analog: *const Struct_sr_datafeed_analog,
result: *mut *mut ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn sr_rational_set(r: *mut Struct_sr_rational, p: int64_t,
q: uint64_t);
pub fn sr_init(ctx: *mut *mut Struct_sr_context) -> ::std::os::raw::c_int;
pub fn sr_exit(ctx: *mut Struct_sr_context) -> ::std::os::raw::c_int;
pub fn sr_log_loglevel_set(loglevel: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
pub fn sr_log_loglevel_get() -> ::std::os::raw::c_int;
pub fn sr_log_callback_set(cb: sr_log_callback,
cb_data: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
pub fn sr_log_callback_set_default() -> ::std::os::raw::c_int;
pub fn sr_dev_channel_name_set(channel: *mut Struct_sr_channel,
name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn sr_dev_channel_enable(channel: *mut Struct_sr_channel,
state: gboolean) -> ::std::os::raw::c_int;
pub fn sr_dev_has_option(sdi: *const Struct_sr_dev_inst,
key: ::std::os::raw::c_int) -> gboolean;
pub fn sr_dev_config_capabilities_list(sdi: *const Struct_sr_dev_inst,
cg: *const Struct_sr_channel_group,
key: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
pub fn sr_dev_options(driver: *const Struct_sr_dev_driver,
sdi: *const Struct_sr_dev_inst,
cg: *const Struct_sr_channel_group) -> *mut GArray;
pub fn sr_dev_list(driver: *const Struct_sr_dev_driver) -> *mut GSList;
pub fn sr_dev_clear(driver: *const Struct_sr_dev_driver)
-> ::std::os::raw::c_int;
pub fn sr_dev_open(sdi: *mut Struct_sr_dev_inst) -> ::std::os::raw::c_int;
pub fn sr_dev_close(sdi: *mut Struct_sr_dev_inst)
-> ::std::os::raw::c_int;
pub fn sr_dev_inst_driver_get(sdi: *const Struct_sr_dev_inst)
-> *mut Struct_sr_dev_driver;
pub fn sr_dev_inst_vendor_get(sdi: *const Struct_sr_dev_inst)
-> *const ::std::os::raw::c_char;
pub fn sr_dev_inst_model_get(sdi: *const Struct_sr_dev_inst)
-> *const ::std::os::raw::c_char;
pub fn sr_dev_inst_version_get(sdi: *const Struct_sr_dev_inst)
-> *const ::std::os::raw::c_char;
pub fn sr_dev_inst_sernum_get(sdi: *const Struct_sr_dev_inst)
-> *const ::std::os::raw::c_char;
pub fn sr_dev_inst_connid_get(sdi: *const Struct_sr_dev_inst)
-> *const ::std::os::raw::c_char;
pub fn sr_dev_inst_channels_get(sdi: *const Struct_sr_dev_inst)
-> *mut GSList;
pub fn sr_dev_inst_channel_groups_get(sdi: *const Struct_sr_dev_inst)
-> *mut GSList;
pub fn sr_dev_inst_user_new(vendor: *const ::std::os::raw::c_char,
model: *const ::std::os::raw::c_char,
version: *const ::std::os::raw::c_char)
-> *mut Struct_sr_dev_inst;
pub fn sr_dev_inst_channel_add(sdi: *mut Struct_sr_dev_inst,
index: ::std::os::raw::c_int,
_type: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
pub fn sr_driver_list(ctx: *const Struct_sr_context)
-> *mut *mut Struct_sr_dev_driver;
pub fn sr_driver_init(ctx: *mut Struct_sr_context,
driver: *mut Struct_sr_dev_driver)
-> ::std::os::raw::c_int;
pub fn sr_driver_scan_options_list(driver: *const Struct_sr_dev_driver)
-> *mut GArray;
pub fn sr_driver_scan(driver: *mut Struct_sr_dev_driver,
options: *mut GSList) -> *mut GSList;
pub fn sr_config_get(driver: *const Struct_sr_dev_driver,
sdi: *const Struct_sr_dev_inst,
cg: *const Struct_sr_channel_group, key: uint32_t,
data: *mut *mut GVariant) -> ::std::os::raw::c_int;
pub fn sr_config_set(sdi: *const Struct_sr_dev_inst,
cg: *const Struct_sr_channel_group, key: uint32_t,
data: *mut GVariant) -> ::std::os::raw::c_int;
pub fn sr_config_commit(sdi: *const Struct_sr_dev_inst)
-> ::std::os::raw::c_int;
pub fn sr_config_list(driver: *const Struct_sr_dev_driver,
sdi: *const Struct_sr_dev_inst,
cg: *const Struct_sr_channel_group, key: uint32_t,
data: *mut *mut GVariant) -> ::std::os::raw::c_int;
pub fn sr_key_info_get(keytype: ::std::os::raw::c_int, key: uint32_t)
-> *const Struct_sr_key_info;
pub fn sr_key_info_name_get(keytype: ::std::os::raw::c_int,
keyid: *const ::std::os::raw::c_char)
-> *const Struct_sr_key_info;
pub fn sr_session_trigger_get(session: *mut Struct_sr_session)
-> *mut Struct_sr_trigger;
pub fn sr_session_load(ctx: *mut Struct_sr_context,
filename: *const ::std::os::raw::c_char,
session: *mut *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_new(ctx: *mut Struct_sr_context,
session: *mut *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_destroy(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_dev_remove_all(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_dev_add(session: *mut Struct_sr_session,
sdi: *mut Struct_sr_dev_inst)
-> ::std::os::raw::c_int;
pub fn sr_session_dev_remove(session: *mut Struct_sr_session,
sdi: *mut Struct_sr_dev_inst)
-> ::std::os::raw::c_int;
pub fn sr_session_dev_list(session: *mut Struct_sr_session,
devlist: *mut *mut GSList)
-> ::std::os::raw::c_int;
pub fn sr_session_trigger_set(session: *mut Struct_sr_session,
trig: *mut Struct_sr_trigger)
-> ::std::os::raw::c_int;
pub fn sr_session_datafeed_callback_remove_all(session:
*mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_datafeed_callback_add(session: *mut Struct_sr_session,
cb: sr_datafeed_callback,
cb_data:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
pub fn sr_session_start(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_run(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_stop(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_is_running(session: *mut Struct_sr_session)
-> ::std::os::raw::c_int;
pub fn sr_session_stopped_callback_set(session: *mut Struct_sr_session,
cb: sr_session_stopped_callback,
cb_data:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
pub fn sr_input_list() -> *mut *const Struct_sr_input_module;
pub fn sr_input_id_get(imod: *const Struct_sr_input_module)
-> *const ::std::os::raw::c_char;
pub fn sr_input_name_get(imod: *const Struct_sr_input_module)
-> *const ::std::os::raw::c_char;
pub fn sr_input_description_get(imod: *const Struct_sr_input_module)
-> *const ::std::os::raw::c_char;
pub fn sr_input_extensions_get(imod: *const Struct_sr_input_module)
-> *const *const ::std::os::raw::c_char;
pub fn sr_input_find(id: *mut ::std::os::raw::c_char)
-> *const Struct_sr_input_module;
pub fn sr_input_options_get(imod: *const Struct_sr_input_module)
-> *mut *const Struct_sr_option;
pub fn sr_output_test_flag(omod: *const Struct_sr_output_module,
flag: uint64_t) -> gboolean;
pub fn sr_input_options_free(options: *mut *const Struct_sr_option);
pub fn sr_input_new(imod: *const Struct_sr_input_module,
options: *mut GHashTable) -> *mut Struct_sr_input;
pub fn sr_input_scan_buffer(buf: *mut GString,
_in: *mut *const Struct_sr_input)
-> ::std::os::raw::c_int;
pub fn sr_input_scan_file(filename: *const ::std::os::raw::c_char,
_in: *mut *const Struct_sr_input)
-> ::std::os::raw::c_int;
pub fn sr_input_dev_inst_get(_in: *const Struct_sr_input)
-> *mut Struct_sr_dev_inst;
pub fn sr_input_send(_in: *const Struct_sr_input, buf: *mut GString)
-> ::std::os::raw::c_int;
pub fn sr_input_end(_in: *const Struct_sr_input) -> ::std::os::raw::c_int;
pub fn sr_input_free(_in: *const Struct_sr_input);
pub fn sr_output_list() -> *mut *const Struct_sr_output_module;
pub fn sr_output_id_get(omod: *const Struct_sr_output_module)
-> *const ::std::os::raw::c_char;
pub fn sr_output_name_get(omod: *const Struct_sr_output_module)
-> *const ::std::os::raw::c_char;
pub fn sr_output_description_get(omod: *const Struct_sr_output_module)
-> *const ::std::os::raw::c_char;
pub fn sr_output_extensions_get(omod: *const Struct_sr_output_module)
-> *const *const ::std::os::raw::c_char;
pub fn sr_output_find(id: *mut ::std::os::raw::c_char)
-> *const Struct_sr_output_module;
pub fn sr_output_options_get(omod: *const Struct_sr_output_module)
-> *mut *const Struct_sr_option;
pub fn sr_output_options_free(opts: *mut *const Struct_sr_option);
pub fn sr_output_new(omod: *const Struct_sr_output_module,
params: *mut GHashTable,
sdi: *const Struct_sr_dev_inst,
filename: *const ::std::os::raw::c_char)
-> *const Struct_sr_output;
pub fn sr_output_send(o: *const Struct_sr_output,
packet: *const Struct_sr_datafeed_packet,
out: *mut *mut GString) -> ::std::os::raw::c_int;
pub fn sr_output_free(o: *const Struct_sr_output)
-> ::std::os::raw::c_int;
pub fn sr_transform_list() -> *mut *const Struct_sr_transform_module;
pub fn sr_transform_id_get(tmod: *const Struct_sr_transform_module)
-> *const ::std::os::raw::c_char;
pub fn sr_transform_name_get(tmod: *const Struct_sr_transform_module)
-> *const ::std::os::raw::c_char;
pub fn sr_transform_description_get(tmod:
*const Struct_sr_transform_module)
-> *const ::std::os::raw::c_char;
pub fn sr_transform_find(id: *const ::std::os::raw::c_char)
-> *const Struct_sr_transform_module;
pub fn sr_transform_options_get(tmod: *const Struct_sr_transform_module)
-> *mut *const Struct_sr_option;
pub fn sr_transform_options_free(opts: *mut *const Struct_sr_option);
pub fn sr_transform_new(tmod: *const Struct_sr_transform_module,
params: *mut GHashTable,
sdi: *const Struct_sr_dev_inst)
-> *const Struct_sr_transform;
pub fn sr_transform_free(t: *const Struct_sr_transform)
-> ::std::os::raw::c_int;
pub fn sr_trigger_new(name: *const ::std::os::raw::c_char)
-> *mut Struct_sr_trigger;
pub fn sr_trigger_free(trig: *mut Struct_sr_trigger);
pub fn sr_trigger_stage_add(trig: *mut Struct_sr_trigger)
-> *mut Struct_sr_trigger_stage;
pub fn sr_trigger_match_add(stage: *mut Struct_sr_trigger_stage,
ch: *mut Struct_sr_channel,
trigger_match: ::std::os::raw::c_int,
value: ::std::os::raw::c_float)
-> ::std::os::raw::c_int;
pub fn sr_serial_list(driver: *const Struct_sr_dev_driver) -> *mut GSList;
pub fn sr_serial_free(serial: *mut Struct_sr_serial_port);
pub fn sr_resource_set_hooks(ctx: *mut Struct_sr_context,
open_cb: sr_resource_open_callback,
close_cb: sr_resource_close_callback,
read_cb: sr_resource_read_callback,
cb_data: *mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int;
pub fn sr_si_string_u64(x: uint64_t, unit: *const ::std::os::raw::c_char)
-> *mut ::std::os::raw::c_char;
pub fn sr_samplerate_string(samplerate: uint64_t)
-> *mut ::std::os::raw::c_char;
pub fn sr_period_string(frequency: uint64_t)
-> *mut ::std::os::raw::c_char;
pub fn sr_voltage_string(v_p: uint64_t, v_q: uint64_t)
-> *mut ::std::os::raw::c_char;
pub fn sr_parse_sizestring(sizestring: *const ::std::os::raw::c_char,
size: *mut uint64_t) -> ::std::os::raw::c_int;
pub fn sr_parse_timestring(timestring: *const ::std::os::raw::c_char)
-> uint64_t;
pub fn sr_parse_boolstring(boolstring: *const ::std::os::raw::c_char)
-> gboolean;
pub fn sr_parse_period(periodstr: *const ::std::os::raw::c_char,
p: *mut uint64_t, q: *mut uint64_t)
-> ::std::os::raw::c_int;
pub fn sr_parse_voltage(voltstr: *const ::std::os::raw::c_char,
p: *mut uint64_t, q: *mut uint64_t)
-> ::std::os::raw::c_int;
pub fn sr_package_version_major_get() -> ::std::os::raw::c_int;
pub fn sr_package_version_minor_get() -> ::std::os::raw::c_int;
pub fn sr_package_version_micro_get() -> ::std::os::raw::c_int;
pub fn sr_package_version_string_get() -> *const ::std::os::raw::c_char;
pub fn sr_lib_version_current_get() -> ::std::os::raw::c_int;
pub fn sr_lib_version_revision_get() -> ::std::os::raw::c_int;
pub fn sr_lib_version_age_get() -> ::std::os::raw::c_int;
pub fn sr_lib_version_string_get() -> *const ::std::os::raw::c_char;
pub fn sr_strerror(error_code: ::std::os::raw::c_int)
-> *const ::std::os::raw::c_char;
pub fn sr_strerror_name(error_code: ::std::os::raw::c_int)
-> *const ::std::os::raw::c_char;
}