summary refs log tree commit diff
path: root/usb_util/src/bindings.rs
blob: 90dcd5bdfeea15b97dc512c689000404ee890fd9 (plain) (blame)
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
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/* automatically generated by rust-bindgen */

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData)
    }
    #[inline]
    pub unsafe fn as_ptr(&self) -> *const T {
        ::std::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
        ::std::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
impl<T> ::std::clone::Clone for __IncompleteArrayField<T> {
    #[inline]
    fn clone(&self) -> Self {
        Self::new()
    }
}
impl<T> ::std::marker::Copy for __IncompleteArrayField<T> {}
pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201605;
pub const __STDC_NO_THREADS__: u32 = 1;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 24;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const _BITS_WCHAR_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const _SYS_TYPES_H: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const __clock_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
pub const _SIGSET_H_types: u32 = 1;
pub const __timespec_defined: u32 = 1;
pub const _STRUCT_TIMEVAL: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _SYS_SYSMACROS_H: u32 = 1;
pub const _BITS_PTHREADTYPES_H: u32 = 1;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const __have_pthread_attr_t: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: u32 = 1;
pub const _SYS_TIME_H: u32 = 1;
pub const _TIME_H: u32 = 1;
pub const _BITS_TIME_H: u32 = 1;
pub const CLOCK_REALTIME: u32 = 0;
pub const CLOCK_MONOTONIC: u32 = 1;
pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2;
pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3;
pub const CLOCK_MONOTONIC_RAW: u32 = 4;
pub const CLOCK_REALTIME_COARSE: u32 = 5;
pub const CLOCK_MONOTONIC_COARSE: u32 = 6;
pub const CLOCK_BOOTTIME: u32 = 7;
pub const CLOCK_REALTIME_ALARM: u32 = 8;
pub const CLOCK_BOOTTIME_ALARM: u32 = 9;
pub const CLOCK_TAI: u32 = 11;
pub const TIMER_ABSTIME: u32 = 1;
pub const TIME_UTC: u32 = 1;
pub const _XLOCALE_H: u32 = 1;
pub const _LIBC_LIMITS_H_: u32 = 1;
pub const MB_LEN_MAX: u32 = 16;
pub const _BITS_POSIX1_LIM_H: u32 = 1;
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
pub const _POSIX_NAME_MAX: u32 = 14;
pub const _POSIX_NGROUPS_MAX: u32 = 8;
pub const _POSIX_OPEN_MAX: u32 = 20;
pub const _POSIX_PATH_MAX: u32 = 256;
pub const _POSIX_PIPE_BUF: u32 = 512;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const _POSIX_RTSIG_MAX: u32 = 8;
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
pub const _POSIX_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX_TZNAME_MAX: u32 = 6;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const NR_OPEN: u32 = 1024;
pub const NGROUPS_MAX: u32 = 65536;
pub const ARG_MAX: u32 = 131072;
pub const LINK_MAX: u32 = 127;
pub const MAX_CANON: u32 = 255;
pub const MAX_INPUT: u32 = 255;
pub const NAME_MAX: u32 = 255;
pub const PATH_MAX: u32 = 4096;
pub const PIPE_BUF: u32 = 4096;
pub const XATTR_NAME_MAX: u32 = 255;
pub const XATTR_SIZE_MAX: u32 = 65536;
pub const XATTR_LIST_MAX: u32 = 65536;
pub const RTSIG_MAX: u32 = 32;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const PTHREAD_KEYS_MAX: u32 = 1024;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const AIO_PRIO_DELTA_MAX: u32 = 20;
pub const PTHREAD_STACK_MIN: u32 = 16384;
pub const DELAYTIMER_MAX: u32 = 2147483647;
pub const TTY_NAME_MAX: u32 = 32;
pub const LOGIN_NAME_MAX: u32 = 256;
pub const HOST_NAME_MAX: u32 = 64;
pub const MQ_PRIO_MAX: u32 = 32768;
pub const SEM_VALUE_MAX: u32 = 2147483647;
pub const _BITS_POSIX2_LIM_H: u32 = 1;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const COLL_WEIGHTS_MAX: u32 = 255;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const CHARCLASS_NAME_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 32767;
pub const LIBUSB_API_VERSION: u32 = 16777477;
pub const LIBUSBX_API_VERSION: u32 = 16777477;
pub const LIBUSB_DT_DEVICE_SIZE: u32 = 18;
pub const LIBUSB_DT_CONFIG_SIZE: u32 = 9;
pub const LIBUSB_DT_INTERFACE_SIZE: u32 = 9;
pub const LIBUSB_DT_ENDPOINT_SIZE: u32 = 7;
pub const LIBUSB_DT_ENDPOINT_AUDIO_SIZE: u32 = 9;
pub const LIBUSB_DT_HUB_NONVAR_SIZE: u32 = 7;
pub const LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE: u32 = 6;
pub const LIBUSB_DT_BOS_SIZE: u32 = 5;
pub const LIBUSB_DT_DEVICE_CAPABILITY_SIZE: u32 = 3;
pub const LIBUSB_BT_USB_2_0_EXTENSION_SIZE: u32 = 7;
pub const LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE: u32 = 10;
pub const LIBUSB_BT_CONTAINER_ID_SIZE: u32 = 20;
pub const LIBUSB_DT_BOS_MAX_SIZE: u32 = 42;
pub const LIBUSB_ENDPOINT_ADDRESS_MASK: u32 = 15;
pub const LIBUSB_ENDPOINT_DIR_MASK: u32 = 128;
pub const LIBUSB_TRANSFER_TYPE_MASK: u32 = 3;
pub const LIBUSB_ISO_SYNC_TYPE_MASK: u32 = 12;
pub const LIBUSB_ISO_USAGE_TYPE_MASK: u32 = 48;
pub const LIBUSB_ERROR_COUNT: u32 = 14;
pub const LIBUSB_HOTPLUG_MATCH_ANY: i32 = -1;
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_long;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_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 __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
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_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
    assert_eq!(
        ::std::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __qaddr_t = *mut __quad_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type off_t = __off_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type time_t = __time_t;
pub type clockid_t = __clockid_t;
pub type timer_t = __timer_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulong;
pub type register_t = ::std::os::raw::c_long;
pub type __sig_atomic_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
    assert_eq!(
        ::std::mem::size_of::<__sigset_t>(),
        128usize,
        concat!("Size of: ", stringify!(__sigset_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__sigset_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__sigset_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sigset_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__sigset_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
    assert_eq!(
        ::std::mem::size_of::<timespec>(),
        16usize,
        concat!("Size of: ", stringify!(timespec))
    );
    assert_eq!(
        ::std::mem::align_of::<timespec>(),
        8usize,
        concat!("Alignment of ", stringify!(timespec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_nsec)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
    assert_eq!(
        ::std::mem::size_of::<timeval>(),
        16usize,
        concat!("Size of: ", stringify!(timeval))
    );
    assert_eq!(
        ::std::mem::align_of::<timeval>(),
        8usize,
        concat!("Alignment of ", stringify!(timeval))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_usec)
        )
    );
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub __fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
    assert_eq!(
        ::std::mem::size_of::<fd_set>(),
        128usize,
        concat!("Size of: ", stringify!(fd_set))
    );
    assert_eq!(
        ::std::mem::align_of::<fd_set>(),
        8usize,
        concat!("Alignment of ", stringify!(fd_set))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<fd_set>())).__fds_bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(fd_set),
            "::",
            stringify!(__fds_bits)
        )
    );
}
pub type fd_mask = __fd_mask;
extern "C" {
    pub fn select(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pselect(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *const timespec,
        __sigmask: *const __sigset_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gnu_dev_major(__dev: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gnu_dev_minor(__dev: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gnu_dev_makedev(
        __major: ::std::os::raw::c_uint,
        __minor: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_ulonglong;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_attr_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_attr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_internal_list>(),
        16usize,
        concat!("Size of: ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_internal_list>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__prev as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__prev)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__next as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__next)
        )
    );
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: pthread_mutex_t___pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 40usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 5usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pthread_mutex_t___pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_short,
    pub __elision: ::std::os::raw::c_short,
    pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout_pthread_mutex_t___pthread_mutex_s() {
    assert_eq!(
        ::std::mem::size_of::<pthread_mutex_t___pthread_mutex_s>(),
        40usize,
        concat!("Size of: ", stringify!(pthread_mutex_t___pthread_mutex_s))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutex_t___pthread_mutex_s>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(pthread_mutex_t___pthread_mutex_s)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__lock as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__lock)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__count as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__owner as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__owner)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__nusers as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__nusers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__kind as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__kind)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__spins as *const _
                as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__spins)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__elision as *const _
                as usize
        },
        22usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__elision)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_mutex_t___pthread_mutex_s>())).__list as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t___pthread_mutex_s),
            "::",
            stringify!(__list)
        )
    );
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_mutex_t>(),
        40usize,
        concat!("Size of: ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutex_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_mutexattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutexattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: pthread_cond_t__bindgen_ty_1,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
    _bindgen_union_align: [u64; 6usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pthread_cond_t__bindgen_ty_1 {
    pub __lock: ::std::os::raw::c_int,
    pub __futex: ::std::os::raw::c_uint,
    pub __total_seq: ::std::os::raw::c_ulonglong,
    pub __wakeup_seq: ::std::os::raw::c_ulonglong,
    pub __woken_seq: ::std::os::raw::c_ulonglong,
    pub __mutex: *mut ::std::os::raw::c_void,
    pub __nwaiters: ::std::os::raw::c_uint,
    pub __broadcast_seq: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_pthread_cond_t__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<pthread_cond_t__bindgen_ty_1>(),
        48usize,
        concat!("Size of: ", stringify!(pthread_cond_t__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_cond_t__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_cond_t__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__lock as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__lock)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__futex as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__futex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__total_seq as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__total_seq)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__wakeup_seq as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__wakeup_seq)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__woken_seq as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__woken_seq)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__mutex as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__mutex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__nwaiters as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__nwaiters)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_cond_t__bindgen_ty_1>())).__broadcast_seq as *const _
                as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t__bindgen_ty_1),
            "::",
            stringify!(__broadcast_seq)
        )
    );
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_cond_t>(),
        48usize,
        concat!("Size of: ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_cond_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_condattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_condattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: pthread_rwlock_t__bindgen_ty_1,
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pthread_rwlock_t__bindgen_ty_1 {
    pub __lock: ::std::os::raw::c_int,
    pub __nr_readers: ::std::os::raw::c_uint,
    pub __readers_wakeup: ::std::os::raw::c_uint,
    pub __writer_wakeup: ::std::os::raw::c_uint,
    pub __nr_readers_queued: ::std::os::raw::c_uint,
    pub __nr_writers_queued: ::std::os::raw::c_uint,
    pub __writer: ::std::os::raw::c_int,
    pub __shared: ::std::os::raw::c_int,
    pub __rwelision: ::std::os::raw::c_schar,
    pub __pad1: [::std::os::raw::c_uchar; 7usize],
    pub __pad2: ::std::os::raw::c_ulong,
    pub __flags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlock_t__bindgen_ty_1>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_rwlock_t__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlock_t__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlock_t__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__lock as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__lock)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__nr_readers as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__nr_readers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__readers_wakeup as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__readers_wakeup)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__writer_wakeup as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__writer_wakeup)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__nr_readers_queued
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__nr_readers_queued)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__nr_writers_queued
                as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__nr_writers_queued)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__writer as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__writer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__shared as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__shared)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__rwelision as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__rwelision)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__pad1 as *const _ as usize
        },
        33usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__pad1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__pad2 as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__pad2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<pthread_rwlock_t__bindgen_ty_1>())).__flags as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t__bindgen_ty_1),
            "::",
            stringify!(__flags)
        )
    );
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlock_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlock_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [::std::os::raw::c_char; 32usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 4usize],
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_barrier_t>(),
        32usize,
        concat!("Size of: ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrier_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_barrierattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrierattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timezone {
    pub tz_minuteswest: ::std::os::raw::c_int,
    pub tz_dsttime: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_timezone() {
    assert_eq!(
        ::std::mem::size_of::<timezone>(),
        8usize,
        concat!("Size of: ", stringify!(timezone))
    );
    assert_eq!(
        ::std::mem::align_of::<timezone>(),
        4usize,
        concat!("Alignment of ", stringify!(timezone))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timezone>())).tz_minuteswest as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timezone),
            "::",
            stringify!(tz_minuteswest)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timezone>())).tz_dsttime as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(timezone),
            "::",
            stringify!(tz_dsttime)
        )
    );
}
pub type __timezone_ptr_t = *mut timezone;
extern "C" {
    pub fn gettimeofday(__tv: *mut timeval, __tz: __timezone_ptr_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn settimeofday(__tv: *const timeval, __tz: *const timezone) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn adjtime(__delta: *const timeval, __olddelta: *mut timeval) -> ::std::os::raw::c_int;
}
pub const ITIMER_REAL: __itimer_which = 0;
pub const ITIMER_VIRTUAL: __itimer_which = 1;
pub const ITIMER_PROF: __itimer_which = 2;
pub type __itimer_which = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct itimerval {
    pub it_interval: timeval,
    pub it_value: timeval,
}
#[test]
fn bindgen_test_layout_itimerval() {
    assert_eq!(
        ::std::mem::size_of::<itimerval>(),
        32usize,
        concat!("Size of: ", stringify!(itimerval))
    );
    assert_eq!(
        ::std::mem::align_of::<itimerval>(),
        8usize,
        concat!("Alignment of ", stringify!(itimerval))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerval>())).it_interval as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerval),
            "::",
            stringify!(it_interval)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerval>())).it_value as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerval),
            "::",
            stringify!(it_value)
        )
    );
}
pub type __itimer_which_t = ::std::os::raw::c_int;
extern "C" {
    pub fn getitimer(__which: __itimer_which_t, __value: *mut itimerval) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setitimer(
        __which: __itimer_which_t,
        __new: *const itimerval,
        __old: *mut itimerval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn utimes(
        __file: *const ::std::os::raw::c_char,
        __tvp: *const timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lutimes(
        __file: *const ::std::os::raw::c_char,
        __tvp: *const timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn futimes(__fd: ::std::os::raw::c_int, __tvp: *const timeval) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub 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: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_tm() {
    assert_eq!(
        ::std::mem::size_of::<tm>(),
        56usize,
        concat!("Size of: ", stringify!(tm))
    );
    assert_eq!(
        ::std::mem::align_of::<tm>(),
        8usize,
        concat!("Alignment of ", stringify!(tm))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_min as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_min)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_hour as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_hour)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_mday as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_mday)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_mon as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_mon)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_year as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_year)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_wday as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_wday)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_yday as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_yday)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_isdst as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_isdst)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_gmtoff as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_gmtoff)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tm>())).tm_zone as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(tm),
            "::",
            stringify!(tm_zone)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct itimerspec {
    pub it_interval: timespec,
    pub it_value: timespec,
}
#[test]
fn bindgen_test_layout_itimerspec() {
    assert_eq!(
        ::std::mem::size_of::<itimerspec>(),
        32usize,
        concat!("Size of: ", stringify!(itimerspec))
    );
    assert_eq!(
        ::std::mem::align_of::<itimerspec>(),
        8usize,
        concat!("Alignment of ", stringify!(itimerspec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerspec>())).it_interval as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerspec),
            "::",
            stringify!(it_interval)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerspec>())).it_value as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerspec),
            "::",
            stringify!(it_value)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigevent {
    _unused: [u8; 0],
}
extern "C" {
    pub fn clock() -> clock_t;
}
extern "C" {
    pub fn time(__timer: *mut time_t) -> time_t;
}
extern "C" {
    pub fn difftime(__time1: time_t, __time0: time_t) -> f64;
}
extern "C" {
    pub fn mktime(__tp: *mut tm) -> time_t;
}
extern "C" {
    pub fn strftime(
        __s: *mut ::std::os::raw::c_char,
        __maxsize: usize,
        __format: *const ::std::os::raw::c_char,
        __tp: *const tm,
    ) -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
    pub __locales: [*mut __locale_data; 13usize],
    pub __ctype_b: *const ::std::os::raw::c_ushort,
    pub __ctype_tolower: *const ::std::os::raw::c_int,
    pub __ctype_toupper: *const ::std::os::raw::c_int,
    pub __names: [*const ::std::os::raw::c_char; 13usize],
}
#[test]
fn bindgen_test_layout___locale_struct() {
    assert_eq!(
        ::std::mem::size_of::<__locale_struct>(),
        232usize,
        concat!("Size of: ", stringify!(__locale_struct))
    );
    assert_eq!(
        ::std::mem::align_of::<__locale_struct>(),
        8usize,
        concat!("Alignment of ", stringify!(__locale_struct))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__locales as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__locales)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_b as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_b)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_tolower as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_tolower)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_toupper as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__ctype_toupper)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__locale_struct>())).__names as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(__locale_struct),
            "::",
            stringify!(__names)
        )
    );
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
    pub fn strftime_l(
        __s: *mut ::std::os::raw::c_char,
        __maxsize: usize,
        __format: *const ::std::os::raw::c_char,
        __tp: *const tm,
        __loc: __locale_t,
    ) -> usize;
}
extern "C" {
    pub fn gmtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
    pub fn localtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
    pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
    pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
    pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn asctime_r(
        __tp: *const tm,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ctime_r(
        __timer: *const time_t,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[link_name = "\u{1}__tzname"]
    pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
    #[link_name = "\u{1}__daylight"]
    pub static mut __daylight: ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__timezone"]
    pub static mut __timezone: ::std::os::raw::c_long;
}
extern "C" {
    #[link_name = "\u{1}tzname"]
    pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
    pub fn tzset();
}
extern "C" {
    #[link_name = "\u{1}daylight"]
    pub static mut daylight: ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}timezone"]
    pub static mut timezone: ::std::os::raw::c_long;
}
extern "C" {
    pub fn stime(__when: *const time_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timegm(__tp: *mut tm) -> time_t;
}
extern "C" {
    pub fn timelocal(__tp: *mut tm) -> time_t;
}
extern "C" {
    pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn nanosleep(
        __requested_time: *const timespec,
        __remaining: *mut timespec,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clock_nanosleep(
        __clock_id: clockid_t,
        __flags: ::std::os::raw::c_int,
        __req: *const timespec,
        __rem: *mut timespec,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timer_create(
        __clock_id: clockid_t,
        __evp: *mut sigevent,
        __timerid: *mut timer_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timer_settime(
        __timerid: timer_t,
        __flags: ::std::os::raw::c_int,
        __value: *const itimerspec,
        __ovalue: *mut itimerspec,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn timespec_get(
        __ts: *mut timespec,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
/// In the context of a \ref libusb_device_descriptor "device descriptor",
/// this bDeviceClass value indicates that each interface specifies its
/// own class information and all interfaces operate independently.
pub const LIBUSB_CLASS_PER_INTERFACE: libusb_class_code = 0;
/// Audio class
pub const LIBUSB_CLASS_AUDIO: libusb_class_code = 1;
/// Communications class
pub const LIBUSB_CLASS_COMM: libusb_class_code = 2;
/// Human Interface Device class
pub const LIBUSB_CLASS_HID: libusb_class_code = 3;
/// Physical
pub const LIBUSB_CLASS_PHYSICAL: libusb_class_code = 5;
/// Printer class
pub const LIBUSB_CLASS_PRINTER: libusb_class_code = 7;
/// Image class
pub const LIBUSB_CLASS_PTP: libusb_class_code = 6;
/// Image class
pub const LIBUSB_CLASS_IMAGE: libusb_class_code = 6;
/// Mass storage class
pub const LIBUSB_CLASS_MASS_STORAGE: libusb_class_code = 8;
/// Hub class
pub const LIBUSB_CLASS_HUB: libusb_class_code = 9;
/// Data class
pub const LIBUSB_CLASS_DATA: libusb_class_code = 10;
/// Smart Card
pub const LIBUSB_CLASS_SMART_CARD: libusb_class_code = 11;
/// Content Security
pub const LIBUSB_CLASS_CONTENT_SECURITY: libusb_class_code = 13;
/// Video
pub const LIBUSB_CLASS_VIDEO: libusb_class_code = 14;
/// Personal Healthcare
pub const LIBUSB_CLASS_PERSONAL_HEALTHCARE: libusb_class_code = 15;
/// Diagnostic Device
pub const LIBUSB_CLASS_DIAGNOSTIC_DEVICE: libusb_class_code = 220;
/// Wireless class
pub const LIBUSB_CLASS_WIRELESS: libusb_class_code = 224;
/// Application class
pub const LIBUSB_CLASS_APPLICATION: libusb_class_code = 254;
/// Class is vendor-specific
pub const LIBUSB_CLASS_VENDOR_SPEC: libusb_class_code = 255;
/// \ingroup libusb_desc
/// Device and/or Interface Class codes
pub type libusb_class_code = u32;
/// Device descriptor. See libusb_device_descriptor.
pub const LIBUSB_DT_DEVICE: libusb_descriptor_type = 1;
/// Configuration descriptor. See libusb_config_descriptor.
pub const LIBUSB_DT_CONFIG: libusb_descriptor_type = 2;
/// String descriptor
pub const LIBUSB_DT_STRING: libusb_descriptor_type = 3;
/// Interface descriptor. See libusb_interface_descriptor.
pub const LIBUSB_DT_INTERFACE: libusb_descriptor_type = 4;
/// Endpoint descriptor. See libusb_endpoint_descriptor.
pub const LIBUSB_DT_ENDPOINT: libusb_descriptor_type = 5;
/// BOS descriptor
pub const LIBUSB_DT_BOS: libusb_descriptor_type = 15;
/// Device Capability descriptor
pub const LIBUSB_DT_DEVICE_CAPABILITY: libusb_descriptor_type = 16;
/// HID descriptor
pub const LIBUSB_DT_HID: libusb_descriptor_type = 33;
/// HID report descriptor
pub const LIBUSB_DT_REPORT: libusb_descriptor_type = 34;
/// Physical descriptor
pub const LIBUSB_DT_PHYSICAL: libusb_descriptor_type = 35;
/// Hub descriptor
pub const LIBUSB_DT_HUB: libusb_descriptor_type = 41;
/// SuperSpeed Hub descriptor
pub const LIBUSB_DT_SUPERSPEED_HUB: libusb_descriptor_type = 42;
/// SuperSpeed Endpoint Companion descriptor
pub const LIBUSB_DT_SS_ENDPOINT_COMPANION: libusb_descriptor_type = 48;
/// \ingroup libusb_desc
/// Descriptor types as defined by the USB specification.
pub type libusb_descriptor_type = u32;
/// In: device-to-host
pub const LIBUSB_ENDPOINT_IN: libusb_endpoint_direction = 128;
/// Out: host-to-device
pub const LIBUSB_ENDPOINT_OUT: libusb_endpoint_direction = 0;
/// \ingroup libusb_desc
/// Endpoint direction. Values for bit 7 of the
/// \ref libusb_endpoint_descriptor::bEndpointAddress "endpoint address" scheme.
pub type libusb_endpoint_direction = u32;
/// Control endpoint
pub const LIBUSB_TRANSFER_TYPE_CONTROL: libusb_transfer_type = 0;
/// Isochronous endpoint
pub const LIBUSB_TRANSFER_TYPE_ISOCHRONOUS: libusb_transfer_type = 1;
/// Bulk endpoint
pub const LIBUSB_TRANSFER_TYPE_BULK: libusb_transfer_type = 2;
/// Interrupt endpoint
pub const LIBUSB_TRANSFER_TYPE_INTERRUPT: libusb_transfer_type = 3;
/// Stream endpoint
pub const LIBUSB_TRANSFER_TYPE_BULK_STREAM: libusb_transfer_type = 4;
/// \ingroup libusb_desc
/// Endpoint transfer type. Values for bits 0:1 of the
/// \ref libusb_endpoint_descriptor::bmAttributes "endpoint attributes" field.
pub type libusb_transfer_type = u32;
/// Request status of the specific recipient
pub const LIBUSB_REQUEST_GET_STATUS: libusb_standard_request = 0;
/// Clear or disable a specific feature
pub const LIBUSB_REQUEST_CLEAR_FEATURE: libusb_standard_request = 1;
/// Set or enable a specific feature
pub const LIBUSB_REQUEST_SET_FEATURE: libusb_standard_request = 3;
/// Set device address for all future accesses
pub const LIBUSB_REQUEST_SET_ADDRESS: libusb_standard_request = 5;
/// Get the specified descriptor
pub const LIBUSB_REQUEST_GET_DESCRIPTOR: libusb_standard_request = 6;
/// Used to update existing descriptors or add new descriptors
pub const LIBUSB_REQUEST_SET_DESCRIPTOR: libusb_standard_request = 7;
/// Get the current device configuration value
pub const LIBUSB_REQUEST_GET_CONFIGURATION: libusb_standard_request = 8;
/// Set device configuration
pub const LIBUSB_REQUEST_SET_CONFIGURATION: libusb_standard_request = 9;
/// Return the selected alternate setting for the specified interface
pub const LIBUSB_REQUEST_GET_INTERFACE: libusb_standard_request = 10;
/// Select an alternate interface for the specified interface
pub const LIBUSB_REQUEST_SET_INTERFACE: libusb_standard_request = 11;
/// Set then report an endpoint's synchronization frame
pub const LIBUSB_REQUEST_SYNCH_FRAME: libusb_standard_request = 12;
/// Sets both the U1 and U2 Exit Latency
pub const LIBUSB_REQUEST_SET_SEL: libusb_standard_request = 48;
/// Delay from the time a host transmits a packet to the time it is
/// received by the device.
pub const LIBUSB_SET_ISOCH_DELAY: libusb_standard_request = 49;
/// \ingroup libusb_misc
/// Standard requests, as defined in table 9-5 of the USB 3.0 specifications
pub type libusb_standard_request = u32;
/// Standard
pub const LIBUSB_REQUEST_TYPE_STANDARD: libusb_request_type = 0;
/// Class
pub const LIBUSB_REQUEST_TYPE_CLASS: libusb_request_type = 32;
/// Vendor
pub const LIBUSB_REQUEST_TYPE_VENDOR: libusb_request_type = 64;
/// Reserved
pub const LIBUSB_REQUEST_TYPE_RESERVED: libusb_request_type = 96;
/// \ingroup libusb_misc
/// Request type bits of the
/// \ref libusb_control_setup::bmRequestType "bmRequestType" field in control
/// transfers.
pub type libusb_request_type = u32;
/// Device
pub const LIBUSB_RECIPIENT_DEVICE: libusb_request_recipient = 0;
/// Interface
pub const LIBUSB_RECIPIENT_INTERFACE: libusb_request_recipient = 1;
/// Endpoint
pub const LIBUSB_RECIPIENT_ENDPOINT: libusb_request_recipient = 2;
/// Other
pub const LIBUSB_RECIPIENT_OTHER: libusb_request_recipient = 3;
/// \ingroup libusb_misc
/// Recipient bits of the
/// \ref libusb_control_setup::bmRequestType "bmRequestType" field in control
/// transfers. Values 4 through 31 are reserved.
pub type libusb_request_recipient = u32;
/// No synchronization
pub const LIBUSB_ISO_SYNC_TYPE_NONE: libusb_iso_sync_type = 0;
/// Asynchronous
pub const LIBUSB_ISO_SYNC_TYPE_ASYNC: libusb_iso_sync_type = 1;
/// Adaptive
pub const LIBUSB_ISO_SYNC_TYPE_ADAPTIVE: libusb_iso_sync_type = 2;
/// Synchronous
pub const LIBUSB_ISO_SYNC_TYPE_SYNC: libusb_iso_sync_type = 3;
/// \ingroup libusb_desc
/// Synchronization type for isochronous endpoints. Values for bits 2:3 of the
/// \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in
/// libusb_endpoint_descriptor.
pub type libusb_iso_sync_type = u32;
/// Data endpoint
pub const LIBUSB_ISO_USAGE_TYPE_DATA: libusb_iso_usage_type = 0;
/// Feedback endpoint
pub const LIBUSB_ISO_USAGE_TYPE_FEEDBACK: libusb_iso_usage_type = 1;
/// Implicit feedback Data endpoint
pub const LIBUSB_ISO_USAGE_TYPE_IMPLICIT: libusb_iso_usage_type = 2;
/// \ingroup libusb_desc
/// Usage type for isochronous endpoints. Values for bits 4:5 of the
/// \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in
/// libusb_endpoint_descriptor.
pub type libusb_iso_usage_type = u32;
/// \ingroup libusb_desc
/// A structure representing the standard USB device descriptor. This
/// descriptor is documented in section 9.6.1 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_device_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_DEVICE LIBUSB_DT_DEVICE in this
    /// context.
    pub bDescriptorType: u8,
    /// USB specification release number in binary-coded decimal. A value of
    /// 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc.
    pub bcdUSB: u16,
    /// USB-IF class code for the device. See \ref libusb_class_code.
    pub bDeviceClass: u8,
    /// USB-IF subclass code for the device, qualified by the bDeviceClass
    /// value
    pub bDeviceSubClass: u8,
    /// USB-IF protocol code for the device, qualified by the bDeviceClass and
    /// bDeviceSubClass values
    pub bDeviceProtocol: u8,
    /// Maximum packet size for endpoint 0
    pub bMaxPacketSize0: u8,
    /// USB-IF vendor ID
    pub idVendor: u16,
    /// USB-IF product ID
    pub idProduct: u16,
    /// Device release number in binary-coded decimal
    pub bcdDevice: u16,
    /// Index of string descriptor describing manufacturer
    pub iManufacturer: u8,
    /// Index of string descriptor describing product
    pub iProduct: u8,
    /// Index of string descriptor containing device serial number
    pub iSerialNumber: u8,
    /// Number of possible configurations
    pub bNumConfigurations: u8,
}
#[test]
fn bindgen_test_layout_libusb_device_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_device_descriptor>(),
        18usize,
        concat!("Size of: ", stringify!(libusb_device_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_device_descriptor>(),
        2usize,
        concat!("Alignment of ", stringify!(libusb_device_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bLength as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bDescriptorType as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_device_descriptor>())).bcdUSB as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bcdUSB)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bDeviceClass as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bDeviceClass)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bDeviceSubClass as *const _
                as usize
        },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bDeviceSubClass)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bDeviceProtocol as *const _
                as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bDeviceProtocol)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bMaxPacketSize0 as *const _
                as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bMaxPacketSize0)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).idVendor as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(idVendor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).idProduct as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(idProduct)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bcdDevice as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bcdDevice)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).iManufacturer as *const _ as usize
        },
        14usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(iManufacturer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).iProduct as *const _ as usize
        },
        15usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(iProduct)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).iSerialNumber as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(iSerialNumber)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_device_descriptor>())).bNumConfigurations as *const _
                as usize
        },
        17usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_device_descriptor),
            "::",
            stringify!(bNumConfigurations)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the standard USB endpoint descriptor. This
