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
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
/* automatically generated by rust-bindgen */

pub const TR_TRANSMISSION_H: u32 = 1;
pub const _INTTYPES_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
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 __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: 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 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 31;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const _STDINT_H: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const __TIMESIZE: u32 = 64;
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 __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_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 ____gwchar_t_defined: u32 = 1;
pub const __PRI64_PREFIX: &'static [u8; 2usize] = b"l\0";
pub const __PRIPTR_PREFIX: &'static [u8; 2usize] = b"l\0";
pub const PRId8: &'static [u8; 2usize] = b"d\0";
pub const PRId16: &'static [u8; 2usize] = b"d\0";
pub const PRId32: &'static [u8; 2usize] = b"d\0";
pub const PRId64: &'static [u8; 3usize] = b"ld\0";
pub const PRIdLEAST8: &'static [u8; 2usize] = b"d\0";
pub const PRIdLEAST16: &'static [u8; 2usize] = b"d\0";
pub const PRIdLEAST32: &'static [u8; 2usize] = b"d\0";
pub const PRIdLEAST64: &'static [u8; 3usize] = b"ld\0";
pub const PRIdFAST8: &'static [u8; 2usize] = b"d\0";
pub const PRIdFAST16: &'static [u8; 3usize] = b"ld\0";
pub const PRIdFAST32: &'static [u8; 3usize] = b"ld\0";
pub const PRIdFAST64: &'static [u8; 3usize] = b"ld\0";
pub const PRIi8: &'static [u8; 2usize] = b"i\0";
pub const PRIi16: &'static [u8; 2usize] = b"i\0";
pub const PRIi32: &'static [u8; 2usize] = b"i\0";
pub const PRIi64: &'static [u8; 3usize] = b"li\0";
pub const PRIiLEAST8: &'static [u8; 2usize] = b"i\0";
pub const PRIiLEAST16: &'static [u8; 2usize] = b"i\0";
pub const PRIiLEAST32: &'static [u8; 2usize] = b"i\0";
pub const PRIiLEAST64: &'static [u8; 3usize] = b"li\0";
pub const PRIiFAST8: &'static [u8; 2usize] = b"i\0";
pub const PRIiFAST16: &'static [u8; 3usize] = b"li\0";
pub const PRIiFAST32: &'static [u8; 3usize] = b"li\0";
pub const PRIiFAST64: &'static [u8; 3usize] = b"li\0";
pub const PRIo8: &'static [u8; 2usize] = b"o\0";
pub const PRIo16: &'static [u8; 2usize] = b"o\0";
pub const PRIo32: &'static [u8; 2usize] = b"o\0";
pub const PRIo64: &'static [u8; 3usize] = b"lo\0";
pub const PRIoLEAST8: &'static [u8; 2usize] = b"o\0";
pub const PRIoLEAST16: &'static [u8; 2usize] = b"o\0";
pub const PRIoLEAST32: &'static [u8; 2usize] = b"o\0";
pub const PRIoLEAST64: &'static [u8; 3usize] = b"lo\0";
pub const PRIoFAST8: &'static [u8; 2usize] = b"o\0";
pub const PRIoFAST16: &'static [u8; 3usize] = b"lo\0";
pub const PRIoFAST32: &'static [u8; 3usize] = b"lo\0";
pub const PRIoFAST64: &'static [u8; 3usize] = b"lo\0";
pub const PRIu8: &'static [u8; 2usize] = b"u\0";
pub const PRIu16: &'static [u8; 2usize] = b"u\0";
pub const PRIu32: &'static [u8; 2usize] = b"u\0";
pub const PRIu64: &'static [u8; 3usize] = b"lu\0";
pub const PRIuLEAST8: &'static [u8; 2usize] = b"u\0";
pub const PRIuLEAST16: &'static [u8; 2usize] = b"u\0";
pub const PRIuLEAST32: &'static [u8; 2usize] = b"u\0";
pub const PRIuLEAST64: &'static [u8; 3usize] = b"lu\0";
pub const PRIuFAST8: &'static [u8; 2usize] = b"u\0";
pub const PRIuFAST16: &'static [u8; 3usize] = b"lu\0";
pub const PRIuFAST32: &'static [u8; 3usize] = b"lu\0";
pub const PRIuFAST64: &'static [u8; 3usize] = b"lu\0";
pub const PRIx8: &'static [u8; 2usize] = b"x\0";
pub const PRIx16: &'static [u8; 2usize] = b"x\0";
pub const PRIx32: &'static [u8; 2usize] = b"x\0";
pub const PRIx64: &'static [u8; 3usize] = b"lx\0";
pub const PRIxLEAST8: &'static [u8; 2usize] = b"x\0";
pub const PRIxLEAST16: &'static [u8; 2usize] = b"x\0";
pub const PRIxLEAST32: &'static [u8; 2usize] = b"x\0";
pub const PRIxLEAST64: &'static [u8; 3usize] = b"lx\0";
pub const PRIxFAST8: &'static [u8; 2usize] = b"x\0";
pub const PRIxFAST16: &'static [u8; 3usize] = b"lx\0";
pub const PRIxFAST32: &'static [u8; 3usize] = b"lx\0";
pub const PRIxFAST64: &'static [u8; 3usize] = b"lx\0";
pub const PRIX8: &'static [u8; 2usize] = b"X\0";
pub const PRIX16: &'static [u8; 2usize] = b"X\0";
pub const PRIX32: &'static [u8; 2usize] = b"X\0";
pub const PRIX64: &'static [u8; 3usize] = b"lX\0";
pub const PRIXLEAST8: &'static [u8; 2usize] = b"X\0";
pub const PRIXLEAST16: &'static [u8; 2usize] = b"X\0";
pub const PRIXLEAST32: &'static [u8; 2usize] = b"X\0";
pub const PRIXLEAST64: &'static [u8; 3usize] = b"lX\0";
pub const PRIXFAST8: &'static [u8; 2usize] = b"X\0";
pub const PRIXFAST16: &'static [u8; 3usize] = b"lX\0";
pub const PRIXFAST32: &'static [u8; 3usize] = b"lX\0";
pub const PRIXFAST64: &'static [u8; 3usize] = b"lX\0";
pub const PRIdMAX: &'static [u8; 3usize] = b"ld\0";
pub const PRIiMAX: &'static [u8; 3usize] = b"li\0";
pub const PRIoMAX: &'static [u8; 3usize] = b"lo\0";
pub const PRIuMAX: &'static [u8; 3usize] = b"lu\0";
pub const PRIxMAX: &'static [u8; 3usize] = b"lx\0";
pub const PRIXMAX: &'static [u8; 3usize] = b"lX\0";
pub const PRIdPTR: &'static [u8; 3usize] = b"ld\0";
pub const PRIiPTR: &'static [u8; 3usize] = b"li\0";
pub const PRIoPTR: &'static [u8; 3usize] = b"lo\0";
pub const PRIuPTR: &'static [u8; 3usize] = b"lu\0";
pub const PRIxPTR: &'static [u8; 3usize] = b"lx\0";
pub const PRIXPTR: &'static [u8; 3usize] = b"lX\0";
pub const SCNd8: &'static [u8; 4usize] = b"hhd\0";
pub const SCNd16: &'static [u8; 3usize] = b"hd\0";
pub const SCNd32: &'static [u8; 2usize] = b"d\0";
pub const SCNd64: &'static [u8; 3usize] = b"ld\0";
pub const SCNdLEAST8: &'static [u8; 4usize] = b"hhd\0";
pub const SCNdLEAST16: &'static [u8; 3usize] = b"hd\0";
pub const SCNdLEAST32: &'static [u8; 2usize] = b"d\0";
pub const SCNdLEAST64: &'static [u8; 3usize] = b"ld\0";
pub const SCNdFAST8: &'static [u8; 4usize] = b"hhd\0";
pub const SCNdFAST16: &'static [u8; 3usize] = b"ld\0";
pub const SCNdFAST32: &'static [u8; 3usize] = b"ld\0";
pub const SCNdFAST64: &'static [u8; 3usize] = b"ld\0";
pub const SCNi8: &'static [u8; 4usize] = b"hhi\0";
pub const SCNi16: &'static [u8; 3usize] = b"hi\0";
pub const SCNi32: &'static [u8; 2usize] = b"i\0";
pub const SCNi64: &'static [u8; 3usize] = b"li\0";
pub const SCNiLEAST8: &'static [u8; 4usize] = b"hhi\0";
pub const SCNiLEAST16: &'static [u8; 3usize] = b"hi\0";
pub const SCNiLEAST32: &'static [u8; 2usize] = b"i\0";
pub const SCNiLEAST64: &'static [u8; 3usize] = b"li\0";
pub const SCNiFAST8: &'static [u8; 4usize] = b"hhi\0";
pub const SCNiFAST16: &'static [u8; 3usize] = b"li\0";
pub const SCNiFAST32: &'static [u8; 3usize] = b"li\0";
pub const SCNiFAST64: &'static [u8; 3usize] = b"li\0";
pub const SCNu8: &'static [u8; 4usize] = b"hhu\0";
pub const SCNu16: &'static [u8; 3usize] = b"hu\0";
pub const SCNu32: &'static [u8; 2usize] = b"u\0";
pub const SCNu64: &'static [u8; 3usize] = b"lu\0";
pub const SCNuLEAST8: &'static [u8; 4usize] = b"hhu\0";
pub const SCNuLEAST16: &'static [u8; 3usize] = b"hu\0";
pub const SCNuLEAST32: &'static [u8; 2usize] = b"u\0";
pub const SCNuLEAST64: &'static [u8; 3usize] = b"lu\0";
pub const SCNuFAST8: &'static [u8; 4usize] = b"hhu\0";
pub const SCNuFAST16: &'static [u8; 3usize] = b"lu\0";
pub const SCNuFAST32: &'static [u8; 3usize] = b"lu\0";
pub const SCNuFAST64: &'static [u8; 3usize] = b"lu\0";
pub const SCNo8: &'static [u8; 4usize] = b"hho\0";
pub const SCNo16: &'static [u8; 3usize] = b"ho\0";
pub const SCNo32: &'static [u8; 2usize] = b"o\0";
pub const SCNo64: &'static [u8; 3usize] = b"lo\0";
pub const SCNoLEAST8: &'static [u8; 4usize] = b"hho\0";
pub const SCNoLEAST16: &'static [u8; 3usize] = b"ho\0";
pub const SCNoLEAST32: &'static [u8; 2usize] = b"o\0";
pub const SCNoLEAST64: &'static [u8; 3usize] = b"lo\0";
pub const SCNoFAST8: &'static [u8; 4usize] = b"hho\0";
pub const SCNoFAST16: &'static [u8; 3usize] = b"lo\0";
pub const SCNoFAST32: &'static [u8; 3usize] = b"lo\0";
pub const SCNoFAST64: &'static [u8; 3usize] = b"lo\0";
pub const SCNx8: &'static [u8; 4usize] = b"hhx\0";
pub const SCNx16: &'static [u8; 3usize] = b"hx\0";
pub const SCNx32: &'static [u8; 2usize] = b"x\0";
pub const SCNx64: &'static [u8; 3usize] = b"lx\0";
pub const SCNxLEAST8: &'static [u8; 4usize] = b"hhx\0";
pub const SCNxLEAST16: &'static [u8; 3usize] = b"hx\0";
pub const SCNxLEAST32: &'static [u8; 2usize] = b"x\0";
pub const SCNxLEAST64: &'static [u8; 3usize] = b"lx\0";
pub const SCNxFAST8: &'static [u8; 4usize] = b"hhx\0";
pub const SCNxFAST16: &'static [u8; 3usize] = b"lx\0";
pub const SCNxFAST32: &'static [u8; 3usize] = b"lx\0";
pub const SCNxFAST64: &'static [u8; 3usize] = b"lx\0";
pub const SCNdMAX: &'static [u8; 3usize] = b"ld\0";
pub const SCNiMAX: &'static [u8; 3usize] = b"li\0";
pub const SCNoMAX: &'static [u8; 3usize] = b"lo\0";
pub const SCNuMAX: &'static [u8; 3usize] = b"lu\0";
pub const SCNxMAX: &'static [u8; 3usize] = b"lx\0";
pub const SCNdPTR: &'static [u8; 3usize] = b"ld\0";
pub const SCNiPTR: &'static [u8; 3usize] = b"li\0";
pub const SCNoPTR: &'static [u8; 3usize] = b"lo\0";
pub const SCNuPTR: &'static [u8; 3usize] = b"lu\0";
pub const SCNxPTR: &'static [u8; 3usize] = b"lx\0";
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 __clock_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __struct_tm_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const _BITS_ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const _BITS_ENDIANNESS_H: u32 = 1;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const __clockid_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __itimerspec_defined: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const TIME_UTC: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const SHA_DIGEST_LENGTH: u32 = 20;
pub const TR_INET6_ADDRSTRLEN: u32 = 46;
pub const TR_RPC_SESSION_ID_HEADER: &'static [u8; 26usize] = b"X-Transmission-Session-Id\0";
pub const TR_DEFAULT_BIND_ADDRESS_IPV4: &'static [u8; 8usize] = b"0.0.0.0\0";
pub const TR_DEFAULT_BIND_ADDRESS_IPV6: &'static [u8; 3usize] = b"::\0";
pub const TR_DEFAULT_RPC_WHITELIST: &'static [u8; 10usize] = b"127.0.0.1\0";
pub const TR_DEFAULT_RPC_HOST_WHITELIST: &'static [u8; 1usize] = b"\0";
pub const TR_DEFAULT_RPC_PORT_STR: &'static [u8; 5usize] = b"9091\0";
pub const TR_DEFAULT_RPC_URL_STR: &'static [u8; 15usize] = b"/transmission/\0";
pub const TR_DEFAULT_PEER_PORT_STR: &'static [u8; 6usize] = b"51413\0";
pub const TR_DEFAULT_PEER_SOCKET_TOS_STR: &'static [u8; 8usize] = b"default\0";
pub const TR_DEFAULT_PEER_LIMIT_GLOBAL_STR: &'static [u8; 4usize] = b"200\0";
pub const TR_DEFAULT_PEER_LIMIT_TORRENT_STR: &'static [u8; 3usize] = b"50\0";
pub const DEFAULT_BLOCKLIST_FILENAME: &'static [u8; 14usize] = b"blocklist.bin\0";
pub const TR_ETA_NOT_AVAIL: i32 = -1;
pub const TR_ETA_UNKNOWN: i32 = -2;
pub const TR_RATIO_NA: i32 = -1;
pub const TR_RATIO_INF: i32 = -2;
pub const __GNUC_VA_LIST: u32 = 1;
pub const TR_BAD_SYS_FILE: i32 = -1;
pub const TR_NATIVE_EOL_STR: &'static [u8; 2usize] = b"\n\0";
pub const TR_NATIVE_EOL_STR_SIZE: u32 = 1;
pub const TR_UTILS_H: u32 = 1;
pub const TR_VARIANT_H: u32 = 1;
pub const TR_QUARK_H: u32 = 1;
pub const TR_MAKEMETA_H: u32 = 1;
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 __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_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 __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 __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 __sig_atomic_t = ::std::os::raw::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
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 = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type __gwchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct imaxdiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_imaxdiv_t() {
    assert_eq!(
        ::std::mem::size_of::<imaxdiv_t>(),
        16usize,
        concat!("Size of: ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        ::std::mem::align_of::<imaxdiv_t>(),
        8usize,
        concat!("Alignment of ", stringify!(imaxdiv_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<imaxdiv_t>())).quot as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<imaxdiv_t>())).rem as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(imaxdiv_t),
            "::",
            stringify!(rem)
        )
    );
}
extern "C" {
    pub fn imaxabs(__n: intmax_t) -> intmax_t;
}
extern "C" {
    pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
extern "C" {
    pub fn strtoimax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn strtoumax(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
extern "C" {
    pub fn wcstoimax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> intmax_t;
}
extern "C" {
    pub fn wcstoumax(
        __nptr: *const __gwchar_t,
        __endptr: *mut *mut __gwchar_t,
        __base: ::std::os::raw::c_int,
    ) -> uintmax_t;
}
pub type clock_t = __clock_t;
pub type time_t = __time_t;
#[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 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)
        )
    );
}
pub type clockid_t = __clockid_t;
pub type timer_t = __timer_t;
#[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],
}
pub type pid_t = __pid_t;
#[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 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;
}
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 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;
}
pub type tr_file_index_t = u32;
pub type tr_piece_index_t = u32;
pub type tr_block_index_t = u32;
pub type tr_port = u16;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_ctor {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_torrent {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_session {
    _unused: [u8; 0],
}
pub type tr_priority_t = i8;
pub const tr_preallocation_mode_TR_PREALLOCATE_NONE: tr_preallocation_mode = 0;
pub const tr_preallocation_mode_TR_PREALLOCATE_SPARSE: tr_preallocation_mode = 1;
pub const tr_preallocation_mode_TR_PREALLOCATE_FULL: tr_preallocation_mode = 2;
pub type tr_preallocation_mode = u32;
pub const tr_encryption_mode_TR_CLEAR_PREFERRED: tr_encryption_mode = 0;
pub const tr_encryption_mode_TR_ENCRYPTION_PREFERRED: tr_encryption_mode = 1;
pub const tr_encryption_mode_TR_ENCRYPTION_REQUIRED: tr_encryption_mode = 2;
pub type tr_encryption_mode = u32;
extern "C" {
    #[doc = " @brief returns Transmission's default configuration file directory."]
    #[doc = ""]
    #[doc = " The default configuration directory is determined this way:"]
    #[doc = " -# If the TRANSMISSION_HOME environment variable is set, its value is used."]
    #[doc = " -# On Darwin, \"${HOME}/Library/Application Support/${appname}\" is used."]
    #[doc = " -# On Windows, \"${CSIDL_APPDATA}/${appname}\" is used."]
    #[doc = " -# If XDG_CONFIG_HOME is set, \"${XDG_CONFIG_HOME}/${appname}\" is used."]
    #[doc = " -# ${HOME}/.config/${appname}\" is used as a last resort."]
    pub fn tr_getDefaultConfigDir(
        appname: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief returns Transmisson's default download directory."]
    #[doc = ""]
    #[doc = " The default download directory is determined this way:"]
    #[doc = " -# If the HOME environment variable is set, \"${HOME}/Downloads\" is used."]
    #[doc = " -# On Windows, \"${CSIDL_MYDOCUMENTS}/Downloads\" is used."]
    #[doc = " -# Otherwise, getpwuid (getuid ())->pw_dir + \"/Downloads\" is used."]
    pub fn tr_getDefaultDownloadDir() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Add libtransmission's default settings to the benc dictionary."]
    #[doc = ""]
    #[doc = " Example:"]
    #[doc = " @code"]
    #[doc = "     tr_variant settings;"]
    #[doc = "     int64_t i;"]
    #[doc = ""]
    #[doc = "     tr_variantInitDict (&settings, 0);"]
    #[doc = "     tr_sessionGetDefaultSettings (&settings);"]
    #[doc = "     if (tr_variantDictFindInt (&settings, TR_PREFS_KEY_PEER_PORT, &i))"]
    #[doc = "         fprintf (stderr, \"the default peer port is %d\\n\", (int)i);"]
    #[doc = "     tr_variantFree (&settings);"]
    #[doc = " @endcode"]
    #[doc = ""]
    #[doc = " @param initme pointer to a tr_variant dictionary"]
    #[doc = " @see tr_sessionLoadSettings ()"]
    #[doc = " @see tr_sessionInit ()"]
    #[doc = " @see tr_getDefaultConfigDir ()"]
    pub fn tr_sessionGetDefaultSettings(dictionary: *mut tr_variant);
}
extern "C" {
    #[doc = " Add the session's current configuration settings to the benc dictionary."]
    #[doc = ""]
    #[doc = " FIXME: this probably belongs in libtransmissionapp"]
    #[doc = ""]
    #[doc = " @param session"]
    #[doc = " @param dictionary"]
    #[doc = " @see tr_sessionGetDefaultSettings ()"]
    pub fn tr_sessionGetSettings(arg1: *mut tr_session, dictionary: *mut tr_variant);
}
extern "C" {
    #[doc = " Load settings from the configuration directory's settings.json file,"]
    #[doc = " using libtransmission's default settings as fallbacks for missing keys."]
    #[doc = ""]
    #[doc = " FIXME: this belongs in libtransmissionapp"]
    #[doc = ""]
    #[doc = " @param dictionary pointer to an uninitialized tr_variant"]
    #[doc = " @param configDir the configuration directory to find settings.json"]
    #[doc = " @param appName if configDir is empty, appName is used to find the default dir."]
    #[doc = " @return success true if the settings were loaded, false otherwise"]
    #[doc = " @see tr_sessionGetDefaultSettings ()"]
    #[doc = " @see tr_sessionInit ()"]
    #[doc = " @see tr_sessionSaveSettings ()"]
    pub fn tr_sessionLoadSettings(
        dictionary: *mut tr_variant,
        configDir: *const ::std::os::raw::c_char,
        appName: *const ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " Add the session's configuration settings to the benc dictionary"]
    #[doc = " and save it to the configuration directory's settings.json file."]
    #[doc = ""]
    #[doc = " FIXME: this belongs in libtransmissionapp"]
    #[doc = ""]
    #[doc = " @param session"]
    #[doc = " @param dictionary"]
    #[doc = " @see tr_sessionLoadSettings ()"]
    pub fn tr_sessionSaveSettings(
        session: *mut tr_session,
        configDir: *const ::std::os::raw::c_char,
        dictonary: *const tr_variant,
    );
}
extern "C" {
    #[doc = " @brief Initialize a libtransmission session."]
    #[doc = ""]
    #[doc = " For example, this will instantiate a session with all the default values:"]
    #[doc = " @code"]
    #[doc = "     tr_variant settings;"]
    #[doc = "     tr_session * session;"]
    #[doc = "     const char * configDir;"]
    #[doc = ""]
    #[doc = "     tr_variantInitDict (&settings, 0);"]
    #[doc = "     tr_sessionGetDefaultSettings (&settings);"]
    #[doc = "     configDir = tr_getDefaultConfigDir (\"Transmission\");"]
    #[doc = "     session = tr_sessionInit (configDir, true, &settings);"]
    #[doc = ""]
    #[doc = "     tr_variantFree (&settings);"]
    #[doc = " @endcode"]
    #[doc = ""]
    #[doc = " @param configDir where Transmission will look for resume files, blocklists, etc."]
    #[doc = " @param messageQueueingEnabled if false, messages will be dumped to stderr"]
    #[doc = " @param settings libtransmission settings"]
    #[doc = " @see tr_sessionGetDefaultSettings ()"]
    #[doc = " @see tr_sessionLoadSettings ()"]
    #[doc = " @see tr_getDefaultConfigDir ()"]
    pub fn tr_sessionInit(
        configDir: *const ::std::os::raw::c_char,
        messageQueueingEnabled: u8,
        settings: *mut tr_variant,
    ) -> *mut tr_session;
}
extern "C" {
    #[doc = " @brief Update a session's settings from a benc dictionary"]
    #[doc = "like to the one used in tr_sessionInit ()"]
    pub fn tr_sessionSet(session: *mut tr_session, settings: *mut tr_variant);
}
extern "C" {
    #[doc = " @brief Rescan the blocklists directory and"]
    #[doc = "reload whatever blocklist files are found there"]
    pub fn tr_sessionReloadBlocklists(session: *mut tr_session);
}
extern "C" {
    #[doc = " @brief End a libtransmission session"]
    #[doc = "@see tr_sessionInit ()"]
    pub fn tr_sessionClose(arg1: *mut tr_session);
}
extern "C" {
    #[doc = " @brief Return the session's configuration directory."]
    #[doc = ""]
    #[doc = " This is where transmission stores its .torrent files, .resume files,"]
    #[doc = " blocklists, etc. It's set in tr_transmissionInit () and is immutable"]
    #[doc = " during the session."]
    pub fn tr_sessionGetConfigDir(arg1: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Set the per-session default download folder for new torrents."]
    #[doc = " @see tr_sessionInit ()"]
    #[doc = " @see tr_sessionGetDownloadDir ()"]
    #[doc = " @see tr_ctorSetDownloadDir ()"]
    pub fn tr_sessionSetDownloadDir(
        session: *mut tr_session,
        downloadDir: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @brief Get the default download folder for new torrents."]
    #[doc = ""]
    #[doc = " This is set by tr_sessionInit () or tr_sessionSetDownloadDir (),"]
    #[doc = " and can be overridden on a per-torrent basis by tr_ctorSetDownloadDir ()."]
    pub fn tr_sessionGetDownloadDir(session: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Get available disk space (in bytes) for the specified directory."]
    #[doc = " @return zero or positive integer on success, -1 in case of error."]
    pub fn tr_sessionGetDirFreeSpace(
        session: *mut tr_session,
        dir: *const ::std::os::raw::c_char,
    ) -> i64;
}
extern "C" {
    #[doc = " @brief Set the torrent's bandwidth priority."]
    pub fn tr_ctorSetBandwidthPriority(ctor: *mut tr_ctor, priority: tr_priority_t);
}
extern "C" {
    #[doc = " @brief Get the torrent's bandwidth priority."]
    pub fn tr_ctorGetBandwidthPriority(ctor: *const tr_ctor) -> tr_priority_t;
}
extern "C" {
    #[doc = " @brief set the per-session incomplete download folder."]
    #[doc = ""]
    #[doc = " When you add a new torrent and the session's incomplete directory is enabled,"]
    #[doc = " the new torrent will start downloading into that directory, and then be moved"]
    #[doc = " to tr_torrent.downloadDir when the torrent is finished downloading."]
    #[doc = ""]
    #[doc = " Torrents aren't moved as a result of changing the session's incomplete dir --"]
    #[doc = " it's applied to new torrents, not existing ones."]
    #[doc = ""]
    #[doc = " tr_torrentSetLocation () overrules the incomplete dir: when a user specifies"]
    #[doc = " a new location, that becomes the torrent's new downloadDir and the torrent"]
    #[doc = " is moved there immediately regardless of whether or not it's complete."]
    #[doc = ""]
    #[doc = " @see tr_sessionInit ()"]
    #[doc = " @see tr_sessionGetIncompleteDir ()"]
    #[doc = " @see tr_sessionSetIncompleteDirEnabled ()"]
    #[doc = " @see tr_sessionGetIncompleteDirEnabled ()"]
    pub fn tr_sessionSetIncompleteDir(session: *mut tr_session, dir: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " @brief get the per-session incomplete download folder"]
    pub fn tr_sessionGetIncompleteDir(session: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief enable or disable use of the incomplete download folder"]
    pub fn tr_sessionSetIncompleteDirEnabled(session: *mut tr_session, arg1: u8);
}
extern "C" {
    #[doc = " @brief get whether or not the incomplete download folder is enabled"]
    pub fn tr_sessionIsIncompleteDirEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    #[doc = " @brief When enabled, newly-created files will have \".part\" appended"]
    #[doc = "        to their filename until the file is fully downloaded"]
    #[doc = ""]
    #[doc = " This is not retroactive -- toggling this will not rename existing files."]
    #[doc = " It only applies to new files created by Transmission after this API call."]
    #[doc = ""]
    #[doc = " @see tr_sessionIsIncompleteFileNamingEnabled ()"]
    pub fn tr_sessionSetIncompleteFileNamingEnabled(session: *mut tr_session, arg1: u8);
}
extern "C" {
    #[doc = " @brief return true if files will end in \".part\" until they're complete"]
    pub fn tr_sessionIsIncompleteFileNamingEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    #[doc = " @brief Set whether or not RPC calls are allowed in this session."]
    #[doc = ""]
    #[doc = " @details If true, libtransmission will open a server socket to listen"]
    #[doc = " for incoming http RPC requests as described in docs/rpc-spec.txt."]
    #[doc = ""]
    #[doc = " This is intially set by tr_sessionInit () and can be"]
    #[doc = " queried by tr_sessionIsRPCEnabled ()."]
    pub fn tr_sessionSetRPCEnabled(session: *mut tr_session, isEnabled: u8);
}
extern "C" {
    #[doc = " @brief Get whether or not RPC calls are allowed in this session."]
    #[doc = "@see tr_sessionInit ()"]
    #[doc = "@see tr_sessionSetRPCEnabled ()"]
    pub fn tr_sessionIsRPCEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    #[doc = " @brief Specify which port to listen for RPC requests on."]
    #[doc = "@see tr_sessionInit ()"]
    #[doc = "@see tr_sessionGetRPCPort"]
    pub fn tr_sessionSetRPCPort(session: *mut tr_session, port: tr_port);
}
extern "C" {
    #[doc = " @brief Get which port to listen for RPC requests on."]
    #[doc = "@see tr_sessionInit ()"]
    #[doc = "@see tr_sessionSetRPCPort"]
    pub fn tr_sessionGetRPCPort(session: *const tr_session) -> tr_port;
}
extern "C" {
    #[doc = " @brief Specify which base URL to use."]
    #[doc = ""]
    #[doc = " @detail The RPC API is accessible under <url>/rpc, the web interface under"]
    #[doc = " <url>/web."]
    #[doc = ""]
    #[doc = "  @see tr_sessionGetRPCUrl"]
    pub fn tr_sessionSetRPCUrl(session: *mut tr_session, url: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " @brief Get the base URL."]
    #[doc = " @see tr_sessionInit ()"]
    #[doc = " @see tr_sessionSetRPCUrl"]
    pub fn tr_sessionGetRPCUrl(session: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Specify a whitelist for remote RPC access"]
    #[doc = ""]
    #[doc = " The whitelist is a comma-separated list of dotted-quad IP addresses"]
    #[doc = " to be allowed. Wildmat notation is supported, meaning that"]
    #[doc = " '?' is interpreted as a single-character wildcard and"]
    #[doc = " '*' is interprted as a multi-character wildcard."]
    pub fn tr_sessionSetRPCWhitelist(
        session: *mut tr_session,
        whitelist: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @brief get the Access Control List for allowing/denying RPC requests."]
    #[doc = "@return a comma-separated string of whitelist domains."]
    #[doc = "@see tr_sessionInit"]
    #[doc = "@see tr_sessionSetRPCWhitelist"]
    pub fn tr_sessionGetRPCWhitelist(arg1: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_sessionSetRPCWhitelistEnabled(session: *mut tr_session, isEnabled: u8);
}
extern "C" {
    pub fn tr_sessionGetRPCWhitelistEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetRPCPassword(
        session: *mut tr_session,
        password: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn tr_sessionSetRPCUsername(
        session: *mut tr_session,
        username: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @brief get the password used to restrict RPC requests."]
    #[doc = "@return the password string."]
    #[doc = "@see tr_sessionInit ()"]
    #[doc = "@see tr_sessionSetRPCPassword ()"]
    pub fn tr_sessionGetRPCPassword(session: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_sessionGetRPCUsername(session: *const tr_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_sessionSetRPCPasswordEnabled(session: *mut tr_session, isEnabled: u8);
}
extern "C" {
    pub fn tr_sessionIsRPCPasswordEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionGetRPCBindAddress(session: *const tr_session)
        -> *const ::std::os::raw::c_char;
}
pub const tr_rpc_callback_type_TR_RPC_TORRENT_ADDED: tr_rpc_callback_type = 0;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_STARTED: tr_rpc_callback_type = 1;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_STOPPED: tr_rpc_callback_type = 2;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_REMOVING: tr_rpc_callback_type = 3;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_TRASHING: tr_rpc_callback_type = 4;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_CHANGED: tr_rpc_callback_type = 5;
pub const tr_rpc_callback_type_TR_RPC_TORRENT_MOVED: tr_rpc_callback_type = 6;
pub const tr_rpc_callback_type_TR_RPC_SESSION_CHANGED: tr_rpc_callback_type = 7;
pub const tr_rpc_callback_type_TR_RPC_SESSION_QUEUE_POSITIONS_CHANGED: tr_rpc_callback_type = 8;
pub const tr_rpc_callback_type_TR_RPC_SESSION_CLOSE: tr_rpc_callback_type = 9;
pub type tr_rpc_callback_type = u32;
pub const tr_rpc_callback_status_TR_RPC_OK: tr_rpc_callback_status = 0;
pub const tr_rpc_callback_status_TR_RPC_NOREMOVE: tr_rpc_callback_status = 2;
pub type tr_rpc_callback_status = u32;
pub type tr_rpc_func = ::std::option::Option<
    unsafe extern "C" fn(
        session: *mut tr_session,
        type_: tr_rpc_callback_type,
        tor_or_null: *mut tr_torrent,
        user_data: *mut ::std::os::raw::c_void,
    ) -> tr_rpc_callback_status,
>;
extern "C" {
    #[doc = " Register to be notified whenever something is changed via RPC,"]
    #[doc = " such as a torrent being added, removed, started, stopped, etc."]
    #[doc = ""]
    #[doc = " func is invoked FROM LIBTRANSMISSION'S THREAD!"]
    #[doc = " This means func must be fast (to avoid blocking peers),"]
    #[doc = " shouldn't call libtransmission functions (to avoid deadlock),"]
    #[doc = " and shouldn't modify client-level memory without using a mutex!"]
    pub fn tr_sessionSetRPCCallback(
        session: *mut tr_session,
        func: tr_rpc_func,
        user_data: *mut ::std::os::raw::c_void,
    );
}
#[doc = " @brief Used by tr_sessionGetStats () and tr_sessionGetCumulativeStats ()"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_session_stats {
    pub ratio: f32,
    pub uploadedBytes: u64,
    pub downloadedBytes: u64,
    pub filesAdded: u64,
    pub sessionCount: u64,
    pub secondsActive: u64,
}
#[test]
fn bindgen_test_layout_tr_session_stats() {
    assert_eq!(
        ::std::mem::size_of::<tr_session_stats>(),
        48usize,
        concat!("Size of: ", stringify!(tr_session_stats))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_session_stats>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_session_stats))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_session_stats>())).ratio as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(ratio)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_session_stats>())).uploadedBytes as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(uploadedBytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_session_stats>())).downloadedBytes as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(downloadedBytes)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_session_stats>())).filesAdded as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(filesAdded)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_session_stats>())).sessionCount as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(sessionCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_session_stats>())).secondsActive as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_session_stats),
            "::",
            stringify!(secondsActive)
        )
    );
}
extern "C" {
    #[doc = " @brief Get bandwidth use statistics for the current session"]
    pub fn tr_sessionGetStats(session: *const tr_session, setme: *mut tr_session_stats);
}
extern "C" {
    #[doc = " @brief Get cumulative bandwidth statistics for current and past sessions"]
    pub fn tr_sessionGetCumulativeStats(session: *const tr_session, setme: *mut tr_session_stats);
}
extern "C" {
    pub fn tr_sessionClearStats(session: *mut tr_session);
}
extern "C" {
    #[doc = " @brief Set whether or not torrents are allowed to do peer exchanges."]
    #[doc = ""]
    #[doc = " PEX is always disabled in private torrents regardless of this."]
    #[doc = " In public torrents, PEX is enabled by default."]
    pub fn tr_sessionSetPexEnabled(session: *mut tr_session, isEnabled: u8);
}
extern "C" {
    pub fn tr_sessionIsPexEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionIsDHTEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetDHTEnabled(session: *mut tr_session, arg1: u8);
}
extern "C" {
    pub fn tr_sessionIsUTPEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetUTPEnabled(session: *mut tr_session, arg1: u8);
}
extern "C" {
    pub fn tr_sessionIsLPDEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetLPDEnabled(session: *mut tr_session, enabled: u8);
}
extern "C" {
    pub fn tr_sessionSetCacheLimit_MB(session: *mut tr_session, mb: ::std::os::raw::c_int);
}
extern "C" {
    pub fn tr_sessionGetCacheLimit_MB(session: *const tr_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_sessionGetEncryption(session: *mut tr_session) -> tr_encryption_mode;
}
extern "C" {
    pub fn tr_sessionSetEncryption(session: *mut tr_session, mode: tr_encryption_mode);
}
extern "C" {
    #[doc = " Incoming Peer Connections Port"]
    pub fn tr_sessionSetPortForwardingEnabled(session: *mut tr_session, enabled: u8);
}
extern "C" {
    pub fn tr_sessionIsPortForwardingEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetPeerPort(session: *mut tr_session, port: tr_port);
}
extern "C" {
    pub fn tr_sessionGetPeerPort(session: *const tr_session) -> tr_port;
}
extern "C" {
    pub fn tr_sessionSetPeerPortRandom(session: *mut tr_session) -> tr_port;
}
extern "C" {
    pub fn tr_sessionSetPeerPortRandomOnStart(session: *mut tr_session, random: u8);
}
extern "C" {
    pub fn tr_sessionGetPeerPortRandomOnStart(session: *mut tr_session) -> u8;
}
pub const tr_port_forwarding_TR_PORT_ERROR: tr_port_forwarding = 0;
pub const tr_port_forwarding_TR_PORT_UNMAPPED: tr_port_forwarding = 1;
pub const tr_port_forwarding_TR_PORT_UNMAPPING: tr_port_forwarding = 2;
pub const tr_port_forwarding_TR_PORT_MAPPING: tr_port_forwarding = 3;
pub const tr_port_forwarding_TR_PORT_MAPPED: tr_port_forwarding = 4;
pub type tr_port_forwarding = u32;
extern "C" {
    pub fn tr_sessionGetPortForwarding(session: *const tr_session) -> tr_port_forwarding;
}
pub const tr_direction_TR_CLIENT_TO_PEER: tr_direction = 0;
pub const tr_direction_TR_UP: tr_direction = 0;
pub const tr_direction_TR_PEER_TO_CLIENT: tr_direction = 1;
pub const tr_direction_TR_DOWN: tr_direction = 1;
pub type tr_direction = u32;
extern "C" {
    #[doc = "  Primary session speed limits"]
    pub fn tr_sessionSetSpeedLimit_KBps(
        arg1: *mut tr_session,
        arg2: tr_direction,
        KBps: ::std::os::raw::c_uint,
    );
}
extern "C" {
    pub fn tr_sessionGetSpeedLimit_KBps(
        arg1: *const tr_session,
        arg2: tr_direction,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn tr_sessionLimitSpeed(arg1: *mut tr_session, arg2: tr_direction, arg3: u8);
}
extern "C" {
    pub fn tr_sessionIsSpeedLimited(arg1: *const tr_session, arg2: tr_direction) -> u8;
}
extern "C" {
    #[doc = "  Alternative speed limits that are used during scheduled times"]
    pub fn tr_sessionSetAltSpeed_KBps(
        arg1: *mut tr_session,
        arg2: tr_direction,
        Bps: ::std::os::raw::c_uint,
    );
}
extern "C" {
    pub fn tr_sessionGetAltSpeed_KBps(
        arg1: *const tr_session,
        arg2: tr_direction,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn tr_sessionUseAltSpeed(arg1: *mut tr_session, arg2: u8);
}
extern "C" {
    pub fn tr_sessionUsesAltSpeed(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionUseAltSpeedTime(arg1: *mut tr_session, arg2: u8);
}
extern "C" {
    pub fn tr_sessionUsesAltSpeedTime(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetAltSpeedBegin(
        arg1: *mut tr_session,
        minsSinceMidnight: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn tr_sessionGetAltSpeedBegin(arg1: *const tr_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_sessionSetAltSpeedEnd(
        arg1: *mut tr_session,
        minsSinceMidnight: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn tr_sessionGetAltSpeedEnd(arg1: *const tr_session) -> ::std::os::raw::c_int;
}
pub const tr_sched_day_TR_SCHED_SUN: tr_sched_day = 1;
pub const tr_sched_day_TR_SCHED_MON: tr_sched_day = 2;
pub const tr_sched_day_TR_SCHED_TUES: tr_sched_day = 4;
pub const tr_sched_day_TR_SCHED_WED: tr_sched_day = 8;
pub const tr_sched_day_TR_SCHED_THURS: tr_sched_day = 16;
pub const tr_sched_day_TR_SCHED_FRI: tr_sched_day = 32;
pub const tr_sched_day_TR_SCHED_SAT: tr_sched_day = 64;
pub const tr_sched_day_TR_SCHED_WEEKDAY: tr_sched_day = 62;
pub const tr_sched_day_TR_SCHED_WEEKEND: tr_sched_day = 65;
pub const tr_sched_day_TR_SCHED_ALL: tr_sched_day = 127;
pub type tr_sched_day = u32;
extern "C" {
    pub fn tr_sessionSetAltSpeedDay(arg1: *mut tr_session, day: tr_sched_day);
}
extern "C" {
    pub fn tr_sessionGetAltSpeedDay(arg1: *const tr_session) -> tr_sched_day;
}
pub type tr_altSpeedFunc = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut tr_session,
        active: u8,
        userDriven: u8,
        arg2: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    pub fn tr_sessionClearAltSpeedFunc(arg1: *mut tr_session);
}
extern "C" {
    pub fn tr_sessionSetAltSpeedFunc(
        arg1: *mut tr_session,
        arg2: tr_altSpeedFunc,
        arg3: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn tr_sessionGetActiveSpeedLimit_KBps(
        session: *const tr_session,
        dir: tr_direction,
        setme: *mut f64,
    ) -> u8;
}
extern "C" {
    pub fn tr_sessionGetRawSpeed_KBps(arg1: *const tr_session, arg2: tr_direction) -> f64;
}
extern "C" {
    pub fn tr_sessionSetRatioLimited(arg1: *mut tr_session, isLimited: u8);
}
extern "C" {
    pub fn tr_sessionIsRatioLimited(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetRatioLimit(arg1: *mut tr_session, desiredRatio: f64);
}
extern "C" {
    pub fn tr_sessionGetRatioLimit(arg1: *const tr_session) -> f64;
}
extern "C" {
    pub fn tr_sessionSetIdleLimited(arg1: *mut tr_session, isLimited: u8);
}
extern "C" {
    pub fn tr_sessionIsIdleLimited(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetIdleLimit(arg1: *mut tr_session, idleMinutes: u16);
}
extern "C" {
    pub fn tr_sessionGetIdleLimit(arg1: *const tr_session) -> u16;
}
extern "C" {
    pub fn tr_sessionSetPeerLimit(arg1: *mut tr_session, maxGlobalPeers: u16);
}
extern "C" {
    pub fn tr_sessionGetPeerLimit(arg1: *const tr_session) -> u16;
}
extern "C" {
    pub fn tr_sessionSetPeerLimitPerTorrent(arg1: *mut tr_session, maxPeers: u16);
}
extern "C" {
    pub fn tr_sessionGetPeerLimitPerTorrent(arg1: *const tr_session) -> u16;
}
extern "C" {
    pub fn tr_sessionSetPaused(arg1: *mut tr_session, isPaused: u8);
}
extern "C" {
    pub fn tr_sessionGetPaused(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetDeleteSource(arg1: *mut tr_session, deleteSource: u8);
}
extern "C" {
    pub fn tr_sessionGetDeleteSource(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_torrentGetPriority(arg1: *const tr_torrent) -> tr_priority_t;
}
extern "C" {
    pub fn tr_torrentSetPriority(arg1: *mut tr_torrent, arg2: tr_priority_t);
}
extern "C" {
    #[doc = " @brief Like tr_torrentStart (), but resumes right away regardless of the queues."]
    pub fn tr_torrentStartNow(arg1: *mut tr_torrent);
}
extern "C" {
    #[doc = " @brief Return the queued torrent's position in the queue it's in. [0...n)"]
    pub fn tr_torrentGetQueuePosition(arg1: *const tr_torrent) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set the queued torrent's position in the queue it's in."]
    #[doc = " Special cases: pos <= 0 moves to the front; pos >= queue length moves to the back"]
    pub fn tr_torrentSetQueuePosition(arg1: *mut tr_torrent, queuePosition: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " @brief Convenience function for moving a batch of torrents to the front of their queue (s)"]
    pub fn tr_torrentsQueueMoveTop(
        torrents: *mut *mut tr_torrent,
        torrentCount: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Convenience function for moving a batch of torrents ahead one step in their queue (s)"]
    pub fn tr_torrentsQueueMoveUp(
        torrents: *mut *mut tr_torrent,
        torrentCount: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Convenience function for moving a batch of torrents back one step in their queue (s)"]
    pub fn tr_torrentsQueueMoveDown(
        torrents: *mut *mut tr_torrent,
        torrentCount: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Convenience function for moving a batch of torrents to the back of their queue (s)"]
    pub fn tr_torrentsQueueMoveBottom(
        torrents: *mut *mut tr_torrent,
        torrentCount: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Set the number of torrents allowed to download (if direction is TR_DOWN) or seed (if direction is TR_UP) at the same time"]
    pub fn tr_sessionSetQueueSize(
        arg1: *mut tr_session,
        arg2: tr_direction,
        max_simultaneous_seed_torrents: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Return the number of torrents allowed to download (if direction is TR_DOWN) or seed (if direction is TR_UP) at the same time"]
    pub fn tr_sessionGetQueueSize(
        arg1: *const tr_session,
        arg2: tr_direction,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set whether or not to limit how many torrents can download (TR_DOWN) or seed (TR_UP) at the same time"]
    pub fn tr_sessionSetQueueEnabled(
        arg1: *mut tr_session,
        arg2: tr_direction,
        do_limit_simultaneous_seed_torrents: u8,
    );
}
extern "C" {
    #[doc = " @brief Return true if we're limiting how many torrents can concurrently download (TR_DOWN) or seed (TR_UP) at the same time"]
    pub fn tr_sessionGetQueueEnabled(arg1: *const tr_session, arg2: tr_direction) -> u8;
}
extern "C" {
    #[doc = " @brief Consider torrent as 'stalled' when it's been inactive for N minutes."]
    #[doc = "Stalled torrents are left running but are not counted by tr_sessionGetQueueSize ()."]
    pub fn tr_sessionSetQueueStalledMinutes(arg1: *mut tr_session, minutes: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " @return the number of minutes a torrent can be idle before being considered as stalled"]
    pub fn tr_sessionGetQueueStalledMinutes(arg1: *const tr_session) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set whether or not to count torrents idle for over N minutes as 'stalled'"]
    pub fn tr_sessionSetQueueStalledEnabled(arg1: *mut tr_session, arg2: u8);
}
extern "C" {
    #[doc = " @return true if we're torrents idle for over N minutes will be flagged as 'stalled'"]
    pub fn tr_sessionGetQueueStalledEnabled(arg1: *const tr_session) -> u8;
}
extern "C" {
    #[doc = " @brief Set a callback that is invoked when the queue starts a torrent"]
    pub fn tr_torrentSetQueueStartCallback(
        torrent: *mut tr_torrent,
        callback: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut tr_torrent, arg2: *mut ::std::os::raw::c_void),
        >,
        user_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = "  Load all the torrents in tr_getTorrentDir ()."]
    #[doc = "  This can be used at startup to kickstart all the torrents"]
    #[doc = "  from the previous session."]
    pub fn tr_sessionLoadTorrents(
        session: *mut tr_session,
        ctor: *mut tr_ctor,
        setmeCount: *mut ::std::os::raw::c_int,
    ) -> *mut *mut tr_torrent;
}
extern "C" {
    pub fn tr_sessionIsTorrentDoneScriptEnabled(arg1: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_sessionSetTorrentDoneScriptEnabled(arg1: *mut tr_session, isEnabled: u8);
}
extern "C" {
    pub fn tr_sessionGetTorrentDoneScript(arg1: *const tr_session)
        -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_sessionSetTorrentDoneScript(
        arg1: *mut tr_session,
        scriptFilename: *const ::std::os::raw::c_char,
    );
}
pub const tr_log_level_TR_LOG_ERROR: tr_log_level = 1;
pub const tr_log_level_TR_LOG_INFO: tr_log_level = 2;
pub const tr_log_level_TR_LOG_DEBUG: tr_log_level = 3;
pub const tr_log_level_TR_LOG_FIREHOSE: tr_log_level = 4;
#[doc = " Message Logging"]
pub type tr_log_level = u32;
extern "C" {
    pub fn tr_logSetLevel(arg1: tr_log_level);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_log_message {
    pub level: tr_log_level,
    pub line: ::std::os::raw::c_int,
    pub when: time_t,
    pub name: *mut ::std::os::raw::c_char,
    pub message: *mut ::std::os::raw::c_char,
    pub file: *const ::std::os::raw::c_char,
    pub next: *mut tr_log_message,
}
#[test]
fn bindgen_test_layout_tr_log_message() {
    assert_eq!(
        ::std::mem::size_of::<tr_log_message>(),
        48usize,
        concat!("Size of: ", stringify!(tr_log_message))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_log_message>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_log_message))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).level as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(level)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).line as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(line)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).when as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(when)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).name as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).message as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).file as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(file)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_log_message>())).next as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_log_message),
            "::",
            stringify!(next)
        )
    );
}
extern "C" {
    pub fn tr_logGetQueue() -> *mut tr_log_message;
}
extern "C" {
    pub fn tr_logGetQueueEnabled() -> u8;
}
extern "C" {
    pub fn tr_logSetQueueEnabled(isEnabled: u8);
}
extern "C" {
    pub fn tr_logFreeQueue(freeme: *mut tr_log_message);
}
extern "C" {
    #[doc = " Specify a range of IPs for Transmission to block."]
    #[doc = ""]
    #[doc = " Filename must be an uncompressed ascii file."]
    #[doc = ""]
    #[doc = " libtransmission does not keep a handle to `filename'"]
    #[doc = " after this call returns, so the caller is free to"]
    #[doc = " keep or delete `filename' as it wishes."]
    #[doc = " libtransmission makes its own copy of the file"]
    #[doc = " massaged into a binary format easier to search."]
    #[doc = ""]
    #[doc = " The caller only needs to invoke this when the blocklist"]
    #[doc = " has changed."]
    #[doc = ""]
    #[doc = " Passing NULL for a filename will clear the blocklist."]
    pub fn tr_blocklistSetContent(
        session: *mut tr_session,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_blocklistGetRuleCount(session: *const tr_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_blocklistExists(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_blocklistIsEnabled(session: *const tr_session) -> u8;
}
extern "C" {
    pub fn tr_blocklistSetEnabled(session: *mut tr_session, isEnabled: u8);
}
extern "C" {
    #[doc = " @brief The blocklist that ges updated when an RPC client"]
    #[doc = "invokes the \"blocklist-update\" method"]
    pub fn tr_blocklistSetURL(arg1: *mut tr_session, url: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn tr_blocklistGetURL(arg1: *const tr_session) -> *const ::std::os::raw::c_char;
}
pub const tr_ctorMode_TR_FALLBACK: tr_ctorMode = 0;
pub const tr_ctorMode_TR_FORCE: tr_ctorMode = 1;
#[doc = " @addtogroup tr_ctor Torrent Constructors"]
#[doc = "@{"]
#[doc = ""]
#[doc = "Instantiating a tr_torrent had gotten more complicated as features were"]
#[doc = "added. At one point there were four functions to check metainfo and five"]
#[doc = "to create a tr_torrent object."]
#[doc = ""]
#[doc = "To remedy this, a Torrent Constructor (struct tr_ctor) has been introduced:"]
#[doc = "- Simplifies the API to two functions: tr_torrentParse () and tr_torrentNew ()"]
#[doc = "- You can set the fields you want; the system sets defaults for the rest."]
#[doc = "- You can specify whether or not your fields should supercede resume's."]
#[doc = "- We can add new features to tr_ctor without breaking tr_torrentNew ()'s API."]
#[doc = ""]
#[doc = "All the tr_ctor{Get,Set}* () functions with a return value return"]
#[doc = "an error number, or zero if no error occurred."]
#[doc = ""]
#[doc = "You must call one of the SetMetainfo () functions before creating"]
#[doc = "a torrent with a tr_ctor. The other functions are optional."]
#[doc = ""]
#[doc = "You can reuse a single tr_ctor to create a batch of torrents --"]
#[doc = "just call one of the SetMetainfo () functions between each"]
#[doc = "tr_torrentNew () call."]
#[doc = ""]
#[doc = "Every call to tr_ctorSetMetainfo* () frees the previous metainfo."]
pub type tr_ctorMode = u32;
extern "C" {
    #[doc = " @brief Create a torrent constructor object used to instantiate a tr_torrent"]
    #[doc = "@param session the tr_session. This is required if you're going to call"]
    #[doc = "tr_torrentNew (), but you can use NULL for tr_torrentParse ()."]
    #[doc = "@see tr_torrentNew (), tr_torrentParse ()"]
    pub fn tr_ctorNew(session_or_NULL: *const tr_session) -> *mut tr_ctor;
}
extern "C" {
    #[doc = " @brief Free a torrent constructor object"]
    pub fn tr_ctorFree(ctor: *mut tr_ctor);
}
extern "C" {
    #[doc = " @brief Set whether or not to delete the source .torrent file"]
    #[doc = "when the torrent is added. (Default: False)"]
    pub fn tr_ctorSetDeleteSource(ctor: *mut tr_ctor, doDelete: u8);
}
extern "C" {
    #[doc = " @brief Set the constructor's metainfo from a magnet link"]
    pub fn tr_ctorSetMetainfoFromMagnetLink(
        ctor: *mut tr_ctor,
        magnet: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set the constructor's metainfo from a raw benc already in memory"]
    pub fn tr_ctorSetMetainfo(
        ctor: *mut tr_ctor,
        metainfo: *const u8,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set the constructor's metainfo from a local .torrent file"]
    pub fn tr_ctorSetMetainfoFromFile(
        ctor: *mut tr_ctor,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set the metainfo from an existing file in tr_getTorrentDir ()."]
    #[doc = ""]
    #[doc = " This is used by the Mac client on startup to pick and choose which"]
    #[doc = " torrents to load"]
    pub fn tr_ctorSetMetainfoFromHash(
        ctor: *mut tr_ctor,
        hashString: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Set how many peers this torrent can connect to. (Default: 50)"]
    pub fn tr_ctorSetPeerLimit(ctor: *mut tr_ctor, mode: tr_ctorMode, limit: u16);
}
extern "C" {
    #[doc = " @brief Set the download folder for the torrent being added with this ctor."]
    #[doc = "@see tr_ctorSetDownloadDir ()"]
    #[doc = "@see tr_sessionInit ()"]
    pub fn tr_ctorSetDownloadDir(
        ctor: *mut tr_ctor,
        mode: tr_ctorMode,
        directory: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @brief Set the incompleteDir for this torrent."]
    #[doc = ""]
    #[doc = " This is not a supported API call."]
    #[doc = " It only exists so the mac client can migrate"]
    #[doc = " its older incompleteDir settings, and that's"]
    #[doc = " the only place where it should be used."]
    pub fn tr_ctorSetIncompleteDir(ctor: *mut tr_ctor, directory: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Set whether or not the torrent begins downloading/seeding when created."]
    #[doc = "(Default: not paused)"]
    pub fn tr_ctorSetPaused(ctor: *mut tr_ctor, mode: tr_ctorMode, isPaused: u8);
}
extern "C" {
    #[doc = " @brief Set the priorities for files in a torrent"]
    pub fn tr_ctorSetFilePriorities(
        ctor: *mut tr_ctor,
        files: *const tr_file_index_t,
        fileCount: tr_file_index_t,
        priority: tr_priority_t,
    );
}
extern "C" {
    #[doc = " @brief Set the download flag for files in a torrent"]
    pub fn tr_ctorSetFilesWanted(
        ctor: *mut tr_ctor,
        fileIndices: *const tr_file_index_t,
        fileCount: tr_file_index_t,
        wanted: u8,
    );
}
extern "C" {
    #[doc = " @brief Get this peer constructor's peer limit"]
    pub fn tr_ctorGetPeerLimit(ctor: *const tr_ctor, mode: tr_ctorMode, setmeCount: *mut u16)
        -> u8;
}
extern "C" {
    #[doc = " @brief Get the \"isPaused\" flag from this peer constructor"]
    pub fn tr_ctorGetPaused(ctor: *const tr_ctor, mode: tr_ctorMode, setmeIsPaused: *mut u8) -> u8;
}
extern "C" {
    #[doc = " @brief Get the download path from this peer constructor"]
    pub fn tr_ctorGetDownloadDir(
        ctor: *const tr_ctor,
        mode: tr_ctorMode,
        setmeDownloadDir: *mut *const ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Get the incomplete directory from this peer constructor"]
    pub fn tr_ctorGetIncompleteDir(
        ctor: *const tr_ctor,
        setmeIncompleteDir: *mut *const ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Get the metainfo from this peer constructor"]
    pub fn tr_ctorGetMetainfo(ctor: *const tr_ctor, setme: *mut *const tr_variant) -> u8;
}
extern "C" {
    #[doc = " @brief Get the \"delete .torrent file\" flag from this peer constructor"]
    pub fn tr_ctorGetDeleteSource(ctor: *const tr_ctor, setmeDoDelete: *mut u8) -> u8;
}
extern "C" {
    #[doc = " @brief Get the tr_session poiner from this peer constructor"]
    pub fn tr_ctorGetSession(ctor: *const tr_ctor) -> *mut tr_session;
}
extern "C" {
    #[doc = " @brief Get the .torrent file that this ctor's metainfo came from,"]
    #[doc = "or NULL if tr_ctorSetMetainfoFromFile () wasn't used"]
    pub fn tr_ctorGetSourceFile(ctor: *const tr_ctor) -> *const ::std::os::raw::c_char;
}
pub const tr_parse_result_TR_PARSE_OK: tr_parse_result = 0;
pub const tr_parse_result_TR_PARSE_ERR: tr_parse_result = 1;
pub const tr_parse_result_TR_PARSE_DUPLICATE: tr_parse_result = 2;
pub type tr_parse_result = u32;
extern "C" {
    #[doc = " @brief Parses the specified metainfo"]
    #[doc = ""]
    #[doc = " @return TR_PARSE_ERR if parsing failed;"]
    #[doc = "         TR_PARSE_OK if parsing succeeded and it's not a duplicate;"]
    #[doc = "         TR_PARSE_DUPLICATE if parsing succeeded but it's a duplicate."]
    #[doc = ""]
    #[doc = " @param setme_info If parsing is successful and setme_info is non-NULL,"]
    #[doc = "                   the parsed metainfo is stored there and sould be freed"]
    #[doc = "                   by calling tr_metainfoFree () when no longer needed."]
    #[doc = ""]
    #[doc = " Notes:"]
    #[doc = ""]
    #[doc = " 1. tr_torrentParse () won't be able to check for duplicates -- and therefore"]
    #[doc = "    won't return TR_PARSE_DUPLICATE -- unless ctor's \"download-dir\" and"]
    #[doc = "    session variable is set."]
    #[doc = ""]
    #[doc = " 2. setme_info->torrent's value can't be set unless ctor's session variable"]
    #[doc = "    is set."]
    pub fn tr_torrentParse(
        ctor: *const tr_ctor,
        setme_info_or_NULL: *mut tr_info,
    ) -> tr_parse_result;
}
extern "C" {
    #[doc = " @brief free a metainfo"]
    #[doc = "@see tr_torrentParse"]
    pub fn tr_metainfoFree(inf: *mut tr_info);
}
extern "C" {
    #[doc = " Instantiate a single torrent."]
    #[doc = ""]
    #[doc = " Returns a pointer to the torrent on success, or NULL on failure."]
    #[doc = ""]
    #[doc = " @param setme_error: TR_PARSE_ERR if the parsing failed;"]
    #[doc = "                     TR_PARSE_OK if parsing succeeded and it's not a duplicate;"]
    #[doc = "                     TR_PARSE_DUPLICATE if parsing succeeded but it's a duplicate."]
    #[doc = ""]
    #[doc = " @param setme_duplicate_id: when setmeError is TR_PARSE_DUPLICATE,"]
    #[doc = "                            this field is set to the duplicate torrent's id."]
    pub fn tr_torrentNew(
        ctor: *const tr_ctor,
        setme_error: *mut ::std::os::raw::c_int,
        setme_duplicate_id: *mut ::std::os::raw::c_int,
    ) -> *mut tr_torrent;
}
#[doc = " @addtogroup tr_torrent Torrents"]
#[doc = "@{"]
pub type tr_fileFunc = ::std::option::Option<
    unsafe extern "C" fn(filename: *const ::std::os::raw::c_char, error: *mut *mut tr_error) -> u8,
>;
extern "C" {
    #[doc = " @brief Removes our .torrent and .resume files for this torrent"]
    pub fn tr_torrentRemove(torrent: *mut tr_torrent, removeLocalData: u8, removeFunc: tr_fileFunc);
}
extern "C" {
    #[doc = " @brief Start a torrent"]
    pub fn tr_torrentStart(torrent: *mut tr_torrent);
}
extern "C" {
    #[doc = " @brief Stop (pause) a torrent"]
    pub fn tr_torrentStop(torrent: *mut tr_torrent);
}
pub type tr_torrent_rename_done_func = ::std::option::Option<
    unsafe extern "C" fn(
        torrent: *mut tr_torrent,
        oldpath: *const ::std::os::raw::c_char,
        newname: *const ::std::os::raw::c_char,
        error: ::std::os::raw::c_int,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " @brief Rename a file or directory in a torrent."]
    #[doc = ""]
    #[doc = " @tor: the torrent whose path will be renamed."]
    #[doc = " @oldpath: the path to the file or folder that will be renamed"]
    #[doc = " @newname: the file or folder's new name"]
    #[doc = " @callback: the callback invoked when the renaming finishes, or NULL"]
    #[doc = " @callback_data: the pointer to pass in the callback's user_data arg"]
    #[doc = ""]
    #[doc = " As a special case, renaming the root file in a torrent will also"]
    #[doc = " update tr_info.name."]
    #[doc = ""]
    #[doc = " EXAMPLES"]
    #[doc = ""]
    #[doc = "   Consider a tr_torrent where its"]
    #[doc = "   info.files[0].name is \"frobnitz-linux/checksum\" and"]
    #[doc = "   info.files[1].name is \"frobnitz-linux/frobnitz.iso\"."]
    #[doc = ""]
    #[doc = "   1. tr_torrentRenamePath (tor, \"frobnitz-linux\", \"foo\") will rename"]
    #[doc = "      the \"frotbnitz-linux\" folder as \"foo\", and update both info.name"]
    #[doc = "      and info.files[*].name."]
    #[doc = ""]
    #[doc = "   2. tr_torrentRenamePath (tor, \"frobnitz-linux/checksum\", \"foo\") will"]
    #[doc = "      rename the \"frobnitz-linux/checksum\" file as \"foo\" and update"]
    #[doc = "      files[0].name to \"frobnitz-linux/foo\"."]
    #[doc = ""]
    #[doc = " RETURN"]
    #[doc = ""]
    #[doc = "   Changing tr_info's contents requires a session lock, so this function"]
    #[doc = "   returns asynchronously to avoid blocking. If you don't want to be notified"]
    #[doc = "   when the function has finished, you can pass NULL as the callback arg."]
    #[doc = ""]
    #[doc = "   On success, the callback's error argument will be 0."]
    #[doc = ""]
    #[doc = "   If oldpath can't be found in files[*].name, or if newname is already"]
    #[doc = "   in files[*].name, or contains a directory separator, or is NULL, \"\","]
    #[doc = "   \".\", or \"..\", the error argument will be EINVAL."]
    #[doc = ""]
    #[doc = "   If the path exists on disk but can't be renamed, the error argument"]
    #[doc = "   will be the errno set by rename()."]
    pub fn tr_torrentRenamePath(
        tor: *mut tr_torrent,
        oldpath: *const ::std::os::raw::c_char,
        newname: *const ::std::os::raw::c_char,
        callback: tr_torrent_rename_done_func,
        callback_user_data: *mut ::std::os::raw::c_void,
    );
}
pub const TR_LOC_MOVING: _bindgen_ty_1 = 0;
pub const TR_LOC_DONE: _bindgen_ty_1 = 1;
pub const TR_LOC_ERROR: _bindgen_ty_1 = 2;
pub type _bindgen_ty_1 = u32;
extern "C" {
    #[doc = " @brief Tell transmsision where to find this torrent's local data."]
    #[doc = ""]
    #[doc = " if move_from_previous_location is `true', the torrent's incompleteDir"]
    #[doc = " will be clobberred s.t. additional files being added will be saved"]
    #[doc = " to the torrent's downloadDir."]
    pub fn tr_torrentSetLocation(
        torrent: *mut tr_torrent,
        location: *const ::std::os::raw::c_char,
        move_from_previous_location: u8,
        setme_progress: *mut f64,
        setme_state: *mut ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn tr_torrentGetBytesLeftToAllocate(torrent: *const tr_torrent) -> u64;
}
extern "C" {
    #[doc = " @brief Returns this torrent's unique ID."]
    #[doc = ""]
    #[doc = " IDs are good as simple lookup keys, but are not persistent"]
    #[doc = " between sessions. If you need that, use tr_info.hash or"]
    #[doc = " tr_info.hashString."]
    pub fn tr_torrentId(torrent: *const tr_torrent) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_torrentFindFromId(
        session: *mut tr_session,
        id: ::std::os::raw::c_int,
    ) -> *mut tr_torrent;
}
extern "C" {
    pub fn tr_torrentFindFromHash(session: *mut tr_session, hash: *const u8) -> *mut tr_torrent;
}
extern "C" {
    #[doc = " @brief Convenience function similar to tr_torrentFindFromHash ()"]
    pub fn tr_torrentFindFromMagnetLink(
        session: *mut tr_session,
        link: *const ::std::os::raw::c_char,
    ) -> *mut tr_torrent;
}
extern "C" {
    #[doc = " @return this torrent's name."]
    pub fn tr_torrentName(arg1: *const tr_torrent) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief find the location of a torrent's file by looking with and without"]
    #[doc = "        the \".part\" suffix, looking in downloadDir and incompleteDir, etc."]
    #[doc = " @return a newly-allocated string (that must be tr_freed () by the caller"]
    #[doc = "         when done) that gives the location of this file on disk,"]
    #[doc = "         or NULL if no file exists yet."]
    #[doc = " @param tor the torrent whose file we're looking for"]
    #[doc = " @param fileNum the fileIndex, in [0...tr_info.fileCount)"]
    pub fn tr_torrentFindFile(
        tor: *const tr_torrent,
        fileNo: tr_file_index_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = "  Torrent speed limits"]
    pub fn tr_torrentSetSpeedLimit_KBps(
        arg1: *mut tr_torrent,
        arg2: tr_direction,
        KBps: ::std::os::raw::c_uint,
    );
}
extern "C" {
    pub fn tr_torrentGetSpeedLimit_KBps(
        arg1: *const tr_torrent,
        arg2: tr_direction,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn tr_torrentUseSpeedLimit(arg1: *mut tr_torrent, arg2: tr_direction, arg3: u8);
}
extern "C" {
    pub fn tr_torrentUsesSpeedLimit(arg1: *const tr_torrent, arg2: tr_direction) -> u8;
}
extern "C" {
    pub fn tr_torrentUseSessionLimits(arg1: *mut tr_torrent, arg2: u8);
}
extern "C" {
    pub fn tr_torrentUsesSessionLimits(arg1: *const tr_torrent) -> u8;
}
pub const tr_ratiolimit_TR_RATIOLIMIT_GLOBAL: tr_ratiolimit = 0;
pub const tr_ratiolimit_TR_RATIOLIMIT_SINGLE: tr_ratiolimit = 1;
pub const tr_ratiolimit_TR_RATIOLIMIT_UNLIMITED: tr_ratiolimit = 2;
#[doc = "  Ratio Limits"]
pub type tr_ratiolimit = u32;
extern "C" {
    pub fn tr_torrentSetRatioMode(tor: *mut tr_torrent, mode: tr_ratiolimit);
}
extern "C" {
    pub fn tr_torrentGetRatioMode(tor: *const tr_torrent) -> tr_ratiolimit;
}
extern "C" {
    pub fn tr_torrentSetRatioLimit(tor: *mut tr_torrent, ratio: f64);
}
extern "C" {
    pub fn tr_torrentGetRatioLimit(tor: *const tr_torrent) -> f64;
}
extern "C" {
    pub fn tr_torrentGetSeedRatio(arg1: *const tr_torrent, ratio: *mut f64) -> u8;
}
pub const tr_idlelimit_TR_IDLELIMIT_GLOBAL: tr_idlelimit = 0;
pub const tr_idlelimit_TR_IDLELIMIT_SINGLE: tr_idlelimit = 1;
pub const tr_idlelimit_TR_IDLELIMIT_UNLIMITED: tr_idlelimit = 2;
#[doc = "  Idle Time Limits"]
pub type tr_idlelimit = u32;
extern "C" {
    pub fn tr_torrentSetIdleMode(tor: *mut tr_torrent, mode: tr_idlelimit);
}
extern "C" {
    pub fn tr_torrentGetIdleMode(tor: *const tr_torrent) -> tr_idlelimit;
}
extern "C" {
    pub fn tr_torrentSetIdleLimit(tor: *mut tr_torrent, idleMinutes: u16);
}
extern "C" {
    pub fn tr_torrentGetIdleLimit(tor: *const tr_torrent) -> u16;
}
extern "C" {
    pub fn tr_torrentGetSeedIdle(arg1: *const tr_torrent, minutes: *mut u16) -> u8;
}
extern "C" {
    #[doc = "  Peer Limits"]
    pub fn tr_torrentSetPeerLimit(tor: *mut tr_torrent, peerLimit: u16);
}
extern "C" {
    pub fn tr_torrentGetPeerLimit(tor: *const tr_torrent) -> u16;
}
pub const TR_PRI_LOW: _bindgen_ty_2 = -1;
pub const TR_PRI_NORMAL: _bindgen_ty_2 = 0;
pub const TR_PRI_HIGH: _bindgen_ty_2 = 1;
#[doc = "  File Priorities"]
pub type _bindgen_ty_2 = i32;
extern "C" {
    #[doc = " @brief Set a batch of files to a particular priority."]
    #[doc = ""]
    #[doc = " @param priority must be one of TR_PRI_NORMAL, _HIGH, or _LOW"]
    pub fn tr_torrentSetFilePriorities(
        torrent: *mut tr_torrent,
        files: *const tr_file_index_t,
        fileCount: tr_file_index_t,
        priority: tr_priority_t,
    );
}
extern "C" {
    #[doc = " @brief Get this torrent's file priorities."]
    #[doc = ""]
    #[doc = " @return A malloc ()ed array of tor->info.fileCount items,"]
    #[doc = "         each holding a TR_PRI_NORMAL, TR_PRI_HIGH, or TR_PRI_LOW."]
    #[doc = "         It's the caller's responsibility to free () this."]
    pub fn tr_torrentGetFilePriorities(torrent: *const tr_torrent) -> *mut tr_priority_t;
}
extern "C" {
    #[doc = " @brief Set a batch of files to be downloaded or not."]
    pub fn tr_torrentSetFileDLs(
        torrent: *mut tr_torrent,
        files: *const tr_file_index_t,
        fileCount: tr_file_index_t,
        do_download: u8,
    );
}
extern "C" {
    pub fn tr_torrentInfo(torrent: *const tr_torrent) -> *const tr_info;
}
extern "C" {
    pub fn tr_torrentSetDownloadDir(torrent: *mut tr_torrent, path: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn tr_torrentGetDownloadDir(torrent: *const tr_torrent) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns the root directory of where the torrent is."]
    #[doc = ""]
    #[doc = " This will usually be the downloadDir. However if the torrent"]
    #[doc = " has an incompleteDir enabled and hasn't finished downloading"]
    #[doc = " yet, that will be returned instead."]
    pub fn tr_torrentGetCurrentDir(tor: *const tr_torrent) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_torrentInfoGetMagnetLink(inf: *const tr_info) -> *mut ::std::os::raw::c_char;
}
#[doc = " @brief a part of tr_info that represents a single tracker"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_tracker_info {
    pub tier: ::std::os::raw::c_int,
    pub announce: *mut ::std::os::raw::c_char,
    pub scrape: *mut ::std::os::raw::c_char,
    pub id: u32,
}
#[test]
fn bindgen_test_layout_tr_tracker_info() {
    assert_eq!(
        ::std::mem::size_of::<tr_tracker_info>(),
        32usize,
        concat!("Size of: ", stringify!(tr_tracker_info))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_tracker_info>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_tracker_info))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_info>())).tier as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_info),
            "::",
            stringify!(tier)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_info>())).announce as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_info),
            "::",
            stringify!(announce)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_info>())).scrape as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_info),
            "::",
            stringify!(scrape)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_info>())).id as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_info),
            "::",
            stringify!(id)
        )
    );
}
extern "C" {
    #[doc = " @brief Modify a torrent's tracker list."]
    #[doc = ""]
    #[doc = " This updates both the `torrent' object's tracker list"]
    #[doc = " and the metainfo file in tr_sessionGetConfigDir ()'s torrent subdirectory."]
    #[doc = ""]
    #[doc = " @param torrent The torrent whose tracker list is to be modified"]
    #[doc = " @param trackers An array of trackers, sorted by tier from first to last."]
    #[doc = "                 NOTE: only the `tier' and `announce' fields are used."]
    #[doc = "                 libtransmission derives `scrape' from `announce'"]
    #[doc = "                 and reassigns 'id'."]
    #[doc = " @param trackerCount size of the `trackers' array"]
    pub fn tr_torrentSetAnnounceList(
        torrent: *mut tr_torrent,
        trackers: *const tr_tracker_info,
        trackerCount: ::std::os::raw::c_int,
    ) -> u8;
}
pub const tr_completeness_TR_LEECH: tr_completeness = 0;
pub const tr_completeness_TR_SEED: tr_completeness = 1;
pub const tr_completeness_TR_PARTIAL_SEED: tr_completeness = 2;
pub type tr_completeness = u32;
#[doc = " @param wasRunning whether or not the torrent was running when"]
#[doc = "                   it changed its completeness state"]
pub type tr_torrent_completeness_func = ::std::option::Option<
    unsafe extern "C" fn(
        torrent: *mut tr_torrent,
        completeness: tr_completeness,
        wasRunning: u8,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
pub type tr_torrent_ratio_limit_hit_func = ::std::option::Option<
    unsafe extern "C" fn(torrent: *mut tr_torrent, user_data: *mut ::std::os::raw::c_void),
>;
pub type tr_torrent_idle_limit_hit_func = ::std::option::Option<
    unsafe extern "C" fn(torrent: *mut tr_torrent, user_data: *mut ::std::os::raw::c_void),
>;
extern "C" {
    #[doc = " Register to be notified whenever a torrent's \"completeness\""]
    #[doc = " changes. This will be called, for example, when a torrent"]
    #[doc = " finishes downloading and changes from TR_LEECH to"]
    #[doc = " either TR_SEED or TR_PARTIAL_SEED."]
    #[doc = ""]
    #[doc = " func is invoked FROM LIBTRANSMISSION'S THREAD!"]
    #[doc = " This means func must be fast (to avoid blocking peers),"]
    #[doc = " shouldn't call libtransmission functions (to avoid deadlock),"]
    #[doc = " and shouldn't modify client-level memory without using a mutex!"]
    #[doc = ""]
    #[doc = " @see tr_completeness"]
    pub fn tr_torrentSetCompletenessCallback(
        torrent: *mut tr_torrent,
        func: tr_torrent_completeness_func,
        user_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn tr_torrentClearCompletenessCallback(torrent: *mut tr_torrent);
}
pub type tr_torrent_metadata_func = ::std::option::Option<
    unsafe extern "C" fn(torrent: *mut tr_torrent, user_data: *mut ::std::os::raw::c_void),
>;
extern "C" {
    #[doc = " Register to be notified whenever a torrent changes from"]
    #[doc = " having incomplete metadata to having complete metadata."]
    #[doc = " This happens when a magnet link finishes downloading"]
    #[doc = " metadata from its peers."]
    pub fn tr_torrentSetMetadataCallback(
        tor: *mut tr_torrent,
        func: tr_torrent_metadata_func,
        user_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Register to be notified whenever a torrent's ratio limit"]
    #[doc = " has been hit. This will be called when the torrent's"]
    #[doc = " ul/dl ratio has met or exceeded the designated ratio limit."]
    #[doc = ""]
    #[doc = " Has the same restrictions as tr_torrentSetCompletenessCallback"]
    pub fn tr_torrentSetRatioLimitHitCallback(
        torrent: *mut tr_torrent,
        func: tr_torrent_ratio_limit_hit_func,
        user_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn tr_torrentClearRatioLimitHitCallback(torrent: *mut tr_torrent);
}
extern "C" {
    #[doc = " Register to be notified whenever a torrent's idle limit"]
    #[doc = " has been hit. This will be called when the seeding torrent's"]
    #[doc = " idle time has met or exceeded the designated idle limit."]
    #[doc = ""]
    #[doc = " Has the same restrictions as tr_torrentSetCompletenessCallback"]
    pub fn tr_torrentSetIdleLimitHitCallback(
        torrent: *mut tr_torrent,
        func: tr_torrent_idle_limit_hit_func,
        user_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn tr_torrentClearIdleLimitHitCallback(torrent: *mut tr_torrent);
}
extern "C" {
    #[doc = " MANUAL ANNOUNCE"]
    #[doc = ""]
    #[doc = " Trackers usually set an announce interval of 15 or 30 minutes."]
    #[doc = " Users can send one-time announce requests that override this"]
    #[doc = " interval by calling tr_torrentManualUpdate ()."]
    #[doc = ""]
    #[doc = " The wait interval for tr_torrentManualUpdate () is much smaller."]
    #[doc = " You can test whether or not a manual update is possible"]
    #[doc = " (for example, to desensitize the button) by calling"]
    #[doc = " tr_torrentCanManualUpdate ()."]
    pub fn tr_torrentManualUpdate(torrent: *mut tr_torrent);
}
extern "C" {
    pub fn tr_torrentCanManualUpdate(torrent: *const tr_torrent) -> u8;
}
#[doc = "  tr_peer_stat"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_peer_stat {
    pub isUTP: u8,
    pub isEncrypted: u8,
    pub isDownloadingFrom: u8,
    pub isUploadingTo: u8,
    pub isSeed: u8,
    pub peerIsChoked: u8,
    pub peerIsInterested: u8,
    pub clientIsChoked: u8,
    pub clientIsInterested: u8,
    pub isIncoming: u8,
    pub from: u8,
    pub port: tr_port,
    pub addr: [::std::os::raw::c_char; 46usize],
    pub client: [::std::os::raw::c_char; 80usize],
    pub flagStr: [::std::os::raw::c_char; 32usize],
    pub progress: f32,
    pub rateToPeer_KBps: f64,
    pub rateToClient_KBps: f64,
    #[doc = "  THESE NEXT FOUR FIELDS ARE EXPERIMENTAL."]
    #[doc = "  Don't rely on them; they'll probably go away"]
    pub blocksToPeer: u32,
    pub blocksToClient: u32,
    pub cancelsToPeer: u32,
    pub cancelsToClient: u32,
    pub pendingReqsToClient: ::std::os::raw::c_int,
    pub pendingReqsToPeer: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_tr_peer_stat() {
    assert_eq!(
        ::std::mem::size_of::<tr_peer_stat>(),
        216usize,
        concat!("Size of: ", stringify!(tr_peer_stat))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_peer_stat>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_peer_stat))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isUTP as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isUTP)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isEncrypted as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isEncrypted)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isDownloadingFrom as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isDownloadingFrom)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isUploadingTo as *const _ as usize },
        3usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isUploadingTo)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isSeed as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isSeed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).peerIsChoked as *const _ as usize },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(peerIsChoked)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).peerIsInterested as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(peerIsInterested)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).clientIsChoked as *const _ as usize },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(clientIsChoked)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).clientIsInterested as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(clientIsInterested)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).isIncoming as *const _ as usize },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(isIncoming)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).from as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(from)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).port as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(port)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).addr as *const _ as usize },
        14usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).client as *const _ as usize },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(client)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).flagStr as *const _ as usize },
        140usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(flagStr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).progress as *const _ as usize },
        172usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(progress)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).rateToPeer_KBps as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(rateToPeer_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).rateToClient_KBps as *const _ as usize },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(rateToClient_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).blocksToPeer as *const _ as usize },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(blocksToPeer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).blocksToClient as *const _ as usize },
        196usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(blocksToClient)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).cancelsToPeer as *const _ as usize },
        200usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(cancelsToPeer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).cancelsToClient as *const _ as usize },
        204usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(cancelsToClient)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_peer_stat>())).pendingReqsToClient as *const _ as usize
        },
        208usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(pendingReqsToClient)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_peer_stat>())).pendingReqsToPeer as *const _ as usize },
        212usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_peer_stat),
            "::",
            stringify!(pendingReqsToPeer)
        )
    );
}
extern "C" {
    pub fn tr_torrentPeers(
        torrent: *const tr_torrent,
        peerCount: *mut ::std::os::raw::c_int,
    ) -> *mut tr_peer_stat;
}
extern "C" {
    pub fn tr_torrentPeersFree(peerStats: *mut tr_peer_stat, peerCount: ::std::os::raw::c_int);
}
pub const tr_tracker_state_TR_TRACKER_INACTIVE: tr_tracker_state = 0;
pub const tr_tracker_state_TR_TRACKER_WAITING: tr_tracker_state = 1;
pub const tr_tracker_state_TR_TRACKER_QUEUED: tr_tracker_state = 2;
pub const tr_tracker_state_TR_TRACKER_ACTIVE: tr_tracker_state = 3;
#[doc = "  tr_tracker_stat"]
pub type tr_tracker_state = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_tracker_stat {
    pub downloadCount: ::std::os::raw::c_int,
    pub hasAnnounced: u8,
    pub hasScraped: u8,
    pub host: [::std::os::raw::c_char; 1024usize],
    pub announce: [::std::os::raw::c_char; 1024usize],
    pub scrape: [::std::os::raw::c_char; 1024usize],
    pub isBackup: u8,
    pub announceState: tr_tracker_state,
    pub scrapeState: tr_tracker_state,
    pub lastAnnouncePeerCount: ::std::os::raw::c_int,
    pub lastAnnounceResult: [::std::os::raw::c_char; 128usize],
    pub lastAnnounceStartTime: time_t,
    pub lastAnnounceSucceeded: u8,
    pub lastAnnounceTimedOut: u8,
    pub lastAnnounceTime: time_t,
    pub lastScrapeResult: [::std::os::raw::c_char; 128usize],
    pub lastScrapeStartTime: time_t,
    pub lastScrapeSucceeded: u8,
    pub lastScrapeTimedOut: u8,
    pub lastScrapeTime: time_t,
    pub leecherCount: ::std::os::raw::c_int,
    pub nextAnnounceTime: time_t,
    pub nextScrapeTime: time_t,
    pub seederCount: ::std::os::raw::c_int,
    pub tier: ::std::os::raw::c_int,
    pub id: u32,
}
#[test]
fn bindgen_test_layout_tr_tracker_stat() {
    assert_eq!(
        ::std::mem::size_of::<tr_tracker_stat>(),
        3440usize,
        concat!("Size of: ", stringify!(tr_tracker_stat))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_tracker_stat>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_tracker_stat))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).downloadCount as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(downloadCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).hasAnnounced as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(hasAnnounced)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).hasScraped as *const _ as usize },
        5usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(hasScraped)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).host as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(host)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).announce as *const _ as usize },
        1030usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(announce)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).scrape as *const _ as usize },
        2054usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(scrape)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).isBackup as *const _ as usize },
        3078usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(isBackup)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).announceState as *const _ as usize },
        3080usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(announceState)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).scrapeState as *const _ as usize },
        3084usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(scrapeState)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnouncePeerCount as *const _ as usize
        },
        3088usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnouncePeerCount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnounceResult as *const _ as usize
        },
        3092usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnounceResult)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnounceStartTime as *const _ as usize
        },
        3224usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnounceStartTime)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnounceSucceeded as *const _ as usize
        },
        3232usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnounceSucceeded)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnounceTimedOut as *const _ as usize
        },
        3233usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnounceTimedOut)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastAnnounceTime as *const _ as usize
        },
        3240usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastAnnounceTime)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastScrapeResult as *const _ as usize
        },
        3248usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastScrapeResult)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastScrapeStartTime as *const _ as usize
        },
        3376usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastScrapeStartTime)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastScrapeSucceeded as *const _ as usize
        },
        3384usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastScrapeSucceeded)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).lastScrapeTimedOut as *const _ as usize
        },
        3385usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastScrapeTimedOut)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).lastScrapeTime as *const _ as usize },
        3392usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(lastScrapeTime)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).leecherCount as *const _ as usize },
        3400usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(leecherCount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_tracker_stat>())).nextAnnounceTime as *const _ as usize
        },
        3408usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(nextAnnounceTime)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).nextScrapeTime as *const _ as usize },
        3416usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(nextScrapeTime)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).seederCount as *const _ as usize },
        3424usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(seederCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).tier as *const _ as usize },
        3428usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(tier)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_tracker_stat>())).id as *const _ as usize },
        3432usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_tracker_stat),
            "::",
            stringify!(id)
        )
    );
}
extern "C" {
    pub fn tr_torrentTrackers(
        torrent: *const tr_torrent,
        setmeTrackerCount: *mut ::std::os::raw::c_int,
    ) -> *mut tr_tracker_stat;
}
extern "C" {
    pub fn tr_torrentTrackersFree(
        trackerStats: *mut tr_tracker_stat,
        trackerCount: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief get the download speeds for each of this torrent's webseed sources."]
    #[doc = ""]
    #[doc = " @return an array of tor->info.webseedCount floats giving download speeds."]
    #[doc = "         Each speed in the array corresponds to the webseed at the same"]
    #[doc = "         array index in tor->info.webseeds."]
    #[doc = "         To differentiate \"idle\" and \"stalled\" status, idle webseeds will"]
    #[doc = "         return -1 instead of 0 KiB/s."]
    #[doc = "         NOTE: always free this array with tr_free () when you're done with it."]
    pub fn tr_torrentWebSpeeds_KBps(torrent: *const tr_torrent) -> *mut f64;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_file_stat {
    pub bytesCompleted: u64,
    pub progress: f32,
}
#[test]
fn bindgen_test_layout_tr_file_stat() {
    assert_eq!(
        ::std::mem::size_of::<tr_file_stat>(),
        16usize,
        concat!("Size of: ", stringify!(tr_file_stat))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_file_stat>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_file_stat))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file_stat>())).bytesCompleted as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file_stat),
            "::",
            stringify!(bytesCompleted)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file_stat>())).progress as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file_stat),
            "::",
            stringify!(progress)
        )
    );
}
extern "C" {
    pub fn tr_torrentFiles(
        torrent: *const tr_torrent,
        fileCount: *mut tr_file_index_t,
    ) -> *mut tr_file_stat;
}
extern "C" {
    pub fn tr_torrentFilesFree(files: *mut tr_file_stat, fileCount: tr_file_index_t);
}
extern "C" {
    #[doc = " tr_torrentAvailability"]
    #[doc = ""]
    #[doc = " Use this to draw an advanced progress bar which is 'size' pixels"]
    #[doc = " wide. Fills 'tab' which you must have allocated: each byte is set"]
    #[doc = " to either -1 if we have the piece, otherwise it is set to the number"]
    #[doc = " of connected peers who have the piece."]
    pub fn tr_torrentAvailability(
        torrent: *const tr_torrent,
        tab: *mut i8,
        size: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn tr_torrentAmountFinished(
        torrent: *const tr_torrent,
        tab: *mut f32,
        size: ::std::os::raw::c_int,
    );
}
#[doc = " Callback function invoked when a torrent finishes being verified."]
#[doc = ""]
#[doc = " @param torrent the torrent that was verified"]
#[doc = " @param aborted true if the verify ended prematurely for some reason,"]
#[doc = "                such as tr_torrentStop() or tr_torrentSetLocation()"]
#[doc = "                being called during verification."]
#[doc = " @param callback_data the user-defined pointer from tr_torrentVerify()"]
pub type tr_verify_done_func = ::std::option::Option<
    unsafe extern "C" fn(
        torrent: *mut tr_torrent,
        aborted: u8,
        user_data: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Queue a torrent for verification."]
    #[doc = ""]
    #[doc = " If callback_func is non-NULL, it will be called from the libtransmission"]
    #[doc = " thread after the torrent's completness state is updated after the"]
    #[doc = " file verification pass."]
    pub fn tr_torrentVerify(
        torrent: *mut tr_torrent,
        callback_func_or_NULL: tr_verify_done_func,
        callback_data_or_NULL: *mut ::std::os::raw::c_void,
    );
}
#[doc = " @brief a part of tr_info that represents a single file of the torrent's content"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_file {
    pub length: u64,
    pub name: *mut ::std::os::raw::c_char,
    pub priority: i8,
    pub dnd: i8,
    pub is_renamed: i8,
    pub firstPiece: tr_piece_index_t,
    pub lastPiece: tr_piece_index_t,
    pub offset: u64,
}
#[test]
fn bindgen_test_layout_tr_file() {
    assert_eq!(
        ::std::mem::size_of::<tr_file>(),
        40usize,
        concat!("Size of: ", stringify!(tr_file))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_file>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_file))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).length as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).name as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).priority as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(priority)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).dnd as *const _ as usize },
        17usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(dnd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).is_renamed as *const _ as usize },
        18usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(is_renamed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).firstPiece as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(firstPiece)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).lastPiece as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(lastPiece)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_file>())).offset as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_file),
            "::",
            stringify!(offset)
        )
    );
}
#[doc = " @brief a part of tr_info that represents a single piece of the torrent's content"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_piece {
    pub timeChecked: time_t,
    pub hash: [u8; 20usize],
    pub priority: i8,
    pub dnd: i8,
}
#[test]
fn bindgen_test_layout_tr_piece() {
    assert_eq!(
        ::std::mem::size_of::<tr_piece>(),
        32usize,
        concat!("Size of: ", stringify!(tr_piece))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_piece>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_piece))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_piece>())).timeChecked as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_piece),
            "::",
            stringify!(timeChecked)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_piece>())).hash as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_piece),
            "::",
            stringify!(hash)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_piece>())).priority as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_piece),
            "::",
            stringify!(priority)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_piece>())).dnd as *const _ as usize },
        29usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_piece),
            "::",
            stringify!(dnd)
        )
    );
}
#[doc = " @brief information about a torrent that comes from its metainfo file"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_info {
    pub totalSize: u64,
    pub originalName: *mut ::std::os::raw::c_char,
    pub name: *mut ::std::os::raw::c_char,
    pub torrent: *mut ::std::os::raw::c_char,
    pub webseeds: *mut *mut ::std::os::raw::c_char,
    pub comment: *mut ::std::os::raw::c_char,
    pub creator: *mut ::std::os::raw::c_char,
    pub files: *mut tr_file,
    pub pieces: *mut tr_piece,
    pub trackers: *mut tr_tracker_info,
    pub dateCreated: time_t,
    pub trackerCount: ::std::os::raw::c_uint,
    pub webseedCount: ::std::os::raw::c_uint,
    pub fileCount: tr_file_index_t,
    pub pieceSize: u32,
    pub pieceCount: tr_piece_index_t,
    pub hash: [u8; 20usize],
    pub hashString: [::std::os::raw::c_char; 41usize],
    pub isPrivate: u8,
    pub isFolder: u8,
}
#[test]
fn bindgen_test_layout_tr_info() {
    assert_eq!(
        ::std::mem::size_of::<tr_info>(),
        176usize,
        concat!("Size of: ", stringify!(tr_info))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_info>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_info))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).totalSize as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(totalSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).originalName as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(originalName)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).name as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).torrent as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(torrent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).webseeds as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(webseeds)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).comment as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(comment)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).creator as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(creator)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).files as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(files)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).pieces as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(pieces)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).trackers as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(trackers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).dateCreated as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(dateCreated)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).trackerCount as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(trackerCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).webseedCount as *const _ as usize },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(webseedCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).fileCount as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(fileCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).pieceSize as *const _ as usize },
        100usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(pieceSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).pieceCount as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(pieceCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).hash as *const _ as usize },
        108usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(hash)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).hashString as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(hashString)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).isPrivate as *const _ as usize },
        169usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(isPrivate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_info>())).isFolder as *const _ as usize },
        170usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_info),
            "::",
            stringify!(isFolder)
        )
    );
}
pub const tr_torrent_activity_TR_STATUS_STOPPED: tr_torrent_activity = 0;
pub const tr_torrent_activity_TR_STATUS_CHECK_WAIT: tr_torrent_activity = 1;
pub const tr_torrent_activity_TR_STATUS_CHECK: tr_torrent_activity = 2;
pub const tr_torrent_activity_TR_STATUS_DOWNLOAD_WAIT: tr_torrent_activity = 3;
pub const tr_torrent_activity_TR_STATUS_DOWNLOAD: tr_torrent_activity = 4;
pub const tr_torrent_activity_TR_STATUS_SEED_WAIT: tr_torrent_activity = 5;
pub const tr_torrent_activity_TR_STATUS_SEED: tr_torrent_activity = 6;
#[doc = " What the torrent is doing right now."]
#[doc = ""]
#[doc = " Note: these values will become a straight enum at some point in the future."]
#[doc = " Do not rely on their current `bitfield' implementation"]
pub type tr_torrent_activity = u32;
pub const TR_PEER_FROM_INCOMING: _bindgen_ty_3 = 0;
pub const TR_PEER_FROM_LPD: _bindgen_ty_3 = 1;
pub const TR_PEER_FROM_TRACKER: _bindgen_ty_3 = 2;
pub const TR_PEER_FROM_DHT: _bindgen_ty_3 = 3;
pub const TR_PEER_FROM_PEX: _bindgen_ty_3 = 4;
pub const TR_PEER_FROM_RESUME: _bindgen_ty_3 = 5;
pub const TR_PEER_FROM_LTEP: _bindgen_ty_3 = 6;
pub const TR_PEER_FROM__MAX: _bindgen_ty_3 = 7;
pub type _bindgen_ty_3 = u32;
pub const tr_stat_errtype_TR_STAT_OK: tr_stat_errtype = 0;
pub const tr_stat_errtype_TR_STAT_TRACKER_WARNING: tr_stat_errtype = 1;
pub const tr_stat_errtype_TR_STAT_TRACKER_ERROR: tr_stat_errtype = 2;
pub const tr_stat_errtype_TR_STAT_LOCAL_ERROR: tr_stat_errtype = 3;
pub type tr_stat_errtype = u32;
#[doc = " @brief Used by tr_torrentStat () to tell clients about a torrent's state and statistics"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_stat {
    #[doc = " The torrent's unique Id."]
    #[doc = "@see tr_torrentId ()"]
    pub id: ::std::os::raw::c_int,
    #[doc = " What is this torrent doing right now?"]
    pub activity: tr_torrent_activity,
    #[doc = " Defines what kind of text is in errorString."]
    #[doc = "@see errorString"]
    pub error: tr_stat_errtype,
    #[doc = " A warning or error message regarding the torrent."]
    #[doc = "@see error"]
    pub errorString: [::std::os::raw::c_char; 512usize],
    #[doc = " When tr_stat.activity is TR_STATUS_CHECK or TR_STATUS_CHECK_WAIT,"]
    #[doc = "this is the percentage of how much of the files has been"]
    #[doc = "verified. When it gets to 1, the verify process is done."]
    #[doc = "Range is [0..1]"]
    #[doc = "@see tr_stat.activity"]
    pub recheckProgress: f32,
    #[doc = " How much has been downloaded of the entire torrent."]
    #[doc = "Range is [0..1]"]
    pub percentComplete: f32,
    #[doc = " How much of the metadata the torrent has."]
    #[doc = "For torrents added from a .torrent this will always be 1."]
    #[doc = "For magnet links, this number will from from 0 to 1 as the metadata is downloaded."]
    #[doc = "Range is [0..1]"]
    pub metadataPercentComplete: f32,
    #[doc = " How much has been downloaded of the files the user wants. This differs"]
    #[doc = "from percentComplete if the user wants only some of the torrent's files."]
    #[doc = "Range is [0..1]"]
    #[doc = "@see tr_stat.leftUntilDone"]
    pub percentDone: f32,
    #[doc = " How much has been uploaded to satisfy the seed ratio."]
    #[doc = "This is 1 if the ratio is reached or the torrent is set to seed forever."]
    #[doc = "Range is [0..1]"]
    pub seedRatioPercentDone: f32,
    #[doc = " Speed all data being sent for this torrent."]
    #[doc = "This includes piece data, protocol messages, and TCP overhead"]
    pub rawUploadSpeed_KBps: f32,
    #[doc = " Speed all data being received for this torrent."]
    #[doc = "This includes piece data, protocol messages, and TCP overhead"]
    pub rawDownloadSpeed_KBps: f32,
    #[doc = " Speed all piece being sent for this torrent."]
    #[doc = "This ONLY counts piece data."]
    pub pieceUploadSpeed_KBps: f32,
    #[doc = " Speed all piece being received for this torrent."]
    #[doc = "This ONLY counts piece data."]
    pub pieceDownloadSpeed_KBps: f32,
    #[doc = " If downloading, estimated number of seconds left until the torrent is done."]
    #[doc = "If seeding, estimated number of seconds left until seed ratio is reached."]
    pub eta: ::std::os::raw::c_int,
    #[doc = " If seeding, number of seconds left until the idle time limit is reached."]
    pub etaIdle: ::std::os::raw::c_int,
    #[doc = " Number of peers that we're connected to"]
    pub peersConnected: ::std::os::raw::c_int,
    #[doc = " How many peers we found out about from the tracker, or from pex,"]
    #[doc = "or from incoming connections, or from our resume file."]
    pub peersFrom: [::std::os::raw::c_int; 7usize],
    #[doc = " Number of peers that are sending data to us."]
    pub peersSendingToUs: ::std::os::raw::c_int,
    #[doc = " Number of peers that we're sending data to"]
    pub peersGettingFromUs: ::std::os::raw::c_int,
    #[doc = " Number of webseeds that are sending data to us."]
    pub webseedsSendingToUs: ::std::os::raw::c_int,
    #[doc = " Byte count of all the piece data we'll have downloaded when we're done,"]
    #[doc = "whether or not we have it yet. This may be less than tr_info.totalSize"]
    #[doc = "if only some of the torrent's files are wanted."]
    #[doc = "[0...tr_info.totalSize]"]
    pub sizeWhenDone: u64,
    #[doc = " Byte count of how much data is left to be downloaded until we've got"]
    #[doc = "all the pieces that we want. [0...tr_info.sizeWhenDone]"]
    pub leftUntilDone: u64,
    #[doc = " Byte count of all the piece data we want and don't have yet,"]
    #[doc = "but that a connected peer does have. [0...leftUntilDone]"]
    pub desiredAvailable: u64,
    #[doc = " Byte count of all the corrupt data you've ever downloaded for"]
    #[doc = "this torrent. If you're on a poisoned torrent, this number can"]
    #[doc = "grow very large."]
    pub corruptEver: u64,
    #[doc = " Byte count of all data you've ever uploaded for this torrent."]
    pub uploadedEver: u64,
    #[doc = " Byte count of all the non-corrupt data you've ever downloaded"]
    #[doc = "for this torrent. If you deleted the files and downloaded a second"]
    #[doc = "time, this will be 2*totalSize.."]
    pub downloadedEver: u64,
    #[doc = " Byte count of all the checksum-verified data we have for this torrent."]
    pub haveValid: u64,
    #[doc = " Byte count of all the partial piece data we have for this torrent."]
    #[doc = "As pieces become complete, this value may decrease as portions of it"]
    #[doc = "are moved to `corrupt' or `haveValid'."]
    pub haveUnchecked: u64,
    #[doc = " time when one or more of the torrent's trackers will"]
    #[doc = "allow you to manually ask for more peers,"]
    #[doc = "or 0 if you can't"]
    pub manualAnnounceTime: time_t,
    #[doc = " TR_RATIO_INF, TR_RATIO_NA, or a regular ratio"]
    pub ratio: f32,
    #[doc = " When the torrent was first added."]
    pub addedDate: time_t,
    #[doc = " When the torrent finished downloading."]
    pub doneDate: time_t,
    #[doc = " When the torrent was last started."]
    pub startDate: time_t,
    #[doc = " The last time we uploaded or downloaded piece data on this torrent."]
    pub activityDate: time_t,
    #[doc = " Number of seconds since the last activity (or since started)."]
    #[doc = "-1 if activity is not seeding or downloading."]
    pub idleSecs: ::std::os::raw::c_int,
    #[doc = " Cumulative seconds the torrent's ever spent downloading"]
    pub secondsDownloading: ::std::os::raw::c_int,
    #[doc = " Cumulative seconds the torrent's ever spent seeding"]
    pub secondsSeeding: ::std::os::raw::c_int,
    #[doc = " A torrent is considered finished if it has met its seed ratio."]
    #[doc = "As a result, only paused torrents can be finished."]
    pub finished: u8,
    #[doc = " This torrent's queue position."]
    #[doc = "All torrents have a queue position, even if it's not queued."]
    pub queuePosition: ::std::os::raw::c_int,
    #[doc = " True if the torrent is running, but has been idle for long enough"]
    #[doc = "to be considered stalled.  @see tr_sessionGetQueueStalledMinutes ()"]
    pub isStalled: u8,
}
#[test]
fn bindgen_test_layout_tr_stat() {
    assert_eq!(
        ::std::mem::size_of::<tr_stat>(),
        752usize,
        concat!("Size of: ", stringify!(tr_stat))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_stat>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_stat))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).activity as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(activity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).error as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(error)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).errorString as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(errorString)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).recheckProgress as *const _ as usize },
        524usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(recheckProgress)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).percentComplete as *const _ as usize },
        528usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(percentComplete)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).metadataPercentComplete as *const _ as usize },
        532usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(metadataPercentComplete)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).percentDone as *const _ as usize },
        536usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(percentDone)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).seedRatioPercentDone as *const _ as usize },
        540usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(seedRatioPercentDone)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).rawUploadSpeed_KBps as *const _ as usize },
        544usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(rawUploadSpeed_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).rawDownloadSpeed_KBps as *const _ as usize },
        548usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(rawDownloadSpeed_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).pieceUploadSpeed_KBps as *const _ as usize },
        552usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(pieceUploadSpeed_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).pieceDownloadSpeed_KBps as *const _ as usize },
        556usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(pieceDownloadSpeed_KBps)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).eta as *const _ as usize },
        560usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(eta)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).etaIdle as *const _ as usize },
        564usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(etaIdle)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).peersConnected as *const _ as usize },
        568usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(peersConnected)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).peersFrom as *const _ as usize },
        572usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(peersFrom)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).peersSendingToUs as *const _ as usize },
        600usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(peersSendingToUs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).peersGettingFromUs as *const _ as usize },
        604usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(peersGettingFromUs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).webseedsSendingToUs as *const _ as usize },
        608usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(webseedsSendingToUs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).sizeWhenDone as *const _ as usize },
        616usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(sizeWhenDone)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).leftUntilDone as *const _ as usize },
        624usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(leftUntilDone)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).desiredAvailable as *const _ as usize },
        632usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(desiredAvailable)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).corruptEver as *const _ as usize },
        640usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(corruptEver)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).uploadedEver as *const _ as usize },
        648usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(uploadedEver)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).downloadedEver as *const _ as usize },
        656usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(downloadedEver)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).haveValid as *const _ as usize },
        664usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(haveValid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).haveUnchecked as *const _ as usize },
        672usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(haveUnchecked)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).manualAnnounceTime as *const _ as usize },
        680usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(manualAnnounceTime)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).ratio as *const _ as usize },
        688usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(ratio)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).addedDate as *const _ as usize },
        696usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(addedDate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).doneDate as *const _ as usize },
        704usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(doneDate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).startDate as *const _ as usize },
        712usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(startDate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).activityDate as *const _ as usize },
        720usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(activityDate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).idleSecs as *const _ as usize },
        728usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(idleSecs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).secondsDownloading as *const _ as usize },
        732usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(secondsDownloading)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).secondsSeeding as *const _ as usize },
        736usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(secondsSeeding)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).finished as *const _ as usize },
        740usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(finished)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).queuePosition as *const _ as usize },
        744usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(queuePosition)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_stat>())).isStalled as *const _ as usize },
        748usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_stat),
            "::",
            stringify!(isStalled)
        )
    );
}
extern "C" {
    #[doc = " Return a pointer to an tr_stat structure with updated information"]
    #[doc = "on the torrent. This is typically called by the GUI clients every"]
    #[doc = "second or so to get a new snapshot of the torrent's status."]
    pub fn tr_torrentStat(torrent: *mut tr_torrent) -> *const tr_stat;
}
extern "C" {
    #[doc = " Like tr_torrentStat (), but only recalculates the statistics if it's"]
    #[doc = "been longer than a second since they were last calculated. This can"]
    #[doc = "reduce the CPU load if you're calling tr_torrentStat () frequently."]
    pub fn tr_torrentStatCached(torrent: *mut tr_torrent) -> *const tr_stat;
}
extern "C" {
    #[doc = " @deprecated"]
    pub fn tr_torrentSetAddedDate(torrent: *mut tr_torrent, addedDate: time_t);
}
extern "C" {
    #[doc = " @deprecated"]
    pub fn tr_torrentSetActivityDate(torrent: *mut tr_torrent, activityDate: time_t);
}
extern "C" {
    #[doc = " @deprecated"]
    pub fn tr_torrentSetDoneDate(torrent: *mut tr_torrent, doneDate: time_t);
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
#[doc = " @brief Structure holding error information."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_error {
    #[doc = " @brief Error code, platform-specific"]
    pub code: ::std::os::raw::c_int,
    #[doc = " @brief Error message"]
    pub message: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_tr_error() {
    assert_eq!(
        ::std::mem::size_of::<tr_error>(),
        16usize,
        concat!("Size of: ", stringify!(tr_error))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_error>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_error))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_error>())).code as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_error),
            "::",
            stringify!(code)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_error>())).message as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_error),
            "::",
            stringify!(message)
        )
    );
}
extern "C" {
    #[doc = " @brief Create new error object using `printf`-style formatting."]
    #[doc = ""]
    #[doc = " @param[in] code           Error code (platform-specific)."]
    #[doc = " @param[in] message_format Error message format string."]
    #[doc = " @param[in] ...            Format arguments."]
    #[doc = ""]
    #[doc = " @return Newly allocated error object on success, `NULL` otherwise."]
    pub fn tr_error_new(
        code: ::std::os::raw::c_int,
        message_format: *const ::std::os::raw::c_char,
        ...
    ) -> *mut tr_error;
}
extern "C" {
    #[doc = " @brief Create new error object using literal error message."]
    #[doc = ""]
    #[doc = " @param[in] code    Error code (platform-specific)."]
    #[doc = " @param[in] message Error message."]
    #[doc = ""]
    #[doc = " @return Newly allocated error object on success, `NULL` otherwise."]
    pub fn tr_error_new_literal(
        code: ::std::os::raw::c_int,
        message: *const ::std::os::raw::c_char,
    ) -> *mut tr_error;
}
extern "C" {
    #[doc = " @brief Create new error object using `vprintf`-style formatting."]
    #[doc = ""]
    #[doc = " @param[in] code           Error code (platform-specific)."]
    #[doc = " @param[in] message_format Error message format string."]
    #[doc = " @param[in] args           Format arguments."]
    #[doc = ""]
    #[doc = " @return Newly allocated error object on success, `NULL` otherwise."]
    pub fn tr_error_new_valist(
        code: ::std::os::raw::c_int,
        message_format: *const ::std::os::raw::c_char,
        args: *mut __va_list_tag,
    ) -> *mut tr_error;
}
extern "C" {
    #[doc = " @brief Free memory used by error object."]
    #[doc = ""]
    #[doc = " @param[in] error Error object to be freed."]
    pub fn tr_error_free(error: *mut tr_error);
}
extern "C" {
    #[doc = " @brief Create and set new error object using `printf`-style formatting."]
    #[doc = ""]
    #[doc = " If passed pointer to error object is `NULL`, do nothing."]
    #[doc = ""]
    #[doc = " @param[in,out] error          Pointer to error object to be set."]
    #[doc = " @param[in]     code           Error code (platform-specific)."]
    #[doc = " @param[in]     message_format Error message format string."]
    #[doc = " @param[in]     ...            Format arguments."]
    pub fn tr_error_set(
        error: *mut *mut tr_error,
        code: ::std::os::raw::c_int,
        message_format: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    #[doc = " @brief Create and set new error object using literal error message."]
    #[doc = ""]
    #[doc = " If passed pointer to error object is `NULL`, do nothing."]
    #[doc = ""]
    #[doc = " @param[in,out] error   Pointer to error object to be set."]
    #[doc = " @param[in]     code    Error code (platform-specific)."]
    #[doc = " @param[in]     message Error message."]
    pub fn tr_error_set_literal(
        error: *mut *mut tr_error,
        code: ::std::os::raw::c_int,
        message: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @brief Propagate existing error object upwards."]
    #[doc = ""]
    #[doc = " If passed pointer to new error object is not `NULL`, copy old error object to"]
    #[doc = " new error object and free old error object. Otherwise, just free old error"]
    #[doc = " object."]
    #[doc = ""]
    #[doc = " @param[in,out] new_error Pointer to error object to be set."]
    #[doc = " @param[in,out] old_error Error object to be propagated. Cleared on return."]
    pub fn tr_error_propagate(new_error: *mut *mut tr_error, old_error: *mut *mut tr_error);
}
extern "C" {
    #[doc = " @brief Clear error object."]
    #[doc = ""]
    #[doc = " Free error object being pointed and set pointer to `NULL`. If passed pointer"]
    #[doc = " is `NULL`, do nothing."]
    #[doc = ""]
    #[doc = " @param[in,out] error Pointer to error object to be cleared."]
    pub fn tr_error_clear(error: *mut *mut tr_error);
}
extern "C" {
    #[doc = " @brief Prefix message of exising error object."]
    #[doc = ""]
    #[doc = " If passed pointer to error object is not `NULL`, prefix its message with"]
    #[doc = " `printf`-style formatted text. Otherwise, do nothing."]
    #[doc = ""]
    #[doc = " @param[in,out] error         Pointer to error object to be set."]
    #[doc = " @param[in]     prefix_format Prefix format string."]
    #[doc = " @param[in]     ...           Format arguments."]
    pub fn tr_error_prefix(
        error: *mut *mut tr_error,
        prefix_format: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    #[doc = " @brief Prefix message and propagate existing error object upwards."]
    #[doc = ""]
    #[doc = " If passed pointer to new error object is not `NULL`, copy old error object to"]
    #[doc = " new error object, prefix its message with `printf`-style formatted text, and"]
    #[doc = " free old error object. Otherwise, just free old error object."]
    #[doc = ""]
    #[doc = " @param[in,out] new_error Pointer to error object to be set."]
    #[doc = " @param[in,out] old_error     Error object to be propagated. Cleared on return."]
    #[doc = " @param[in] prefix_format Prefix format string."]
    #[doc = " @param[in] ... Format arguments."]
    pub fn tr_error_propagate_prefixed(
        new_error: *mut *mut tr_error,
        old_error: *mut *mut tr_error,
        prefix_format: *const ::std::os::raw::c_char,
        ...
    );
}
#[doc = " @brief Platform-specific file descriptor type."]
pub type tr_sys_file_t = ::std::os::raw::c_int;
#[doc = " @brief Platform-specific directory descriptor type."]
pub type tr_sys_dir_t = *mut ::std::os::raw::c_void;
pub const tr_std_sys_file_t_TR_STD_SYS_FILE_IN: tr_std_sys_file_t = 0;
pub const tr_std_sys_file_t_TR_STD_SYS_FILE_OUT: tr_std_sys_file_t = 1;
pub const tr_std_sys_file_t_TR_STD_SYS_FILE_ERR: tr_std_sys_file_t = 2;
pub type tr_std_sys_file_t = u32;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_READ: tr_sys_file_open_flags_t = 1;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_WRITE: tr_sys_file_open_flags_t = 2;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_CREATE: tr_sys_file_open_flags_t = 4;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_CREATE_NEW: tr_sys_file_open_flags_t = 8;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_APPEND: tr_sys_file_open_flags_t = 16;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_TRUNCATE: tr_sys_file_open_flags_t = 32;
pub const tr_sys_file_open_flags_t_TR_SYS_FILE_SEQUENTIAL: tr_sys_file_open_flags_t = 64;
pub type tr_sys_file_open_flags_t = u32;
pub const tr_seek_origin_t_TR_SEEK_SET: tr_seek_origin_t = 0;
pub const tr_seek_origin_t_TR_SEEK_CUR: tr_seek_origin_t = 1;
pub const tr_seek_origin_t_TR_SEEK_END: tr_seek_origin_t = 2;
pub type tr_seek_origin_t = u32;
pub const tr_sys_path_get_info_flags_t_TR_SYS_PATH_NO_FOLLOW: tr_sys_path_get_info_flags_t = 1;
pub type tr_sys_path_get_info_flags_t = u32;
pub const tr_sys_file_preallocate_flags_t_TR_SYS_FILE_PREALLOC_SPARSE:
    tr_sys_file_preallocate_flags_t = 1;
pub type tr_sys_file_preallocate_flags_t = u32;
pub const tr_sys_dir_create_flags_t_TR_SYS_DIR_CREATE_PARENTS: tr_sys_dir_create_flags_t = 1;
pub type tr_sys_dir_create_flags_t = u32;
pub const tr_sys_path_type_t_TR_SYS_PATH_IS_FILE: tr_sys_path_type_t = 0;
pub const tr_sys_path_type_t_TR_SYS_PATH_IS_DIRECTORY: tr_sys_path_type_t = 1;
pub const tr_sys_path_type_t_TR_SYS_PATH_IS_OTHER: tr_sys_path_type_t = 2;
pub type tr_sys_path_type_t = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_sys_path_info {
    pub type_: tr_sys_path_type_t,
    pub size: u64,
    pub last_modified_at: time_t,
}
#[test]
fn bindgen_test_layout_tr_sys_path_info() {
    assert_eq!(
        ::std::mem::size_of::<tr_sys_path_info>(),
        24usize,
        concat!("Size of: ", stringify!(tr_sys_path_info))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_sys_path_info>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_sys_path_info))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_sys_path_info>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_sys_path_info),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_sys_path_info>())).size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_sys_path_info),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_sys_path_info>())).last_modified_at as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_sys_path_info),
            "::",
            stringify!(last_modified_at)
        )
    );
}
extern "C" {
    #[doc = " @brief Portability wrapper for `stat ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[in]  flags Combination of @ref tr_sys_path_get_info_flags_t values."]
    #[doc = " @param[out] info  Result buffer."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_path_get_info(
        path: *const ::std::os::raw::c_char,
        flags: ::std::os::raw::c_int,
        info: *mut tr_sys_path_info,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `access ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` if path exists, `false` otherwise. Note that `false` will also"]
    #[doc = "         be returned in case of error; if you need to distinguish the two,"]
    #[doc = "         check if `error` is `NULL` afterwards."]
    pub fn tr_sys_path_exists(path: *const ::std::os::raw::c_char, error: *mut *mut tr_error)
        -> u8;
}
extern "C" {
    #[doc = " @brief Check whether path is relative."]
    #[doc = ""]
    #[doc = " This function only analyzes the string, so no error reporting is needed."]
    #[doc = ""]
    #[doc = " @param[in] path Path to file or directory."]
    #[doc = ""]
    #[doc = " @return `True` if path is relative, `false` otherwise"]
    pub fn tr_sys_path_is_relative(path: *const ::std::os::raw::c_char) -> u8;
}
extern "C" {
    #[doc = " @brief Test to see if the two filenames point to the same file."]
    #[doc = ""]
    #[doc = " @param[in]  path1  Path to first file or directory."]
    #[doc = " @param[in]  path2  Path to second file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` if two paths point to the same file or directory, `false`"]
    #[doc = "         otherwise. Note that `false` will also be returned in case of error;"]
    #[doc = "         if you need to distinguish the two, check if `error` is `NULL`"]
    #[doc = "         afterwards."]
    pub fn tr_sys_path_is_same(
        path1: *const ::std::os::raw::c_char,
        path2: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `realpath ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to newly allocated buffer containing full path (with symbolic"]
    #[doc = "         links, `.` and `..` resolved) on success (use @ref tr_free to free it"]
    #[doc = "         when no longer needed), `NULL` otherwise (with `error` set"]
    #[doc = "         accordingly)."]
    pub fn tr_sys_path_resolve(
        path: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `basename ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to newly allocated buffer containing base name (last path"]
    #[doc = "         component; parent path removed) on success (use @ref tr_free to free"]
    #[doc = "         it when no longer needed), `NULL` otherwise (with `error` set"]
    #[doc = "         accordingly)."]
    pub fn tr_sys_path_basename(
        path: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `dirname ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to newly allocated buffer containing directory (parent path;"]
    #[doc = "         last path component removed) on success (use @ref tr_free to free it"]
    #[doc = "         when no longer needed), `NULL` otherwise (with `error` set"]
    #[doc = "         accordingly)."]
    pub fn tr_sys_path_dirname(
        path: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `rename ()`."]
    #[doc = ""]
    #[doc = " @param[in]  src_path Path to source file or directory."]
    #[doc = " @param[in]  dst_path Path to destination file or directory."]
    #[doc = " @param[out] error    Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                      are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    #[doc = "         Rename will generally only succeed if both source and destination are"]
    #[doc = "         on the same partition."]
    pub fn tr_sys_path_rename(
        src_path: *const ::std::os::raw::c_char,
        dst_path: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `remove ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to file or directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    #[doc = "         Directory removal will only succeed if it is empty (contains no other"]
    #[doc = "         files and directories)."]
    pub fn tr_sys_path_remove(path: *const ::std::os::raw::c_char, error: *mut *mut tr_error)
        -> u8;
}
extern "C" {
    #[doc = " @brief Get handle to one of standard I/O files."]
    #[doc = ""]
    #[doc = " @param[in]  std_file Standard file identifier."]
    #[doc = " @param[out] error    Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                      are not interested in error details."]
    #[doc = ""]
    #[doc = " @return Opened file descriptor on success, `TR_BAD_SYS_FILE` otherwise (with"]
    #[doc = "         `error` set accordingly). DO NOT pass this descriptor to"]
    #[doc = "         @ref tr_sys_file_close (unless you know what you are doing)."]
    pub fn tr_sys_file_get_std(
        std_file: tr_std_sys_file_t,
        error: *mut *mut tr_error,
    ) -> tr_sys_file_t;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `open ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path        Path to file."]
    #[doc = " @param[in]  flags       Combination of @ref tr_sys_file_open_flags_t values."]
    #[doc = " @param[in]  permissions Permissions to create file with (in case"]
    #[doc = "@ref TR_SYS_FILE_CREATE is used). Not used on Windows."]
    #[doc = " @param[out] error       Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                         are not interested in error details."]
    #[doc = ""]
    #[doc = " @return Opened file descriptor on success, `TR_BAD_SYS_FILE` otherwise (with"]
    #[doc = "         `error` set accordingly)."]
    pub fn tr_sys_file_open(
        path: *const ::std::os::raw::c_char,
        flags: ::std::os::raw::c_int,
        permissions: ::std::os::raw::c_int,
        error: *mut *mut tr_error,
    ) -> tr_sys_file_t;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `mkstemp ()`."]
    #[doc = ""]
    #[doc = " @param[in,out] path_template Template path to file. Should end with at least"]
    #[doc = "                              six 'X' characters. Upon success, trailing 'X'"]
    #[doc = "                              characters are replaced with actual random"]
    #[doc = "                              characters used to form a unique path to"]
    #[doc = "                              temporary file."]
    #[doc = " @param[out]    error         Pointer to error object. Optional, pass `NULL`"]
    #[doc = "                              if you are not interested in error details."]
    #[doc = ""]
    #[doc = " @return Opened file descriptor on success, `TR_BAD_SYS_FILE` otherwise (with"]
    #[doc = "         `error` set accordingly)."]
    pub fn tr_sys_file_open_temp(
        path_template: *mut ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> tr_sys_file_t;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `close ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_close(handle: tr_sys_file_t, error: *mut *mut tr_error) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `fstat ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[out] info   Result buffer."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_get_info(
        handle: tr_sys_file_t,
        info: *mut tr_sys_path_info,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `lseek ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle     Valid file descriptor."]
    #[doc = " @param[in]  offset     Relative file offset in bytes to seek to."]
    #[doc = " @param[in]  origin     Offset origin."]
    #[doc = " @param[out] new_offset New offset in bytes from beginning of file. Optional,"]
    #[doc = "                        pass `NULL` if you are not interested."]
    #[doc = " @param[out] error      Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                        are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_seek(
        handle: tr_sys_file_t,
        offset: i64,
        origin: tr_seek_origin_t,
        new_offset: *mut u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `read ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle     Valid file descriptor."]
    #[doc = " @param[out] buffer     Buffer to store read data to."]
    #[doc = " @param[in]  size       Number of bytes to read."]
    #[doc = " @param[out] bytes_read Number of bytes actually read. Optional, pass `NULL`"]
    #[doc = "                        if you are not interested."]
    #[doc = " @param[out] error      Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                        are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_read(
        handle: tr_sys_file_t,
        buffer: *mut ::std::os::raw::c_void,
        size: u64,
        bytes_read: *mut u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Like `pread ()`, except that the position is undefined afterwards."]
    #[doc = "        Not thread-safe."]
    #[doc = ""]
    #[doc = " @param[in]  handle     Valid file descriptor."]
    #[doc = " @param[out] buffer     Buffer to store read data to."]
    #[doc = " @param[in]  size       Number of bytes to read."]
    #[doc = " @param[in]  offset     File offset in bytes to start reading from."]
    #[doc = " @param[out] bytes_read Number of bytes actually read. Optional, pass `NULL`"]
    #[doc = "                        if you are not interested."]
    #[doc = " @param[out] error      Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                        are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_read_at(
        handle: tr_sys_file_t,
        buffer: *mut ::std::os::raw::c_void,
        size: u64,
        offset: u64,
        bytes_read: *mut u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `write ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle        Valid file descriptor."]
    #[doc = " @param[in]  buffer        Buffer to get data being written from."]
    #[doc = " @param[in]  size          Number of bytes to write."]
    #[doc = " @param[out] bytes_written Number of bytes actually written. Optional, pass"]
    #[doc = "                           `NULL` if you are not interested."]
    #[doc = " @param[out] error         Pointer to error object. Optional, pass `NULL` if"]
    #[doc = "                           you are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_write(
        handle: tr_sys_file_t,
        buffer: *const ::std::os::raw::c_void,
        size: u64,
        bytes_written: *mut u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Like `pwrite ()`, except that the position is undefined afterwards."]
    #[doc = "        Not thread-safe."]
    #[doc = ""]
    #[doc = " @param[in]  handle        Valid file descriptor."]
    #[doc = " @param[in]  buffer        Buffer to get data being written from."]
    #[doc = " @param[in]  size          Number of bytes to write."]
    #[doc = " @param[in]  offset        File offset in bytes to start writing from."]
    #[doc = " @param[out] bytes_written Number of bytes actually written. Optional, pass"]
    #[doc = "                           `NULL` if you are not interested."]
    #[doc = " @param[out] error         Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                           are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_write_at(
        handle: tr_sys_file_t,
        buffer: *const ::std::os::raw::c_void,
        size: u64,
        offset: u64,
        bytes_written: *mut u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `fsync ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_flush(handle: tr_sys_file_t, error: *mut *mut tr_error) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `ftruncate ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  size   Number of bytes to truncate (or extend) file to."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_truncate(handle: tr_sys_file_t, size: u64, error: *mut *mut tr_error) -> u8;
}
extern "C" {
    #[doc = " @brief Tell system to prefetch some part of file which is to be read soon."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  offset Offset in file to prefetch from."]
    #[doc = " @param[in]  size   Number of bytes to prefetch."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_prefetch(
        handle: tr_sys_file_t,
        offset: u64,
        size: u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Preallocate file to specified size in full or sparse mode."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  size   Number of bytes to preallocate file to."]
    #[doc = " @param[in]  flags  Combination of @ref tr_sys_file_preallocate_flags_t values."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_preallocate(
        handle: tr_sys_file_t,
        size: u64,
        flags: ::std::os::raw::c_int,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `mmap ()` for files."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  offset Offset in file to map from."]
    #[doc = " @param[in]  size   Number of bytes to map."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to mapped file data on success, `NULL` otherwise (with"]
    #[doc = "         `error` set accordingly)."]
    pub fn tr_sys_file_map_for_reading(
        handle: tr_sys_file_t,
        offset: u64,
        size: u64,
        error: *mut *mut tr_error,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `munmap ()` for files."]
    #[doc = ""]
    #[doc = " @param[in]  address Pointer to mapped file data."]
    #[doc = " @param[in]  size    Size of mapped data in bytes."]
    #[doc = " @param[out] error   Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                     not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_unmap(
        address: *const ::std::os::raw::c_void,
        size: u64,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `fgets ()`, removing EOL internally."]
    #[doc = ""]
    #[doc = " Special care should be taken when reading from one of standard input streams"]
    #[doc = " (@ref tr_std_sys_file_t) since no UTF-8 conversion is currently being made."]
    #[doc = ""]
    #[doc = " Reading from other streams (files, pipes) also leaves data untouched, so it"]
    #[doc = " should already be in UTF-8 encoding, or whichever else you expect."]
    #[doc = ""]
    #[doc = " @param[in]  handle      Valid file descriptor."]
    #[doc = " @param[out] buffer      Buffer to store read zero-terminated string to."]
    #[doc = " @param[in]  buffer_size Buffer size in bytes, taking '\\0' character into"]
    #[doc = "                         account."]
    #[doc = " @param[out] error       Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                         are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    #[doc = "         Note that `false` will also be returned in case of end of file; if"]
    #[doc = "         you need to distinguish the two, check if `error` is `NULL`"]
    #[doc = "         afterwards."]
    pub fn tr_sys_file_read_line(
        handle: tr_sys_file_t,
        buffer: *mut ::std::os::raw::c_char,
        buffer_size: usize,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `fputs ()`, appending EOL internally."]
    #[doc = ""]
    #[doc = " Special care should be taken when writing to one of standard output streams"]
    #[doc = " (@ref tr_std_sys_file_t) since no UTF-8 conversion is currently being made."]
    #[doc = ""]
    #[doc = " Writing to other streams (files, pipes) also leaves data untouched, so it"]
    #[doc = " should already be in UTF-8 encoding, or whichever else you expect."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  buffer Zero-terminated string to write."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_write_line(
        handle: tr_sys_file_t,
        buffer: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `fprintf ()`."]
    #[doc = ""]
    #[doc = " Special care should be taken when writing to one of standard output streams"]
    #[doc = " (@ref tr_std_sys_file_t) since no UTF-8 conversion is currently being made."]
    #[doc = ""]
    #[doc = " Writing to other streams (files, pipes) also leaves data untouched, so it"]
    #[doc = " should already be in UTF-8 encoding, or whichever else you expect."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid file descriptor."]
    #[doc = " @param[in]  format String format to write."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = " @param[in]  ...    Format arguments."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_file_write_fmt(
        handle: tr_sys_file_t,
        format: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
        ...
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `getcwd ()`."]
    #[doc = ""]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to newly allocated buffer containing path to current"]
    #[doc = "         directory (use @ref tr_free to free it when no longer needed) on"]
    #[doc = "         success, `NULL` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_dir_get_current(error: *mut *mut tr_error) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Like `mkdir ()`, but makes parent directories if needed."]
    #[doc = ""]
    #[doc = " @param[in]  path        Path to directory."]
    #[doc = " @param[in]  flags       Combination of @ref tr_sys_dir_create_flags_t values."]
    #[doc = " @param[in]  permissions Permissions to create directory with. Not used on"]
    #[doc = "Windows."]
    #[doc = " @param[out] error       Pointer to error object. Optional, pass `NULL` if you"]
    #[doc = "                         are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_dir_create(
        path: *const ::std::os::raw::c_char,
        flags: ::std::os::raw::c_int,
        permissions: ::std::os::raw::c_int,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `mkdtemp ()`."]
    #[doc = ""]
    #[doc = " @param[in,out] path_template Template path to directory. Should end with at"]
    #[doc = "                              least six 'X' characters. Upon success, trailing"]
    #[doc = "                              'X' characters are replaced with actual random"]
    #[doc = "                              characters used to form a unique path to"]
    #[doc = "                              temporary directory."]
    #[doc = " @param[out]    error         Pointer to error object. Optional, pass `NULL`"]
    #[doc = "                              if you are not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_dir_create_temp(
        path_template: *mut ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `opendir ()`."]
    #[doc = ""]
    #[doc = " @param[in]  path  Path to directory."]
    #[doc = " @param[out] error Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                   not interested in error details."]
    #[doc = ""]
    #[doc = " @return Opened directory descriptor on success, `TR_BAD_SYS_DIR` otherwise"]
    #[doc = "         (with `error` set accordingly)."]
    pub fn tr_sys_dir_open(
        path: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> tr_sys_dir_t;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `readdir ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid directory descriptor."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return Pointer to next directory entry name (stored internally, DO NOT pass"]
    #[doc = "         it to @ref tr_free) on success, `NULL` otherwise (with `error` set"]
    #[doc = "         accordingly). Note that `NULL` will also be returned in case of end"]
    #[doc = "         of directory; if you need to distinguish the two, check if `error`"]
    #[doc = "         is `NULL` afterwards."]
    pub fn tr_sys_dir_read_name(
        handle: tr_sys_dir_t,
        error: *mut *mut tr_error,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for `closedir ()`."]
    #[doc = ""]
    #[doc = " @param[in]  handle Valid directory descriptor."]
    #[doc = " @param[out] error  Pointer to error object. Optional, pass `NULL` if you are"]
    #[doc = "                    not interested in error details."]
    #[doc = ""]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_sys_dir_close(handle: tr_sys_dir_t, error: *mut *mut tr_error) -> u8;
}
extern "C" {
    #[link_name = "\u{1}tr_optind"]
    pub static mut tr_optind: ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_option {
    pub val: ::std::os::raw::c_int,
    pub longName: *const ::std::os::raw::c_char,
    pub description: *const ::std::os::raw::c_char,
    pub shortName: *const ::std::os::raw::c_char,
    pub has_arg: ::std::os::raw::c_int,
    pub argName: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_tr_option() {
    assert_eq!(
        ::std::mem::size_of::<tr_option>(),
        48usize,
        concat!("Size of: ", stringify!(tr_option))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_option>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_option))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(val)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).longName as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(longName)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).description as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(description)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).shortName as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(shortName)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).has_arg as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(has_arg)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_option>())).argName as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_option),
            "::",
            stringify!(argName)
        )
    );
}
pub const TR_OPT_DONE: _bindgen_ty_4 = 0;
pub const TR_OPT_ERR: _bindgen_ty_4 = -1;
pub const TR_OPT_UNK: _bindgen_ty_4 = -2;
pub type _bindgen_ty_4 = i32;
extern "C" {
    #[doc = " @brief similar to getopt ()"]
    #[doc = " @return TR_GETOPT_DONE, TR_GETOPT_ERR, TR_GETOPT_UNK, or the matching tr_option's `val' field"]
    pub fn tr_getopt(
        summary: *const ::std::os::raw::c_char,
        argc: ::std::os::raw::c_int,
        argv: *const *const ::std::os::raw::c_char,
        opts: *const tr_option,
        setme_optarg: *mut *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief prints the `Usage' help section to stdout"]
    pub fn tr_getopt_usage(
        appName: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        opts: *const tr_option,
    );
}
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: f64,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(
        ::std::mem::size_of::<max_align_t>(),
        32usize,
        concat!("Size of: ", stringify!(max_align_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce2)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct evbuffer {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct event {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    _unused: [u8; 0],
}
extern "C" {
    pub fn tr_strip_positional_args(
        fmt: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Rich Salz's classic implementation of shell-style pattern matching for ?, \\, [], and * characters."]
    #[doc = " @return 1 if the pattern matches, 0 if it doesn't, or -1 if an error occured"]
    pub fn tr_wildmat(
        text: *const ::std::os::raw::c_char,
        pattern: *const ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Loads a file and returns its contents."]
    #[doc = " On failure, NULL is returned and errno is set."]
    pub fn tr_loadFile(
        filename: *const ::std::os::raw::c_char,
        size: *mut usize,
        error: *mut *mut tr_error,
    ) -> *mut u8;
}
extern "C" {
    #[doc = " @brief build a filename from a series of elements using the"]
    #[doc = "platform's correct directory separator."]
    pub fn tr_buildPath(
        first_element: *const ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Get available disk space (in bytes) for the specified folder."]
    #[doc = " @return zero or positive integer on success, -1 in case of error."]
    pub fn tr_getDirFreeSpace(path: *const ::std::os::raw::c_char) -> i64;
}
extern "C" {
    #[doc = " @brief Convenience wrapper around timer_add () to have a timer wake up in a number of seconds and microseconds"]
    #[doc = " @param timer"]
    #[doc = " @param seconds"]
    #[doc = " @param microseconds"]
    pub fn tr_timerAdd(
        timer: *mut event,
        seconds: ::std::os::raw::c_int,
        microseconds: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @brief Convenience wrapper around timer_add () to have a timer wake up in a number of milliseconds"]
    #[doc = " @param timer"]
    #[doc = " @param milliseconds"]
    pub fn tr_timerAddMsec(timer: *mut event, milliseconds: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " @brief return the current date in milliseconds"]
    pub fn tr_time_msec() -> u64;
}
extern "C" {
    #[doc = " @brief sleep the specified number of milliseconds"]
    pub fn tr_wait_msec(delay_milliseconds: ::std::os::raw::c_long);
}
extern "C" {
    #[doc = " @brief make a copy of 'str' whose non-utf8 content has been corrected or stripped"]
    #[doc = " @return a newly-allocated string that must be freed with tr_free ()"]
    #[doc = " @param str the string to make a clean copy of"]
    #[doc = " @param len the length of the string to copy. If -1, the entire string is used."]
    pub fn tr_utf8clean(
        str: *const ::std::os::raw::c_char,
        len: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper around malloc () in which `0' is a safe argument"]
    pub fn tr_malloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @brief Portability wrapper around calloc () in which `0' is a safe argument"]
    pub fn tr_malloc0(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @brief Portability wrapper around reallocf () in which `0' is a safe argument"]
    pub fn tr_realloc(p: *mut ::std::os::raw::c_void, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @brief Portability wrapper around free () in which `NULL' is a safe argument"]
    pub fn tr_free(p: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " @brief make a newly-allocated copy of a chunk of memory"]
    #[doc = " @param src the memory to copy"]
    #[doc = " @param byteCount the number of bytes to copy"]
    #[doc = " @return a newly-allocated copy of `src' that can be freed with tr_free ()"]
    pub fn tr_memdup(
        src: *const ::std::os::raw::c_void,
        byteCount: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn tr_valloc(bufLen: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @brief make a newly-allocated copy of a substring"]
    #[doc = " @param in is a void* so that callers can pass in both signed & unsigned without a cast"]
    #[doc = " @param len length of the substring to copy. if a length less than zero is passed in, strlen (len) is used"]
    #[doc = " @return a newly-allocated copy of `in' that can be freed with tr_free ()"]
    pub fn tr_strndup(
        in_: *const ::std::os::raw::c_void,
        len: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief make a newly-allocated copy of a string"]
    #[doc = " @param in is a void* so that callers can pass in both signed & unsigned without a cast"]
    #[doc = " @return a newly-allocated copy of `in' that can be freed with tr_free ()"]
    pub fn tr_strdup(in_: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief like strcmp () but gracefully handles NULL strings"]
    pub fn tr_strcmp0(
        str1: *const ::std::os::raw::c_char,
        str2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn evbuffer_free_to_str(
        buf: *mut evbuffer,
        result_len: *mut usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief similar to bsearch () but returns the index of the lower bound"]
    pub fn tr_lowerBound(
        key: *const ::std::os::raw::c_void,
        base: *const ::std::os::raw::c_void,
        nmemb: usize,
        size: usize,
        compar: ::std::option::Option<
            unsafe extern "C" fn(
                key: *const ::std::os::raw::c_void,
                arrayMember: *const ::std::os::raw::c_void,
            ) -> ::std::os::raw::c_int,
        >,
        exact_match: *mut u8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief moves the best k items to the first slots in the array. O(n)"]
    pub fn tr_quickfindFirstK(
        base: *mut ::std::os::raw::c_void,
        nmemb: usize,
        size: usize,
        compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::os::raw::c_void,
                arg2: *const ::std::os::raw::c_void,
            ) -> ::std::os::raw::c_int,
        >,
        k: usize,
    );
}
extern "C" {
    #[doc = " @brief sprintf () a string into a newly-allocated buffer large enough to hold it"]
    #[doc = " @return a newly-allocated string that can be freed with tr_free ()"]
    pub fn tr_strdup_printf(fmt: *const ::std::os::raw::c_char, ...)
        -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_strdup_vprintf(
        fmt: *const ::std::os::raw::c_char,
        args: *mut __va_list_tag,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for strlcpy () that uses the system implementation if available"]
    pub fn tr_strlcpy(
        dst: *mut ::std::os::raw::c_char,
        src: *const ::std::os::raw::c_void,
        siz: usize,
    ) -> usize;
}
extern "C" {
    #[doc = " @brief Portability wrapper for snprintf () that uses the system implementation if available"]
    pub fn tr_snprintf(
        buf: *mut ::std::os::raw::c_char,
        buflen: usize,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Convenience wrapper around strerorr () guaranteed to not return NULL"]
    #[doc = "@param errno"]
    pub fn tr_strerror(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief strips leading and trailing whitspace from a string"]
    #[doc = "@return the stripped string"]
    pub fn tr_strstrip(str: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Returns true if the string ends with the specified case-insensitive suffix"]
    pub fn tr_str_has_suffix(
        str: *const ::std::os::raw::c_char,
        suffix: *const ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief Portability wrapper for memmem () that uses the system implementation if available"]
    pub fn tr_memmem(
        haystack: *const ::std::os::raw::c_char,
        haystack_len: usize,
        needle: *const ::std::os::raw::c_char,
        needle_len: usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for strsep () that uses the system implementation if available"]
    pub fn tr_strsep(
        str: *mut *mut ::std::os::raw::c_char,
        delim: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn compareInt(
        va: *const ::std::os::raw::c_void,
        vb: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_binary_to_hex(
        input: *const ::std::os::raw::c_void,
        output: *mut ::std::os::raw::c_char,
        byte_length: usize,
    );
}
extern "C" {
    pub fn tr_hex_to_binary(
        input: *const ::std::os::raw::c_char,
        output: *mut ::std::os::raw::c_void,
        byte_length: usize,
    );
}
extern "C" {
    #[doc = " @brief convenience function to determine if an address is an IP address (IPv4 or IPv6)"]
    pub fn tr_addressIsIP(address: *const ::std::os::raw::c_char) -> u8;
}
extern "C" {
    #[doc = " @brief return true if the url is a http or https or UDP url that Transmission understands"]
    pub fn tr_urlIsValidTracker(url: *const ::std::os::raw::c_char) -> u8;
}
extern "C" {
    #[doc = " @brief return true if the url is a [ http, https, ftp, sftp ] url that Transmission understands"]
    pub fn tr_urlIsValid(url: *const ::std::os::raw::c_char, url_len: usize) -> u8;
}
extern "C" {
    #[doc = " @brief parse a URL into its component parts"]
    #[doc = "@return True on success or false if an error occurred"]
    pub fn tr_urlParse(
        url: *const ::std::os::raw::c_char,
        url_len: usize,
        setme_scheme: *mut *mut ::std::os::raw::c_char,
        setme_host: *mut *mut ::std::os::raw::c_char,
        setme_port: *mut ::std::os::raw::c_int,
        setme_path: *mut *mut ::std::os::raw::c_char,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief return TR_RATIO_NA, TR_RATIO_INF, or a number in [0..1]"]
    #[doc = "@return TR_RATIO_NA, TR_RATIO_INF, or a number in [0..1]"]
    pub fn tr_getRatio(numerator: u64, denominator: u64) -> f64;
}
extern "C" {
    #[doc = " @brief Given a string like \"1-4\" or \"1-4,6,9,14-51\", this returns a"]
    #[doc = "        newly-allocated array of all the integers in the set."]
    #[doc = " @return a newly-allocated array of integers that must be freed with tr_free (),"]
    #[doc = "         or NULL if a fragment of the string can't be parsed."]
    #[doc = ""]
    #[doc = " For example, \"5-8\" will return [ 5, 6, 7, 8 ] and setmeCount will be 4."]
    pub fn tr_parseNumberRange(
        str: *const ::std::os::raw::c_char,
        str_len: usize,
        setmeCount: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief truncate a double value at a given number of decimal places."]
    #[doc = ""]
    #[doc = " this can be used to prevent a printf () call from rounding up:"]
    #[doc = " call with the decimal_places argument equal to the number of"]
    #[doc = " decimal places in the printf ()'s precision:"]
    #[doc = ""]
    #[doc = " - printf (\"%.2f%%\",           99.999  ) ==> \"100.00%\""]
    #[doc = ""]
    #[doc = " - printf (\"%.2f%%\", tr_truncd (99.999, 2)) ==>  \"99.99%\""]
    #[doc = "             ^                        ^"]
    #[doc = "             |   These should match   |"]
    #[doc = "             +------------------------+"]
    pub fn tr_truncd(x: f64, decimal_places: ::std::os::raw::c_int) -> f64;
}
extern "C" {
    pub fn tr_strpercent(
        buf: *mut ::std::os::raw::c_char,
        x: f64,
        buflen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @param buf the buffer to write the string to"]
    #[doc = " @param buflef buf's size"]
    #[doc = " @param ratio the ratio to convert to a string"]
    #[doc = " @param the string represntation of \"infinity\""]
    pub fn tr_strratio(
        buf: *mut ::std::os::raw::c_char,
        buflen: usize,
        ratio: f64,
        infinity: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @brief Portability wrapper for localtime_r () that uses the system implementation if available"]
    pub fn tr_localtime_r(_clock: *const time_t, _result: *mut tm) -> *mut tm;
}
extern "C" {
    #[doc = " @brief Portability wrapper for gettimeofday (), with tz argument dropped"]
    pub fn tr_gettimeofday(tv: *mut timeval) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief move a file"]
    #[doc = " @return `True` on success, `false` otherwise (with `error` set accordingly)."]
    pub fn tr_moveFile(
        oldpath: *const ::std::os::raw::c_char,
        newpath: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    #[doc = " @brief convenience function to remove an item from an array"]
    pub fn tr_removeElementFromArray(
        array: *mut ::std::os::raw::c_void,
        index_to_remove: ::std::os::raw::c_uint,
        sizeof_element: usize,
        nmemb: usize,
    );
}
extern "C" {
    #[link_name = "\u{1}__tr_current_time"]
    pub static mut __tr_current_time: time_t;
}
extern "C" {
    #[doc = " @brief Portability wrapper for htonll () that uses the system implementation if available"]
    pub fn tr_htonll(arg1: u64) -> u64;
}
extern "C" {
    #[doc = " @brief Portability wrapper for htonll () that uses the system implementation if available"]
    pub fn tr_ntohll(arg1: u64) -> u64;
}
extern "C" {
    pub fn tr_formatter_size_init(
        kilo: ::std::os::raw::c_uint,
        kb: *const ::std::os::raw::c_char,
        mb: *const ::std::os::raw::c_char,
        gb: *const ::std::os::raw::c_char,
        tb: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn tr_formatter_speed_init(
        kilo: ::std::os::raw::c_uint,
        kb: *const ::std::os::raw::c_char,
        mb: *const ::std::os::raw::c_char,
        gb: *const ::std::os::raw::c_char,
        tb: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn tr_formatter_mem_init(
        kilo: ::std::os::raw::c_uint,
        kb: *const ::std::os::raw::c_char,
        mb: *const ::std::os::raw::c_char,
        gb: *const ::std::os::raw::c_char,
        tb: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[link_name = "\u{1}tr_speed_K"]
    pub static mut tr_speed_K: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}tr_mem_K"]
    pub static mut tr_mem_K: ::std::os::raw::c_uint;
}
extern "C" {
    #[link_name = "\u{1}tr_size_K"]
    pub static mut tr_size_K: ::std::os::raw::c_uint;
}
extern "C" {
    pub fn tr_formatter_speed_KBps(
        buf: *mut ::std::os::raw::c_char,
        KBps: f64,
        buflen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_formatter_mem_B(
        buf: *mut ::std::os::raw::c_char,
        bytes: i64,
        buflen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_formatter_size_B(
        buf: *mut ::std::os::raw::c_char,
        bytes: i64,
        buflen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_formatter_get_units(dict: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " @brief Check if environment variable exists."]
    pub fn tr_env_key_exists(key: *const ::std::os::raw::c_char) -> u8;
}
extern "C" {
    #[doc = " @brief Get environment variable value as int."]
    pub fn tr_env_get_int(
        key: *const ::std::os::raw::c_char,
        default_value: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Get environment variable value as string (should be freed afterwards)."]
    pub fn tr_env_get_string(
        key: *const ::std::os::raw::c_char,
        default_value: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_net_init();
}
pub type tr_quark = usize;
pub const TR_KEY_NONE: _bindgen_ty_5 = 0;
pub const TR_KEY_activeTorrentCount: _bindgen_ty_5 = 1;
pub const TR_KEY_activity_date: _bindgen_ty_5 = 2;
pub const TR_KEY_activityDate: _bindgen_ty_5 = 3;
pub const TR_KEY_added: _bindgen_ty_5 = 4;
pub const TR_KEY_added_date: _bindgen_ty_5 = 5;
pub const TR_KEY_added_f: _bindgen_ty_5 = 6;
pub const TR_KEY_added6: _bindgen_ty_5 = 7;
pub const TR_KEY_added6_f: _bindgen_ty_5 = 8;
pub const TR_KEY_addedDate: _bindgen_ty_5 = 9;
pub const TR_KEY_address: _bindgen_ty_5 = 10;
pub const TR_KEY_alt_speed_down: _bindgen_ty_5 = 11;
pub const TR_KEY_alt_speed_enabled: _bindgen_ty_5 = 12;
pub const TR_KEY_alt_speed_time_begin: _bindgen_ty_5 = 13;
pub const TR_KEY_alt_speed_time_day: _bindgen_ty_5 = 14;
pub const TR_KEY_alt_speed_time_enabled: _bindgen_ty_5 = 15;
pub const TR_KEY_alt_speed_time_end: _bindgen_ty_5 = 16;
pub const TR_KEY_alt_speed_up: _bindgen_ty_5 = 17;
pub const TR_KEY_announce: _bindgen_ty_5 = 18;
pub const TR_KEY_announce_list: _bindgen_ty_5 = 19;
pub const TR_KEY_announceState: _bindgen_ty_5 = 20;
pub const TR_KEY_arguments: _bindgen_ty_5 = 21;
pub const TR_KEY_bandwidth_priority: _bindgen_ty_5 = 22;
pub const TR_KEY_bandwidthPriority: _bindgen_ty_5 = 23;
pub const TR_KEY_bind_address_ipv4: _bindgen_ty_5 = 24;
pub const TR_KEY_bind_address_ipv6: _bindgen_ty_5 = 25;
pub const TR_KEY_bitfield: _bindgen_ty_5 = 26;
pub const TR_KEY_blocklist_date: _bindgen_ty_5 = 27;
pub const TR_KEY_blocklist_enabled: _bindgen_ty_5 = 28;
pub const TR_KEY_blocklist_size: _bindgen_ty_5 = 29;
pub const TR_KEY_blocklist_updates_enabled: _bindgen_ty_5 = 30;
pub const TR_KEY_blocklist_url: _bindgen_ty_5 = 31;
pub const TR_KEY_blocks: _bindgen_ty_5 = 32;
pub const TR_KEY_bytesCompleted: _bindgen_ty_5 = 33;
pub const TR_KEY_cache_size_mb: _bindgen_ty_5 = 34;
pub const TR_KEY_clientIsChoked: _bindgen_ty_5 = 35;
pub const TR_KEY_clientIsInterested: _bindgen_ty_5 = 36;
pub const TR_KEY_clientName: _bindgen_ty_5 = 37;
pub const TR_KEY_comment: _bindgen_ty_5 = 38;
pub const TR_KEY_comment_utf_8: _bindgen_ty_5 = 39;
pub const TR_KEY_compact_view: _bindgen_ty_5 = 40;
pub const TR_KEY_complete: _bindgen_ty_5 = 41;
pub const TR_KEY_config_dir: _bindgen_ty_5 = 42;
pub const TR_KEY_cookies: _bindgen_ty_5 = 43;
pub const TR_KEY_corrupt: _bindgen_ty_5 = 44;
pub const TR_KEY_corruptEver: _bindgen_ty_5 = 45;
pub const TR_KEY_created_by: _bindgen_ty_5 = 46;
pub const TR_KEY_created_by_utf_8: _bindgen_ty_5 = 47;
pub const TR_KEY_creation_date: _bindgen_ty_5 = 48;
pub const TR_KEY_creator: _bindgen_ty_5 = 49;
pub const TR_KEY_cumulative_stats: _bindgen_ty_5 = 50;
pub const TR_KEY_current_stats: _bindgen_ty_5 = 51;
pub const TR_KEY_date: _bindgen_ty_5 = 52;
pub const TR_KEY_dateCreated: _bindgen_ty_5 = 53;
pub const TR_KEY_delete_local_data: _bindgen_ty_5 = 54;
pub const TR_KEY_desiredAvailable: _bindgen_ty_5 = 55;
pub const TR_KEY_destination: _bindgen_ty_5 = 56;
pub const TR_KEY_dht_enabled: _bindgen_ty_5 = 57;
pub const TR_KEY_display_name: _bindgen_ty_5 = 58;
pub const TR_KEY_dnd: _bindgen_ty_5 = 59;
pub const TR_KEY_done_date: _bindgen_ty_5 = 60;
pub const TR_KEY_doneDate: _bindgen_ty_5 = 61;
pub const TR_KEY_download_dir: _bindgen_ty_5 = 62;
pub const TR_KEY_download_dir_free_space: _bindgen_ty_5 = 63;
pub const TR_KEY_download_queue_enabled: _bindgen_ty_5 = 64;
pub const TR_KEY_download_queue_size: _bindgen_ty_5 = 65;
pub const TR_KEY_downloadCount: _bindgen_ty_5 = 66;
pub const TR_KEY_downloadDir: _bindgen_ty_5 = 67;
pub const TR_KEY_downloadLimit: _bindgen_ty_5 = 68;
pub const TR_KEY_downloadLimited: _bindgen_ty_5 = 69;
pub const TR_KEY_downloadSpeed: _bindgen_ty_5 = 70;
pub const TR_KEY_downloaded: _bindgen_ty_5 = 71;
pub const TR_KEY_downloaded_bytes: _bindgen_ty_5 = 72;
pub const TR_KEY_downloadedBytes: _bindgen_ty_5 = 73;
pub const TR_KEY_downloadedEver: _bindgen_ty_5 = 74;
pub const TR_KEY_downloaders: _bindgen_ty_5 = 75;
pub const TR_KEY_downloading_time_seconds: _bindgen_ty_5 = 76;
pub const TR_KEY_dropped: _bindgen_ty_5 = 77;
pub const TR_KEY_dropped6: _bindgen_ty_5 = 78;
pub const TR_KEY_e: _bindgen_ty_5 = 79;
pub const TR_KEY_encoding: _bindgen_ty_5 = 80;
pub const TR_KEY_encryption: _bindgen_ty_5 = 81;
pub const TR_KEY_error: _bindgen_ty_5 = 82;
pub const TR_KEY_errorString: _bindgen_ty_5 = 83;
pub const TR_KEY_eta: _bindgen_ty_5 = 84;
pub const TR_KEY_etaIdle: _bindgen_ty_5 = 85;
pub const TR_KEY_failure_reason: _bindgen_ty_5 = 86;
pub const TR_KEY_fields: _bindgen_ty_5 = 87;
pub const TR_KEY_fileStats: _bindgen_ty_5 = 88;
pub const TR_KEY_filename: _bindgen_ty_5 = 89;
pub const TR_KEY_files: _bindgen_ty_5 = 90;
pub const TR_KEY_files_added: _bindgen_ty_5 = 91;
pub const TR_KEY_files_unwanted: _bindgen_ty_5 = 92;
pub const TR_KEY_files_wanted: _bindgen_ty_5 = 93;
pub const TR_KEY_filesAdded: _bindgen_ty_5 = 94;
pub const TR_KEY_filter_mode: _bindgen_ty_5 = 95;
pub const TR_KEY_filter_text: _bindgen_ty_5 = 96;
pub const TR_KEY_filter_trackers: _bindgen_ty_5 = 97;
pub const TR_KEY_flagStr: _bindgen_ty_5 = 98;
pub const TR_KEY_flags: _bindgen_ty_5 = 99;
pub const TR_KEY_fromCache: _bindgen_ty_5 = 100;
pub const TR_KEY_fromDht: _bindgen_ty_5 = 101;
pub const TR_KEY_fromIncoming: _bindgen_ty_5 = 102;
pub const TR_KEY_fromLpd: _bindgen_ty_5 = 103;
pub const TR_KEY_fromLtep: _bindgen_ty_5 = 104;
pub const TR_KEY_fromPex: _bindgen_ty_5 = 105;
pub const TR_KEY_fromTracker: _bindgen_ty_5 = 106;
pub const TR_KEY_hasAnnounced: _bindgen_ty_5 = 107;
pub const TR_KEY_hasScraped: _bindgen_ty_5 = 108;
pub const TR_KEY_hashString: _bindgen_ty_5 = 109;
pub const TR_KEY_have: _bindgen_ty_5 = 110;
pub const TR_KEY_haveUnchecked: _bindgen_ty_5 = 111;
pub const TR_KEY_haveValid: _bindgen_ty_5 = 112;
pub const TR_KEY_honorsSessionLimits: _bindgen_ty_5 = 113;
pub const TR_KEY_host: _bindgen_ty_5 = 114;
pub const TR_KEY_id: _bindgen_ty_5 = 115;
pub const TR_KEY_idle_limit: _bindgen_ty_5 = 116;
pub const TR_KEY_idle_mode: _bindgen_ty_5 = 117;
pub const TR_KEY_idle_seeding_limit: _bindgen_ty_5 = 118;
pub const TR_KEY_idle_seeding_limit_enabled: _bindgen_ty_5 = 119;
pub const TR_KEY_ids: _bindgen_ty_5 = 120;
pub const TR_KEY_incomplete: _bindgen_ty_5 = 121;
pub const TR_KEY_incomplete_dir: _bindgen_ty_5 = 122;
pub const TR_KEY_incomplete_dir_enabled: _bindgen_ty_5 = 123;
pub const TR_KEY_info: _bindgen_ty_5 = 124;
pub const TR_KEY_info_hash: _bindgen_ty_5 = 125;
pub const TR_KEY_inhibit_desktop_hibernation: _bindgen_ty_5 = 126;
pub const TR_KEY_interval: _bindgen_ty_5 = 127;
pub const TR_KEY_ip: _bindgen_ty_5 = 128;
pub const TR_KEY_ipv4: _bindgen_ty_5 = 129;
pub const TR_KEY_ipv6: _bindgen_ty_5 = 130;
pub const TR_KEY_isBackup: _bindgen_ty_5 = 131;
pub const TR_KEY_isDownloadingFrom: _bindgen_ty_5 = 132;
pub const TR_KEY_isEncrypted: _bindgen_ty_5 = 133;
pub const TR_KEY_isFinished: _bindgen_ty_5 = 134;
pub const TR_KEY_isIncoming: _bindgen_ty_5 = 135;
pub const TR_KEY_isPrivate: _bindgen_ty_5 = 136;
pub const TR_KEY_isStalled: _bindgen_ty_5 = 137;
pub const TR_KEY_isUTP: _bindgen_ty_5 = 138;
pub const TR_KEY_isUploadingTo: _bindgen_ty_5 = 139;
pub const TR_KEY_lastAnnouncePeerCount: _bindgen_ty_5 = 140;
pub const TR_KEY_lastAnnounceResult: _bindgen_ty_5 = 141;
pub const TR_KEY_lastAnnounceStartTime: _bindgen_ty_5 = 142;
pub const TR_KEY_lastAnnounceSucceeded: _bindgen_ty_5 = 143;
pub const TR_KEY_lastAnnounceTime: _bindgen_ty_5 = 144;
pub const TR_KEY_lastAnnounceTimedOut: _bindgen_ty_5 = 145;
pub const TR_KEY_lastScrapeResult: _bindgen_ty_5 = 146;
pub const TR_KEY_lastScrapeStartTime: _bindgen_ty_5 = 147;
pub const TR_KEY_lastScrapeSucceeded: _bindgen_ty_5 = 148;
pub const TR_KEY_lastScrapeTime: _bindgen_ty_5 = 149;
pub const TR_KEY_lastScrapeTimedOut: _bindgen_ty_5 = 150;
pub const TR_KEY_leecherCount: _bindgen_ty_5 = 151;
pub const TR_KEY_leftUntilDone: _bindgen_ty_5 = 152;
pub const TR_KEY_length: _bindgen_ty_5 = 153;
pub const TR_KEY_location: _bindgen_ty_5 = 154;
pub const TR_KEY_lpd_enabled: _bindgen_ty_5 = 155;
pub const TR_KEY_m: _bindgen_ty_5 = 156;
pub const TR_KEY_magnet_info: _bindgen_ty_5 = 157;
pub const TR_KEY_magnetLink: _bindgen_ty_5 = 158;
pub const TR_KEY_main_window_height: _bindgen_ty_5 = 159;
pub const TR_KEY_main_window_is_maximized: _bindgen_ty_5 = 160;
pub const TR_KEY_main_window_layout_order: _bindgen_ty_5 = 161;
pub const TR_KEY_main_window_width: _bindgen_ty_5 = 162;
pub const TR_KEY_main_window_x: _bindgen_ty_5 = 163;
pub const TR_KEY_main_window_y: _bindgen_ty_5 = 164;
pub const TR_KEY_manualAnnounceTime: _bindgen_ty_5 = 165;
pub const TR_KEY_max_peers: _bindgen_ty_5 = 166;
pub const TR_KEY_maxConnectedPeers: _bindgen_ty_5 = 167;
pub const TR_KEY_memory_bytes: _bindgen_ty_5 = 168;
pub const TR_KEY_memory_units: _bindgen_ty_5 = 169;
pub const TR_KEY_message_level: _bindgen_ty_5 = 170;
pub const TR_KEY_metadataPercentComplete: _bindgen_ty_5 = 171;
pub const TR_KEY_metadata_size: _bindgen_ty_5 = 172;
pub const TR_KEY_metainfo: _bindgen_ty_5 = 173;
pub const TR_KEY_method: _bindgen_ty_5 = 174;
pub const TR_KEY_min_interval: _bindgen_ty_5 = 175;
pub const TR_KEY_min_request_interval: _bindgen_ty_5 = 176;
pub const TR_KEY_move: _bindgen_ty_5 = 177;
pub const TR_KEY_msg_type: _bindgen_ty_5 = 178;
pub const TR_KEY_mtimes: _bindgen_ty_5 = 179;
pub const TR_KEY_name: _bindgen_ty_5 = 180;
pub const TR_KEY_name_utf_8: _bindgen_ty_5 = 181;
pub const TR_KEY_nextAnnounceTime: _bindgen_ty_5 = 182;
pub const TR_KEY_nextScrapeTime: _bindgen_ty_5 = 183;
pub const TR_KEY_nodes: _bindgen_ty_5 = 184;
pub const TR_KEY_nodes6: _bindgen_ty_5 = 185;
pub const TR_KEY_open_dialog_dir: _bindgen_ty_5 = 186;
pub const TR_KEY_p: _bindgen_ty_5 = 187;
pub const TR_KEY_path: _bindgen_ty_5 = 188;
pub const TR_KEY_path_utf_8: _bindgen_ty_5 = 189;
pub const TR_KEY_paused: _bindgen_ty_5 = 190;
pub const TR_KEY_pausedTorrentCount: _bindgen_ty_5 = 191;
pub const TR_KEY_peer_congestion_algorithm: _bindgen_ty_5 = 192;
pub const TR_KEY_peer_id_ttl_hours: _bindgen_ty_5 = 193;
pub const TR_KEY_peer_limit: _bindgen_ty_5 = 194;
pub const TR_KEY_peer_limit_global: _bindgen_ty_5 = 195;
pub const TR_KEY_peer_limit_per_torrent: _bindgen_ty_5 = 196;
pub const TR_KEY_peer_port: _bindgen_ty_5 = 197;
pub const TR_KEY_peer_port_random_high: _bindgen_ty_5 = 198;
pub const TR_KEY_peer_port_random_low: _bindgen_ty_5 = 199;
pub const TR_KEY_peer_port_random_on_start: _bindgen_ty_5 = 200;
pub const TR_KEY_peer_socket_tos: _bindgen_ty_5 = 201;
pub const TR_KEY_peerIsChoked: _bindgen_ty_5 = 202;
pub const TR_KEY_peerIsInterested: _bindgen_ty_5 = 203;
pub const TR_KEY_peers: _bindgen_ty_5 = 204;
pub const TR_KEY_peers2: _bindgen_ty_5 = 205;
pub const TR_KEY_peers2_6: _bindgen_ty_5 = 206;
pub const TR_KEY_peers6: _bindgen_ty_5 = 207;
pub const TR_KEY_peersConnected: _bindgen_ty_5 = 208;
pub const TR_KEY_peersFrom: _bindgen_ty_5 = 209;
pub const TR_KEY_peersGettingFromUs: _bindgen_ty_5 = 210;
pub const TR_KEY_peersSendingToUs: _bindgen_ty_5 = 211;
pub const TR_KEY_percentDone: _bindgen_ty_5 = 212;
pub const TR_KEY_pex_enabled: _bindgen_ty_5 = 213;
pub const TR_KEY_piece: _bindgen_ty_5 = 214;
pub const TR_KEY_piece_length: _bindgen_ty_5 = 215;
pub const TR_KEY_pieceCount: _bindgen_ty_5 = 216;
pub const TR_KEY_pieceSize: _bindgen_ty_5 = 217;
pub const TR_KEY_pieces: _bindgen_ty_5 = 218;
pub const TR_KEY_play_download_complete_sound: _bindgen_ty_5 = 219;
pub const TR_KEY_port: _bindgen_ty_5 = 220;
pub const TR_KEY_port_forwarding_enabled: _bindgen_ty_5 = 221;
pub const TR_KEY_port_is_open: _bindgen_ty_5 = 222;
pub const TR_KEY_preallocation: _bindgen_ty_5 = 223;
pub const TR_KEY_prefetch_enabled: _bindgen_ty_5 = 224;
pub const TR_KEY_priorities: _bindgen_ty_5 = 225;
pub const TR_KEY_priority: _bindgen_ty_5 = 226;
pub const TR_KEY_priority_high: _bindgen_ty_5 = 227;
pub const TR_KEY_priority_low: _bindgen_ty_5 = 228;
pub const TR_KEY_priority_normal: _bindgen_ty_5 = 229;
pub const TR_KEY_private: _bindgen_ty_5 = 230;
pub const TR_KEY_progress: _bindgen_ty_5 = 231;
pub const TR_KEY_prompt_before_exit: _bindgen_ty_5 = 232;
pub const TR_KEY_queue_move_bottom: _bindgen_ty_5 = 233;
pub const TR_KEY_queue_move_down: _bindgen_ty_5 = 234;
pub const TR_KEY_queue_move_top: _bindgen_ty_5 = 235;
pub const TR_KEY_queue_move_up: _bindgen_ty_5 = 236;
pub const TR_KEY_queue_stalled_enabled: _bindgen_ty_5 = 237;
pub const TR_KEY_queue_stalled_minutes: _bindgen_ty_5 = 238;
pub const TR_KEY_queuePosition: _bindgen_ty_5 = 239;
pub const TR_KEY_rateDownload: _bindgen_ty_5 = 240;
pub const TR_KEY_rateToClient: _bindgen_ty_5 = 241;
pub const TR_KEY_rateToPeer: _bindgen_ty_5 = 242;
pub const TR_KEY_rateUpload: _bindgen_ty_5 = 243;
pub const TR_KEY_ratio_limit: _bindgen_ty_5 = 244;
pub const TR_KEY_ratio_limit_enabled: _bindgen_ty_5 = 245;
pub const TR_KEY_ratio_mode: _bindgen_ty_5 = 246;
pub const TR_KEY_recent_download_dir_1: _bindgen_ty_5 = 247;
pub const TR_KEY_recent_download_dir_2: _bindgen_ty_5 = 248;
pub const TR_KEY_recent_download_dir_3: _bindgen_ty_5 = 249;
pub const TR_KEY_recent_download_dir_4: _bindgen_ty_5 = 250;
pub const TR_KEY_recheckProgress: _bindgen_ty_5 = 251;
pub const TR_KEY_remote_session_enabled: _bindgen_ty_5 = 252;
pub const TR_KEY_remote_session_host: _bindgen_ty_5 = 253;
pub const TR_KEY_remote_session_password: _bindgen_ty_5 = 254;
pub const TR_KEY_remote_session_port: _bindgen_ty_5 = 255;
pub const TR_KEY_remote_session_requres_authentication: _bindgen_ty_5 = 256;
pub const TR_KEY_remote_session_username: _bindgen_ty_5 = 257;
pub const TR_KEY_removed: _bindgen_ty_5 = 258;
pub const TR_KEY_rename_partial_files: _bindgen_ty_5 = 259;
pub const TR_KEY_reqq: _bindgen_ty_5 = 260;
pub const TR_KEY_result: _bindgen_ty_5 = 261;
pub const TR_KEY_rpc_authentication_required: _bindgen_ty_5 = 262;
pub const TR_KEY_rpc_bind_address: _bindgen_ty_5 = 263;
pub const TR_KEY_rpc_enabled: _bindgen_ty_5 = 264;
pub const TR_KEY_rpc_host_whitelist: _bindgen_ty_5 = 265;
pub const TR_KEY_rpc_host_whitelist_enabled: _bindgen_ty_5 = 266;
pub const TR_KEY_rpc_password: _bindgen_ty_5 = 267;
pub const TR_KEY_rpc_port: _bindgen_ty_5 = 268;
pub const TR_KEY_rpc_url: _bindgen_ty_5 = 269;
pub const TR_KEY_rpc_username: _bindgen_ty_5 = 270;
pub const TR_KEY_rpc_version: _bindgen_ty_5 = 271;
pub const TR_KEY_rpc_version_minimum: _bindgen_ty_5 = 272;
pub const TR_KEY_rpc_whitelist: _bindgen_ty_5 = 273;
pub const TR_KEY_rpc_whitelist_enabled: _bindgen_ty_5 = 274;
pub const TR_KEY_scrape: _bindgen_ty_5 = 275;
pub const TR_KEY_scrape_paused_torrents_enabled: _bindgen_ty_5 = 276;
pub const TR_KEY_scrapeState: _bindgen_ty_5 = 277;
pub const TR_KEY_script_torrent_done_enabled: _bindgen_ty_5 = 278;
pub const TR_KEY_script_torrent_done_filename: _bindgen_ty_5 = 279;
pub const TR_KEY_seconds_active: _bindgen_ty_5 = 280;
pub const TR_KEY_secondsActive: _bindgen_ty_5 = 281;
pub const TR_KEY_secondsDownloading: _bindgen_ty_5 = 282;
pub const TR_KEY_secondsSeeding: _bindgen_ty_5 = 283;
pub const TR_KEY_seed_queue_enabled: _bindgen_ty_5 = 284;
pub const TR_KEY_seed_queue_size: _bindgen_ty_5 = 285;
pub const TR_KEY_seedIdleLimit: _bindgen_ty_5 = 286;
pub const TR_KEY_seedIdleMode: _bindgen_ty_5 = 287;
pub const TR_KEY_seedRatioLimit: _bindgen_ty_5 = 288;
pub const TR_KEY_seedRatioLimited: _bindgen_ty_5 = 289;
pub const TR_KEY_seedRatioMode: _bindgen_ty_5 = 290;
pub const TR_KEY_seederCount: _bindgen_ty_5 = 291;
pub const TR_KEY_seeding_time_seconds: _bindgen_ty_5 = 292;
pub const TR_KEY_session_count: _bindgen_ty_5 = 293;
pub const TR_KEY_sessionCount: _bindgen_ty_5 = 294;
pub const TR_KEY_show_backup_trackers: _bindgen_ty_5 = 295;
pub const TR_KEY_show_extra_peer_details: _bindgen_ty_5 = 296;
pub const TR_KEY_show_filterbar: _bindgen_ty_5 = 297;
pub const TR_KEY_show_notification_area_icon: _bindgen_ty_5 = 298;
pub const TR_KEY_show_options_window: _bindgen_ty_5 = 299;
pub const TR_KEY_show_statusbar: _bindgen_ty_5 = 300;
pub const TR_KEY_show_toolbar: _bindgen_ty_5 = 301;
pub const TR_KEY_show_tracker_scrapes: _bindgen_ty_5 = 302;
pub const TR_KEY_size_bytes: _bindgen_ty_5 = 303;
pub const TR_KEY_size_units: _bindgen_ty_5 = 304;
pub const TR_KEY_sizeWhenDone: _bindgen_ty_5 = 305;
pub const TR_KEY_sort_mode: _bindgen_ty_5 = 306;
pub const TR_KEY_sort_reversed: _bindgen_ty_5 = 307;
pub const TR_KEY_speed: _bindgen_ty_5 = 308;
pub const TR_KEY_speed_Bps: _bindgen_ty_5 = 309;
pub const TR_KEY_speed_bytes: _bindgen_ty_5 = 310;
pub const TR_KEY_speed_limit_down: _bindgen_ty_5 = 311;
pub const TR_KEY_speed_limit_down_enabled: _bindgen_ty_5 = 312;
pub const TR_KEY_speed_limit_up: _bindgen_ty_5 = 313;
pub const TR_KEY_speed_limit_up_enabled: _bindgen_ty_5 = 314;
pub const TR_KEY_speed_units: _bindgen_ty_5 = 315;
pub const TR_KEY_start_added_torrents: _bindgen_ty_5 = 316;
pub const TR_KEY_start_minimized: _bindgen_ty_5 = 317;
pub const TR_KEY_startDate: _bindgen_ty_5 = 318;
pub const TR_KEY_status: _bindgen_ty_5 = 319;
pub const TR_KEY_statusbar_stats: _bindgen_ty_5 = 320;
pub const TR_KEY_tag: _bindgen_ty_5 = 321;
pub const TR_KEY_tier: _bindgen_ty_5 = 322;
pub const TR_KEY_time_checked: _bindgen_ty_5 = 323;
pub const TR_KEY_torrent_added: _bindgen_ty_5 = 324;
pub const TR_KEY_torrent_added_notification_command: _bindgen_ty_5 = 325;
pub const TR_KEY_torrent_added_notification_enabled: _bindgen_ty_5 = 326;
pub const TR_KEY_torrent_complete_notification_command: _bindgen_ty_5 = 327;
pub const TR_KEY_torrent_complete_notification_enabled: _bindgen_ty_5 = 328;
pub const TR_KEY_torrent_complete_sound_command: _bindgen_ty_5 = 329;
pub const TR_KEY_torrent_complete_sound_enabled: _bindgen_ty_5 = 330;
pub const TR_KEY_torrent_duplicate: _bindgen_ty_5 = 331;
pub const TR_KEY_torrent_get: _bindgen_ty_5 = 332;
pub const TR_KEY_torrent_set: _bindgen_ty_5 = 333;
pub const TR_KEY_torrent_set_location: _bindgen_ty_5 = 334;
pub const TR_KEY_torrentCount: _bindgen_ty_5 = 335;
pub const TR_KEY_torrentFile: _bindgen_ty_5 = 336;
pub const TR_KEY_torrents: _bindgen_ty_5 = 337;
pub const TR_KEY_totalSize: _bindgen_ty_5 = 338;
pub const TR_KEY_total_size: _bindgen_ty_5 = 339;
pub const TR_KEY_tracker_id: _bindgen_ty_5 = 340;
pub const TR_KEY_trackerAdd: _bindgen_ty_5 = 341;
pub const TR_KEY_trackerRemove: _bindgen_ty_5 = 342;
pub const TR_KEY_trackerReplace: _bindgen_ty_5 = 343;
pub const TR_KEY_trackerStats: _bindgen_ty_5 = 344;
pub const TR_KEY_trackers: _bindgen_ty_5 = 345;
pub const TR_KEY_trash_can_enabled: _bindgen_ty_5 = 346;
pub const TR_KEY_trash_original_torrent_files: _bindgen_ty_5 = 347;
pub const TR_KEY_umask: _bindgen_ty_5 = 348;
pub const TR_KEY_units: _bindgen_ty_5 = 349;
pub const TR_KEY_upload_slots_per_torrent: _bindgen_ty_5 = 350;
pub const TR_KEY_uploadLimit: _bindgen_ty_5 = 351;
pub const TR_KEY_uploadLimited: _bindgen_ty_5 = 352;
pub const TR_KEY_uploadRatio: _bindgen_ty_5 = 353;
pub const TR_KEY_uploadSpeed: _bindgen_ty_5 = 354;
pub const TR_KEY_upload_only: _bindgen_ty_5 = 355;
pub const TR_KEY_uploaded: _bindgen_ty_5 = 356;
pub const TR_KEY_uploaded_bytes: _bindgen_ty_5 = 357;
pub const TR_KEY_uploadedBytes: _bindgen_ty_5 = 358;
pub const TR_KEY_uploadedEver: _bindgen_ty_5 = 359;
pub const TR_KEY_url_list: _bindgen_ty_5 = 360;
pub const TR_KEY_use_global_speed_limit: _bindgen_ty_5 = 361;
pub const TR_KEY_use_speed_limit: _bindgen_ty_5 = 362;
pub const TR_KEY_user_has_given_informed_consent: _bindgen_ty_5 = 363;
pub const TR_KEY_ut_comment: _bindgen_ty_5 = 364;
pub const TR_KEY_ut_holepunch: _bindgen_ty_5 = 365;
pub const TR_KEY_ut_metadata: _bindgen_ty_5 = 366;
pub const TR_KEY_ut_pex: _bindgen_ty_5 = 367;
pub const TR_KEY_ut_recommend: _bindgen_ty_5 = 368;
pub const TR_KEY_utp_enabled: _bindgen_ty_5 = 369;
pub const TR_KEY_v: _bindgen_ty_5 = 370;
pub const TR_KEY_version: _bindgen_ty_5 = 371;
pub const TR_KEY_wanted: _bindgen_ty_5 = 372;
pub const TR_KEY_warning_message: _bindgen_ty_5 = 373;
pub const TR_KEY_watch_dir: _bindgen_ty_5 = 374;
pub const TR_KEY_watch_dir_enabled: _bindgen_ty_5 = 375;
pub const TR_KEY_webseeds: _bindgen_ty_5 = 376;
pub const TR_KEY_webseedsSendingToUs: _bindgen_ty_5 = 377;
pub const TR_N_KEYS: _bindgen_ty_5 = 378;
pub type _bindgen_ty_5 = u32;
extern "C" {
    #[doc = " Find the quark that matches the specified string"]
    #[doc = ""]
    #[doc = " @return true if the specified string exists as a quark"]
    pub fn tr_quark_lookup(
        str: *const ::std::os::raw::c_void,
        len: usize,
        setme: *mut tr_quark,
    ) -> u8;
}
extern "C" {
    #[doc = " Get the string that corresponds to the specified quark"]
    pub fn tr_quark_get_string(quark: tr_quark, len: *mut usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Create a new quark for the specified string. If a quark already"]
    #[doc = " exists for that string, it is returned so that no duplicates are"]
    #[doc = " created."]
    pub fn tr_quark_new(str: *const ::std::os::raw::c_void, len: usize) -> tr_quark;
}
pub const tr_string_type_TR_STRING_TYPE_QUARK: tr_string_type = 0;
pub const tr_string_type_TR_STRING_TYPE_HEAP: tr_string_type = 1;
pub const tr_string_type_TR_STRING_TYPE_BUF: tr_string_type = 2;
#[doc = " @addtogroup tr_variant Variant"]
#[doc = ""]
#[doc = " An object that acts like a union for"]
#[doc = " integers, strings, lists, dictionaries, booleans, and floating-point numbers."]
#[doc = " The structure is named tr_variant due to the historical reason that it was"]
#[doc = " originally tightly coupled with bencoded data. It currently supports"]
#[doc = " being parsed from, and serialized to, both bencoded notation and json notation."]
#[doc = ""]
#[doc = " @{"]
pub type tr_string_type = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_variant_string {
    pub type_: tr_string_type,
    pub quark: tr_quark,
    pub len: usize,
    pub str: tr_variant_string__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union tr_variant_string__bindgen_ty_1 {
    pub buf: [::std::os::raw::c_char; 16usize],
    pub str: *const ::std::os::raw::c_char,
    _bindgen_union_align: [u64; 2usize],
}
#[test]
fn bindgen_test_layout_tr_variant_string__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<tr_variant_string__bindgen_ty_1>(),
        16usize,
        concat!("Size of: ", stringify!(tr_variant_string__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_variant_string__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_variant_string__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_variant_string__bindgen_ty_1>())).buf as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string__bindgen_ty_1),
            "::",
            stringify!(buf)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_variant_string__bindgen_ty_1>())).str as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string__bindgen_ty_1),
            "::",
            stringify!(str)
        )
    );
}
#[test]
fn bindgen_test_layout_tr_variant_string() {
    assert_eq!(
        ::std::mem::size_of::<tr_variant_string>(),
        40usize,
        concat!("Size of: ", stringify!(tr_variant_string))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_variant_string>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_variant_string))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant_string>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant_string>())).quark as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string),
            "::",
            stringify!(quark)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant_string>())).len as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant_string>())).str as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant_string),
            "::",
            stringify!(str)
        )
    );
}
pub const TR_VARIANT_TYPE_INT: _bindgen_ty_6 = 1;
pub const TR_VARIANT_TYPE_STR: _bindgen_ty_6 = 2;
pub const TR_VARIANT_TYPE_LIST: _bindgen_ty_6 = 4;
pub const TR_VARIANT_TYPE_DICT: _bindgen_ty_6 = 8;
pub const TR_VARIANT_TYPE_BOOL: _bindgen_ty_6 = 16;
pub const TR_VARIANT_TYPE_REAL: _bindgen_ty_6 = 32;
pub type _bindgen_ty_6 = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_variant {
    pub type_: ::std::os::raw::c_char,
    pub key: tr_quark,
    pub val: tr_variant__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union tr_variant__bindgen_ty_1 {
    pub b: u8,
    pub d: f64,
    pub i: i64,
    pub s: tr_variant_string,
    pub l: tr_variant__bindgen_ty_1__bindgen_ty_1,
    _bindgen_union_align: [u64; 5usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_variant__bindgen_ty_1__bindgen_ty_1 {
    pub alloc: usize,
    pub count: usize,
    pub vals: *mut tr_variant,
}
#[test]
fn bindgen_test_layout_tr_variant__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<tr_variant__bindgen_ty_1__bindgen_ty_1>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(tr_variant__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<tr_variant__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(tr_variant__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_variant__bindgen_ty_1__bindgen_ty_1>())).alloc as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(alloc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_variant__bindgen_ty_1__bindgen_ty_1>())).count as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_variant__bindgen_ty_1__bindgen_ty_1>())).vals as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(vals)
        )
    );
}
#[test]
fn bindgen_test_layout_tr_variant__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<tr_variant__bindgen_ty_1>(),
        40usize,
        concat!("Size of: ", stringify!(tr_variant__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_variant__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_variant__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant__bindgen_ty_1>())).b as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1),
            "::",
            stringify!(b)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant__bindgen_ty_1>())).d as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1),
            "::",
            stringify!(d)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant__bindgen_ty_1>())).i as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1),
            "::",
            stringify!(i)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant__bindgen_ty_1>())).s as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1),
            "::",
            stringify!(s)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant__bindgen_ty_1>())).l as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant__bindgen_ty_1),
            "::",
            stringify!(l)
        )
    );
}
#[test]
fn bindgen_test_layout_tr_variant() {
    assert_eq!(
        ::std::mem::size_of::<tr_variant>(),
        56usize,
        concat!("Size of: ", stringify!(tr_variant))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_variant>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_variant))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant>())).key as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant),
            "::",
            stringify!(key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_variant>())).val as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_variant),
            "::",
            stringify!(val)
        )
    );
}
extern "C" {
    pub fn tr_variantFree(arg1: *mut tr_variant);
}
pub const tr_variant_fmt_TR_VARIANT_FMT_BENC: tr_variant_fmt = 0;
pub const tr_variant_fmt_TR_VARIANT_FMT_JSON: tr_variant_fmt = 1;
pub const tr_variant_fmt_TR_VARIANT_FMT_JSON_LEAN: tr_variant_fmt = 2;
#[doc = "  Serialization / Deserialization"]
pub type tr_variant_fmt = u32;
extern "C" {
    pub fn tr_variantToFile(
        variant: *const tr_variant,
        fmt: tr_variant_fmt,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_variantToStr(
        variant: *const tr_variant,
        fmt: tr_variant_fmt,
        len: *mut usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tr_variantToBuf(variant: *const tr_variant, fmt: tr_variant_fmt) -> *mut evbuffer;
}
extern "C" {
    pub fn tr_variantFromFile(
        setme: *mut tr_variant,
        fmt: tr_variant_fmt,
        filename: *const ::std::os::raw::c_char,
        error: *mut *mut tr_error,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantFromBuf(
        setme: *mut tr_variant,
        fmt: tr_variant_fmt,
        buf: *const ::std::os::raw::c_void,
        buflen: usize,
        optional_source: *const ::std::os::raw::c_char,
        setme_end: *mut *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tr_variantGetStr(
        variant: *const tr_variant,
        setme_str: *mut *const ::std::os::raw::c_char,
        setme_len: *mut usize,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantInitStr(
        initme: *mut tr_variant,
        str: *const ::std::os::raw::c_void,
        str_len: usize,
    );
}
extern "C" {
    pub fn tr_variantInitQuark(initme: *mut tr_variant, quark: tr_quark);
}
extern "C" {
    pub fn tr_variantInitRaw(
        initme: *mut tr_variant,
        raw: *const ::std::os::raw::c_void,
        raw_len: usize,
    );
}
extern "C" {
    pub fn tr_variantGetRaw(
        variant: *const tr_variant,
        raw_setme: *mut *const u8,
        len_setme: *mut usize,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantInitReal(initme: *mut tr_variant, value: f64);
}
extern "C" {
    pub fn tr_variantGetReal(variant: *const tr_variant, value_setme: *mut f64) -> u8;
}
extern "C" {
    pub fn tr_variantInitBool(initme: *mut tr_variant, value: u8);
}
extern "C" {
    pub fn tr_variantGetBool(variant: *const tr_variant, setme: *mut u8) -> u8;
}
extern "C" {
    pub fn tr_variantInitInt(variant: *mut tr_variant, value: i64);
}
extern "C" {
    pub fn tr_variantGetInt(val: *const tr_variant, setme: *mut i64) -> u8;
}
extern "C" {
    pub fn tr_variantInitList(list: *mut tr_variant, reserve_count: usize);
}
extern "C" {
    pub fn tr_variantListReserve(list: *mut tr_variant, reserve_count: usize);
}
extern "C" {
    pub fn tr_variantListAdd(list: *mut tr_variant) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddBool(list: *mut tr_variant, addme: u8) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddInt(list: *mut tr_variant, addme: i64) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddReal(list: *mut tr_variant, addme: f64) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddStr(
        list: *mut tr_variant,
        addme: *const ::std::os::raw::c_char,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddQuark(list: *mut tr_variant, addme: tr_quark) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddRaw(
        list: *mut tr_variant,
        addme_value: *const ::std::os::raw::c_void,
        addme_len: usize,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddList(list: *mut tr_variant, reserve_count: usize) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListAddDict(list: *mut tr_variant, reserve_count: usize) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListChild(list: *mut tr_variant, pos: usize) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantListRemove(list: *mut tr_variant, pos: usize) -> u8;
}
extern "C" {
    pub fn tr_variantListSize(list: *const tr_variant) -> usize;
}
extern "C" {
    pub fn tr_variantInitDict(initme: *mut tr_variant, reserve_count: usize);
}
extern "C" {
    pub fn tr_variantDictReserve(dict: *mut tr_variant, reserve_count: usize);
}
extern "C" {
    pub fn tr_variantDictRemove(dict: *mut tr_variant, key: tr_quark) -> u8;
}
extern "C" {
    pub fn tr_variantDictAdd(dict: *mut tr_variant, key: tr_quark) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddReal(
        dict: *mut tr_variant,
        key: tr_quark,
        value: f64,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddInt(
        dict: *mut tr_variant,
        key: tr_quark,
        value: i64,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddBool(
        dict: *mut tr_variant,
        key: tr_quark,
        value: u8,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddStr(
        dict: *mut tr_variant,
        key: tr_quark,
        value: *const ::std::os::raw::c_char,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddQuark(
        dict: *mut tr_variant,
        key: tr_quark,
        val: tr_quark,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddList(
        dict: *mut tr_variant,
        key: tr_quark,
        reserve_count: usize,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddDict(
        dict: *mut tr_variant,
        key: tr_quark,
        reserve_count: usize,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictSteal(
        dict: *mut tr_variant,
        key: tr_quark,
        value: *mut tr_variant,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictAddRaw(
        dict: *mut tr_variant,
        key: tr_quark,
        value: *const ::std::os::raw::c_void,
        len: usize,
    ) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictChild(
        dict: *mut tr_variant,
        pos: usize,
        setme_key: *mut tr_quark,
        setme_value: *mut *mut tr_variant,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantDictFind(dict: *mut tr_variant, key: tr_quark) -> *mut tr_variant;
}
extern "C" {
    pub fn tr_variantDictFindList(
        dict: *mut tr_variant,
        key: tr_quark,
        setme: *mut *mut tr_variant,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindDict(
        dict: *mut tr_variant,
        key: tr_quark,
        setme_value: *mut *mut tr_variant,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindInt(dict: *mut tr_variant, key: tr_quark, setme: *mut i64) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindReal(dict: *mut tr_variant, key: tr_quark, setme: *mut f64) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindBool(dict: *mut tr_variant, key: tr_quark, setme: *mut u8) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindStr(
        dict: *mut tr_variant,
        key: tr_quark,
        setme: *mut *const ::std::os::raw::c_char,
        len: *mut usize,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantDictFindRaw(
        dict: *mut tr_variant,
        key: tr_quark,
        setme_raw: *mut *const u8,
        setme_len: *mut usize,
    ) -> u8;
}
extern "C" {
    pub fn tr_variantMergeDicts(dict_target: *mut tr_variant, dict_source: *const tr_variant);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tr_metainfo_builder_file {
    pub filename: *mut ::std::os::raw::c_char,
    pub size: u64,
}
#[test]
fn bindgen_test_layout_tr_metainfo_builder_file() {
    assert_eq!(
        ::std::mem::size_of::<tr_metainfo_builder_file>(),
        16usize,
        concat!("Size of: ", stringify!(tr_metainfo_builder_file))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_metainfo_builder_file>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_metainfo_builder_file))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_metainfo_builder_file>())).filename as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder_file),
            "::",
            stringify!(filename)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder_file>())).size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder_file),
            "::",
            stringify!(size)
        )
    );
}
pub const tr_metainfo_builder_err_TR_MAKEMETA_OK: tr_metainfo_builder_err = 0;
pub const tr_metainfo_builder_err_TR_MAKEMETA_URL: tr_metainfo_builder_err = 1;
pub const tr_metainfo_builder_err_TR_MAKEMETA_CANCELLED: tr_metainfo_builder_err = 2;
pub const tr_metainfo_builder_err_TR_MAKEMETA_IO_READ: tr_metainfo_builder_err = 3;
pub const tr_metainfo_builder_err_TR_MAKEMETA_IO_WRITE: tr_metainfo_builder_err = 4;
pub type tr_metainfo_builder_err = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct tr_metainfo_builder {
    #[doc = "  These are set by tr_makeMetaInfoBuilderCreate ()"]
    #[doc = "  and cleaned up by tr_metaInfoBuilderFree ()"]
    pub top: *mut ::std::os::raw::c_char,
    pub files: *mut tr_metainfo_builder_file,
    pub totalSize: u64,
    pub fileCount: u32,
    pub pieceSize: u32,
    pub pieceCount: u32,
    pub isFolder: u8,
    #[doc = "  These are set inside tr_makeMetaInfo ()"]
    #[doc = "  by copying the arguments passed to it,"]
    #[doc = "  and cleaned up by tr_metaInfoBuilderFree ()"]
    pub trackers: *mut tr_tracker_info,
    pub trackerCount: ::std::os::raw::c_int,
    pub comment: *mut ::std::os::raw::c_char,
    pub outputFile: *mut ::std::os::raw::c_char,
    pub isPrivate: u8,
    #[doc = "  These are set inside tr_makeMetaInfo () so the client"]
    #[doc = "  can poll periodically to see what the status is."]
    #[doc = "  The client can also set abortFlag to nonzero to"]
    #[doc = "  tell tr_makeMetaInfo () to abort and clean up after itself."]
    pub pieceIndex: u32,
    pub abortFlag: u8,
    pub isDone: u8,
    pub result: tr_metainfo_builder_err,
    pub errfile: [::std::os::raw::c_char; 2048usize],
    pub my_errno: ::std::os::raw::c_int,
    #[doc = "  This is an implementation detail."]
    #[doc = "  The client should never use these fields."]
    pub nextBuilder: *mut tr_metainfo_builder,
}
#[test]
fn bindgen_test_layout_tr_metainfo_builder() {
    assert_eq!(
        ::std::mem::size_of::<tr_metainfo_builder>(),
        2152usize,
        concat!("Size of: ", stringify!(tr_metainfo_builder))
    );
    assert_eq!(
        ::std::mem::align_of::<tr_metainfo_builder>(),
        8usize,
        concat!("Alignment of ", stringify!(tr_metainfo_builder))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).top as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(top)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).files as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(files)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).totalSize as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(totalSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).fileCount as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(fileCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).pieceSize as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(pieceSize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).pieceCount as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(pieceCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).isFolder as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(isFolder)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).trackers as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(trackers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<tr_metainfo_builder>())).trackerCount as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(trackerCount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).comment as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(comment)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).outputFile as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(outputFile)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).isPrivate as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(isPrivate)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).pieceIndex as *const _ as usize },
        76usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(pieceIndex)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).abortFlag as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(abortFlag)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).isDone as *const _ as usize },
        81usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(isDone)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).result as *const _ as usize },
        84usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(result)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).errfile as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(errfile)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).my_errno as *const _ as usize },
        2136usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(my_errno)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<tr_metainfo_builder>())).nextBuilder as *const _ as usize },
        2144usize,
        concat!(
            "Offset of field: ",
            stringify!(tr_metainfo_builder),
            "::",
            stringify!(nextBuilder)
        )
    );
}
extern "C" {
    pub fn tr_metaInfoBuilderCreate(
        topFile: *const ::std::os::raw::c_char,
    ) -> *mut tr_metainfo_builder;
}
extern "C" {
    #[doc = " Call this before tr_makeMetaInfo() to override the builder.pieceSize"]
    #[doc = " and builder.pieceCount values that were set by tr_metainfoBuilderCreate()"]
    #[doc = ""]
    #[doc = " @return false if the piece size isn't valid; eg, isn't a power of two."]
    pub fn tr_metaInfoBuilderSetPieceSize(builder: *mut tr_metainfo_builder, bytes: u32) -> u8;
}
extern "C" {
    pub fn tr_metaInfoBuilderFree(arg1: *mut tr_metainfo_builder);
}
extern "C" {
    #[doc = " @brief create a new .torrent file"]
    #[doc = ""]
    #[doc = " This is actually done in a worker thread, not the main thread!"]
    #[doc = " Otherwise the client's interface would lock up while this runs."]
    #[doc = ""]
    #[doc = " It is the caller's responsibility to poll builder->isDone"]
    #[doc = " from time to time!  When the worker thread sets that flag,"]
    #[doc = " the caller must pass the builder to tr_metaInfoBuilderFree ()."]
    #[doc = ""]
    #[doc = " @param outputFile if NULL, builder->top + \".torrent\" will be used."]
    #[doc = ""]
    #[doc = " @param trackers An array of trackers, sorted by tier from first to last."]
    #[doc = "                 NOTE: only the `tier' and `announce' fields are used."]
    #[doc = ""]
    #[doc = " @param trackerCount size of the `trackers' array"]
    pub fn tr_makeMetaInfo(
        builder: *mut tr_metainfo_builder,
        outputFile: *const ::std::os::raw::c_char,
        trackers: *const tr_tracker_info,
        trackerCount: ::std::os::raw::c_int,
        comment: *const ::std::os::raw::c_char,
        isPrivate: u8,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
    pub _address: u8,
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
    assert_eq!(
        ::std::mem::size_of::<__va_list_tag>(),
        24usize,
        concat!("Size of: ", stringify!(__va_list_tag))
    );
    assert_eq!(
        ::std::mem::align_of::<__va_list_tag>(),
        8usize,
        concat!("Alignment of ", stringify!(__va_list_tag))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(gp_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(fp_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(overflow_arg_area)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__va_list_tag),
            "::",
            stringify!(reg_save_area)
        )
    );
}