/// descriptor is documented in section 9.6.6 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_endpoint_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_ENDPOINT LIBUSB_DT_ENDPOINT in
    /// this context.
    pub bDescriptorType: u8,
    /// The address of the endpoint described by this descriptor. Bits 0:3 are
    /// the endpoint number. Bits 4:6 are reserved. Bit 7 indicates direction,
    /// see \ref libusb_endpoint_direction.
    pub bEndpointAddress: u8,
    /// Attributes which apply to the endpoint when it is configured using
    /// the bConfigurationValue. Bits 0:1 determine the transfer type and
    /// correspond to \ref libusb_transfer_type. Bits 2:3 are only used for
    /// isochronous endpoints and correspond to \ref libusb_iso_sync_type.
    /// Bits 4:5 are also only used for isochronous endpoints and correspond to
    /// \ref libusb_iso_usage_type. Bits 6:7 are reserved.
    pub bmAttributes: u8,
    /// Maximum packet size this endpoint is capable of sending/receiving.
    pub wMaxPacketSize: u16,
    /// Interval for polling endpoint for data transfers.
    pub bInterval: u8,
    /// For audio devices only: the rate at which synchronization feedback
    /// is provided.
    pub bRefresh: u8,
    /// For audio devices only: the address if the synch endpoint
    pub bSynchAddress: u8,
    /// Extra descriptors. If libusb encounters unknown endpoint descriptors,
    /// it will store them here, should you wish to parse them.
    pub extra: *const ::std::os::raw::c_uchar,
    /// Length of the extra descriptors, in bytes.
    pub extra_length: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_libusb_endpoint_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_endpoint_descriptor>(),
        32usize,
        concat!("Size of: ", stringify!(libusb_endpoint_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_endpoint_descriptor>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_endpoint_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bLength as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bDescriptorType as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bEndpointAddress as *const _
                as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bEndpointAddress)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bmAttributes as *const _ as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bmAttributes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).wMaxPacketSize as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(wMaxPacketSize)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bInterval as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bInterval)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bRefresh as *const _ as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bRefresh)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).bSynchAddress as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(bSynchAddress)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).extra as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(extra)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_endpoint_descriptor>())).extra_length as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_endpoint_descriptor),
            "::",
            stringify!(extra_length)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the standard USB interface descriptor. This
/// descriptor is documented in section 9.6.5 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_interface_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_INTERFACE LIBUSB_DT_INTERFACE
    /// in this context.
    pub bDescriptorType: u8,
    /// Number of this interface
    pub bInterfaceNumber: u8,
    /// Value used to select this alternate setting for this interface
    pub bAlternateSetting: u8,
    /// Number of endpoints used by this interface (excluding the control
    /// endpoint).
    pub bNumEndpoints: u8,
    /// USB-IF class code for this interface. See \ref libusb_class_code.
    pub bInterfaceClass: u8,
    /// USB-IF subclass code for this interface, qualified by the
    /// bInterfaceClass value
    pub bInterfaceSubClass: u8,
    /// USB-IF protocol code for this interface, qualified by the
    /// bInterfaceClass and bInterfaceSubClass values
    pub bInterfaceProtocol: u8,
    /// Index of string descriptor describing this interface
    pub iInterface: u8,
    /// Array of endpoint descriptors. This length of this array is determined
    /// by the bNumEndpoints field.
    pub endpoint: *const libusb_endpoint_descriptor,
    /// Extra descriptors. If libusb encounters unknown interface descriptors,
    /// it will store them here, should you wish to parse them.
    pub extra: *const ::std::os::raw::c_uchar,
    /// Length of the extra descriptors, in bytes.
    pub extra_length: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_libusb_interface_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_interface_descriptor>(),
        40usize,
        concat!("Size of: ", stringify!(libusb_interface_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_interface_descriptor>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_interface_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bLength as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bDescriptorType as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bInterfaceNumber as *const _
                as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bInterfaceNumber)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bAlternateSetting as *const _
                as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bAlternateSetting)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bNumEndpoints as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bNumEndpoints)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bInterfaceClass as *const _
                as usize
        },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bInterfaceClass)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bInterfaceSubClass as *const _
                as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bInterfaceSubClass)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).bInterfaceProtocol as *const _
                as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(bInterfaceProtocol)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).iInterface as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(iInterface)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).endpoint as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(endpoint)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).extra as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(extra)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_interface_descriptor>())).extra_length as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface_descriptor),
            "::",
            stringify!(extra_length)
        )
    );
}
/// \ingroup libusb_desc
/// A collection of alternate settings for a particular USB interface.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_interface {
    /// Array of interface descriptors. The length of this array is determined
    /// by the num_altsetting field.
    pub altsetting: *const libusb_interface_descriptor,
    /// The number of alternate settings that belong to this interface
    pub num_altsetting: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_libusb_interface() {
    assert_eq!(
        ::std::mem::size_of::<libusb_interface>(),
        16usize,
        concat!("Size of: ", stringify!(libusb_interface))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_interface>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_interface))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_interface>())).altsetting as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface),
            "::",
            stringify!(altsetting)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_interface>())).num_altsetting as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_interface),
            "::",
            stringify!(num_altsetting)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the standard USB configuration descriptor. This
/// descriptor is documented in section 9.6.3 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_config_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_CONFIG LIBUSB_DT_CONFIG
    /// in this context.
    pub bDescriptorType: u8,
    /// Total length of data returned for this configuration
    pub wTotalLength: u16,
    /// Number of interfaces supported by this configuration
    pub bNumInterfaces: u8,
    /// Identifier value for this configuration
    pub bConfigurationValue: u8,
    /// Index of string descriptor describing this configuration
    pub iConfiguration: u8,
    /// Configuration characteristics
    pub bmAttributes: u8,
    /// Maximum power consumption of the USB device from this bus in this
    /// configuration when the device is fully operation. Expressed in units
    /// of 2 mA when the device is operating in high-speed mode and in units
    /// of 8 mA when the device is operating in super-speed mode.
    pub MaxPower: u8,
    /// Array of interfaces supported by this configuration. The length of
    /// this array is determined by the bNumInterfaces field.
    pub interface: *const libusb_interface,
    /// Extra descriptors. If libusb encounters unknown configuration
    /// descriptors, it will store them here, should you wish to parse them.
    pub extra: *const ::std::os::raw::c_uchar,
    /// Length of the extra descriptors, in bytes.
    pub extra_length: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_libusb_config_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_config_descriptor>(),
        40usize,
        concat!("Size of: ", stringify!(libusb_config_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_config_descriptor>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_config_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).bLength as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).bDescriptorType as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).wTotalLength as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(wTotalLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).bNumInterfaces as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(bNumInterfaces)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).bConfigurationValue as *const _
                as usize
        },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(bConfigurationValue)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).iConfiguration as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(iConfiguration)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).bmAttributes as *const _ as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(bmAttributes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).MaxPower as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(MaxPower)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).interface as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_config_descriptor>())).extra as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(extra)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_config_descriptor>())).extra_length as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_config_descriptor),
            "::",
            stringify!(extra_length)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the superspeed endpoint companion
/// descriptor. This descriptor is documented in section 9.6.7 of
/// the USB 3.0 specification. All multiple-byte fields are represented in
/// host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_ss_endpoint_companion_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_SS_ENDPOINT_COMPANION in
    /// this context.
    pub bDescriptorType: u8,
    /// The maximum number of packets the endpoint can send or
    /// receive as part of a burst.
    pub bMaxBurst: u8,
    /// In bulk EP:	bits 4:0 represents the	maximum	number of
    /// streams the	EP supports. In	isochronous EP:	bits 1:0
    /// represents the Mult	- a zero based value that determines
    /// the	maximum	number of packets within a service interval
    pub bmAttributes: u8,
    /// The	total number of bytes this EP will transfer every
    /// service interval. valid only for periodic EPs.
    pub wBytesPerInterval: u16,
}
#[test]
fn bindgen_test_layout_libusb_ss_endpoint_companion_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_ss_endpoint_companion_descriptor>(),
        6usize,
        concat!(
            "Size of: ",
            stringify!(libusb_ss_endpoint_companion_descriptor)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_ss_endpoint_companion_descriptor>(),
        2usize,
        concat!(
            "Alignment of ",
            stringify!(libusb_ss_endpoint_companion_descriptor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_endpoint_companion_descriptor>())).bLength as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_endpoint_companion_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_endpoint_companion_descriptor>())).bDescriptorType
                as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_endpoint_companion_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_endpoint_companion_descriptor>())).bMaxBurst
                as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_endpoint_companion_descriptor),
            "::",
            stringify!(bMaxBurst)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_endpoint_companion_descriptor>())).bmAttributes
                as *const _ as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_endpoint_companion_descriptor),
            "::",
            stringify!(bmAttributes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_endpoint_companion_descriptor>())).wBytesPerInterval
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_endpoint_companion_descriptor),
            "::",
            stringify!(wBytesPerInterval)
        )
    );
}
/// \ingroup libusb_desc
/// A generic representation of a BOS Device Capability descriptor. It is
/// advised to check bDevCapabilityType and call the matching
/// libusb_get_*_descriptor function to get a structure fully matching the type.
#[repr(C)]
#[derive(Debug)]
pub struct libusb_bos_dev_capability_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_DEVICE_CAPABILITY
    /// LIBUSB_DT_DEVICE_CAPABILITY in this context.
    pub bDescriptorType: u8,
    /// Device Capability type
    pub bDevCapabilityType: u8,
    /// Device Capability data (bLength - 3 bytes)
    pub dev_capability_data: __IncompleteArrayField<u8>,
}
#[test]
fn bindgen_test_layout_libusb_bos_dev_capability_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_bos_dev_capability_descriptor>(),
        3usize,
        concat!(
            "Size of: ",
            stringify!(libusb_bos_dev_capability_descriptor)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_bos_dev_capability_descriptor>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(libusb_bos_dev_capability_descriptor)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the Binary Device Object Store (BOS) descriptor.
/// This descriptor is documented in section 9.6.2 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug)]
pub struct libusb_bos_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_BOS LIBUSB_DT_BOS
    /// in this context.
    pub bDescriptorType: u8,
    /// Length of this descriptor and all of its sub descriptors
    pub wTotalLength: u16,
    /// The number of separate device capability descriptors in
    /// the BOS
    pub bNumDeviceCaps: u8,
    /// bNumDeviceCap Device Capability Descriptors
    pub dev_capability: __IncompleteArrayField<*mut libusb_bos_dev_capability_descriptor>,
    pub __bindgen_align: [u64; 0usize],
}
#[test]
fn bindgen_test_layout_libusb_bos_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_bos_descriptor>(),
        8usize,
        concat!("Size of: ", stringify!(libusb_bos_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_bos_descriptor>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_bos_descriptor))
    );
}
/// \ingroup libusb_desc
/// A structure representing the USB 2.0 Extension descriptor
/// This descriptor is documented in section 9.6.2.1 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_usb_2_0_extension_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_DEVICE_CAPABILITY
    /// LIBUSB_DT_DEVICE_CAPABILITY in this context.
    pub bDescriptorType: u8,
    /// Capability type. Will have value
    /// \ref libusb_capability_type::LIBUSB_BT_USB_2_0_EXTENSION
    /// LIBUSB_BT_USB_2_0_EXTENSION in this context.
    pub bDevCapabilityType: u8,
    /// Bitmap encoding of supported device level features.
    /// A value of one in a bit location indicates a feature is
    /// supported; a value of zero indicates it is not supported.
    /// See \ref libusb_usb_2_0_extension_attributes.
    pub bmAttributes: u32,
}
#[test]
fn bindgen_test_layout_libusb_usb_2_0_extension_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_usb_2_0_extension_descriptor>(),
        8usize,
        concat!("Size of: ", stringify!(libusb_usb_2_0_extension_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_usb_2_0_extension_descriptor>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(libusb_usb_2_0_extension_descriptor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_usb_2_0_extension_descriptor>())).bLength as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_usb_2_0_extension_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_usb_2_0_extension_descriptor>())).bDescriptorType
                as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_usb_2_0_extension_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_usb_2_0_extension_descriptor>())).bDevCapabilityType
                as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_usb_2_0_extension_descriptor),
            "::",
            stringify!(bDevCapabilityType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_usb_2_0_extension_descriptor>())).bmAttributes as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_usb_2_0_extension_descriptor),
            "::",
            stringify!(bmAttributes)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the SuperSpeed USB Device Capability descriptor
/// This descriptor is documented in section 9.6.2.2 of the USB 3.0 specification.
/// All multiple-byte fields are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_ss_usb_device_capability_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_DEVICE_CAPABILITY
    /// LIBUSB_DT_DEVICE_CAPABILITY in this context.
    pub bDescriptorType: u8,
    /// Capability type. Will have value
    /// \ref libusb_capability_type::LIBUSB_BT_SS_USB_DEVICE_CAPABILITY
    /// LIBUSB_BT_SS_USB_DEVICE_CAPABILITY in this context.
    pub bDevCapabilityType: u8,
    /// Bitmap encoding of supported device level features.
    /// A value of one in a bit location indicates a feature is
    /// supported; a value of zero indicates it is not supported.
    /// See \ref libusb_ss_usb_device_capability_attributes.
    pub bmAttributes: u8,
    /// Bitmap encoding of the speed supported by this device when
    /// operating in SuperSpeed mode. See \ref libusb_supported_speed.
    pub wSpeedSupported: u16,
    /// The lowest speed at which all the functionality supported
    /// by the device is available to the user. For example if the
    /// device supports all its functionality when connected at
    /// full speed and above then it sets this value to 1.
    pub bFunctionalitySupport: u8,
    /// U1 Device Exit Latency.
    pub bU1DevExitLat: u8,
    /// U2 Device Exit Latency.
    pub bU2DevExitLat: u16,
}
#[test]
fn bindgen_test_layout_libusb_ss_usb_device_capability_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_ss_usb_device_capability_descriptor>(),
        10usize,
        concat!(
            "Size of: ",
            stringify!(libusb_ss_usb_device_capability_descriptor)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_ss_usb_device_capability_descriptor>(),
        2usize,
        concat!(
            "Alignment of ",
            stringify!(libusb_ss_usb_device_capability_descriptor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).bLength
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).bDescriptorType
                as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>()))
                .bDevCapabilityType as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bDevCapabilityType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).bmAttributes
                as *const _ as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bmAttributes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).wSpeedSupported
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(wSpeedSupported)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>()))
                .bFunctionalitySupport as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bFunctionalitySupport)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).bU1DevExitLat
                as *const _ as usize
        },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bU1DevExitLat)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_ss_usb_device_capability_descriptor>())).bU2DevExitLat
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_ss_usb_device_capability_descriptor),
            "::",
            stringify!(bU2DevExitLat)
        )
    );
}
/// \ingroup libusb_desc
/// A structure representing the Container ID descriptor.
/// This descriptor is documented in section 9.6.2.3 of the USB 3.0 specification.
/// All multiple-byte fields, except UUIDs, are represented in host-endian format.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_container_id_descriptor {
    /// Size of this descriptor (in bytes)
    pub bLength: u8,
    /// Descriptor type. Will have value
    /// \ref libusb_descriptor_type::LIBUSB_DT_DEVICE_CAPABILITY
    /// LIBUSB_DT_DEVICE_CAPABILITY in this context.
    pub bDescriptorType: u8,
    /// Capability type. Will have value
    /// \ref libusb_capability_type::LIBUSB_BT_CONTAINER_ID
    /// LIBUSB_BT_CONTAINER_ID in this context.
    pub bDevCapabilityType: u8,
    /// Reserved field
    pub bReserved: u8,
    /// 128 bit UUID
    pub ContainerID: [u8; 16usize],
}
#[test]
fn bindgen_test_layout_libusb_container_id_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_container_id_descriptor>(),
        20usize,
        concat!("Size of: ", stringify!(libusb_container_id_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_container_id_descriptor>(),
        1usize,
        concat!("Alignment of ", stringify!(libusb_container_id_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_container_id_descriptor>())).bLength as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_container_id_descriptor),
            "::",
            stringify!(bLength)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_container_id_descriptor>())).bDescriptorType as *const _
                as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_container_id_descriptor),
            "::",
            stringify!(bDescriptorType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_container_id_descriptor>())).bDevCapabilityType
                as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_container_id_descriptor),
            "::",
            stringify!(bDevCapabilityType)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_container_id_descriptor>())).bReserved as *const _
                as usize
        },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_container_id_descriptor),
            "::",
            stringify!(bReserved)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_container_id_descriptor>())).ContainerID as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_container_id_descriptor),
            "::",
            stringify!(ContainerID)
        )
    );
}
/// \ingroup libusb_asyncio
/// Setup packet for control transfers.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_control_setup {
    /// Request type. Bits 0:4 determine recipient, see
    /// \ref libusb_request_recipient. Bits 5:6 determine type, see
    /// \ref libusb_request_type. Bit 7 determines data transfer direction, see
    /// \ref libusb_endpoint_direction.
    pub bmRequestType: u8,
    /// Request. If the type bits of bmRequestType are equal to
    /// \ref libusb_request_type::LIBUSB_REQUEST_TYPE_STANDARD
    /// "LIBUSB_REQUEST_TYPE_STANDARD" then this field refers to
    /// \ref libusb_standard_request. For other cases, use of this field is
    /// application-specific.
    pub bRequest: u8,
    /// Value. Varies according to request
    pub wValue: u16,
    /// Index. Varies according to request, typically used to pass an index
    /// or offset
    pub wIndex: u16,
    /// Number of bytes to transfer
    pub wLength: u16,
}
#[test]
fn bindgen_test_layout_libusb_control_setup() {
    assert_eq!(
        ::std::mem::size_of::<libusb_control_setup>(),
        8usize,
        concat!("Size of: ", stringify!(libusb_control_setup))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_control_setup>(),
        2usize,
        concat!("Alignment of ", stringify!(libusb_control_setup))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_control_setup>())).bmRequestType as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_control_setup),
            "::",
            stringify!(bmRequestType)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_control_setup>())).bRequest as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_control_setup),
            "::",
            stringify!(bRequest)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_control_setup>())).wValue as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_control_setup),
            "::",
            stringify!(wValue)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_control_setup>())).wIndex as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_control_setup),
            "::",
            stringify!(wIndex)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_control_setup>())).wLength as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_control_setup),
            "::",
            stringify!(wLength)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_context {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_device {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_device_handle {
    _unused: [u8; 0],
}
/// \ingroup libusb_lib
/// Structure providing the version of the libusb runtime
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_version {
    /// Library major version.
    pub major: u16,
    /// Library minor version.
    pub minor: u16,
    /// Library micro version.
    pub micro: u16,
    /// Library nano version.
    pub nano: u16,
    /// Library release candidate suffix string, e.g. "-rc4".
    pub rc: *const ::std::os::raw::c_char,
    /// For ABI compatibility only.
    pub describe: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_libusb_version() {
    assert_eq!(
        ::std::mem::size_of::<libusb_version>(),
        24usize,
        concat!("Size of: ", stringify!(libusb_version))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_version>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_version))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).major as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(major)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).minor as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(minor)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).micro as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(micro)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).nano as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(nano)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).rc as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(rc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_version>())).describe as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_version),
            "::",
            stringify!(describe)
        )
    );
}
/// The OS doesn't report or know the device speed.
pub const LIBUSB_SPEED_UNKNOWN: libusb_speed = 0;
/// The device is operating at low speed (1.5MBit/s).
pub const LIBUSB_SPEED_LOW: libusb_speed = 1;
/// The device is operating at full speed (12MBit/s).
pub const LIBUSB_SPEED_FULL: libusb_speed = 2;
/// The device is operating at high speed (480MBit/s).
pub const LIBUSB_SPEED_HIGH: libusb_speed = 3;
/// The device is operating at super speed (5000MBit/s).
pub const LIBUSB_SPEED_SUPER: libusb_speed = 4;
/// \ingroup libusb_dev
/// Speed codes. Indicates the speed at which the device is operating.
pub type libusb_speed = u32;
/// Low speed operation supported (1.5MBit/s).
pub const LIBUSB_LOW_SPEED_OPERATION: libusb_supported_speed = 1;
/// Full speed operation supported (12MBit/s).
pub const LIBUSB_FULL_SPEED_OPERATION: libusb_supported_speed = 2;
/// High speed operation supported (480MBit/s).
pub const LIBUSB_HIGH_SPEED_OPERATION: libusb_supported_speed = 4;
/// Superspeed operation supported (5000MBit/s).
pub const LIBUSB_SUPER_SPEED_OPERATION: libusb_supported_speed = 8;
/// \ingroup libusb_dev
/// Supported speeds (wSpeedSupported) bitfield. Indicates what
/// speeds the device supports.
pub type libusb_supported_speed = u32;
/// Supports Link Power Management (LPM)
pub const LIBUSB_BM_LPM_SUPPORT: libusb_usb_2_0_extension_attributes = 2;
/// \ingroup libusb_dev
/// Masks for the bits of the
/// \ref libusb_usb_2_0_extension_descriptor::bmAttributes "bmAttributes" field
/// of the USB 2.0 Extension descriptor.
pub type libusb_usb_2_0_extension_attributes = u32;
/// Supports Latency Tolerance Messages (LTM)
pub const LIBUSB_BM_LTM_SUPPORT: libusb_ss_usb_device_capability_attributes = 2;
/// \ingroup libusb_dev
/// Masks for the bits of the
/// \ref libusb_ss_usb_device_capability_descriptor::bmAttributes "bmAttributes" field
/// field of the SuperSpeed USB Device Capability descriptor.
pub type libusb_ss_usb_device_capability_attributes = u32;
/// Wireless USB device capability
pub const LIBUSB_BT_WIRELESS_USB_DEVICE_CAPABILITY: libusb_bos_type = 1;
/// USB 2.0 extensions
pub const LIBUSB_BT_USB_2_0_EXTENSION: libusb_bos_type = 2;
/// SuperSpeed USB device capability
pub const LIBUSB_BT_SS_USB_DEVICE_CAPABILITY: libusb_bos_type = 3;
/// Container ID type
pub const LIBUSB_BT_CONTAINER_ID: libusb_bos_type = 4;
/// \ingroup libusb_dev
/// USB capability types
pub type libusb_bos_type = u32;
/// Success (no error)
pub const LIBUSB_SUCCESS: libusb_error = 0;
/// Input/output error
pub const LIBUSB_ERROR_IO: libusb_error = -1;
/// Invalid parameter
pub const LIBUSB_ERROR_INVALID_PARAM: libusb_error = -2;
/// Access denied (insufficient permissions)
pub const LIBUSB_ERROR_ACCESS: libusb_error = -3;
/// No such device (it may have been disconnected)
pub const LIBUSB_ERROR_NO_DEVICE: libusb_error = -4;
/// Entity not found
pub const LIBUSB_ERROR_NOT_FOUND: libusb_error = -5;
/// Resource busy
pub const LIBUSB_ERROR_BUSY: libusb_error = -6;
/// Operation timed out
pub const LIBUSB_ERROR_TIMEOUT: libusb_error = -7;
/// Overflow
pub const LIBUSB_ERROR_OVERFLOW: libusb_error = -8;
/// Pipe error
pub const LIBUSB_ERROR_PIPE: libusb_error = -9;
/// System call interrupted (perhaps due to signal)
pub const LIBUSB_ERROR_INTERRUPTED: libusb_error = -10;
/// Insufficient memory
pub const LIBUSB_ERROR_NO_MEM: libusb_error = -11;
/// Operation not supported or unimplemented on this platform
pub const LIBUSB_ERROR_NOT_SUPPORTED: libusb_error = -12;
/// Other error
pub const LIBUSB_ERROR_OTHER: libusb_error = -99;
/// \ingroup libusb_misc
/// Error codes. Most libusb functions return 0 on success or one of these
/// codes on failure.
/// You can call libusb_error_name() to retrieve a string representation of an
/// error code or libusb_strerror() to get an end-user suitable description of
/// an error code.
pub type libusb_error = i32;
/// Transfer completed without error. Note that this does not indicate
/// that the entire amount of requested data was transferred.
pub const LIBUSB_TRANSFER_COMPLETED: libusb_transfer_status = 0;
/// Transfer failed
pub const LIBUSB_TRANSFER_ERROR: libusb_transfer_status = 1;
/// Transfer timed out
pub const LIBUSB_TRANSFER_TIMED_OUT: libusb_transfer_status = 2;
/// Transfer was cancelled
pub const LIBUSB_TRANSFER_CANCELLED: libusb_transfer_status = 3;
/// For bulk/interrupt endpoints: halt condition detected (endpoint
/// stalled). For control endpoints: control request not supported.
pub const LIBUSB_TRANSFER_STALL: libusb_transfer_status = 4;
/// Device was disconnected
pub const LIBUSB_TRANSFER_NO_DEVICE: libusb_transfer_status = 5;
/// Device sent more data than requested
pub const LIBUSB_TRANSFER_OVERFLOW: libusb_transfer_status = 6;
/// \ingroup libusb_asyncio
/// Transfer status codes
pub type libusb_transfer_status = u32;
/// Report short frames as errors
pub const LIBUSB_TRANSFER_SHORT_NOT_OK: libusb_transfer_flags = 1;
/// Automatically free() transfer buffer during libusb_free_transfer().
/// Note that buffers allocated with libusb_dev_mem_alloc() should not
/// be attempted freed in this way, since free() is not an appropriate
/// way to release such memory.
pub const LIBUSB_TRANSFER_FREE_BUFFER: libusb_transfer_flags = 2;
/// Automatically call libusb_free_transfer() after callback returns.
/// If this flag is set, it is illegal to call libusb_free_transfer()
/// from your transfer callback, as this will result in a double-free
/// when this flag is acted upon.
pub const LIBUSB_TRANSFER_FREE_TRANSFER: libusb_transfer_flags = 4;
/// Terminate transfers that are a multiple of the endpoint's
/// wMaxPacketSize with an extra zero length packet. This is useful
/// when a device protocol mandates that each logical request is
/// terminated by an incomplete packet (i.e. the logical requests are
/// not separated by other means).
///
/// This flag only affects host-to-device transfers to bulk and interrupt
/// endpoints. In other situations, it is ignored.
///
/// This flag only affects transfers with a length that is a multiple of
/// the endpoint's wMaxPacketSize. On transfers of other lengths, this
/// flag has no effect. Therefore, if you are working with a device that
/// needs a ZLP whenever the end of the logical request falls on a packet
/// boundary, then it is sensible to set this flag on <em>every</em>
/// transfer (you do not have to worry about only setting it on transfers
/// that end on the boundary).
///
/// This flag is currently only supported on Linux.
/// On other systems, libusb_submit_transfer() will return
/// LIBUSB_ERROR_NOT_SUPPORTED for every transfer where this flag is set.
///
/// Available since libusb-1.0.9.
pub const LIBUSB_TRANSFER_ADD_ZERO_PACKET: libusb_transfer_flags = 8;
/// \ingroup libusb_asyncio
/// libusb_transfer.flags values
pub type libusb_transfer_flags = u32;
/// \ingroup libusb_asyncio
/// Isochronous packet descriptor.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_iso_packet_descriptor {
    /// Length of data to request in this packet
    pub length: ::std::os::raw::c_uint,
    /// Amount of data that was actually transferred
    pub actual_length: ::std::os::raw::c_uint,
    /// Status code for this packet
    pub status: libusb_transfer_status,
}
#[test]
fn bindgen_test_layout_libusb_iso_packet_descriptor() {
    assert_eq!(
        ::std::mem::size_of::<libusb_iso_packet_descriptor>(),
        12usize,
        concat!("Size of: ", stringify!(libusb_iso_packet_descriptor))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_iso_packet_descriptor>(),
        4usize,
        concat!("Alignment of ", stringify!(libusb_iso_packet_descriptor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_iso_packet_descriptor>())).length as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_iso_packet_descriptor),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_iso_packet_descriptor>())).actual_length as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_iso_packet_descriptor),
            "::",
            stringify!(actual_length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<libusb_iso_packet_descriptor>())).status as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_iso_packet_descriptor),
            "::",
            stringify!(status)
        )
    );
}
/// \ingroup libusb_asyncio
/// Asynchronous transfer callback function type. When submitting asynchronous
/// transfers, you pass a pointer to a callback function of this type via the
/// \ref libusb_transfer::callback "callback" member of the libusb_transfer
/// structure. libusb will call this function later, when the transfer has
/// completed or failed. See \ref libusb_asyncio for more information.
/// \param transfer The libusb_transfer struct the callback function is being
/// notified about.
pub type libusb_transfer_cb_fn =
    ::std::option::Option<unsafe extern "C" fn(transfer: *mut libusb_transfer)>;
/// \ingroup libusb_asyncio
/// The generic USB transfer structure. The user populates this structure and
/// then submits it in order to request a transfer. After the transfer has
/// completed, the library populates the transfer with the results and passes
/// it back to the user.
#[repr(C)]
#[derive(Debug)]
pub struct libusb_transfer {
    /// Handle of the device that this transfer will be submitted to
    pub dev_handle: *mut libusb_device_handle,
    /// A bitwise OR combination of \ref libusb_transfer_flags.
    pub flags: u8,
    /// Address of the endpoint where this transfer will be sent.
    pub endpoint: ::std::os::raw::c_uchar,
    /// Type of the endpoint from \ref libusb_transfer_type
    pub type_: ::std::os::raw::c_uchar,
    /// Timeout for this transfer in millseconds. A value of 0 indicates no
    /// timeout.
    pub timeout: ::std::os::raw::c_uint,
    /// The status of the transfer. Read-only, and only for use within
    /// transfer callback function.
    ///
    /// If this is an isochronous transfer, this field may read COMPLETED even
    /// if there were errors in the frames. Use the
    /// \ref libusb_iso_packet_descriptor::status "status" field in each packet
    /// to determine if errors occurred.
    pub status: libusb_transfer_status,
    /// Length of the data buffer
    pub length: ::std::os::raw::c_int,
    /// Actual length of data that was transferred. Read-only, and only for
    /// use within transfer callback function. Not valid for isochronous
    /// endpoint transfers.
    pub actual_length: ::std::os::raw::c_int,
    /// Callback function. This will be invoked when the transfer completes,
    /// fails, or is cancelled.
    pub callback: libusb_transfer_cb_fn,
    /// User context data to pass to the callback function.
    pub user_data: *mut ::std::os::raw::c_void,
    /// Data buffer
    pub buffer: *mut ::std::os::raw::c_uchar,
    /// Number of isochronous packets. Only used for I/O with isochronous
    /// endpoints.
    pub num_iso_packets: ::std::os::raw::c_int,
    /// Isochronous packet descriptors, for isochronous transfers only.
    pub iso_packet_desc: __IncompleteArrayField<libusb_iso_packet_descriptor>,
}
#[test]
fn bindgen_test_layout_libusb_transfer() {
    assert_eq!(
        ::std::mem::size_of::<libusb_transfer>(),
        64usize,
        concat!("Size of: ", stringify!(libusb_transfer))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_transfer>(),
        8usize,
        concat!("Alignment of ", stringify!(libusb_transfer))
    );
}
/// The libusb_has_capability() API is available.
pub const LIBUSB_CAP_HAS_CAPABILITY: libusb_capability = 0;
/// Hotplug support is available on this platform.
pub const LIBUSB_CAP_HAS_HOTPLUG: libusb_capability = 1;
/// The library can access HID devices without requiring user intervention.
/// Note that before being able to actually access an HID device, you may
/// still have to call additional libusb functions such as
/// \ref libusb_detach_kernel_driver().
pub const LIBUSB_CAP_HAS_HID_ACCESS: libusb_capability = 256;
/// The library supports detaching of the default USB driver, using
/// \ref libusb_detach_kernel_driver(), if one is set by the OS kernel
pub const LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER: libusb_capability = 257;
/// \ingroup libusb_misc
/// Capabilities supported by an instance of libusb on the current running
/// platform. Test if the loaded library supports a given capability by calling
/// \ref libusb_has_capability().
pub type libusb_capability = u32;
pub const LIBUSB_LOG_LEVEL_NONE: libusb_log_level = 0;
pub const LIBUSB_LOG_LEVEL_ERROR: libusb_log_level = 1;
pub const LIBUSB_LOG_LEVEL_WARNING: libusb_log_level = 2;
pub const LIBUSB_LOG_LEVEL_INFO: libusb_log_level = 3;
pub const LIBUSB_LOG_LEVEL_DEBUG: libusb_log_level = 4;
/// \ingroup libusb_lib
/// Log message levels.
/// - LIBUSB_LOG_LEVEL_NONE (0)    : no messages ever printed by the library (default)
/// - LIBUSB_LOG_LEVEL_ERROR (1)   : error messages are printed to stderr
/// - LIBUSB_LOG_LEVEL_WARNING (2) : warning and error messages are printed to stderr
/// - LIBUSB_LOG_LEVEL_INFO (3)    : informational messages are printed to stdout, warning
/// and error messages are printed to stderr
/// - LIBUSB_LOG_LEVEL_DEBUG (4)   : debug and informational messages are printed to stdout,
/// warnings and errors to stderr
pub type libusb_log_level = u32;
extern "C" {
    pub fn libusb_init(ctx: *mut *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_init_jailed(ctx: *mut *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_exit(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_get_device_from_fd(
        ctx: *mut libusb_context,
        fd: ::std::os::raw::c_int,
        device: *mut *mut libusb_device,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_set_debug(ctx: *mut libusb_context, level: ::std::os::raw::c_int);
}
extern "C" {
    pub fn libusb_get_version() -> *const libusb_version;
}
extern "C" {
    pub fn libusb_has_capability(capability: u32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_error_name(errcode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn libusb_setlocale(locale: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_strerror(errcode: libusb_error) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn libusb_get_device_list(
        ctx: *mut libusb_context,
        list: *mut *mut *mut libusb_device,
    ) -> isize;
}
extern "C" {
    pub fn libusb_free_device_list(
        list: *mut *mut libusb_device,
        unref_devices: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn libusb_ref_device(dev: *mut libusb_device) -> *mut libusb_device;
}
extern "C" {
    pub fn libusb_unref_device(dev: *mut libusb_device);
}
extern "C" {
    pub fn libusb_get_configuration(
        dev: *mut libusb_device_handle,
        config: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_device_descriptor(
        dev: *mut libusb_device,
        desc: *mut libusb_device_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_active_config_descriptor(
        dev: *mut libusb_device,
        config: *mut *mut libusb_config_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_config_descriptor(
        dev: *mut libusb_device,
        config_index: u8,
        config: *mut *mut libusb_config_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_config_descriptor_by_value(
        dev: *mut libusb_device,
        bConfigurationValue: u8,
        config: *mut *mut libusb_config_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_config_descriptor(config: *mut libusb_config_descriptor);
}
extern "C" {
    pub fn libusb_get_ss_endpoint_companion_descriptor(
        ctx: *mut libusb_context,
        endpoint: *const libusb_endpoint_descriptor,
        ep_comp: *mut *mut libusb_ss_endpoint_companion_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_ss_endpoint_companion_descriptor(
        ep_comp: *mut libusb_ss_endpoint_companion_descriptor,
    );
}
extern "C" {
    pub fn libusb_get_bos_descriptor(
        dev_handle: *mut libusb_device_handle,
        bos: *mut *mut libusb_bos_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_bos_descriptor(bos: *mut libusb_bos_descriptor);
}
extern "C" {
    pub fn libusb_get_usb_2_0_extension_descriptor(
        ctx: *mut libusb_context,
        dev_cap: *mut libusb_bos_dev_capability_descriptor,
        usb_2_0_extension: *mut *mut libusb_usb_2_0_extension_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_usb_2_0_extension_descriptor(
        usb_2_0_extension: *mut libusb_usb_2_0_extension_descriptor,
    );
}
extern "C" {
    pub fn libusb_get_ss_usb_device_capability_descriptor(
        ctx: *mut libusb_context,
        dev_cap: *mut libusb_bos_dev_capability_descriptor,
        ss_usb_device_cap: *mut *mut libusb_ss_usb_device_capability_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_ss_usb_device_capability_descriptor(
        ss_usb_device_cap: *mut libusb_ss_usb_device_capability_descriptor,
    );
}
extern "C" {
    pub fn libusb_get_container_id_descriptor(
        ctx: *mut libusb_context,
        dev_cap: *mut libusb_bos_dev_capability_descriptor,
        container_id: *mut *mut libusb_container_id_descriptor,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_container_id_descriptor(container_id: *mut libusb_container_id_descriptor);
}
extern "C" {
    pub fn libusb_get_bus_number(dev: *mut libusb_device) -> u8;
}
extern "C" {
    pub fn libusb_get_port_number(dev: *mut libusb_device) -> u8;
}
extern "C" {
    pub fn libusb_get_port_numbers(
        dev: *mut libusb_device,
        port_numbers: *mut u8,
        port_numbers_len: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_port_path(
        ctx: *mut libusb_context,
        dev: *mut libusb_device,
        path: *mut u8,
        path_length: u8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_parent(dev: *mut libusb_device) -> *mut libusb_device;
}
extern "C" {
    pub fn libusb_get_device_address(dev: *mut libusb_device) -> u8;
}
extern "C" {
    pub fn libusb_get_device_speed(dev: *mut libusb_device) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_max_packet_size(
        dev: *mut libusb_device,
        endpoint: ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_max_iso_packet_size(
        dev: *mut libusb_device,
        endpoint: ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_open(
        dev: *mut libusb_device,
        dev_handle: *mut *mut libusb_device_handle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_open_fd(
        dev: *mut libusb_device,
        fd: ::std::os::raw::c_int,
        handle: *mut *mut libusb_device_handle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_close(dev_handle: *mut libusb_device_handle);
}
extern "C" {
    pub fn libusb_get_device(dev_handle: *mut libusb_device_handle) -> *mut libusb_device;
}
extern "C" {
    pub fn libusb_set_configuration(
        dev_handle: *mut libusb_device_handle,
        configuration: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_claim_interface(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_release_interface(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_open_device_with_vid_pid(
        ctx: *mut libusb_context,
        vendor_id: u16,
        product_id: u16,
    ) -> *mut libusb_device_handle;
}
extern "C" {
    pub fn libusb_set_interface_alt_setting(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
        alternate_setting: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_clear_halt(
        dev_handle: *mut libusb_device_handle,
        endpoint: ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_reset_device(dev_handle: *mut libusb_device_handle) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_alloc_streams(
        dev_handle: *mut libusb_device_handle,
        num_streams: u32,
        endpoints: *mut ::std::os::raw::c_uchar,
        num_endpoints: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_streams(
        dev_handle: *mut libusb_device_handle,
        endpoints: *mut ::std::os::raw::c_uchar,
        num_endpoints: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_dev_mem_alloc(
        dev_handle: *mut libusb_device_handle,
        length: usize,
    ) -> *mut ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn libusb_dev_mem_free(
        dev_handle: *mut libusb_device_handle,
        buffer: *mut ::std::os::raw::c_uchar,
        length: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_kernel_driver_active(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_detach_kernel_driver(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_attach_kernel_driver(
        dev_handle: *mut libusb_device_handle,
        interface_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_set_auto_detach_kernel_driver(
        dev_handle: *mut libusb_device_handle,
        enable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_alloc_transfer(iso_packets: ::std::os::raw::c_int) -> *mut libusb_transfer;
}
extern "C" {
    pub fn libusb_submit_transfer(transfer: *mut libusb_transfer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_cancel_transfer(transfer: *mut libusb_transfer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_free_transfer(transfer: *mut libusb_transfer);
}
extern "C" {
    pub fn libusb_transfer_set_stream_id(transfer: *mut libusb_transfer, stream_id: u32);
}
extern "C" {
    pub fn libusb_transfer_get_stream_id(transfer: *mut libusb_transfer) -> u32;
}
extern "C" {
    pub fn libusb_control_transfer(
        dev_handle: *mut libusb_device_handle,
        request_type: u8,
        bRequest: u8,
        wValue: u16,
        wIndex: u16,
        data: *mut ::std::os::raw::c_uchar,
        wLength: u16,
        timeout: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_bulk_transfer(
        dev_handle: *mut libusb_device_handle,
        endpoint: ::std::os::raw::c_uchar,
        data: *mut ::std::os::raw::c_uchar,
        length: ::std::os::raw::c_int,
        actual_length: *mut ::std::os::raw::c_int,
        timeout: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_interrupt_transfer(
        dev_handle: *mut libusb_device_handle,
        endpoint: ::std::os::raw::c_uchar,
        data: *mut ::std::os::raw::c_uchar,
        length: ::std::os::raw::c_int,
        actual_length: *mut ::std::os::raw::c_int,
        timeout: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_string_descriptor_ascii(
        dev_handle: *mut libusb_device_handle,
        desc_index: u8,
        data: *mut ::std::os::raw::c_uchar,
        length: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_try_lock_events(ctx: *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_lock_events(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_unlock_events(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_event_handling_ok(ctx: *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_event_handler_active(ctx: *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_interrupt_event_handler(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_lock_event_waiters(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_unlock_event_waiters(ctx: *mut libusb_context);
}
extern "C" {
    pub fn libusb_wait_for_event(
        ctx: *mut libusb_context,
        tv: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_handle_events_timeout(
        ctx: *mut libusb_context,
        tv: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_handle_events_timeout_completed(
        ctx: *mut libusb_context,
        tv: *mut timeval,
        completed: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_handle_events(ctx: *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_handle_events_completed(
        ctx: *mut libusb_context,
        completed: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_handle_events_locked(
        ctx: *mut libusb_context,
        tv: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_pollfds_handle_timeouts(ctx: *mut libusb_context) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn libusb_get_next_timeout(
        ctx: *mut libusb_context,
        tv: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
/// \ingroup libusb_poll
/// File descriptor for polling
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct libusb_pollfd {
    /// Numeric file descriptor
    pub fd: ::std::os::raw::c_int,
    /// Event flags to poll for from <poll.h>. POLLIN indicates that you
    /// should monitor this file descriptor for becoming ready to read from,
    /// and POLLOUT indicates that you should monitor this file descriptor for
    /// nonblocking write readiness.
    pub events: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout_libusb_pollfd() {
    assert_eq!(
        ::std::mem::size_of::<libusb_pollfd>(),
        8usize,
        concat!("Size of: ", stringify!(libusb_pollfd))
    );
    assert_eq!(
        ::std::mem::align_of::<libusb_pollfd>(),
        4usize,
        concat!("Alignment of ", stringify!(libusb_pollfd))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_pollfd>())).fd as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_pollfd),
            "::",
            stringify!(fd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<libusb_pollfd>())).events as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(libusb_pollfd),
            "::",
            stringify!(events)
        )
    );
}
/// \ingroup libusb_poll
/// Callback function, invoked when a new file descriptor should be added
/// to the set of file descriptors monitored for events.
/// \param fd the new file descriptor
/// \param events events to monitor for, see \ref libusb_pollfd for a
/// description
/// \param user_data User data pointer specified in
/// libusb_set_pollfd_notifiers() call
/// \see libusb_set_pollfd_notifiers()
pub type libusb_pollfd_added_cb = ::std::option::Option<
    unsafe extern "C" fn(
        fd: ::std::os::raw::c_int,
        events: ::std::os::raw::c_short,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
/// \ingroup libusb_poll
/// Callback function, invoked when a file descriptor should be removed from
/// the set of file descriptors being monitored for events. After returning
/// from this callback, do not use that file descriptor again.
/// \param fd the file descriptor to stop monitoring
/// \param user_data User data pointer specified in
/// libusb_set_pollfd_notifiers() call
/// \see libusb_set_pollfd_notifiers()
pub type libusb_pollfd_removed_cb = ::std::option::Option<
    unsafe extern "C" fn(fd: ::std::os::raw::c_int, user_data: *mut ::std::os::raw::c_void),
>;
extern "C" {
    pub fn libusb_get_pollfds(ctx: *mut libusb_context) -> *mut *const libusb_pollfd;
}
extern "C" {
    pub fn libusb_free_pollfds(pollfds: *mut *const libusb_pollfd);
}
extern "C" {
    pub fn libusb_set_pollfd_notifiers(
        ctx: *mut libusb_context,
        added_cb: libusb_pollfd_added_cb,
        removed_cb: libusb_pollfd_removed_cb,
        user_data: *mut ::std::os::raw::c_void,
    );
}
/// \ingroup libusb_hotplug
/// Callback handle.
///
/// Callbacks handles are generated by libusb_hotplug_register_callback()
/// and can be used to deregister callbacks. Callback handles are unique
/// per libusb_context and it is safe to call libusb_hotplug_deregister_callback()
/// on an already deregisted callback.
///
/// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
///
/// For more information, see \ref libusb_hotplug.
pub type libusb_hotplug_callback_handle = ::std::os::raw::c_int;
/// Default value when not using any flags.
pub const LIBUSB_HOTPLUG_NO_FLAGS: libusb_hotplug_flag = 0;
/// Arm the callback and fire it for all matching currently attached devices.
pub const LIBUSB_HOTPLUG_ENUMERATE: libusb_hotplug_flag = 1;
/// \ingroup libusb_hotplug
///
/// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
///
/// Flags for hotplug events
pub type libusb_hotplug_flag = u32;
/// A device has been plugged in and is ready to use
pub const LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED: libusb_hotplug_event = 1;
/// A device has left and is no longer available.
/// It is the user's responsibility to call libusb_close on any handle associated with a disconnected device.
/// It is safe to call libusb_get_device_descriptor on a device that has left
pub const LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT: libusb_hotplug_event = 2;
/// \ingroup libusb_hotplug
///
/// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
///
/// Hotplug events
pub type libusb_hotplug_event = u32;
/// \ingroup libusb_hotplug
/// Hotplug callback function type. When requesting hotplug event notifications,
/// you pass a pointer to a callback function of this type.
///
/// This callback may be called by an internal event thread and as such it is
/// recommended the callback do minimal processing before returning.
///
/// libusb will call this function later, when a matching event had happened on
/// a matching device. See \ref libusb_hotplug for more information.
///
/// It is safe to call either libusb_hotplug_register_callback() or
/// libusb_hotplug_deregister_callback() from within a callback function.
///
/// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
///
/// \param ctx            context of this notification
/// \param device         libusb_device this event occurred on
/// \param event          event that occurred
/// \param user_data      user data provided when this callback was registered
/// \returns bool whether this callback is finished processing events.
/// returning 1 will cause this callback to be deregistered
pub type libusb_hotplug_callback_fn = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut libusb_context,
        device: *mut libusb_device,
        event: libusb_hotplug_event,
        user_data: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    /// \ingroup libusb_hotplug
    /// Register a hotplug callback function
    ///
    /// Register a callback with the libusb_context. The callback will fire
    /// when a matching event occurs on a matching device. The callback is
    /// armed until either it is deregistered with libusb_hotplug_deregister_callback()
    /// or the supplied callback returns 1 to indicate it is finished processing events.
    ///
    /// If the \ref LIBUSB_HOTPLUG_ENUMERATE is passed the callback will be
    /// called with a \ref LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED for all devices
    /// already plugged into the machine. Note that libusb modifies its internal
    /// device list from a separate thread, while calling hotplug callbacks from
    /// libusb_handle_events(), so it is possible for a device to already be present
    /// on, or removed from, its internal device list, while the hotplug callbacks
    /// still need to be dispatched. This means that when using \ref
    /// LIBUSB_HOTPLUG_ENUMERATE, your callback may be called twice for the arrival
    /// of the same device, once from libusb_hotplug_register_callback() and once
    /// from libusb_handle_events(); and/or your callback may be called for the
    /// removal of a device for which an arrived call was never made.
    ///
    /// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
    ///
    /// \param[in] ctx context to register this callback with
    /// \param[in] events bitwise or of events that will trigger this callback. See \ref
    /// libusb_hotplug_event
    /// \param[in] flags hotplug callback flags. See \ref libusb_hotplug_flag
    /// \param[in] vendor_id the vendor id to match or \ref LIBUSB_HOTPLUG_MATCH_ANY
    /// \param[in] product_id the product id to match or \ref LIBUSB_HOTPLUG_MATCH_ANY
    /// \param[in] dev_class the device class to match or \ref LIBUSB_HOTPLUG_MATCH_ANY
    /// \param[in] cb_fn the function to be invoked on a matching event/device
    /// \param[in] user_data user data to pass to the callback function
    /// \param[out] callback_handle pointer to store the handle of the allocated callback (can be NULL)
    /// \returns LIBUSB_SUCCESS on success LIBUSB_ERROR code on failure
    pub fn libusb_hotplug_register_callback(
        ctx: *mut libusb_context,
        events: libusb_hotplug_event,
        flags: libusb_hotplug_flag,
        vendor_id: ::std::os::raw::c_int,
        product_id: ::std::os::raw::c_int,
        dev_class: ::std::os::raw::c_int,
        cb_fn: libusb_hotplug_callback_fn,
        user_data: *mut ::std::os::raw::c_void,
        callback_handle: *mut libusb_hotplug_callback_handle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    /// \ingroup libusb_hotplug
    /// Deregisters a hotplug callback.
    ///
    /// Deregister a callback from a libusb_context. This function is safe to call from within
    /// a hotplug callback.
    ///
    /// Since version 1.0.16, \ref LIBUSB_API_VERSION >= 0x01000102
    ///
    /// \param[in] ctx context this callback is registered with
    /// \param[in] callback_handle the handle of the callback to deregister
    pub fn libusb_hotplug_deregister_callback(
        ctx: *mut libusb_context,
        callback_handle: libusb_hotplug_callback_handle,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
    pub _address: u8,
}