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
 7131
 7132
 7133
 7134
 7135
 7136
 7137
 7138
 7139
 7140
 7141
 7142
 7143
 7144
 7145
 7146
 7147
 7148
 7149
 7150
 7151
 7152
 7153
 7154
 7155
 7156
 7157
 7158
 7159
 7160
 7161
 7162
 7163
 7164
 7165
 7166
 7167
 7168
 7169
 7170
 7171
 7172
 7173
 7174
 7175
 7176
 7177
 7178
 7179
 7180
 7181
 7182
 7183
 7184
 7185
 7186
 7187
 7188
 7189
 7190
 7191
 7192
 7193
 7194
 7195
 7196
 7197
 7198
 7199
 7200
 7201
 7202
 7203
 7204
 7205
 7206
 7207
 7208
 7209
 7210
 7211
 7212
 7213
 7214
 7215
 7216
 7217
 7218
 7219
 7220
 7221
 7222
 7223
 7224
 7225
 7226
 7227
 7228
 7229
 7230
 7231
 7232
 7233
 7234
 7235
 7236
 7237
 7238
 7239
 7240
 7241
 7242
 7243
 7244
 7245
 7246
 7247
 7248
 7249
 7250
 7251
 7252
 7253
 7254
 7255
 7256
 7257
 7258
 7259
 7260
 7261
 7262
 7263
 7264
 7265
 7266
 7267
 7268
 7269
 7270
 7271
 7272
 7273
 7274
 7275
 7276
 7277
 7278
 7279
 7280
 7281
 7282
 7283
 7284
 7285
 7286
 7287
 7288
 7289
 7290
 7291
 7292
 7293
 7294
 7295
 7296
 7297
 7298
 7299
 7300
 7301
 7302
 7303
 7304
 7305
 7306
 7307
 7308
 7309
 7310
 7311
 7312
 7313
 7314
 7315
 7316
 7317
 7318
 7319
 7320
 7321
 7322
 7323
 7324
 7325
 7326
 7327
 7328
 7329
 7330
 7331
 7332
 7333
 7334
 7335
 7336
 7337
 7338
 7339
 7340
 7341
 7342
 7343
 7344
 7345
 7346
 7347
 7348
 7349
 7350
 7351
 7352
 7353
 7354
 7355
 7356
 7357
 7358
 7359
 7360
 7361
 7362
 7363
 7364
 7365
 7366
 7367
 7368
 7369
 7370
 7371
 7372
 7373
 7374
 7375
 7376
 7377
 7378
 7379
 7380
 7381
 7382
 7383
 7384
 7385
 7386
 7387
 7388
 7389
 7390
 7391
 7392
 7393
 7394
 7395
 7396
 7397
 7398
 7399
 7400
 7401
 7402
 7403
 7404
 7405
 7406
 7407
 7408
 7409
 7410
 7411
 7412
 7413
 7414
 7415
 7416
 7417
 7418
 7419
 7420
 7421
 7422
 7423
 7424
 7425
 7426
 7427
 7428
 7429
 7430
 7431
 7432
 7433
 7434
 7435
 7436
 7437
 7438
 7439
 7440
 7441
 7442
 7443
 7444
 7445
 7446
 7447
 7448
 7449
 7450
 7451
 7452
 7453
 7454
 7455
 7456
 7457
 7458
 7459
 7460
 7461
 7462
 7463
 7464
 7465
 7466
 7467
 7468
 7469
 7470
 7471
 7472
 7473
 7474
 7475
 7476
 7477
 7478
 7479
 7480
 7481
 7482
 7483
 7484
 7485
 7486
 7487
 7488
 7489
 7490
 7491
 7492
 7493
 7494
 7495
 7496
 7497
 7498
 7499
 7500
 7501
 7502
 7503
 7504
 7505
 7506
 7507
 7508
 7509
 7510
 7511
 7512
 7513
 7514
 7515
 7516
 7517
 7518
 7519
 7520
 7521
 7522
 7523
 7524
 7525
 7526
 7527
 7528
 7529
 7530
 7531
 7532
 7533
 7534
 7535
 7536
 7537
 7538
 7539
 7540
 7541
 7542
 7543
 7544
 7545
 7546
 7547
 7548
 7549
 7550
 7551
 7552
 7553
 7554
 7555
 7556
 7557
 7558
 7559
 7560
 7561
 7562
 7563
 7564
 7565
 7566
 7567
 7568
 7569
 7570
 7571
 7572
 7573
 7574
 7575
 7576
 7577
 7578
 7579
 7580
 7581
 7582
 7583
 7584
 7585
 7586
 7587
 7588
 7589
 7590
 7591
 7592
 7593
 7594
 7595
 7596
 7597
 7598
 7599
 7600
 7601
 7602
 7603
 7604
 7605
 7606
 7607
 7608
 7609
 7610
 7611
 7612
 7613
 7614
 7615
 7616
 7617
 7618
 7619
 7620
 7621
 7622
 7623
 7624
 7625
 7626
 7627
 7628
 7629
 7630
 7631
 7632
 7633
 7634
 7635
 7636
 7637
 7638
 7639
 7640
 7641
 7642
 7643
 7644
 7645
 7646
 7647
 7648
 7649
 7650
 7651
 7652
 7653
 7654
 7655
 7656
 7657
 7658
 7659
 7660
 7661
 7662
 7663
 7664
 7665
 7666
 7667
 7668
 7669
 7670
 7671
 7672
 7673
 7674
 7675
 7676
 7677
 7678
 7679
 7680
 7681
 7682
 7683
 7684
 7685
 7686
 7687
 7688
 7689
 7690
 7691
 7692
 7693
 7694
 7695
 7696
 7697
 7698
 7699
 7700
 7701
 7702
 7703
 7704
 7705
 7706
 7707
 7708
 7709
 7710
 7711
 7712
 7713
 7714
 7715
 7716
 7717
 7718
 7719
 7720
 7721
 7722
 7723
 7724
 7725
 7726
 7727
 7728
 7729
 7730
 7731
 7732
 7733
 7734
 7735
 7736
 7737
 7738
 7739
 7740
 7741
 7742
 7743
 7744
 7745
 7746
 7747
 7748
 7749
 7750
 7751
 7752
 7753
 7754
 7755
 7756
 7757
 7758
 7759
 7760
 7761
 7762
 7763
 7764
 7765
 7766
 7767
 7768
 7769
 7770
 7771
 7772
 7773
 7774
 7775
 7776
 7777
 7778
 7779
 7780
 7781
 7782
 7783
 7784
 7785
 7786
 7787
 7788
 7789
 7790
 7791
 7792
 7793
 7794
 7795
 7796
 7797
 7798
 7799
 7800
 7801
 7802
 7803
 7804
 7805
 7806
 7807
 7808
 7809
 7810
 7811
 7812
 7813
 7814
 7815
 7816
 7817
 7818
 7819
 7820
 7821
 7822
 7823
 7824
 7825
 7826
 7827
 7828
 7829
 7830
 7831
 7832
 7833
 7834
 7835
 7836
 7837
 7838
 7839
 7840
 7841
 7842
 7843
 7844
 7845
 7846
 7847
 7848
 7849
 7850
 7851
 7852
 7853
 7854
 7855
 7856
 7857
 7858
 7859
 7860
 7861
 7862
 7863
 7864
 7865
 7866
 7867
 7868
 7869
 7870
 7871
 7872
 7873
 7874
 7875
 7876
 7877
 7878
 7879
 7880
 7881
 7882
 7883
 7884
 7885
 7886
 7887
 7888
 7889
 7890
 7891
 7892
 7893
 7894
 7895
 7896
 7897
 7898
 7899
 7900
 7901
 7902
 7903
 7904
 7905
 7906
 7907
 7908
 7909
 7910
 7911
 7912
 7913
 7914
 7915
 7916
 7917
 7918
 7919
 7920
 7921
 7922
 7923
 7924
 7925
 7926
 7927
 7928
 7929
 7930
 7931
 7932
 7933
 7934
 7935
 7936
 7937
 7938
 7939
 7940
 7941
 7942
 7943
 7944
 7945
 7946
 7947
 7948
 7949
 7950
 7951
 7952
 7953
 7954
 7955
 7956
 7957
 7958
 7959
 7960
 7961
 7962
 7963
 7964
 7965
 7966
 7967
 7968
 7969
 7970
 7971
 7972
 7973
 7974
 7975
 7976
 7977
 7978
 7979
 7980
 7981
 7982
 7983
 7984
 7985
 7986
 7987
 7988
 7989
 7990
 7991
 7992
 7993
 7994
 7995
 7996
 7997
 7998
 7999
 8000
 8001
 8002
 8003
 8004
 8005
 8006
 8007
 8008
 8009
 8010
 8011
 8012
 8013
 8014
 8015
 8016
 8017
 8018
 8019
 8020
 8021
 8022
 8023
 8024
 8025
 8026
 8027
 8028
 8029
 8030
 8031
 8032
 8033
 8034
 8035
 8036
 8037
 8038
 8039
 8040
 8041
 8042
 8043
 8044
 8045
 8046
 8047
 8048
 8049
 8050
 8051
 8052
 8053
 8054
 8055
 8056
 8057
 8058
 8059
 8060
 8061
 8062
 8063
 8064
 8065
 8066
 8067
 8068
 8069
 8070
 8071
 8072
 8073
 8074
 8075
 8076
 8077
 8078
 8079
 8080
 8081
 8082
 8083
 8084
 8085
 8086
 8087
 8088
 8089
 8090
 8091
 8092
 8093
 8094
 8095
 8096
 8097
 8098
 8099
 8100
 8101
 8102
 8103
 8104
 8105
 8106
 8107
 8108
 8109
 8110
 8111
 8112
 8113
 8114
 8115
 8116
 8117
 8118
 8119
 8120
 8121
 8122
 8123
 8124
 8125
 8126
 8127
 8128
 8129
 8130
 8131
 8132
 8133
 8134
 8135
 8136
 8137
 8138
 8139
 8140
 8141
 8142
 8143
 8144
 8145
 8146
 8147
 8148
 8149
 8150
 8151
 8152
 8153
 8154
 8155
 8156
 8157
 8158
 8159
 8160
 8161
 8162
 8163
 8164
 8165
 8166
 8167
 8168
 8169
 8170
 8171
 8172
 8173
 8174
 8175
 8176
 8177
 8178
 8179
 8180
 8181
 8182
 8183
 8184
 8185
 8186
 8187
 8188
 8189
 8190
 8191
 8192
 8193
 8194
 8195
 8196
 8197
 8198
 8199
 8200
 8201
 8202
 8203
 8204
 8205
 8206
 8207
 8208
 8209
 8210
 8211
 8212
 8213
 8214
 8215
 8216
 8217
 8218
 8219
 8220
 8221
 8222
 8223
 8224
 8225
 8226
 8227
 8228
 8229
 8230
 8231
 8232
 8233
 8234
 8235
 8236
 8237
 8238
 8239
 8240
 8241
 8242
 8243
 8244
 8245
 8246
 8247
 8248
 8249
 8250
 8251
 8252
 8253
 8254
 8255
 8256
 8257
 8258
 8259
 8260
 8261
 8262
 8263
 8264
 8265
 8266
 8267
 8268
 8269
 8270
 8271
 8272
 8273
 8274
 8275
 8276
 8277
 8278
 8279
 8280
 8281
 8282
 8283
 8284
 8285
 8286
 8287
 8288
 8289
 8290
 8291
 8292
 8293
 8294
 8295
 8296
 8297
 8298
 8299
 8300
 8301
 8302
 8303
 8304
 8305
 8306
 8307
 8308
 8309
 8310
 8311
 8312
 8313
 8314
 8315
 8316
 8317
 8318
 8319
 8320
 8321
 8322
 8323
 8324
 8325
 8326
 8327
 8328
 8329
 8330
 8331
 8332
 8333
 8334
 8335
 8336
 8337
 8338
 8339
 8340
 8341
 8342
 8343
 8344
 8345
 8346
 8347
 8348
 8349
 8350
 8351
 8352
 8353
 8354
 8355
 8356
 8357
 8358
 8359
 8360
 8361
 8362
 8363
 8364
 8365
 8366
 8367
 8368
 8369
 8370
 8371
 8372
 8373
 8374
 8375
 8376
 8377
 8378
 8379
 8380
 8381
 8382
 8383
 8384
 8385
 8386
 8387
 8388
 8389
 8390
 8391
 8392
 8393
 8394
 8395
 8396
 8397
 8398
 8399
 8400
 8401
 8402
 8403
 8404
 8405
 8406
 8407
 8408
 8409
 8410
 8411
 8412
 8413
 8414
 8415
 8416
 8417
 8418
 8419
 8420
 8421
 8422
 8423
 8424
 8425
 8426
 8427
 8428
 8429
 8430
 8431
 8432
 8433
 8434
 8435
 8436
 8437
 8438
 8439
 8440
 8441
 8442
 8443
 8444
 8445
 8446
 8447
 8448
 8449
 8450
 8451
 8452
 8453
 8454
 8455
 8456
 8457
 8458
 8459
 8460
 8461
 8462
 8463
 8464
 8465
 8466
 8467
 8468
 8469
 8470
 8471
 8472
 8473
 8474
 8475
 8476
 8477
 8478
 8479
 8480
 8481
 8482
 8483
 8484
 8485
 8486
 8487
 8488
 8489
 8490
 8491
 8492
 8493
 8494
 8495
 8496
 8497
 8498
 8499
 8500
 8501
 8502
 8503
 8504
 8505
 8506
 8507
 8508
 8509
 8510
 8511
 8512
 8513
 8514
 8515
 8516
 8517
 8518
 8519
 8520
 8521
 8522
 8523
 8524
 8525
 8526
 8527
 8528
 8529
 8530
 8531
 8532
 8533
 8534
 8535
 8536
 8537
 8538
 8539
 8540
 8541
 8542
 8543
 8544
 8545
 8546
 8547
 8548
 8549
 8550
 8551
 8552
 8553
 8554
 8555
 8556
 8557
 8558
 8559
 8560
 8561
 8562
 8563
 8564
 8565
 8566
 8567
 8568
 8569
 8570
 8571
 8572
 8573
 8574
 8575
 8576
 8577
 8578
 8579
 8580
 8581
 8582
 8583
 8584
 8585
 8586
 8587
 8588
 8589
 8590
 8591
 8592
 8593
 8594
 8595
 8596
 8597
 8598
 8599
 8600
 8601
 8602
 8603
 8604
 8605
 8606
 8607
 8608
 8609
 8610
 8611
 8612
 8613
 8614
 8615
 8616
 8617
 8618
 8619
 8620
 8621
 8622
 8623
 8624
 8625
 8626
 8627
 8628
 8629
 8630
 8631
 8632
 8633
 8634
 8635
 8636
 8637
 8638
 8639
 8640
 8641
 8642
 8643
 8644
 8645
 8646
 8647
 8648
 8649
 8650
 8651
 8652
 8653
 8654
 8655
 8656
 8657
 8658
 8659
 8660
 8661
 8662
 8663
 8664
 8665
 8666
 8667
 8668
 8669
 8670
 8671
 8672
 8673
 8674
 8675
 8676
 8677
 8678
 8679
 8680
 8681
 8682
 8683
 8684
 8685
 8686
 8687
 8688
 8689
 8690
 8691
 8692
 8693
 8694
 8695
 8696
 8697
 8698
 8699
 8700
 8701
 8702
 8703
 8704
 8705
 8706
 8707
 8708
 8709
 8710
 8711
 8712
 8713
 8714
 8715
 8716
 8717
 8718
 8719
 8720
 8721
 8722
 8723
 8724
 8725
 8726
 8727
 8728
 8729
 8730
 8731
 8732
 8733
 8734
 8735
 8736
 8737
 8738
 8739
 8740
 8741
 8742
 8743
 8744
 8745
 8746
 8747
 8748
 8749
 8750
 8751
 8752
 8753
 8754
 8755
 8756
 8757
 8758
 8759
 8760
 8761
 8762
 8763
 8764
 8765
 8766
 8767
 8768
 8769
 8770
 8771
 8772
 8773
 8774
 8775
 8776
 8777
 8778
 8779
 8780
 8781
 8782
 8783
 8784
 8785
 8786
 8787
 8788
 8789
 8790
 8791
 8792
 8793
 8794
 8795
 8796
 8797
 8798
 8799
 8800
 8801
 8802
 8803
 8804
 8805
 8806
 8807
 8808
 8809
 8810
 8811
 8812
 8813
 8814
 8815
 8816
 8817
 8818
 8819
 8820
 8821
 8822
 8823
 8824
 8825
 8826
 8827
 8828
 8829
 8830
 8831
 8832
 8833
 8834
 8835
 8836
 8837
 8838
 8839
 8840
 8841
 8842
 8843
 8844
 8845
 8846
 8847
 8848
 8849
 8850
 8851
 8852
 8853
 8854
 8855
 8856
 8857
 8858
 8859
 8860
 8861
 8862
 8863
 8864
 8865
 8866
 8867
 8868
 8869
 8870
 8871
 8872
 8873
 8874
 8875
 8876
 8877
 8878
 8879
 8880
 8881
 8882
 8883
 8884
 8885
 8886
 8887
 8888
 8889
 8890
 8891
 8892
 8893
 8894
 8895
 8896
 8897
 8898
 8899
 8900
 8901
 8902
 8903
 8904
 8905
 8906
 8907
 8908
 8909
 8910
 8911
 8912
 8913
 8914
 8915
 8916
 8917
 8918
 8919
 8920
 8921
 8922
 8923
 8924
 8925
 8926
 8927
 8928
 8929
 8930
 8931
 8932
 8933
 8934
 8935
 8936
 8937
 8938
 8939
 8940
 8941
 8942
 8943
 8944
 8945
 8946
 8947
 8948
 8949
 8950
 8951
 8952
 8953
 8954
 8955
 8956
 8957
 8958
 8959
 8960
 8961
 8962
 8963
 8964
 8965
 8966
 8967
 8968
 8969
 8970
 8971
 8972
 8973
 8974
 8975
 8976
 8977
 8978
 8979
 8980
 8981
 8982
 8983
 8984
 8985
 8986
 8987
 8988
 8989
 8990
 8991
 8992
 8993
 8994
 8995
 8996
 8997
 8998
 8999
 9000
 9001
 9002
 9003
 9004
 9005
 9006
 9007
 9008
 9009
 9010
 9011
 9012
 9013
 9014
 9015
 9016
 9017
 9018
 9019
 9020
 9021
 9022
 9023
 9024
 9025
 9026
 9027
 9028
 9029
 9030
 9031
 9032
 9033
 9034
 9035
 9036
 9037
 9038
 9039
 9040
 9041
 9042
 9043
 9044
 9045
 9046
 9047
 9048
 9049
 9050
 9051
 9052
 9053
 9054
 9055
 9056
 9057
 9058
 9059
 9060
 9061
 9062
 9063
 9064
 9065
 9066
 9067
 9068
 9069
 9070
 9071
 9072
 9073
 9074
 9075
 9076
 9077
 9078
 9079
 9080
 9081
 9082
 9083
 9084
 9085
 9086
 9087
 9088
 9089
 9090
 9091
 9092
 9093
 9094
 9095
 9096
 9097
 9098
 9099
 9100
 9101
 9102
 9103
 9104
 9105
 9106
 9107
 9108
 9109
 9110
 9111
 9112
 9113
 9114
 9115
 9116
 9117
 9118
 9119
 9120
 9121
 9122
 9123
 9124
 9125
 9126
 9127
 9128
 9129
 9130
 9131
 9132
 9133
 9134
 9135
 9136
 9137
 9138
 9139
 9140
 9141
 9142
 9143
 9144
 9145
 9146
 9147
 9148
 9149
 9150
 9151
 9152
 9153
 9154
 9155
 9156
 9157
 9158
 9159
 9160
 9161
 9162
 9163
 9164
 9165
 9166
 9167
 9168
 9169
 9170
 9171
 9172
 9173
 9174
 9175
 9176
 9177
 9178
 9179
 9180
 9181
 9182
 9183
 9184
 9185
 9186
 9187
 9188
 9189
 9190
 9191
 9192
 9193
 9194
 9195
 9196
 9197
 9198
 9199
 9200
 9201
 9202
 9203
 9204
 9205
 9206
 9207
 9208
 9209
 9210
 9211
 9212
 9213
 9214
 9215
 9216
 9217
 9218
 9219
 9220
 9221
 9222
 9223
 9224
 9225
 9226
 9227
 9228
 9229
 9230
 9231
 9232
 9233
 9234
 9235
 9236
 9237
 9238
 9239
 9240
 9241
 9242
 9243
 9244
 9245
 9246
 9247
 9248
 9249
 9250
 9251
 9252
 9253
 9254
 9255
 9256
 9257
 9258
 9259
 9260
 9261
 9262
 9263
 9264
 9265
 9266
 9267
 9268
 9269
 9270
 9271
 9272
 9273
 9274
 9275
 9276
 9277
 9278
 9279
 9280
 9281
 9282
 9283
 9284
 9285
 9286
 9287
 9288
 9289
 9290
 9291
 9292
 9293
 9294
 9295
 9296
 9297
 9298
 9299
 9300
 9301
 9302
 9303
 9304
 9305
 9306
 9307
 9308
 9309
 9310
 9311
 9312
 9313
 9314
 9315
 9316
 9317
 9318
 9319
 9320
 9321
 9322
 9323
 9324
 9325
 9326
 9327
 9328
 9329
 9330
 9331
 9332
 9333
 9334
 9335
 9336
 9337
 9338
 9339
 9340
 9341
 9342
 9343
 9344
 9345
 9346
 9347
 9348
 9349
 9350
 9351
 9352
 9353
 9354
 9355
 9356
 9357
 9358
 9359
 9360
 9361
 9362
 9363
 9364
 9365
 9366
 9367
 9368
 9369
 9370
 9371
 9372
 9373
 9374
 9375
 9376
 9377
 9378
 9379
 9380
 9381
 9382
 9383
 9384
 9385
 9386
 9387
 9388
 9389
 9390
 9391
 9392
 9393
 9394
 9395
 9396
 9397
 9398
 9399
 9400
 9401
 9402
 9403
 9404
 9405
 9406
 9407
 9408
 9409
 9410
 9411
 9412
 9413
 9414
 9415
 9416
 9417
 9418
 9419
 9420
 9421
 9422
 9423
 9424
 9425
 9426
 9427
 9428
 9429
 9430
 9431
 9432
 9433
 9434
 9435
 9436
 9437
 9438
 9439
 9440
 9441
 9442
 9443
 9444
 9445
 9446
 9447
 9448
 9449
 9450
 9451
 9452
 9453
 9454
 9455
 9456
 9457
 9458
 9459
 9460
 9461
 9462
 9463
 9464
 9465
 9466
 9467
 9468
 9469
 9470
 9471
 9472
 9473
 9474
 9475
 9476
 9477
 9478
 9479
 9480
 9481
 9482
 9483
 9484
 9485
 9486
 9487
 9488
 9489
 9490
 9491
 9492
 9493
 9494
 9495
 9496
 9497
 9498
 9499
 9500
 9501
 9502
 9503
 9504
 9505
 9506
 9507
 9508
 9509
 9510
 9511
 9512
 9513
 9514
 9515
 9516
 9517
 9518
 9519
 9520
 9521
 9522
 9523
 9524
 9525
 9526
 9527
 9528
 9529
 9530
 9531
 9532
 9533
 9534
 9535
 9536
 9537
 9538
 9539
 9540
 9541
 9542
 9543
 9544
 9545
 9546
 9547
 9548
 9549
 9550
 9551
 9552
 9553
 9554
 9555
 9556
 9557
 9558
 9559
 9560
 9561
 9562
 9563
 9564
 9565
 9566
 9567
 9568
 9569
 9570
 9571
 9572
 9573
 9574
 9575
 9576
 9577
 9578
 9579
 9580
 9581
 9582
 9583
 9584
 9585
 9586
 9587
 9588
 9589
 9590
 9591
 9592
 9593
 9594
 9595
 9596
 9597
 9598
 9599
 9600
 9601
 9602
 9603
 9604
 9605
 9606
 9607
 9608
 9609
 9610
 9611
 9612
 9613
 9614
 9615
 9616
 9617
 9618
 9619
 9620
 9621
 9622
 9623
 9624
 9625
 9626
 9627
 9628
 9629
 9630
 9631
 9632
 9633
 9634
 9635
 9636
 9637
 9638
 9639
 9640
 9641
 9642
 9643
 9644
 9645
 9646
 9647
 9648
 9649
 9650
 9651
 9652
 9653
 9654
 9655
 9656
 9657
 9658
 9659
 9660
 9661
 9662
 9663
 9664
 9665
 9666
 9667
 9668
 9669
 9670
 9671
 9672
 9673
 9674
 9675
 9676
 9677
 9678
 9679
 9680
 9681
 9682
 9683
 9684
 9685
 9686
 9687
 9688
 9689
 9690
 9691
 9692
 9693
 9694
 9695
 9696
 9697
 9698
 9699
 9700
 9701
 9702
 9703
 9704
 9705
 9706
 9707
 9708
 9709
 9710
 9711
 9712
 9713
 9714
 9715
 9716
 9717
 9718
 9719
 9720
 9721
 9722
 9723
 9724
 9725
 9726
 9727
 9728
 9729
 9730
 9731
 9732
 9733
 9734
 9735
 9736
 9737
 9738
 9739
 9740
 9741
 9742
 9743
 9744
 9745
 9746
 9747
 9748
 9749
 9750
 9751
 9752
 9753
 9754
 9755
 9756
 9757
 9758
 9759
 9760
 9761
 9762
 9763
 9764
 9765
 9766
 9767
 9768
 9769
 9770
 9771
 9772
 9773
 9774
 9775
 9776
 9777
 9778
 9779
 9780
 9781
 9782
 9783
 9784
 9785
 9786
 9787
 9788
 9789
 9790
 9791
 9792
 9793
 9794
 9795
 9796
 9797
 9798
 9799
 9800
 9801
 9802
 9803
 9804
 9805
 9806
 9807
 9808
 9809
 9810
 9811
 9812
 9813
 9814
 9815
 9816
 9817
 9818
 9819
 9820
 9821
 9822
 9823
 9824
 9825
 9826
 9827
 9828
 9829
 9830
 9831
 9832
 9833
 9834
 9835
 9836
 9837
 9838
 9839
 9840
 9841
 9842
 9843
 9844
 9845
 9846
 9847
 9848
 9849
 9850
 9851
 9852
 9853
 9854
 9855
 9856
 9857
 9858
 9859
 9860
 9861
 9862
 9863
 9864
 9865
 9866
 9867
 9868
 9869
 9870
 9871
 9872
 9873
 9874
 9875
 9876
 9877
 9878
 9879
 9880
 9881
 9882
 9883
 9884
 9885
 9886
 9887
 9888
 9889
 9890
 9891
 9892
 9893
 9894
 9895
 9896
 9897
 9898
 9899
 9900
 9901
 9902
 9903
 9904
 9905
 9906
 9907
 9908
 9909
 9910
 9911
 9912
 9913
 9914
 9915
 9916
 9917
 9918
 9919
 9920
 9921
 9922
 9923
 9924
 9925
 9926
 9927
 9928
 9929
 9930
 9931
 9932
 9933
 9934
 9935
 9936
 9937
 9938
 9939
 9940
 9941
 9942
 9943
 9944
 9945
 9946
 9947
 9948
 9949
 9950
 9951
 9952
 9953
 9954
 9955
 9956
 9957
 9958
 9959
 9960
 9961
 9962
 9963
 9964
 9965
 9966
 9967
 9968
 9969
 9970
 9971
 9972
 9973
 9974
 9975
 9976
 9977
 9978
 9979
 9980
 9981
 9982
 9983
 9984
 9985
 9986
 9987
 9988
 9989
 9990
 9991
 9992
 9993
 9994
 9995
 9996
 9997
 9998
 9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
/* automatically generated by rust-bindgen 0.55.1 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align> {
    storage: Storage,
    align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
    #[inline]
    pub const fn new(storage: Storage) -> Self {
        Self { storage, align: [] }
    }
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    #[inline]
    pub fn get_bit(&self, index: usize) -> bool {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = self.storage.as_ref()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        byte & mask == mask
    }
    #[inline]
    pub fn set_bit(&mut self, index: usize, val: bool) {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = &mut self.storage.as_mut()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        if val {
            *byte |= mask;
        } else {
            *byte &= !mask;
        }
    }
    #[inline]
    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if self.get_bit(i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            self.set_bit(index + bit_offset, val_bit_is_set);
        }
    }
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const _GNU_SOURCE: u32 = 1;
pub const DOCUMENTATION: u32 = 1;
pub const DOCUMENTATION_ONLY: u32 = 0;
pub const ENABLE_HEAP_STATISTICS: u32 = 0;
pub const ENABLE_MALICIOUS: u32 = 0;
pub const ENABLE_NLS: u32 = 1;
pub const ENABLE_NSE_HISTOGRAM: u32 = 0;
pub const ENABLE_POISONING: u32 = 0;
pub const ENABLE_SUPERMUC: u32 = 0;
pub const GNUNET_DEFAULT_INTERFACE: &'static [u8; 5usize] = b"eth0\0";
pub const GNUNET_LOGREAD: u32 = 0;
pub const HAVE_ABE: u32 = 0;
pub const HAVE_ARGZ_H: u32 = 1;
pub const HAVE_ARPA_INET_H: u32 = 1;
pub const HAVE_ATOLL: u32 = 1;
pub const HAVE_AWK: u32 = 1;
pub const HAVE_BYTESWAP_H: u32 = 1;
pub const HAVE_CHOWN: u32 = 1;
pub const HAVE_CTYPE_H: u32 = 1;
pub const HAVE_DCGETTEXT: u32 = 1;
pub const HAVE_DECL_CURLINFO_TLS_SESSION: u32 = 1;
pub const HAVE_DECL_GCRY_MPI_SET_OPAQUE_COPY: u32 = 1;
pub const HAVE_DECL_STRUCT_IN6_IFREQ: u32 = 0;
pub const HAVE_DIRENT_H: u32 = 1;
pub const HAVE_DLFCN_H: u32 = 1;
pub const HAVE_ENDIAN_H: u32 = 1;
pub const HAVE_ERRNO_H: u32 = 1;
pub const HAVE_EXECINFO_H: u32 = 1;
pub const HAVE_EXPLICIT_BZERO: u32 = 1;
pub const HAVE_EXTRACTOR_H: u32 = 1;
pub const HAVE_FCNTL_H: u32 = 1;
pub const HAVE_FORK: u32 = 1;
pub const HAVE_FREEIFADDRS: u32 = 1;
pub const HAVE_FSEEKO: u32 = 1;
pub const HAVE_GETADDRINFO_A: u32 = 1;
pub const HAVE_GETHOSTBYNAME2: u32 = 1;
pub const HAVE_GETIFADDRS: u32 = 1;
pub const HAVE_GETLOADAVG: u32 = 1;
pub const HAVE_GETRESGID: u32 = 1;
pub const HAVE_GETRLIMIT: u32 = 1;
pub const HAVE_GETRUSAGE: u32 = 1;
pub const HAVE_GETTEXT: u32 = 1;
pub const HAVE_GNUTLS_ABSTRACT_H: u32 = 1;
pub const HAVE_GNUTLS_DANE: u32 = 1;
pub const HAVE_GNUTLS_DANE_H: u32 = 1;
pub const HAVE_ICONV: u32 = 1;
pub const HAVE_IDN2_H: u32 = 1;
pub const HAVE_IFADDRS_H: u32 = 1;
pub const HAVE_INITGROUPS: u32 = 1;
pub const HAVE_INTTYPES_H: u32 = 1;
pub const HAVE_LANGINFO_H: u32 = 1;
pub const HAVE_LIBATOMIC: u32 = 1;
pub const HAVE_LIBBLUETOOTH: u32 = 1;
pub const HAVE_LIBCURL: u32 = 1;
pub const HAVE_LIBEXTRACTOR: u32 = 1;
pub const HAVE_LIBGNURL: u32 = 0;
pub const HAVE_LIBIDN2: u32 = 1;
pub const HAVE_LIBINTL_H: u32 = 1;
pub const HAVE_LIBM: u32 = 1;
pub const HAVE_LIBPQ_FE_H: u32 = 1;
pub const HAVE_LIBUNISTRING: u32 = 1;
pub const HAVE_LIMITS_H: u32 = 1;
pub const HAVE_LOCALE_H: u32 = 1;
pub const HAVE_LTDL_H: u32 = 1;
pub const HAVE_MALLINFO: u32 = 1;
pub const HAVE_MALLOC_H: u32 = 1;
pub const HAVE_MALLOC_USABLE_SIZE: u32 = 1;
pub const HAVE_MATH_H: u32 = 1;
pub const HAVE_MEMORY_H: u32 = 1;
pub const HAVE_MEMRCHR: u32 = 1;
pub const HAVE_MHD: u32 = 1;
pub const HAVE_MREMAP: u32 = 1;
pub const HAVE_NETDB_H: u32 = 1;
pub const HAVE_NETINET_IN_H: u32 = 1;
pub const HAVE_NETINET_IN_SYSTM_H: u32 = 1;
pub const HAVE_NETINET_IP_H: u32 = 1;
pub const HAVE_NSS_H: u32 = 1;
pub const HAVE_OFF_T: u32 = 1;
pub const HAVE_OPUS: u32 = 0;
pub const HAVE_PBC: u32 = 0;
pub const HAVE_PERL: u32 = 1;
pub const HAVE_POSTGRESQL: u32 = 1;
pub const HAVE_PULSE: u32 = 1;
pub const HAVE_RANDOM: u32 = 1;
pub const HAVE_SETRESUID: u32 = 1;
pub const HAVE_SETRLIMIT: u32 = 1;
pub const HAVE_SIGNAL_H: u32 = 1;
pub const HAVE_SIGSET_T: u32 = 1;
pub const HAVE_SIZE_T: u32 = 1;
pub const HAVE_SQLITE3_H: u32 = 1;
pub const HAVE_SRANDOM: u32 = 1;
pub const HAVE_STAT: u32 = 1;
pub const HAVE_STAT64: u32 = 1;
pub const HAVE_STATFS: u32 = 1;
pub const HAVE_STATIC_ASSERT: u32 = 1;
pub const HAVE_STATVFS: u32 = 1;
pub const HAVE_STDARG_H: u32 = 1;
pub const HAVE_STDATOMIC_H: u32 = 1;
pub const HAVE_STDBOOL_H: u32 = 1;
pub const HAVE_STDDEF_H: u32 = 1;
pub const HAVE_STDINT_H: u32 = 1;
pub const HAVE_STDIO_H: u32 = 1;
pub const HAVE_STDLIB_H: u32 = 1;
pub const HAVE_STRFTIME: u32 = 1;
pub const HAVE_STRINGS_H: u32 = 1;
pub const HAVE_STRING_H: u32 = 1;
pub const HAVE_STRNDUP: u32 = 1;
pub const HAVE_STRNLEN: u32 = 1;
pub const HAVE_SYSCONF: u32 = 1;
pub const HAVE_SYS_FILE_H: u32 = 1;
pub const HAVE_SYS_IOCTL_H: u32 = 1;
pub const HAVE_SYS_MMAN_H: u32 = 1;
pub const HAVE_SYS_MOUNT_H: u32 = 1;
pub const HAVE_SYS_MSG_H: u32 = 1;
pub const HAVE_SYS_PARAM_H: u32 = 1;
pub const HAVE_SYS_RESOURCE_H: u32 = 1;
pub const HAVE_SYS_SELECT_H: u32 = 1;
pub const HAVE_SYS_SOCKET_H: u32 = 1;
pub const HAVE_SYS_STATVFS_H: u32 = 1;
pub const HAVE_SYS_STAT_H: u32 = 1;
pub const HAVE_SYS_SYSINFO_H: u32 = 1;
pub const HAVE_SYS_TIMEB_H: u32 = 1;
pub const HAVE_SYS_TIME_H: u32 = 1;
pub const HAVE_SYS_TYPES_H: u32 = 1;
pub const HAVE_SYS_VFS_H: u32 = 1;
pub const HAVE_SYS_WAIT_H: u32 = 1;
pub const HAVE_THREAD_LOCAL_GCC: u32 = 1;
pub const HAVE_TIMEGM: u32 = 1;
pub const HAVE_TM_GMTOFF: u32 = 1;
pub const HAVE_UNALIGNED_64_ACCESS: u32 = 1;
pub const HAVE_UNISTD_H: u32 = 1;
pub const HAVE_UNISTR_H: u32 = 1;
pub const HAVE_VFORK: u32 = 1;
pub const HAVE_VPRINTF: u32 = 1;
pub const HAVE_WAIT4: u32 = 1;
pub const HAVE_WORKING_FORK: u32 = 1;
pub const HAVE_WORKING_VFORK: u32 = 1;
pub const HAVE_ZBAR: u32 = 0;
pub const HAVE__BOOL: u32 = 1;
pub const IFCONFIG: &'static [u8; 15usize] = b"/sbin/ifconfig\0";
pub const IF_TUN_HDR: &'static [u8; 15usize] = b"linux/if_tun.h\0";
pub const INCLUDE_MANPAGES: u32 = 0;
pub const IP6TABLES: &'static [u8; 16usize] = b"/sbin/ip6tables\0";
pub const IPTABLES: &'static [u8; 15usize] = b"/sbin/iptables\0";
pub const LIBCURL_FEATURE_ASYNCHDNS: u32 = 1;
pub const LIBCURL_FEATURE_IDN: u32 = 1;
pub const LIBCURL_FEATURE_IPV6: u32 = 1;
pub const LIBCURL_FEATURE_LIBZ: u32 = 1;
pub const LIBCURL_FEATURE_NTLM: u32 = 1;
pub const LIBCURL_FEATURE_SSL: u32 = 1;
pub const LIBCURL_PROTOCOL_DICT: u32 = 1;
pub const LIBCURL_PROTOCOL_FILE: u32 = 1;
pub const LIBCURL_PROTOCOL_FTP: u32 = 1;
pub const LIBCURL_PROTOCOL_FTPS: u32 = 1;
pub const LIBCURL_PROTOCOL_HTTP: u32 = 1;
pub const LIBCURL_PROTOCOL_HTTPS: u32 = 1;
pub const LIBCURL_PROTOCOL_IMAP: u32 = 1;
pub const LIBCURL_PROTOCOL_LDAP: u32 = 1;
pub const LIBCURL_PROTOCOL_POP3: u32 = 1;
pub const LIBCURL_PROTOCOL_RTSP: u32 = 1;
pub const LIBCURL_PROTOCOL_SMTP: u32 = 1;
pub const LIBCURL_PROTOCOL_TELNET: u32 = 1;
pub const LIBCURL_PROTOCOL_TFTP: u32 = 1;
pub const LINUX: u32 = 1;
pub const LSTAT_FOLLOWS_SLASHED_SYMLINK: u32 = 1;
pub const LT_OBJDIR: &'static [u8; 7usize] = b".libs/\0";
pub const NEED_LIBGCRYPT_VERSION: &'static [u8; 6usize] = b"1.6.0\0";
pub const PACKAGE: &'static [u8; 7usize] = b"gnunet\0";
pub const PACKAGE_BUGREPORT: &'static [u8; 19usize] = b"bug-gnunet@gnu.org\0";
pub const PACKAGE_NAME: &'static [u8; 7usize] = b"gnunet\0";
pub const PACKAGE_STRING: &'static [u8; 14usize] = b"gnunet 0.14.0\0";
pub const PACKAGE_TARNAME: &'static [u8; 7usize] = b"gnunet\0";
pub const PACKAGE_URL: &'static [u8; 1usize] = b"\0";
pub const PACKAGE_VERSION: &'static [u8; 7usize] = b"0.14.0\0";
pub const PATH_TO_IP: &'static [u8; 12usize] = b"/usr/bin/ip\0";
pub const STDC_HEADERS: u32 = 1;
pub const SYSCTL: &'static [u8; 13usize] = b"/sbin/sysctl\0";
pub const TEXI2MDOC_GENERATION: u32 = 0;
pub const TIME_WITH_SYS_TIME: u32 = 1;
pub const VCS_VERSION: &'static [u8; 14usize] = b"git-b0dcf66a2\0";
pub const VERSION: &'static [u8; 7usize] = b"0.14.0\0";
pub const _DARWIN_USE_64_BIT_INODE: u32 = 1;
pub const _STDIO_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _ISOC95_SOURCE: u32 = 1;
pub const _ISOC99_SOURCE: u32 = 1;
pub const _ISOC11_SOURCE: u32 = 1;
pub const _ISOC2X_SOURCE: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const _XOPEN_SOURCE: u32 = 700;
pub const _XOPEN_SOURCE_EXTENDED: u32 = 1;
pub const _LARGEFILE64_SOURCE: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
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 __USE_XOPEN: u32 = 1;
pub const __USE_XOPEN_EXTENDED: u32 = 1;
pub const __USE_UNIX98: u32 = 1;
pub const _LARGEFILE_SOURCE: u32 = 1;
pub const __USE_XOPEN2K8XSI: u32 = 1;
pub const __USE_XOPEN2KXSI: u32 = 1;
pub const __USE_LARGEFILE: u32 = 1;
pub const __USE_LARGEFILE64: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_GNU: 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 __GLIBC_USE_LIB_EXT2: u32 = 1;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 1;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 1;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 1;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 1;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 1;
pub const __GNUC_VA_LIST: u32 = 1;
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 _____fpos_t_defined: u32 = 1;
pub const ____mbstate_t_defined: u32 = 1;
pub const _____fpos64_t_defined: u32 = 1;
pub const ____FILE_defined: u32 = 1;
pub const __FILE_defined: u32 = 1;
pub const __struct_FILE_defined: u32 = 1;
pub const _IO_EOF_SEEN: u32 = 16;
pub const _IO_ERR_SEEN: u32 = 32;
pub const _IO_USER_LOCK: u32 = 32768;
pub const __cookie_io_functions_t_defined: u32 = 1;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 8192;
pub const EOF: i32 = -1;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const SEEK_DATA: u32 = 3;
pub const SEEK_HOLE: u32 = 4;
pub const P_tmpdir: &'static [u8; 5usize] = b"/tmp\0";
pub const _BITS_STDIO_LIM_H: u32 = 1;
pub const L_tmpnam: u32 = 20;
pub const TMP_MAX: u32 = 238328;
pub const FILENAME_MAX: u32 = 4096;
pub const L_ctermid: u32 = 9;
pub const L_cuserid: u32 = 9;
pub const FOPEN_MAX: u32 = 16;
pub const RENAME_NOREPLACE: u32 = 1;
pub const RENAME_EXCHANGE: u32 = 2;
pub const RENAME_WHITEOUT: u32 = 4;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const HAVE_GNUTLS: u32 = 1;
pub const GNUNET_CONSTANTS_IDLE_LOAD_THRESHOLD: u32 = 70;
pub const GNUNET_CONSTANTS_MAX_BANDWIDTH_CARRY_S: u32 = 5;
pub const GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE: u32 = 64512;
pub const GNUNET_CONSTANTS_CADET_P2P_OVERHEAD: u32 = 164;
pub const GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE: u32 = 64348;
pub const GNUNET_CONSTANTS_MAX_BLOCK_SIZE: u32 = 63488;
pub const GNUNET_CONSTANTS_BLOOMFILTER_K: u32 = 16;
pub const GNUNET_MAX_MESSAGE_SIZE: u32 = 65536;
pub const GNUNET_AGPL_URL: &'static [u8; 41usize] = b"https://gnunet.org/git/gnunet.git#0.14.0\0";
pub const _STDINT_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 INT8_WIDTH: u32 = 8;
pub const UINT8_WIDTH: u32 = 8;
pub const INT16_WIDTH: u32 = 16;
pub const UINT16_WIDTH: u32 = 16;
pub const INT32_WIDTH: u32 = 32;
pub const UINT32_WIDTH: u32 = 32;
pub const INT64_WIDTH: u32 = 64;
pub const UINT64_WIDTH: u32 = 64;
pub const INT_LEAST8_WIDTH: u32 = 8;
pub const UINT_LEAST8_WIDTH: u32 = 8;
pub const INT_LEAST16_WIDTH: u32 = 16;
pub const UINT_LEAST16_WIDTH: u32 = 16;
pub const INT_LEAST32_WIDTH: u32 = 32;
pub const UINT_LEAST32_WIDTH: u32 = 32;
pub const INT_LEAST64_WIDTH: u32 = 64;
pub const UINT_LEAST64_WIDTH: u32 = 64;
pub const INT_FAST8_WIDTH: u32 = 8;
pub const UINT_FAST8_WIDTH: u32 = 8;
pub const INT_FAST16_WIDTH: u32 = 64;
pub const UINT_FAST16_WIDTH: u32 = 64;
pub const INT_FAST32_WIDTH: u32 = 64;
pub const UINT_FAST32_WIDTH: u32 = 64;
pub const INT_FAST64_WIDTH: u32 = 64;
pub const UINT_FAST64_WIDTH: u32 = 64;
pub const INTPTR_WIDTH: u32 = 64;
pub const UINTPTR_WIDTH: u32 = 64;
pub const INTMAX_WIDTH: u32 = 64;
pub const UINTMAX_WIDTH: u32 = 64;
pub const PTRDIFF_WIDTH: u32 = 64;
pub const SIG_ATOMIC_WIDTH: u32 = 32;
pub const SIZE_WIDTH: u32 = 64;
pub const WCHAR_WIDTH: u32 = 32;
pub const WINT_WIDTH: u32 = 32;
pub const _LIBC_LIMITS_H_: u32 = 1;
pub const MB_LEN_MAX: u32 = 16;
pub const CHAR_WIDTH: u32 = 8;
pub const SCHAR_WIDTH: u32 = 8;
pub const UCHAR_WIDTH: u32 = 8;
pub const SHRT_WIDTH: u32 = 16;
pub const USHRT_WIDTH: u32 = 16;
pub const INT_WIDTH: u32 = 32;
pub const UINT_WIDTH: u32 = 32;
pub const LONG_WIDTH: u32 = 64;
pub const ULONG_WIDTH: u32 = 64;
pub const LLONG_WIDTH: u32 = 64;
pub const ULLONG_WIDTH: u32 = 64;
pub const _BITS_POSIX1_LIM_H: u32 = 1;
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
pub const _POSIX_NAME_MAX: u32 = 14;
pub const _POSIX_NGROUPS_MAX: u32 = 8;
pub const _POSIX_OPEN_MAX: u32 = 20;
pub const _POSIX_FD_SETSIZE: u32 = 20;
pub const _POSIX_PATH_MAX: u32 = 256;
pub const _POSIX_PIPE_BUF: u32 = 512;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const _POSIX_RTSIG_MAX: u32 = 8;
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
pub const _POSIX_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX_TZNAME_MAX: u32 = 6;
pub const _POSIX_QLIMIT: u32 = 1;
pub const _POSIX_HIWAT: u32 = 512;
pub const _POSIX_UIO_MAXIOV: u32 = 16;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const NR_OPEN: u32 = 1024;
pub const NGROUPS_MAX: u32 = 65536;
pub const ARG_MAX: u32 = 131072;
pub const LINK_MAX: u32 = 127;
pub const MAX_CANON: u32 = 255;
pub const MAX_INPUT: u32 = 255;
pub const NAME_MAX: u32 = 255;
pub const PATH_MAX: u32 = 4096;
pub const PIPE_BUF: u32 = 4096;
pub const XATTR_NAME_MAX: u32 = 255;
pub const XATTR_SIZE_MAX: u32 = 65536;
pub const XATTR_LIST_MAX: u32 = 65536;
pub const RTSIG_MAX: u32 = 32;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const PTHREAD_KEYS_MAX: u32 = 1024;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const AIO_PRIO_DELTA_MAX: u32 = 20;
pub const PTHREAD_STACK_MIN: u32 = 16384;
pub const DELAYTIMER_MAX: u32 = 2147483647;
pub const TTY_NAME_MAX: u32 = 32;
pub const LOGIN_NAME_MAX: u32 = 256;
pub const HOST_NAME_MAX: u32 = 64;
pub const MQ_PRIO_MAX: u32 = 32768;
pub const SEM_VALUE_MAX: u32 = 2147483647;
pub const _BITS_POSIX2_LIM_H: u32 = 1;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const COLL_WEIGHTS_MAX: u32 = 255;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const CHARCLASS_NAME_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 32767;
pub const _XOPEN_LIM_H: u32 = 1;
pub const _XOPEN_IOV_MAX: u32 = 16;
pub const _BITS_UIO_LIM_H: u32 = 1;
pub const __IOV_MAX: u32 = 1024;
pub const IOV_MAX: u32 = 1024;
pub const NL_ARGMAX: u32 = 4096;
pub const NL_LANGMAX: u32 = 2048;
pub const NZERO: u32 = 20;
pub const WORD_BIT: u32 = 32;
pub const LONG_BIT: u32 = 64;
pub const SODIUM_VERSION_STRING: &'static [u8; 7usize] = b"1.0.18\0";
pub const SODIUM_LIBRARY_VERSION_MAJOR: u32 = 10;
pub const SODIUM_LIBRARY_VERSION_MINOR: u32 = 3;
pub const crypto_aead_aes256gcm_KEYBYTES: u32 = 32;
pub const crypto_aead_aes256gcm_NSECBYTES: u32 = 0;
pub const crypto_aead_aes256gcm_NPUBBYTES: u32 = 12;
pub const crypto_aead_aes256gcm_ABYTES: u32 = 16;
pub const crypto_aead_chacha20poly1305_ietf_KEYBYTES: u32 = 32;
pub const crypto_aead_chacha20poly1305_ietf_NSECBYTES: u32 = 0;
pub const crypto_aead_chacha20poly1305_ietf_NPUBBYTES: u32 = 12;
pub const crypto_aead_chacha20poly1305_ietf_ABYTES: u32 = 16;
pub const crypto_aead_chacha20poly1305_KEYBYTES: u32 = 32;
pub const crypto_aead_chacha20poly1305_NSECBYTES: u32 = 0;
pub const crypto_aead_chacha20poly1305_NPUBBYTES: u32 = 8;
pub const crypto_aead_chacha20poly1305_ABYTES: u32 = 16;
pub const crypto_aead_chacha20poly1305_IETF_KEYBYTES: u32 = 32;
pub const crypto_aead_chacha20poly1305_IETF_NSECBYTES: u32 = 0;
pub const crypto_aead_chacha20poly1305_IETF_NPUBBYTES: u32 = 12;
pub const crypto_aead_chacha20poly1305_IETF_ABYTES: u32 = 16;
pub const crypto_aead_xchacha20poly1305_ietf_KEYBYTES: u32 = 32;
pub const crypto_aead_xchacha20poly1305_ietf_NSECBYTES: u32 = 0;
pub const crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: u32 = 24;
pub const crypto_aead_xchacha20poly1305_ietf_ABYTES: u32 = 16;
pub const crypto_aead_xchacha20poly1305_IETF_KEYBYTES: u32 = 32;
pub const crypto_aead_xchacha20poly1305_IETF_NSECBYTES: u32 = 0;
pub const crypto_aead_xchacha20poly1305_IETF_NPUBBYTES: u32 = 24;
pub const crypto_aead_xchacha20poly1305_IETF_ABYTES: u32 = 16;
pub const _STDLIB_H: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
pub const WEXITED: u32 = 4;
pub const WCONTINUED: u32 = 8;
pub const WNOWAIT: u32 = 16777216;
pub const __WNOTHREAD: u32 = 536870912;
pub const __WALL: u32 = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __ENUM_IDTYPE_T: u32 = 1;
pub const __W_CONTINUED: u32 = 65535;
pub const __WCOREFLAG: u32 = 128;
pub const __HAVE_FLOAT128: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
pub const __HAVE_FLOAT64X: u32 = 1;
pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
pub const __HAVE_FLOAT16: u32 = 0;
pub const __HAVE_FLOAT32: u32 = 1;
pub const __HAVE_FLOAT64: u32 = 1;
pub const __HAVE_FLOAT32X: u32 = 1;
pub const __HAVE_FLOAT128X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
pub const __ldiv_t_defined: u32 = 1;
pub const __lldiv_t_defined: u32 = 1;
pub const RAND_MAX: u32 = 2147483647;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const _SYS_TYPES_H: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const _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 LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const _ALLOCA_H: u32 = 1;
pub const crypto_hash_sha512_BYTES: u32 = 64;
pub const crypto_auth_hmacsha512_BYTES: u32 = 64;
pub const crypto_auth_hmacsha512_KEYBYTES: u32 = 32;
pub const crypto_auth_hmacsha512256_BYTES: u32 = 32;
pub const crypto_auth_hmacsha512256_KEYBYTES: u32 = 32;
pub const crypto_auth_BYTES: u32 = 32;
pub const crypto_auth_KEYBYTES: u32 = 32;
pub const crypto_auth_PRIMITIVE: &'static [u8; 14usize] = b"hmacsha512256\0";
pub const crypto_hash_sha256_BYTES: u32 = 32;
pub const crypto_auth_hmacsha256_BYTES: u32 = 32;
pub const crypto_auth_hmacsha256_KEYBYTES: u32 = 32;
pub const crypto_stream_xsalsa20_KEYBYTES: u32 = 32;
pub const crypto_stream_xsalsa20_NONCEBYTES: u32 = 24;
pub const crypto_box_curve25519xsalsa20poly1305_SEEDBYTES: u32 = 32;
pub const crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES: u32 = 32;
pub const crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES: u32 = 32;
pub const crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES: u32 = 32;
pub const crypto_box_curve25519xsalsa20poly1305_NONCEBYTES: u32 = 24;
pub const crypto_box_curve25519xsalsa20poly1305_MACBYTES: u32 = 16;
pub const crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES: u32 = 16;
pub const crypto_box_curve25519xsalsa20poly1305_ZEROBYTES: u32 = 32;
pub const crypto_box_SEEDBYTES: u32 = 32;
pub const crypto_box_PUBLICKEYBYTES: u32 = 32;
pub const crypto_box_SECRETKEYBYTES: u32 = 32;
pub const crypto_box_NONCEBYTES: u32 = 24;
pub const crypto_box_MACBYTES: u32 = 16;
pub const crypto_box_PRIMITIVE: &'static [u8; 27usize] = b"curve25519xsalsa20poly1305\0";
pub const crypto_box_BEFORENMBYTES: u32 = 32;
pub const crypto_box_SEALBYTES: u32 = 48;
pub const crypto_box_ZEROBYTES: u32 = 32;
pub const crypto_box_BOXZEROBYTES: u32 = 16;
pub const crypto_core_hsalsa20_OUTPUTBYTES: u32 = 32;
pub const crypto_core_hsalsa20_INPUTBYTES: u32 = 16;
pub const crypto_core_hsalsa20_KEYBYTES: u32 = 32;
pub const crypto_core_hsalsa20_CONSTBYTES: u32 = 16;
pub const crypto_core_hchacha20_OUTPUTBYTES: u32 = 32;
pub const crypto_core_hchacha20_INPUTBYTES: u32 = 16;
pub const crypto_core_hchacha20_KEYBYTES: u32 = 32;
pub const crypto_core_hchacha20_CONSTBYTES: u32 = 16;
pub const crypto_core_salsa20_OUTPUTBYTES: u32 = 64;
pub const crypto_core_salsa20_INPUTBYTES: u32 = 16;
pub const crypto_core_salsa20_KEYBYTES: u32 = 32;
pub const crypto_core_salsa20_CONSTBYTES: u32 = 16;
pub const crypto_core_salsa2012_OUTPUTBYTES: u32 = 64;
pub const crypto_core_salsa2012_INPUTBYTES: u32 = 16;
pub const crypto_core_salsa2012_KEYBYTES: u32 = 32;
pub const crypto_core_salsa2012_CONSTBYTES: u32 = 16;
pub const crypto_core_salsa208_OUTPUTBYTES: u32 = 64;
pub const crypto_core_salsa208_INPUTBYTES: u32 = 16;
pub const crypto_core_salsa208_KEYBYTES: u32 = 32;
pub const crypto_core_salsa208_CONSTBYTES: u32 = 16;
pub const crypto_generichash_blake2b_BYTES_MIN: u32 = 16;
pub const crypto_generichash_blake2b_BYTES_MAX: u32 = 64;
pub const crypto_generichash_blake2b_BYTES: u32 = 32;
pub const crypto_generichash_blake2b_KEYBYTES_MIN: u32 = 16;
pub const crypto_generichash_blake2b_KEYBYTES_MAX: u32 = 64;
pub const crypto_generichash_blake2b_KEYBYTES: u32 = 32;
pub const crypto_generichash_blake2b_SALTBYTES: u32 = 16;
pub const crypto_generichash_blake2b_PERSONALBYTES: u32 = 16;
pub const crypto_generichash_BYTES_MIN: u32 = 16;
pub const crypto_generichash_BYTES_MAX: u32 = 64;
pub const crypto_generichash_BYTES: u32 = 32;
pub const crypto_generichash_KEYBYTES_MIN: u32 = 16;
pub const crypto_generichash_KEYBYTES_MAX: u32 = 64;
pub const crypto_generichash_KEYBYTES: u32 = 32;
pub const crypto_generichash_PRIMITIVE: &'static [u8; 8usize] = b"blake2b\0";
pub const crypto_hash_BYTES: u32 = 64;
pub const crypto_hash_PRIMITIVE: &'static [u8; 7usize] = b"sha512\0";
pub const crypto_kdf_blake2b_BYTES_MIN: u32 = 16;
pub const crypto_kdf_blake2b_BYTES_MAX: u32 = 64;
pub const crypto_kdf_blake2b_CONTEXTBYTES: u32 = 8;
pub const crypto_kdf_blake2b_KEYBYTES: u32 = 32;
pub const crypto_kdf_BYTES_MIN: u32 = 16;
pub const crypto_kdf_BYTES_MAX: u32 = 64;
pub const crypto_kdf_CONTEXTBYTES: u32 = 8;
pub const crypto_kdf_KEYBYTES: u32 = 32;
pub const crypto_kdf_PRIMITIVE: &'static [u8; 8usize] = b"blake2b\0";
pub const crypto_kx_PUBLICKEYBYTES: u32 = 32;
pub const crypto_kx_SECRETKEYBYTES: u32 = 32;
pub const crypto_kx_SEEDBYTES: u32 = 32;
pub const crypto_kx_SESSIONKEYBYTES: u32 = 32;
pub const crypto_kx_PRIMITIVE: &'static [u8; 14usize] = b"x25519blake2b\0";
pub const crypto_onetimeauth_poly1305_BYTES: u32 = 16;
pub const crypto_onetimeauth_poly1305_KEYBYTES: u32 = 32;
pub const crypto_onetimeauth_BYTES: u32 = 16;
pub const crypto_onetimeauth_KEYBYTES: u32 = 32;
pub const crypto_onetimeauth_PRIMITIVE: &'static [u8; 9usize] = b"poly1305\0";
pub const crypto_pwhash_argon2i_ALG_ARGON2I13: u32 = 1;
pub const crypto_pwhash_argon2i_BYTES_MIN: u32 = 16;
pub const crypto_pwhash_argon2i_PASSWD_MIN: u32 = 0;
pub const crypto_pwhash_argon2i_PASSWD_MAX: u32 = 4294967295;
pub const crypto_pwhash_argon2i_SALTBYTES: u32 = 16;
pub const crypto_pwhash_argon2i_STRBYTES: u32 = 128;
pub const crypto_pwhash_argon2i_STRPREFIX: &'static [u8; 10usize] = b"$argon2i$\0";
pub const crypto_pwhash_argon2i_OPSLIMIT_MIN: u32 = 3;
pub const crypto_pwhash_argon2i_OPSLIMIT_MAX: u32 = 4294967295;
pub const crypto_pwhash_argon2i_MEMLIMIT_MIN: u32 = 8192;
pub const crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE: u32 = 4;
pub const crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE: u32 = 33554432;
pub const crypto_pwhash_argon2i_OPSLIMIT_MODERATE: u32 = 6;
pub const crypto_pwhash_argon2i_MEMLIMIT_MODERATE: u32 = 134217728;
pub const crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE: u32 = 8;
pub const crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE: u32 = 536870912;
pub const crypto_pwhash_argon2id_ALG_ARGON2ID13: u32 = 2;
pub const crypto_pwhash_argon2id_BYTES_MIN: u32 = 16;
pub const crypto_pwhash_argon2id_PASSWD_MIN: u32 = 0;
pub const crypto_pwhash_argon2id_PASSWD_MAX: u32 = 4294967295;
pub const crypto_pwhash_argon2id_SALTBYTES: u32 = 16;
pub const crypto_pwhash_argon2id_STRBYTES: u32 = 128;
pub const crypto_pwhash_argon2id_STRPREFIX: &'static [u8; 11usize] = b"$argon2id$\0";
pub const crypto_pwhash_argon2id_OPSLIMIT_MIN: u32 = 1;
pub const crypto_pwhash_argon2id_OPSLIMIT_MAX: u32 = 4294967295;
pub const crypto_pwhash_argon2id_MEMLIMIT_MIN: u32 = 8192;
pub const crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE: u32 = 2;
pub const crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE: u32 = 67108864;
pub const crypto_pwhash_argon2id_OPSLIMIT_MODERATE: u32 = 3;
pub const crypto_pwhash_argon2id_MEMLIMIT_MODERATE: u32 = 268435456;
pub const crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE: u32 = 4;
pub const crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE: u32 = 1073741824;
pub const crypto_pwhash_ALG_ARGON2I13: u32 = 1;
pub const crypto_pwhash_ALG_ARGON2ID13: u32 = 2;
pub const crypto_pwhash_ALG_DEFAULT: u32 = 2;
pub const crypto_pwhash_BYTES_MIN: u32 = 16;
pub const crypto_pwhash_PASSWD_MIN: u32 = 0;
pub const crypto_pwhash_PASSWD_MAX: u32 = 4294967295;
pub const crypto_pwhash_SALTBYTES: u32 = 16;
pub const crypto_pwhash_STRBYTES: u32 = 128;
pub const crypto_pwhash_STRPREFIX: &'static [u8; 11usize] = b"$argon2id$\0";
pub const crypto_pwhash_OPSLIMIT_MIN: u32 = 1;
pub const crypto_pwhash_OPSLIMIT_MAX: u32 = 4294967295;
pub const crypto_pwhash_MEMLIMIT_MIN: u32 = 8192;
pub const crypto_pwhash_OPSLIMIT_INTERACTIVE: u32 = 2;
pub const crypto_pwhash_MEMLIMIT_INTERACTIVE: u32 = 67108864;
pub const crypto_pwhash_OPSLIMIT_MODERATE: u32 = 3;
pub const crypto_pwhash_MEMLIMIT_MODERATE: u32 = 268435456;
pub const crypto_pwhash_OPSLIMIT_SENSITIVE: u32 = 4;
pub const crypto_pwhash_MEMLIMIT_SENSITIVE: u32 = 1073741824;
pub const crypto_pwhash_PRIMITIVE: &'static [u8; 8usize] = b"argon2i\0";
pub const crypto_scalarmult_curve25519_BYTES: u32 = 32;
pub const crypto_scalarmult_curve25519_SCALARBYTES: u32 = 32;
pub const crypto_scalarmult_BYTES: u32 = 32;
pub const crypto_scalarmult_SCALARBYTES: u32 = 32;
pub const crypto_scalarmult_PRIMITIVE: &'static [u8; 11usize] = b"curve25519\0";
pub const crypto_secretbox_xsalsa20poly1305_KEYBYTES: u32 = 32;
pub const crypto_secretbox_xsalsa20poly1305_NONCEBYTES: u32 = 24;
pub const crypto_secretbox_xsalsa20poly1305_MACBYTES: u32 = 16;
pub const crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES: u32 = 16;
pub const crypto_secretbox_xsalsa20poly1305_ZEROBYTES: u32 = 32;
pub const crypto_secretbox_KEYBYTES: u32 = 32;
pub const crypto_secretbox_NONCEBYTES: u32 = 24;
pub const crypto_secretbox_MACBYTES: u32 = 16;
pub const crypto_secretbox_PRIMITIVE: &'static [u8; 17usize] = b"xsalsa20poly1305\0";
pub const crypto_secretbox_ZEROBYTES: u32 = 32;
pub const crypto_secretbox_BOXZEROBYTES: u32 = 16;
pub const crypto_stream_chacha20_KEYBYTES: u32 = 32;
pub const crypto_stream_chacha20_NONCEBYTES: u32 = 8;
pub const crypto_stream_chacha20_ietf_KEYBYTES: u32 = 32;
pub const crypto_stream_chacha20_ietf_NONCEBYTES: u32 = 12;
pub const crypto_stream_chacha20_IETF_KEYBYTES: u32 = 32;
pub const crypto_stream_chacha20_IETF_NONCEBYTES: u32 = 12;
pub const crypto_secretstream_xchacha20poly1305_ABYTES: u32 = 17;
pub const crypto_secretstream_xchacha20poly1305_HEADERBYTES: u32 = 24;
pub const crypto_secretstream_xchacha20poly1305_KEYBYTES: u32 = 32;
pub const crypto_secretstream_xchacha20poly1305_TAG_MESSAGE: u32 = 0;
pub const crypto_secretstream_xchacha20poly1305_TAG_PUSH: u32 = 1;
pub const crypto_secretstream_xchacha20poly1305_TAG_REKEY: u32 = 2;
pub const crypto_secretstream_xchacha20poly1305_TAG_FINAL: u32 = 3;
pub const crypto_shorthash_siphash24_BYTES: u32 = 8;
pub const crypto_shorthash_siphash24_KEYBYTES: u32 = 16;
pub const crypto_shorthash_siphashx24_BYTES: u32 = 16;
pub const crypto_shorthash_siphashx24_KEYBYTES: u32 = 16;
pub const crypto_shorthash_BYTES: u32 = 8;
pub const crypto_shorthash_KEYBYTES: u32 = 16;
pub const crypto_shorthash_PRIMITIVE: &'static [u8; 10usize] = b"siphash24\0";
pub const crypto_sign_ed25519_BYTES: u32 = 64;
pub const crypto_sign_ed25519_SEEDBYTES: u32 = 32;
pub const crypto_sign_ed25519_PUBLICKEYBYTES: u32 = 32;
pub const crypto_sign_ed25519_SECRETKEYBYTES: u32 = 64;
pub const crypto_sign_BYTES: u32 = 64;
pub const crypto_sign_SEEDBYTES: u32 = 32;
pub const crypto_sign_PUBLICKEYBYTES: u32 = 32;
pub const crypto_sign_SECRETKEYBYTES: u32 = 64;
pub const crypto_sign_PRIMITIVE: &'static [u8; 8usize] = b"ed25519\0";
pub const crypto_stream_KEYBYTES: u32 = 32;
pub const crypto_stream_NONCEBYTES: u32 = 24;
pub const crypto_stream_PRIMITIVE: &'static [u8; 9usize] = b"xsalsa20\0";
pub const crypto_stream_salsa20_KEYBYTES: u32 = 32;
pub const crypto_stream_salsa20_NONCEBYTES: u32 = 8;
pub const crypto_verify_16_BYTES: u32 = 16;
pub const crypto_verify_32_BYTES: u32 = 32;
pub const crypto_verify_64_BYTES: u32 = 64;
pub const randombytes_SEEDBYTES: u32 = 32;
pub const sodium_base64_VARIANT_ORIGINAL: u32 = 1;
pub const sodium_base64_VARIANT_ORIGINAL_NO_PADDING: u32 = 3;
pub const sodium_base64_VARIANT_URLSAFE: u32 = 5;
pub const sodium_base64_VARIANT_URLSAFE_NO_PADDING: u32 = 7;
pub const crypto_stream_xchacha20_KEYBYTES: u32 = 32;
pub const crypto_stream_xchacha20_NONCEBYTES: u32 = 24;
pub const crypto_box_curve25519xchacha20poly1305_SEEDBYTES: u32 = 32;
pub const crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES: u32 = 32;
pub const crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES: u32 = 32;
pub const crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES: u32 = 32;
pub const crypto_box_curve25519xchacha20poly1305_NONCEBYTES: u32 = 24;
pub const crypto_box_curve25519xchacha20poly1305_MACBYTES: u32 = 16;
pub const crypto_box_curve25519xchacha20poly1305_SEALBYTES: u32 = 48;
pub const crypto_core_ed25519_BYTES: u32 = 32;
pub const crypto_core_ed25519_UNIFORMBYTES: u32 = 32;
pub const crypto_core_ed25519_HASHBYTES: u32 = 64;
pub const crypto_core_ed25519_SCALARBYTES: u32 = 32;
pub const crypto_core_ed25519_NONREDUCEDSCALARBYTES: u32 = 64;
pub const crypto_core_ristretto255_BYTES: u32 = 32;
pub const crypto_core_ristretto255_HASHBYTES: u32 = 64;
pub const crypto_core_ristretto255_SCALARBYTES: u32 = 32;
pub const crypto_core_ristretto255_NONREDUCEDSCALARBYTES: u32 = 64;
pub const crypto_scalarmult_ed25519_BYTES: u32 = 32;
pub const crypto_scalarmult_ed25519_SCALARBYTES: u32 = 32;
pub const crypto_scalarmult_ristretto255_BYTES: u32 = 32;
pub const crypto_scalarmult_ristretto255_SCALARBYTES: u32 = 32;
pub const crypto_secretbox_xchacha20poly1305_KEYBYTES: u32 = 32;
pub const crypto_secretbox_xchacha20poly1305_NONCEBYTES: u32 = 24;
pub const crypto_secretbox_xchacha20poly1305_MACBYTES: u32 = 16;
pub const crypto_pwhash_scryptsalsa208sha256_BYTES_MIN: u32 = 16;
pub const crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN: u32 = 0;
pub const crypto_pwhash_scryptsalsa208sha256_SALTBYTES: u32 = 32;
pub const crypto_pwhash_scryptsalsa208sha256_STRBYTES: u32 = 102;
pub const crypto_pwhash_scryptsalsa208sha256_STRPREFIX: &'static [u8; 4usize] = b"$7$\0";
pub const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN: u32 = 32768;
pub const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX: u32 = 4294967295;
pub const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN: u32 = 16777216;
pub const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE: u32 = 524288;
pub const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE: u32 = 16777216;
pub const crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE: u32 = 33554432;
pub const crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE: u32 = 1073741824;
pub const crypto_stream_salsa2012_KEYBYTES: u32 = 32;
pub const crypto_stream_salsa2012_NONCEBYTES: u32 = 8;
pub const crypto_stream_salsa208_KEYBYTES: u32 = 32;
pub const crypto_stream_salsa208_NONCEBYTES: u32 = 8;
pub const _SYS_SOCKET_H: u32 = 1;
pub const __iovec_defined: u32 = 1;
pub const PF_UNSPEC: u32 = 0;
pub const PF_LOCAL: u32 = 1;
pub const PF_UNIX: u32 = 1;
pub const PF_FILE: u32 = 1;
pub const PF_INET: u32 = 2;
pub const PF_AX25: u32 = 3;
pub const PF_IPX: u32 = 4;
pub const PF_APPLETALK: u32 = 5;
pub const PF_NETROM: u32 = 6;
pub const PF_BRIDGE: u32 = 7;
pub const PF_ATMPVC: u32 = 8;
pub const PF_X25: u32 = 9;
pub const PF_INET6: u32 = 10;
pub const PF_ROSE: u32 = 11;
pub const PF_DECnet: u32 = 12;
pub const PF_NETBEUI: u32 = 13;
pub const PF_SECURITY: u32 = 14;
pub const PF_KEY: u32 = 15;
pub const PF_NETLINK: u32 = 16;
pub const PF_ROUTE: u32 = 16;
pub const PF_PACKET: u32 = 17;
pub const PF_ASH: u32 = 18;
pub const PF_ECONET: u32 = 19;
pub const PF_ATMSVC: u32 = 20;
pub const PF_RDS: u32 = 21;
pub const PF_SNA: u32 = 22;
pub const PF_IRDA: u32 = 23;
pub const PF_PPPOX: u32 = 24;
pub const PF_WANPIPE: u32 = 25;
pub const PF_LLC: u32 = 26;
pub const PF_IB: u32 = 27;
pub const PF_MPLS: u32 = 28;
pub const PF_CAN: u32 = 29;
pub const PF_TIPC: u32 = 30;
pub const PF_BLUETOOTH: u32 = 31;
pub const PF_IUCV: u32 = 32;
pub const PF_RXRPC: u32 = 33;
pub const PF_ISDN: u32 = 34;
pub const PF_PHONET: u32 = 35;
pub const PF_IEEE802154: u32 = 36;
pub const PF_CAIF: u32 = 37;
pub const PF_ALG: u32 = 38;
pub const PF_NFC: u32 = 39;
pub const PF_VSOCK: u32 = 40;
pub const PF_KCM: u32 = 41;
pub const PF_QIPCRTR: u32 = 42;
pub const PF_SMC: u32 = 43;
pub const PF_XDP: u32 = 44;
pub const PF_MAX: u32 = 45;
pub const AF_UNSPEC: u32 = 0;
pub const AF_LOCAL: u32 = 1;
pub const AF_UNIX: u32 = 1;
pub const AF_FILE: u32 = 1;
pub const AF_INET: u32 = 2;
pub const AF_AX25: u32 = 3;
pub const AF_IPX: u32 = 4;
pub const AF_APPLETALK: u32 = 5;
pub const AF_NETROM: u32 = 6;
pub const AF_BRIDGE: u32 = 7;
pub const AF_ATMPVC: u32 = 8;
pub const AF_X25: u32 = 9;
pub const AF_INET6: u32 = 10;
pub const AF_ROSE: u32 = 11;
pub const AF_DECnet: u32 = 12;
pub const AF_NETBEUI: u32 = 13;
pub const AF_SECURITY: u32 = 14;
pub const AF_KEY: u32 = 15;
pub const AF_NETLINK: u32 = 16;
pub const AF_ROUTE: u32 = 16;
pub const AF_PACKET: u32 = 17;
pub const AF_ASH: u32 = 18;
pub const AF_ECONET: u32 = 19;
pub const AF_ATMSVC: u32 = 20;
pub const AF_RDS: u32 = 21;
pub const AF_SNA: u32 = 22;
pub const AF_IRDA: u32 = 23;
pub const AF_PPPOX: u32 = 24;
pub const AF_WANPIPE: u32 = 25;
pub const AF_LLC: u32 = 26;
pub const AF_IB: u32 = 27;
pub const AF_MPLS: u32 = 28;
pub const AF_CAN: u32 = 29;
pub const AF_TIPC: u32 = 30;
pub const AF_BLUETOOTH: u32 = 31;
pub const AF_IUCV: u32 = 32;
pub const AF_RXRPC: u32 = 33;
pub const AF_ISDN: u32 = 34;
pub const AF_PHONET: u32 = 35;
pub const AF_IEEE802154: u32 = 36;
pub const AF_CAIF: u32 = 37;
pub const AF_ALG: u32 = 38;
pub const AF_NFC: u32 = 39;
pub const AF_VSOCK: u32 = 40;
pub const AF_KCM: u32 = 41;
pub const AF_QIPCRTR: u32 = 42;
pub const AF_SMC: u32 = 43;
pub const AF_XDP: u32 = 44;
pub const AF_MAX: u32 = 45;
pub const SOL_RAW: u32 = 255;
pub const SOL_DECNET: u32 = 261;
pub const SOL_X25: u32 = 262;
pub const SOL_PACKET: u32 = 263;
pub const SOL_ATM: u32 = 264;
pub const SOL_AAL: u32 = 265;
pub const SOL_IRDA: u32 = 266;
pub const SOL_NETBEUI: u32 = 267;
pub const SOL_LLC: u32 = 268;
pub const SOL_DCCP: u32 = 269;
pub const SOL_NETLINK: u32 = 270;
pub const SOL_TIPC: u32 = 271;
pub const SOL_RXRPC: u32 = 272;
pub const SOL_PPPOL2TP: u32 = 273;
pub const SOL_BLUETOOTH: u32 = 274;
pub const SOL_PNPIPE: u32 = 275;
pub const SOL_RDS: u32 = 276;
pub const SOL_IUCV: u32 = 277;
pub const SOL_CAIF: u32 = 278;
pub const SOL_ALG: u32 = 279;
pub const SOL_NFC: u32 = 280;
pub const SOL_KCM: u32 = 281;
pub const SOL_TLS: u32 = 282;
pub const SOL_XDP: u32 = 283;
pub const SOMAXCONN: u32 = 4096;
pub const _BITS_SOCKADDR_H: u32 = 1;
pub const _SS_SIZE: u32 = 128;
pub const __BITS_PER_LONG: u32 = 64;
pub const FIOSETOWN: u32 = 35073;
pub const SIOCSPGRP: u32 = 35074;
pub const FIOGETOWN: u32 = 35075;
pub const SIOCGPGRP: u32 = 35076;
pub const SIOCATMARK: u32 = 35077;
pub const SIOCGSTAMP: u32 = 35078;
pub const SIOCGSTAMPNS: u32 = 35079;
pub const SOL_SOCKET: u32 = 1;
pub const SO_DEBUG: u32 = 1;
pub const SO_REUSEADDR: u32 = 2;
pub const SO_TYPE: u32 = 3;
pub const SO_ERROR: u32 = 4;
pub const SO_DONTROUTE: u32 = 5;
pub const SO_BROADCAST: u32 = 6;
pub const SO_SNDBUF: u32 = 7;
pub const SO_RCVBUF: u32 = 8;
pub const SO_SNDBUFFORCE: u32 = 32;
pub const SO_RCVBUFFORCE: u32 = 33;
pub const SO_KEEPALIVE: u32 = 9;
pub const SO_OOBINLINE: u32 = 10;
pub const SO_NO_CHECK: u32 = 11;
pub const SO_PRIORITY: u32 = 12;
pub const SO_LINGER: u32 = 13;
pub const SO_BSDCOMPAT: u32 = 14;
pub const SO_REUSEPORT: u32 = 15;
pub const SO_PASSCRED: u32 = 16;
pub const SO_PEERCRED: u32 = 17;
pub const SO_RCVLOWAT: u32 = 18;
pub const SO_SNDLOWAT: u32 = 19;
pub const SO_RCVTIMEO_OLD: u32 = 20;
pub const SO_SNDTIMEO_OLD: u32 = 21;
pub const SO_SECURITY_AUTHENTICATION: u32 = 22;
pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23;
pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24;
pub const SO_BINDTODEVICE: u32 = 25;
pub const SO_ATTACH_FILTER: u32 = 26;
pub const SO_DETACH_FILTER: u32 = 27;
pub const SO_GET_FILTER: u32 = 26;
pub const SO_PEERNAME: u32 = 28;
pub const SO_ACCEPTCONN: u32 = 30;
pub const SO_PEERSEC: u32 = 31;
pub const SO_PASSSEC: u32 = 34;
pub const SO_MARK: u32 = 36;
pub const SO_PROTOCOL: u32 = 38;
pub const SO_DOMAIN: u32 = 39;
pub const SO_RXQ_OVFL: u32 = 40;
pub const SO_WIFI_STATUS: u32 = 41;
pub const SCM_WIFI_STATUS: u32 = 41;
pub const SO_PEEK_OFF: u32 = 42;
pub const SO_NOFCS: u32 = 43;
pub const SO_LOCK_FILTER: u32 = 44;
pub const SO_SELECT_ERR_QUEUE: u32 = 45;
pub const SO_BUSY_POLL: u32 = 46;
pub const SO_MAX_PACING_RATE: u32 = 47;
pub const SO_BPF_EXTENSIONS: u32 = 48;
pub const SO_INCOMING_CPU: u32 = 49;
pub const SO_ATTACH_BPF: u32 = 50;
pub const SO_DETACH_BPF: u32 = 27;
pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51;
pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52;
pub const SO_CNX_ADVICE: u32 = 53;
pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54;
pub const SO_MEMINFO: u32 = 55;
pub const SO_INCOMING_NAPI_ID: u32 = 56;
pub const SO_COOKIE: u32 = 57;
pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58;
pub const SO_PEERGROUPS: u32 = 59;
pub const SO_ZEROCOPY: u32 = 60;
pub const SO_TXTIME: u32 = 61;
pub const SCM_TXTIME: u32 = 61;
pub const SO_BINDTOIFINDEX: u32 = 62;
pub const SO_TIMESTAMP_OLD: u32 = 29;
pub const SO_TIMESTAMPNS_OLD: u32 = 35;
pub const SO_TIMESTAMPING_OLD: u32 = 37;
pub const SO_TIMESTAMP_NEW: u32 = 63;
pub const SO_TIMESTAMPNS_NEW: u32 = 64;
pub const SO_TIMESTAMPING_NEW: u32 = 65;
pub const SO_RCVTIMEO_NEW: u32 = 66;
pub const SO_SNDTIMEO_NEW: u32 = 67;
pub const SO_DETACH_REUSEPORT_BPF: u32 = 68;
pub const SO_TIMESTAMP: u32 = 29;
pub const SO_TIMESTAMPNS: u32 = 35;
pub const SO_TIMESTAMPING: u32 = 37;
pub const SO_RCVTIMEO: u32 = 20;
pub const SO_SNDTIMEO: u32 = 21;
pub const SCM_TIMESTAMP: u32 = 29;
pub const SCM_TIMESTAMPNS: u32 = 35;
pub const SCM_TIMESTAMPING: u32 = 37;
pub const __osockaddr_defined: u32 = 1;
pub const _NETINET_IN_H: u32 = 1;
pub const __USE_KERNEL_IPV6_DEFS: u32 = 0;
pub const IP_OPTIONS: u32 = 4;
pub const IP_HDRINCL: u32 = 3;
pub const IP_TOS: u32 = 1;
pub const IP_TTL: u32 = 2;
pub const IP_RECVOPTS: u32 = 6;
pub const IP_RETOPTS: u32 = 7;
pub const IP_MULTICAST_IF: u32 = 32;
pub const IP_MULTICAST_TTL: u32 = 33;
pub const IP_MULTICAST_LOOP: u32 = 34;
pub const IP_ADD_MEMBERSHIP: u32 = 35;
pub const IP_DROP_MEMBERSHIP: u32 = 36;
pub const IP_UNBLOCK_SOURCE: u32 = 37;
pub const IP_BLOCK_SOURCE: u32 = 38;
pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39;
pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40;
pub const IP_MSFILTER: u32 = 41;
pub const MCAST_JOIN_GROUP: u32 = 42;
pub const MCAST_BLOCK_SOURCE: u32 = 43;
pub const MCAST_UNBLOCK_SOURCE: u32 = 44;
pub const MCAST_LEAVE_GROUP: u32 = 45;
pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46;
pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47;
pub const MCAST_MSFILTER: u32 = 48;
pub const IP_MULTICAST_ALL: u32 = 49;
pub const IP_UNICAST_IF: u32 = 50;
pub const MCAST_EXCLUDE: u32 = 0;
pub const MCAST_INCLUDE: u32 = 1;
pub const IP_ROUTER_ALERT: u32 = 5;
pub const IP_PKTINFO: u32 = 8;
pub const IP_PKTOPTIONS: u32 = 9;
pub const IP_PMTUDISC: u32 = 10;
pub const IP_MTU_DISCOVER: u32 = 10;
pub const IP_RECVERR: u32 = 11;
pub const IP_RECVTTL: u32 = 12;
pub const IP_RECVTOS: u32 = 13;
pub const IP_MTU: u32 = 14;
pub const IP_FREEBIND: u32 = 15;
pub const IP_IPSEC_POLICY: u32 = 16;
pub const IP_XFRM_POLICY: u32 = 17;
pub const IP_PASSSEC: u32 = 18;
pub const IP_TRANSPARENT: u32 = 19;
pub const IP_ORIGDSTADDR: u32 = 20;
pub const IP_RECVORIGDSTADDR: u32 = 20;
pub const IP_MINTTL: u32 = 21;
pub const IP_NODEFRAG: u32 = 22;
pub const IP_CHECKSUM: u32 = 23;
pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24;
pub const IP_RECVFRAGSIZE: u32 = 25;
pub const IP_PMTUDISC_DONT: u32 = 0;
pub const IP_PMTUDISC_WANT: u32 = 1;
pub const IP_PMTUDISC_DO: u32 = 2;
pub const IP_PMTUDISC_PROBE: u32 = 3;
pub const IP_PMTUDISC_INTERFACE: u32 = 4;
pub const IP_PMTUDISC_OMIT: u32 = 5;
pub const SOL_IP: u32 = 0;
pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1;
pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1;
pub const IP_MAX_MEMBERSHIPS: u32 = 20;
pub const IPV6_ADDRFORM: u32 = 1;
pub const IPV6_2292PKTINFO: u32 = 2;
pub const IPV6_2292HOPOPTS: u32 = 3;
pub const IPV6_2292DSTOPTS: u32 = 4;
pub const IPV6_2292RTHDR: u32 = 5;
pub const IPV6_2292PKTOPTIONS: u32 = 6;
pub const IPV6_CHECKSUM: u32 = 7;
pub const IPV6_2292HOPLIMIT: u32 = 8;
pub const IPV6_NEXTHOP: u32 = 9;
pub const IPV6_AUTHHDR: u32 = 10;
pub const IPV6_UNICAST_HOPS: u32 = 16;
pub const IPV6_MULTICAST_IF: u32 = 17;
pub const IPV6_MULTICAST_HOPS: u32 = 18;
pub const IPV6_MULTICAST_LOOP: u32 = 19;
pub const IPV6_JOIN_GROUP: u32 = 20;
pub const IPV6_LEAVE_GROUP: u32 = 21;
pub const IPV6_ROUTER_ALERT: u32 = 22;
pub const IPV6_MTU_DISCOVER: u32 = 23;
pub const IPV6_MTU: u32 = 24;
pub const IPV6_RECVERR: u32 = 25;
pub const IPV6_V6ONLY: u32 = 26;
pub const IPV6_JOIN_ANYCAST: u32 = 27;
pub const IPV6_LEAVE_ANYCAST: u32 = 28;
pub const IPV6_MULTICAST_ALL: u32 = 29;
pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30;
pub const IPV6_IPSEC_POLICY: u32 = 34;
pub const IPV6_XFRM_POLICY: u32 = 35;
pub const IPV6_HDRINCL: u32 = 36;
pub const IPV6_RECVPKTINFO: u32 = 49;
pub const IPV6_PKTINFO: u32 = 50;
pub const IPV6_RECVHOPLIMIT: u32 = 51;
pub const IPV6_HOPLIMIT: u32 = 52;
pub const IPV6_RECVHOPOPTS: u32 = 53;
pub const IPV6_HOPOPTS: u32 = 54;
pub const IPV6_RTHDRDSTOPTS: u32 = 55;
pub const IPV6_RECVRTHDR: u32 = 56;
pub const IPV6_RTHDR: u32 = 57;
pub const IPV6_RECVDSTOPTS: u32 = 58;
pub const IPV6_DSTOPTS: u32 = 59;
pub const IPV6_RECVPATHMTU: u32 = 60;
pub const IPV6_PATHMTU: u32 = 61;
pub const IPV6_DONTFRAG: u32 = 62;
pub const IPV6_RECVTCLASS: u32 = 66;
pub const IPV6_TCLASS: u32 = 67;
pub const IPV6_AUTOFLOWLABEL: u32 = 70;
pub const IPV6_ADDR_PREFERENCES: u32 = 72;
pub const IPV6_MINHOPCOUNT: u32 = 73;
pub const IPV6_ORIGDSTADDR: u32 = 74;
pub const IPV6_RECVORIGDSTADDR: u32 = 74;
pub const IPV6_TRANSPARENT: u32 = 75;
pub const IPV6_UNICAST_IF: u32 = 76;
pub const IPV6_RECVFRAGSIZE: u32 = 77;
pub const IPV6_FREEBIND: u32 = 78;
pub const IPV6_ADD_MEMBERSHIP: u32 = 20;
pub const IPV6_DROP_MEMBERSHIP: u32 = 21;
pub const IPV6_RXHOPOPTS: u32 = 54;
pub const IPV6_RXDSTOPTS: u32 = 59;
pub const IPV6_PMTUDISC_DONT: u32 = 0;
pub const IPV6_PMTUDISC_WANT: u32 = 1;
pub const IPV6_PMTUDISC_DO: u32 = 2;
pub const IPV6_PMTUDISC_PROBE: u32 = 3;
pub const IPV6_PMTUDISC_INTERFACE: u32 = 4;
pub const IPV6_PMTUDISC_OMIT: u32 = 5;
pub const SOL_IPV6: u32 = 41;
pub const SOL_ICMPV6: u32 = 58;
pub const IPV6_RTHDR_LOOSE: u32 = 0;
pub const IPV6_RTHDR_STRICT: u32 = 1;
pub const IPV6_RTHDR_TYPE_0: u32 = 0;
pub const IN_CLASSA_NET: u32 = 4278190080;
pub const IN_CLASSA_NSHIFT: u32 = 24;
pub const IN_CLASSA_HOST: u32 = 16777215;
pub const IN_CLASSA_MAX: u32 = 128;
pub const IN_CLASSB_NET: u32 = 4294901760;
pub const IN_CLASSB_NSHIFT: u32 = 16;
pub const IN_CLASSB_HOST: u32 = 65535;
pub const IN_CLASSB_MAX: u32 = 65536;
pub const IN_CLASSC_NET: u32 = 4294967040;
pub const IN_CLASSC_NSHIFT: u32 = 8;
pub const IN_CLASSC_HOST: u32 = 255;
pub const IN_LOOPBACKNET: u32 = 127;
pub const INET_ADDRSTRLEN: u32 = 16;
pub const INET6_ADDRSTRLEN: u32 = 46;
pub const _BYTESWAP_H: u32 = 1;
pub const GNUNET_UTIL_VERSION: u32 = 655620;
pub const GNUNET_LOG_CALL_STATUS: i32 = -1;
pub const GNUNET_MAX_MALLOC_CHECKED: u32 = 41943040;
pub const _STRING_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const GPG_ERROR_H: u32 = 1;
pub const GPGRT_H: u32 = 1;
pub const GPG_ERROR_VERSION: &'static [u8; 5usize] = b"1.38\0";
pub const GPGRT_VERSION: &'static [u8; 5usize] = b"1.38\0";
pub const GPG_ERROR_VERSION_NUMBER: u32 = 75264;
pub const GPGRT_VERSION_NUMBER: u32 = 75264;
pub const GPG_ERR_SYSTEM_ERROR: u32 = 32768;
pub const GPG_ERR_SOURCE_SHIFT: u32 = 24;
pub const GPGRT_HAVE_MACRO_FUNCTION: u32 = 1;
pub const GPG_ERR_INITIALIZED: u32 = 1;
pub const GPGRT_LOG_WITH_PREFIX: u32 = 1;
pub const GPGRT_LOG_WITH_TIME: u32 = 2;
pub const GPGRT_LOG_WITH_PID: u32 = 4;
pub const GPGRT_LOG_RUN_DETACHED: u32 = 256;
pub const GPGRT_LOG_NO_REGISTRY: u32 = 512;
pub const GPGRT_SPAWN_NONBLOCK: u32 = 16;
pub const GPGRT_SPAWN_RUN_ASFW: u32 = 64;
pub const GPGRT_SPAWN_DETACHED: u32 = 128;
pub const GPGRT_CONFDIR_USER: u32 = 1;
pub const GPGRT_CONFDIR_SYS: u32 = 2;
pub const _SYS_TIME_H: u32 = 1;
pub const GCRYPT_VERSION: &'static [u8; 6usize] = b"1.8.8\0";
pub const GCRYPT_VERSION_NUMBER: u32 = 67592;
pub const GCRY_THREAD_OPTION_DEFAULT: u32 = 0;
pub const GCRY_THREAD_OPTION_USER: u32 = 1;
pub const GCRY_THREAD_OPTION_PTH: u32 = 2;
pub const GCRY_THREAD_OPTION_PTHREAD: u32 = 3;
pub const GCRY_THREAD_OPTION_VERSION: u32 = 1;
pub const GCRY_GCM_BLOCK_LEN: u32 = 16;
pub const GCRY_CCM_BLOCK_LEN: u32 = 16;
pub const GCRY_OCB_BLOCK_LEN: u32 = 16;
pub const GCRY_XTS_BLOCK_LEN: u32 = 16;
pub const GCRY_PK_USAGE_SIGN: u32 = 1;
pub const GCRY_PK_USAGE_ENCR: u32 = 2;
pub const GCRY_PK_USAGE_CERT: u32 = 4;
pub const GCRY_PK_USAGE_AUTH: u32 = 8;
pub const GCRY_PK_USAGE_UNKN: u32 = 128;
pub const GCRY_PK_GET_PUBKEY: u32 = 1;
pub const GCRY_PK_GET_SECKEY: u32 = 2;
pub const GCRY_PRIME_CHECK_AT_FINISH: u32 = 0;
pub const GCRY_PRIME_CHECK_AT_GOT_PRIME: u32 = 1;
pub const GCRY_PRIME_CHECK_AT_MAYBE_PRIME: u32 = 2;
pub const GCRY_PRIME_FLAG_SECRET: u32 = 1;
pub const GCRY_PRIME_FLAG_SPECIAL_FACTOR: u32 = 2;
pub const GNUNET_CRYPTO_ECC_SIGNATURE_DATA_ENCODING_LENGTH: u32 = 126;
pub const GNUNET_CRYPTO_AES_KEY_LENGTH: u32 = 32;
pub const GNUNET_CRYPTO_HASH_LENGTH: u32 = 64;
pub const GNUNET_CRYPTO_PKEY_ASCII_LENGTH: u32 = 52;
pub const GNUNET_CRYPTO_PAILLIER_BITS: u32 = 2048;
pub const EXTRACTOR_VERSION: u32 = 17498112;
pub const EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME: u32 = 180;
pub const GNUNET_MQ_PREFERENCE_COUNT: u32 = 4;
pub const GNUNET_MESSAGE_TYPE_TEST: u32 = 0;
pub const GNUNET_MESSAGE_TYPE_REQUEST_AGPL: u32 = 1;
pub const GNUNET_MESSAGE_TYPE_RESPONSE_AGPL: u32 = 2;
pub const GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST: u32 = 4;
pub const GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE: u32 = 5;
pub const GNUNET_MESSAGE_TYPE_DUMMY: u32 = 6;
pub const GNUNET_MESSAGE_TYPE_DUMMY2: u32 = 7;
pub const GNUNET_MESSAGE_TYPE_ARM_START: u32 = 8;
pub const GNUNET_MESSAGE_TYPE_ARM_STOP: u32 = 9;
pub const GNUNET_MESSAGE_TYPE_ARM_RESULT: u32 = 10;
pub const GNUNET_MESSAGE_TYPE_ARM_STATUS: u32 = 11;
pub const GNUNET_MESSAGE_TYPE_ARM_LIST: u32 = 12;
pub const GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT: u32 = 13;
pub const GNUNET_MESSAGE_TYPE_ARM_MONITOR: u32 = 14;
pub const GNUNET_MESSAGE_TYPE_ARM_TEST: u32 = 15;
pub const GNUNET_MESSAGE_TYPE_HELLO_LEGACY: u32 = 16;
pub const GNUNET_MESSAGE_TYPE_HELLO: u32 = 17;
pub const GNUNET_MESSAGE_TYPE_FRAGMENT: u32 = 18;
pub const GNUNET_MESSAGE_TYPE_FRAGMENT_ACK: u32 = 19;
pub const GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER: u32 = 39;
pub const GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER: u32 = 40;
pub const GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL: u32 = 41;
pub const GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT: u32 = 42;
pub const GNUNET_MESSAGE_TYPE_WLAN_DATA: u32 = 43;
pub const GNUNET_MESSAGE_TYPE_DV_RECV: u32 = 44;
pub const GNUNET_MESSAGE_TYPE_DV_SEND: u32 = 45;
pub const GNUNET_MESSAGE_TYPE_DV_SEND_ACK: u32 = 46;
pub const GNUNET_MESSAGE_TYPE_DV_ROUTE: u32 = 47;
pub const GNUNET_MESSAGE_TYPE_DV_START: u32 = 48;
pub const GNUNET_MESSAGE_TYPE_DV_CONNECT: u32 = 49;
pub const GNUNET_MESSAGE_TYPE_DV_DISCONNECT: u32 = 50;
pub const GNUNET_MESSAGE_TYPE_DV_SEND_NACK: u32 = 51;
pub const GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED: u32 = 52;
pub const GNUNET_MESSAGE_TYPE_DV_BOX: u32 = 53;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_XU_MESSAGE: u32 = 55;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE: u32 = 56;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK: u32 = 57;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE: u32 = 60;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME: u32 = 61;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ATS: u32 = 62;
pub const GNUNET_MESSAGE_TYPE_NAT_TEST: u32 = 63;
pub const GNUNET_MESSAGE_TYPE_CORE_INIT: u32 = 64;
pub const GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY: u32 = 65;
pub const GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: u32 = 67;
pub const GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: u32 = 68;
pub const GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE: u32 = 69;
pub const GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND: u32 = 70;
pub const GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND: u32 = 71;
pub const GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST: u32 = 74;
pub const GNUNET_MESSAGE_TYPE_CORE_SEND_READY: u32 = 75;
pub const GNUNET_MESSAGE_TYPE_CORE_SEND: u32 = 76;
pub const GNUNET_MESSAGE_TYPE_CORE_MONITOR_PEERS: u32 = 78;
pub const GNUNET_MESSAGE_TYPE_CORE_MONITOR_NOTIFY: u32 = 79;
pub const GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE: u32 = 82;
pub const GNUNET_MESSAGE_TYPE_CORE_PING: u32 = 83;
pub const GNUNET_MESSAGE_TYPE_CORE_PONG: u32 = 84;
pub const GNUNET_MESSAGE_TYPE_CORE_HANGUP: u32 = 85;
pub const GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP: u32 = 86;
pub const GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP: u32 = 87;
pub const GNUNET_MESSAGE_TYPE_CORE_EPHEMERAL_KEY: u32 = 88;
pub const GNUNET_MESSAGE_TYPE_CORE_CONFIRM_TYPE_MAP: u32 = 89;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE: u32 = 92;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE: u32 = 93;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_STATUS: u32 = 94;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_PUT: u32 = 95;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_GET: u32 = 97;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION: u32 = 98;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY: u32 = 99;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_DATA: u32 = 100;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END: u32 = 101;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE: u32 = 102;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_DROP: u32 = 103;
pub const GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY: u32 = 104;
pub const GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGN: u32 = 126;
pub const GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGNATURE: u32 = 127;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_START: u32 = 128;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK: u32 = 129;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED: u32 = 130;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET: u32 = 131;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY: u32 = 132;
pub const GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END: u32 = 133;
pub const GNUNET_MESSAGE_TYPE_FS_UNINDEX: u32 = 134;
pub const GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK: u32 = 135;
pub const GNUNET_MESSAGE_TYPE_FS_START_SEARCH: u32 = 136;
pub const GNUNET_MESSAGE_TYPE_FS_GET: u32 = 137;
pub const GNUNET_MESSAGE_TYPE_FS_PUT: u32 = 138;
pub const GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP: u32 = 139;
pub const GNUNET_MESSAGE_TYPE_FS_CADET_QUERY: u32 = 140;
pub const GNUNET_MESSAGE_TYPE_FS_CADET_REPLY: u32 = 141;
pub const GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT: u32 = 142;
pub const GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET: u32 = 143;
pub const GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP: u32 = 144;
pub const GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT: u32 = 145;
pub const GNUNET_MESSAGE_TYPE_DHT_P2P_PUT: u32 = 146;
pub const GNUNET_MESSAGE_TYPE_DHT_P2P_GET: u32 = 147;
pub const GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT: u32 = 148;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET: u32 = 149;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP: u32 = 150;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT: u32 = 151;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT_RESP: u32 = 152;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_START: u32 = 153;
pub const GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP: u32 = 154;
pub const GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN: u32 = 156;
pub const GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT: u32 = 160;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_SET: u32 = 168;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_GET: u32 = 169;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_VALUE: u32 = 170;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_END: u32 = 171;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_WATCH: u32 = 172;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE: u32 = 173;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT: u32 = 174;
pub const GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT_CONFIRM: u32 = 175;
pub const GNUNET_MESSAGE_TYPE_VPN_HELPER: u32 = 185;
pub const GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE: u32 = 190;
pub const GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET: u32 = 191;
pub const GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN: u32 = 192;
pub const GNUNET_MESSAGE_TYPE_VPN_DNS_TO_INTERNET: u32 = 193;
pub const GNUNET_MESSAGE_TYPE_VPN_DNS_FROM_INTERNET: u32 = 194;
pub const GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START: u32 = 195;
pub const GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START: u32 = 196;
pub const GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_EXIT: u32 = 197;
pub const GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_VPN: u32 = 198;
pub const GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE: u32 = 199;
pub const GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET: u32 = 200;
pub const GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY: u32 = 201;
pub const GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP: u32 = 202;
pub const GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_SERVICE: u32 = 203;
pub const GNUNET_MESSAGE_TYPE_VPN_CLIENT_USE_IP: u32 = 204;
pub const GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT: u32 = 211;
pub const GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST: u32 = 212;
pub const GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE: u32 = 213;
pub const GNUNET_MESSAGE_TYPE_DNS_HELPER: u32 = 214;
pub const GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST: u32 = 300;
pub const GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION: u32 = 301;
pub const GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION: u32 = 302;
pub const GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION: u32 = 303;
pub const GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST: u32 = 304;
pub const GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT: u32 = 305;
pub const GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION: u32 = 306;
pub const GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION: u32 = 307;
pub const GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION: u32 = 308;
pub const GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST: u32 = 309;
pub const GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION: u32 = 310;
pub const GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT: u32 = 311;
pub const GNUNET_MESSAGE_TYPE_NSE_START: u32 = 321;
pub const GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD: u32 = 322;
pub const GNUNET_MESSAGE_TYPE_NSE_ESTIMATE: u32 = 323;
pub const GNUNET_MESSAGE_TYPE_PEERINFO_GET: u32 = 330;
pub const GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL: u32 = 331;
pub const GNUNET_MESSAGE_TYPE_PEERINFO_INFO: u32 = 332;
pub const GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END: u32 = 333;
pub const GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY: u32 = 334;
pub const GNUNET_MESSAGE_TYPE_ATS_START: u32 = 340;
pub const GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS: u32 = 341;
pub const GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL: u32 = 342;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE: u32 = 343;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED: u32 = 344;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION: u32 = 345;
pub const GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION: u32 = 346;
pub const GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST: u32 = 347;
pub const GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT: u32 = 348;
pub const GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE: u32 = 349;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE: u32 = 350;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESS_ADD: u32 = 353;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_REQUEST: u32 = 354;
pub const GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE: u32 = 355;
pub const GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_FEEDBACK: u32 = 356;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_START: u32 = 360;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT: u32 = 361;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT: u32 = 362;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SEND: u32 = 363;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK: u32 = 364;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_RECV: u32 = 365;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA: u32 = 366;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_RECV_OK: u32 = 366;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING: u32 = 367;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY: u32 = 368;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT: u32 = 369;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY: u32 = 370;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY: u32 = 371;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_PING: u32 = 372;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_PONG: u32 = 373;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_SYN: u32 = 375;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_SYN_ACK: u32 = 376;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK: u32 = 377;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT: u32 = 378;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_QUOTA: u32 = 379;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_REQUEST: u32 = 380;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE: u32 = 381;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE_RESPONSE: u32 = 382;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_RESPONSE: u32 = 383;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON: u32 = 384;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_TRAFFIC_METRIC: u32 = 385;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_START: u32 = 388;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT: u32 = 389;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_SYNC: u32 = 390;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_RESPONSE_END: u32 = 391;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_FILE: u32 = 420;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY: u32 = 421;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR: u32 = 422;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_SKIP_FILE: u32 = 423;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE: u32 = 424;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA: u32 = 425;
pub const GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED: u32 = 426;
pub const GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK: u32 = 431;
pub const GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE: u32 = 432;
pub const GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE: u32 = 433;
pub const GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE: u32 = 434;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE: u32 = 435;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE: u32 = 436;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP: u32 = 437;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE: u32 = 438;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME: u32 = 439;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE: u32 = 440;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START: u32 = 441;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC: u32 = 442;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT: u32 = 443;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT: u32 = 444;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START: u32 = 445;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT: u32 = 447;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP: u32 = 448;
pub const GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT_END: u32 = 449;
pub const GNUNET_MESSAGE_TYPE_LOCKMANAGER_ACQUIRE: u32 = 450;
pub const GNUNET_MESSAGE_TYPE_LOCKMANAGER_RELEASE: u32 = 451;
pub const GNUNET_MESSAGE_TYPE_LOCKMANAGER_SUCCESS: u32 = 452;
pub const GNUNET_MESSAGE_TYPE_TESTBED_INIT: u32 = 460;
pub const GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST: u32 = 461;
pub const GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST_SUCCESS: u32 = 462;
pub const GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS: u32 = 463;
pub const GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER: u32 = 464;
pub const GNUNET_MESSAGE_TYPE_TESTBED_RECONFIGURE_PEER: u32 = 465;
pub const GNUNET_MESSAGE_TYPE_TESTBED_START_PEER: u32 = 466;
pub const GNUNET_MESSAGE_TYPE_TESTBED_STOP_PEER: u32 = 467;
pub const GNUNET_MESSAGE_TYPE_TESTBED_DESTROY_PEER: u32 = 468;
pub const GNUNET_MESSAGE_TYPE_TESTBED_CONFIGURE_UNDERLAY_LINK: u32 = 469;
pub const GNUNET_MESSAGE_TYPE_TESTBED_OVERLAY_CONNECT: u32 = 470;
pub const GNUNET_MESSAGE_TYPE_TESTBED_PEER_EVENT: u32 = 471;
pub const GNUNET_MESSAGE_TYPE_TESTBED_PEER_CONNECT_EVENT: u32 = 472;
pub const GNUNET_MESSAGE_TYPE_TESTBED_OPERATION_FAIL_EVENT: u32 = 473;
pub const GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER_SUCCESS: u32 = 474;
pub const GNUNET_MESSAGE_TYPE_TESTBED_GENERIC_OPERATION_SUCCESS: u32 = 475;
pub const GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_INFORMATION: u32 = 476;
pub const GNUNET_MESSAGE_TYPE_TESTBED_PEER_INFORMATION: u32 = 477;
pub const GNUNET_MESSAGE_TYPE_TESTBED_REMOTE_OVERLAY_CONNECT: u32 = 478;
pub const GNUNET_MESSAGE_TYPE_TESTBED_GET_SLAVE_CONFIGURATION: u32 = 479;
pub const GNUNET_MESSAGE_TYPE_TESTBED_SLAVE_CONFIGURATION: u32 = 480;
pub const GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS_RESULT: u32 = 481;
pub const GNUNET_MESSAGE_TYPE_TESTBED_SHUTDOWN_PEERS: u32 = 482;
pub const GNUNET_MESSAGE_TYPE_TESTBED_MANAGE_PEER_SERVICE: u32 = 483;
pub const GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_INIT: u32 = 484;
pub const GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_CANCEL: u32 = 485;
pub const GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS: u32 = 486;
pub const GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_WAIT: u32 = 487;
pub const GNUNET_MESSAGE_TYPE_TESTBED_MAX: u32 = 488;
pub const GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT: u32 = 495;
pub const GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY: u32 = 496;
pub const GNUNET_MESSAGE_TYPE_GNS_LOOKUP: u32 = 500;
pub const GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT: u32 = 501;
pub const GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP: u32 = 503;
pub const GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP_RESULT: u32 = 504;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_JOIN: u32 = 520;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_INSERT: u32 = 521;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_BEGIN: u32 = 522;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_RECEIVED_ELEMENT: u32 = 523;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE: u32 = 524;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE_DONE: u32 = 525;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_ACK: u32 = 540;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_DELTA_ESTIMATE: u32 = 541;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_DIFFERENCE_DIGEST: u32 = 542;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS: u32 = 543;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS_REQUEST: u32 = 544;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS_REPORT: u32 = 545;
pub const GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT: u32 = 547;
pub const GNUNET_MESSAGE_TYPE_SETU_CANCEL: u32 = 550;
pub const GNUNET_MESSAGE_TYPE_SETU_ADD: u32 = 551;
pub const GNUNET_MESSAGE_TYPE_SETU_CREATE: u32 = 552;
pub const GNUNET_MESSAGE_TYPE_SETU_RESULT: u32 = 553;
pub const GNUNET_MESSAGE_TYPE_SETU_EVALUATE: u32 = 554;
pub const GNUNET_MESSAGE_TYPE_SETU_LISTEN: u32 = 555;
pub const GNUNET_MESSAGE_TYPE_SETU_REJECT: u32 = 556;
pub const GNUNET_MESSAGE_TYPE_SETU_ACCEPT: u32 = 557;
pub const GNUNET_MESSAGE_TYPE_SETU_REQUEST: u32 = 558;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_REQUEST_FULL: u32 = 559;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_DEMAND: u32 = 560;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_INQUIRY: u32 = 561;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_OFFER: u32 = 562;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_OPERATION_REQUEST: u32 = 563;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_SE: u32 = 564;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_IBF: u32 = 565;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_ELEMENTS: u32 = 566;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_DONE: u32 = 568;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_SEC: u32 = 569;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_FULL_DONE: u32 = 570;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_FULL_ELEMENT: u32 = 571;
pub const GNUNET_MESSAGE_TYPE_SETU_P2P_OVER: u32 = 572;
pub const GNUNET_MESSAGE_TYPE_SETI_CANCEL: u32 = 580;
pub const GNUNET_MESSAGE_TYPE_SETI_ADD: u32 = 581;
pub const GNUNET_MESSAGE_TYPE_SETI_CREATE: u32 = 582;
pub const GNUNET_MESSAGE_TYPE_SETI_RESULT: u32 = 583;
pub const GNUNET_MESSAGE_TYPE_SETI_EVALUATE: u32 = 584;
pub const GNUNET_MESSAGE_TYPE_SETI_LISTEN: u32 = 585;
pub const GNUNET_MESSAGE_TYPE_SETI_REJECT: u32 = 586;
pub const GNUNET_MESSAGE_TYPE_SETI_ACCEPT: u32 = 587;
pub const GNUNET_MESSAGE_TYPE_SETI_REQUEST: u32 = 588;
pub const GNUNET_MESSAGE_TYPE_SETI_P2P_ELEMENT_INFO: u32 = 591;
pub const GNUNET_MESSAGE_TYPE_SETI_P2P_BF: u32 = 592;
pub const GNUNET_MESSAGE_TYPE_SETI_P2P_DONE: u32 = 593;
pub const GNUNET_MESSAGE_TYPE_SETI_P2P_OPERATION_REQUEST: u32 = 594;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_REQUEST_FULL: u32 = 565;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_DEMAND: u32 = 566;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_INQUIRY: u32 = 567;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_OFFER: u32 = 568;
pub const GNUNET_MESSAGE_TYPE_SET_REJECT: u32 = 569;
pub const GNUNET_MESSAGE_TYPE_SET_CANCEL: u32 = 570;
pub const GNUNET_MESSAGE_TYPE_SET_ITER_ACK: u32 = 571;
pub const GNUNET_MESSAGE_TYPE_SET_RESULT: u32 = 572;
pub const GNUNET_MESSAGE_TYPE_SET_ADD: u32 = 573;
pub const GNUNET_MESSAGE_TYPE_SET_REMOVE: u32 = 574;
pub const GNUNET_MESSAGE_TYPE_SET_LISTEN: u32 = 575;
pub const GNUNET_MESSAGE_TYPE_SET_ACCEPT: u32 = 576;
pub const GNUNET_MESSAGE_TYPE_SET_EVALUATE: u32 = 577;
pub const GNUNET_MESSAGE_TYPE_SET_CONCLUDE: u32 = 578;
pub const GNUNET_MESSAGE_TYPE_SET_REQUEST: u32 = 579;
pub const GNUNET_MESSAGE_TYPE_SET_CREATE: u32 = 580;
pub const GNUNET_MESSAGE_TYPE_SET_P2P_OPERATION_REQUEST: u32 = 581;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_SE: u32 = 582;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_IBF: u32 = 583;
pub const GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS: u32 = 584;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_DONE: u32 = 586;
pub const GNUNET_MESSAGE_TYPE_SET_ITER_REQUEST: u32 = 587;
pub const GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT: u32 = 588;
pub const GNUNET_MESSAGE_TYPE_SET_ITER_DONE: u32 = 589;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_SEC: u32 = 590;
pub const GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_ELEMENT_INFO: u32 = 591;
pub const GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_BF: u32 = 592;
pub const GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_DONE: u32 = 593;
pub const GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_PREPARE: u32 = 594;
pub const GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE: u32 = 595;
pub const GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT: u32 = 596;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_FULL_DONE: u32 = 597;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_FULL_ELEMENT: u32 = 598;
pub const GNUNET_MESSAGE_TYPE_SET_UNION_P2P_OVER: u32 = 599;
pub const GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_MSG: u32 = 600;
pub const GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_ACK: u32 = 601;
pub const GNUNET_MESSAGE_TYPE_REGEX_ANNOUNCE: u32 = 620;
pub const GNUNET_MESSAGE_TYPE_REGEX_SEARCH: u32 = 621;
pub const GNUNET_MESSAGE_TYPE_REGEX_RESULT: u32 = 622;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_START: u32 = 624;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE: u32 = 625;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE: u32 = 626;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_GET_DEFAULT: u32 = 627;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT: u32 = 628;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_CREATE: u32 = 629;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_RENAME: u32 = 630;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_DELETE: u32 = 631;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_LOOKUP: u32 = 632;
pub const GNUNET_MESSAGE_TYPE_IDENTITY_LOOKUP_BY_SUFFIX: u32 = 633;
pub const GNUNET_MESSAGE_TYPE_REVOCATION_QUERY: u32 = 636;
pub const GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE: u32 = 637;
pub const GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE: u32 = 638;
pub const GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE: u32 = 639;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE: u32 = 640;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB: u32 = 641;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MULTIPART_ALICE: u32 = 642;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MULTIPART_BOB: u32 = 643;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION: u32 = 644;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA: u32 = 645;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA: u32 = 647;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA_MULTIPART: u32 = 648;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT: u32 = 649;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_SESSION_INITIALIZATION: u32 = 650;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_ALICE_CRYPTODATA: u32 = 651;
pub const GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_BOB_CRYPTODATA: u32 = 652;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_STORE: u32 = 660;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_TEST: u32 = 661;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_STORE: u32 = 662;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_GET: u32 = 663;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET: u32 = 664;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET_FRAGMENT: u32 = 665;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_COUNTERS_GET: u32 = 666;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_MODIFY: u32 = 668;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_SYNC: u32 = 669;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_RESET: u32 = 670;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_HASH_UPDATE: u32 = 671;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET: u32 = 672;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET_PREFIX: u32 = 673;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE: u32 = 674;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_FRAGMENT: u32 = 675;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_COUNTERS: u32 = 676;
pub const GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_STATE: u32 = 677;
pub const GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE: u32 = 680;
pub const GNUNET_MESSAGE_TYPE_PSYC_MASTER_START: u32 = 681;
pub const GNUNET_MESSAGE_TYPE_PSYC_MASTER_START_ACK: u32 = 682;
pub const GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN: u32 = 683;
pub const GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN_ACK: u32 = 684;
pub const GNUNET_MESSAGE_TYPE_PSYC_PART_REQUEST: u32 = 685;
pub const GNUNET_MESSAGE_TYPE_PSYC_PART_ACK: u32 = 686;
pub const GNUNET_MESSAGE_TYPE_PSYC_JOIN_REQUEST: u32 = 687;
pub const GNUNET_MESSAGE_TYPE_PSYC_JOIN_DECISION: u32 = 688;
pub const GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE: u32 = 689;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE: u32 = 691;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_HEADER: u32 = 692;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD: u32 = 693;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER: u32 = 694;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT: u32 = 695;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_DATA: u32 = 696;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_END: u32 = 697;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_CANCEL: u32 = 698;
pub const GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_ACK: u32 = 699;
pub const GNUNET_MESSAGE_TYPE_PSYC_HISTORY_REPLAY: u32 = 701;
pub const GNUNET_MESSAGE_TYPE_PSYC_HISTORY_RESULT: u32 = 702;
pub const GNUNET_MESSAGE_TYPE_PSYC_STATE_GET: u32 = 703;
pub const GNUNET_MESSAGE_TYPE_PSYC_STATE_GET_PREFIX: u32 = 704;
pub const GNUNET_MESSAGE_TYPE_PSYC_STATE_RESULT: u32 = 705;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO: u32 = 730;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER: u32 = 731;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICK_UP: u32 = 732;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP: u32 = 733;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL: u32 = 734;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RING: u32 = 735;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND: u32 = 736;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RESUME: u32 = 737;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP: u32 = 738;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO: u32 = 739;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RING: u32 = 740;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_HANG_UP: u32 = 741;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_PICK_UP: u32 = 742;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_SUSPEND: u32 = 743;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RESUME: u32 = 744;
pub const GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO: u32 = 745;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_ORIGIN_START: u32 = 750;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_MEMBER_JOIN: u32 = 751;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_REQUEST: u32 = 752;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION: u32 = 753;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_PART_REQUEST: u32 = 754;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_PART_ACK: u32 = 755;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_GROUP_END: u32 = 756;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE: u32 = 757;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_REQUEST: u32 = 758;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_FRAGMENT_ACK: u32 = 759;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST: u32 = 760;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_RESPONSE: u32 = 761;
pub const GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_RESPONSE_END: u32 = 762;
pub const GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_GENERATE: u32 = 780;
pub const GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT: u32 = 781;
pub const GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_DONE: u32 = 782;
pub const GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_SECRET_READY: u32 = 783;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_STORE: u32 = 820;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE: u32 = 821;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_RECORD: u32 = 822;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END: u32 = 823;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH: u32 = 824;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_RECORD: u32 = 825;
pub const GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_CANCEL: u32 = 826;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_RESULT_CODE: u32 = 840;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER: u32 = 841;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER_ACK: u32 = 842;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER: u32 = 843;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_BY_NAME: u32 = 844;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_ACK: u32 = 845;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_ENTRY_REQUEST: u32 = 846;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_ENTRY_DECISION: u32 = 847;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE: u32 = 848;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE_ACK: u32 = 849;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_ZONE_ADD_PLACE: u32 = 850;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_ZONE_ADD_NYM: u32 = 851;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_CONNECT: u32 = 852;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_DETACH: u32 = 853;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_EGO: u32 = 854;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_EGO_END: u32 = 855;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_PLACE: u32 = 856;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_APP_PLACE_END: u32 = 857;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_MSG_PROC_SET: u32 = 858;
pub const GNUNET_MESSAGE_TYPE_SOCIAL_MSG_PROC_CLEAR: u32 = 859;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP: u32 = 880;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_RESULT: u32 = 881;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR: u32 = 882;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_NOTIFY_NEW_SUCCESSOR: u32 = 883;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR_RESULT: u32 = 884;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_GET_RESULT: u32 = 885;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_REJECTION: u32 = 886;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_TEARDOWN: u32 = 887;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_ADD_TRAIL: u32 = 888;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_PUT: u32 = 890;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_GET: u32 = 891;
pub const GNUNET_MESSAGE_TYPE_XDHT_P2P_NOTIFY_SUCCESSOR_CONFIRMATION: u32 = 892;
pub const GNUNET_MESSAGE_TYPE_WDHT_RANDOM_WALK: u32 = 910;
pub const GNUNET_MESSAGE_TYPE_WDHT_RANDOM_WALK_RESPONSE: u32 = 911;
pub const GNUNET_MESSAGE_TYPE_WDHT_TRAIL_DESTROY: u32 = 912;
pub const GNUNET_MESSAGE_TYPE_WDHT_TRAIL_ROUTE: u32 = 913;
pub const GNUNET_MESSAGE_TYPE_WDHT_SUCCESSOR_FIND: u32 = 914;
pub const GNUNET_MESSAGE_TYPE_WDHT_GET: u32 = 915;
pub const GNUNET_MESSAGE_TYPE_WDHT_PUT: u32 = 916;
pub const GNUNET_MESSAGE_TYPE_WDHT_GET_RESULT: u32 = 917;
pub const GNUNET_MESSAGE_TYPE_RPS_PP_CHECK_LIVE: u32 = 950;
pub const GNUNET_MESSAGE_TYPE_RPS_PP_PUSH: u32 = 951;
pub const GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST: u32 = 952;
pub const GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REPLY: u32 = 953;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_SEED: u32 = 954;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_SUB_START: u32 = 956;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_SUB_STOP: u32 = 957;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_STORE: u32 = 961;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_SUCCESS_RESPONSE: u32 = 962;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_START: u32 = 963;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP: u32 = 964;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT: u32 = 965;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_RESULT: u32 = 966;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ISSUE_TICKET: u32 = 967;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT: u32 = 968;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET: u32 = 969;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET_RESULT: u32 = 970;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET: u32 = 971;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET_RESULT: u32 = 972;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_START: u32 = 973;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_STOP: u32 = 974;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_NEXT: u32 = 975;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_DELETE: u32 = 976;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_STORE: u32 = 977;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_DELETE: u32 = 978;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT: u32 = 979;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_START: u32 = 980;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_STOP: u32 = 981;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_NEXT: u32 = 982;
pub const GNUNET_MESSAGE_TYPE_ABD_VERIFY: u32 = 991;
pub const GNUNET_MESSAGE_TYPE_ABD_VERIFY_RESULT: u32 = 992;
pub const GNUNET_MESSAGE_TYPE_ABD_COLLECT: u32 = 993;
pub const GNUNET_MESSAGE_TYPE_ABD_COLLECT_RESULT: u32 = 994;
pub const GNUNET_MESSAGE_TYPE_ABD_INTERMEDIATE_RESULT: u32 = 995;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE: u32 = 1000;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE_ACK: u32 = 1001;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN: u32 = 1002;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY: u32 = 1003;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_PATH_CHANGED_UNIMPLEMENTED: u32 = 1004;
pub const GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK: u32 = 1005;
pub const GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL: u32 = 1006;
pub const GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX: u32 = 1007;
pub const GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED: u32 = 1008;
pub const GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX_AUTH: u32 = 1009;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA: u32 = 1010;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA_ACK: u32 = 1011;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_KEEPALIVE: u32 = 1012;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN: u32 = 1013;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY: u32 = 1014;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK: u32 = 1015;
pub const GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_NACK_DEPRECATED: u32 = 1016;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA: u32 = 1020;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK: u32 = 1021;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN: u32 = 1022;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE: u32 = 1023;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE: u32 = 1024;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY: u32 = 1025;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_CHANNEL: u32 = 1030;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL: u32 = 1031;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL_END: u32 = 1032;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_PEERS: u32 = 1033;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS: u32 = 1034;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS_END: u32 = 1035;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_PATH: u32 = 1036;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PATH: u32 = 1037;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PATH_END: u32 = 1038;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_TUNNELS: u32 = 1039;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS: u32 = 1040;
pub const GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS_END: u32 = 1041;
pub const GNUNET_MESSAGE_TYPE_CADET_DROP_CADET_MESSAGE: u32 = 1042;
pub const GNUNET_MESSAGE_TYPE_CADET_CLI: u32 = 1059;
pub const GNUNET_MESSAGE_TYPE_NAT_REGISTER: u32 = 1060;
pub const GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN: u32 = 1061;
pub const GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL: u32 = 1062;
pub const GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED: u32 = 1063;
pub const GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE: u32 = 1064;
pub const GNUNET_MESSAGE_TYPE_NAT_AUTO_REQUEST_CFG: u32 = 1067;
pub const GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT: u32 = 1068;
pub const GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_CREATE: u32 = 1110;
pub const GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_JOIN: u32 = 1111;
pub const GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_OUTCOME: u32 = 1112;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_REQUEST: u32 = 1130;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_REPLY: u32 = 1131;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_CANCEL: u32 = 1132;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REQUEST: u32 = 1133;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REPLY: u32 = 1134;
pub const GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_CANCEL: u32 = 1135;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ADD_ADDRESS: u32 = 1200;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_DEL_ADDRESS: u32 = 1201;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG: u32 = 1202;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG_ACK: u32 = 1203;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_SETUP: u32 = 1204;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_TEARDOWN: u32 = 1205;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE: u32 = 1206;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_OK: u32 = 1207;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL: u32 = 1208;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG: u32 = 1209;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG_ACK: u32 = 1210;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_NEW_COMMUNICATOR: u32 = 1211;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL: u32 = 1212;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_BACKCHANNEL_ENCAPSULATION: u32 = 1213;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT: u32 = 1214;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX: u32 = 1216;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK: u32 = 1217;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_DV_LEARN: u32 = 1218;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_DV_BOX: u32 = 1219;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL_INCOMING: u32 = 1220;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_FLOW_CONTROL: u32 = 1221;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_UPDATE: u32 = 1222;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_START: u32 = 1250;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_DATA: u32 = 1251;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_END: u32 = 1252;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_KX_CONFIRMATION: u32 = 1275;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_FC_LIMITS: u32 = 1276;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST: u32 = 1300;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST_CANCEL: u32 = 1301;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_HELLO_VALIDATION: u32 = 1302;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_VALIDATION_CHALLENGE: u32 = 1303;
pub const GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_VALIDATION_RESPONSE: u32 = 1304;
pub const GNUNET_MESSAGE_TYPE_ATS_SUGGEST: u32 = 1400;
pub const GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL: u32 = 1401;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD: u32 = 1402;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY: u32 = 1403;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE: u32 = 1404;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL: u32 = 1405;
pub const GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION: u32 = 1406;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_REKEY: u32 = 1450;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_BOX: u32 = 1451;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_FINISH: u32 = 1452;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_CONFIRMATION_ACK: u32 = 1453;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_ACK: u32 = 1460;
pub const GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_PAD: u32 = 1461;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_DELETE: u32 = 1500;
pub const GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_RESULT: u32 = 1501;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_CREATE: u32 = 1600;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_UPDATE: u32 = 1601;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_DESTROY: u32 = 1602;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_NAME: u32 = 1603;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_SET_NAME: u32 = 1604;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_KEY: u32 = 1605;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_MEMBER_ID: u32 = 1606;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_OPEN: u32 = 1610;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_ENTRY: u32 = 1611;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_CLOSE: u32 = 1612;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_SEND_MESSAGE: u32 = 1614;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_RECV_MESSAGE: u32 = 1615;
pub const GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_GET_MESSAGE: u32 = 1616;
pub const GNUNET_MESSAGE_TYPE_ALL: u32 = 65535;
pub const __NETINET_IP_H: u32 = 1;
pub const IP_RF: u32 = 32768;
pub const IP_DF: u32 = 16384;
pub const IP_MF: u32 = 8192;
pub const IP_OFFMASK: u32 = 8191;
pub const IPVERSION: u32 = 4;
pub const IP_MAXPACKET: u32 = 65535;
pub const IPTOS_ECN_MASK: u32 = 3;
pub const IPTOS_ECN_NOT_ECT: u32 = 0;
pub const IPTOS_ECN_ECT1: u32 = 1;
pub const IPTOS_ECN_ECT0: u32 = 2;
pub const IPTOS_ECN_CE: u32 = 3;
pub const IPTOS_DSCP_MASK: u32 = 252;
pub const IPTOS_DSCP_AF11: u32 = 40;
pub const IPTOS_DSCP_AF12: u32 = 48;
pub const IPTOS_DSCP_AF13: u32 = 56;
pub const IPTOS_DSCP_AF21: u32 = 72;
pub const IPTOS_DSCP_AF22: u32 = 80;
pub const IPTOS_DSCP_AF23: u32 = 88;
pub const IPTOS_DSCP_AF31: u32 = 104;
pub const IPTOS_DSCP_AF32: u32 = 112;
pub const IPTOS_DSCP_AF33: u32 = 120;
pub const IPTOS_DSCP_AF41: u32 = 136;
pub const IPTOS_DSCP_AF42: u32 = 144;
pub const IPTOS_DSCP_AF43: u32 = 152;
pub const IPTOS_DSCP_EF: u32 = 184;
pub const IPTOS_CLASS_MASK: u32 = 224;
pub const IPTOS_CLASS_CS0: u32 = 0;
pub const IPTOS_CLASS_CS1: u32 = 32;
pub const IPTOS_CLASS_CS2: u32 = 64;
pub const IPTOS_CLASS_CS3: u32 = 96;
pub const IPTOS_CLASS_CS4: u32 = 128;
pub const IPTOS_CLASS_CS5: u32 = 160;
pub const IPTOS_CLASS_CS6: u32 = 192;
pub const IPTOS_CLASS_CS7: u32 = 224;
pub const IPTOS_CLASS_DEFAULT: u32 = 0;
pub const IPTOS_TOS_MASK: u32 = 30;
pub const IPTOS_LOWDELAY: u32 = 16;
pub const IPTOS_THROUGHPUT: u32 = 8;
pub const IPTOS_RELIABILITY: u32 = 4;
pub const IPTOS_LOWCOST: u32 = 2;
pub const IPTOS_MINCOST: u32 = 2;
pub const IPTOS_PREC_MASK: u32 = 224;
pub const IPTOS_PREC_NETCONTROL: u32 = 224;
pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192;
pub const IPTOS_PREC_CRITIC_ECP: u32 = 160;
pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128;
pub const IPTOS_PREC_FLASH: u32 = 96;
pub const IPTOS_PREC_IMMEDIATE: u32 = 64;
pub const IPTOS_PREC_PRIORITY: u32 = 32;
pub const IPTOS_PREC_ROUTINE: u32 = 0;
pub const IPOPT_COPY: u32 = 128;
pub const IPOPT_CLASS_MASK: u32 = 96;
pub const IPOPT_NUMBER_MASK: u32 = 31;
pub const IPOPT_CONTROL: u32 = 0;
pub const IPOPT_RESERVED1: u32 = 32;
pub const IPOPT_DEBMEAS: u32 = 64;
pub const IPOPT_MEASUREMENT: u32 = 64;
pub const IPOPT_RESERVED2: u32 = 96;
pub const IPOPT_EOL: u32 = 0;
pub const IPOPT_END: u32 = 0;
pub const IPOPT_NOP: u32 = 1;
pub const IPOPT_NOOP: u32 = 1;
pub const IPOPT_RR: u32 = 7;
pub const IPOPT_TS: u32 = 68;
pub const IPOPT_TIMESTAMP: u32 = 68;
pub const IPOPT_SECURITY: u32 = 130;
pub const IPOPT_SEC: u32 = 130;
pub const IPOPT_LSRR: u32 = 131;
pub const IPOPT_SATID: u32 = 136;
pub const IPOPT_SID: u32 = 136;
pub const IPOPT_SSRR: u32 = 137;
pub const IPOPT_RA: u32 = 148;
pub const IPOPT_OPTVAL: u32 = 0;
pub const IPOPT_OLEN: u32 = 1;
pub const IPOPT_OFFSET: u32 = 2;
pub const IPOPT_MINOFF: u32 = 4;
pub const MAX_IPOPTLEN: u32 = 40;
pub const IPOPT_TS_TSONLY: u32 = 0;
pub const IPOPT_TS_TSANDADDR: u32 = 1;
pub const IPOPT_TS_PRESPEC: u32 = 3;
pub const IPOPT_SECUR_UNCLASS: u32 = 0;
pub const IPOPT_SECUR_CONFID: u32 = 61749;
pub const IPOPT_SECUR_EFTO: u32 = 30874;
pub const IPOPT_SECUR_MMMM: u32 = 48205;
pub const IPOPT_SECUR_RESTR: u32 = 44819;
pub const IPOPT_SECUR_SECRET: u32 = 55176;
pub const IPOPT_SECUR_TOPSECRET: u32 = 27589;
pub const MAXTTL: u32 = 255;
pub const IPDEFTTL: u32 = 64;
pub const IPFRAGTTL: u32 = 60;
pub const IPTTLDEC: u32 = 1;
pub const IP_MSS: u32 = 576;
pub const ETH_P_IPV4: u32 = 2048;
pub const ETH_P_IPV6: u32 = 34525;
pub const GNUNET_TUN_IPV4_REGEXLEN: u32 = 16;
pub const GNUNET_TUN_IPV6_REGEXLEN: u32 = 40;
pub const GNUNET_TUN_TCP_FLAGS_FIN: u32 = 1;
pub const GNUNET_TUN_TCP_FLAGS_SYN: u32 = 2;
pub const GNUNET_TUN_TCP_FLAGS_RST: u32 = 4;
pub const GNUNET_TUN_TCP_FLAGS_PSH: u32 = 8;
pub const GNUNET_TUN_TCP_FLAGS_ACK: u32 = 16;
pub const GNUNET_TUN_TCP_FLAGS_URG: u32 = 32;
pub const GNUNET_TUN_TCP_FLAGS_ECE: u32 = 64;
pub const GNUNET_TUN_TCP_FLAGS_CWR: u32 = 128;
pub const GNUNET_TUN_DNS_CLASS_INTERNET: u32 = 1;
pub const GNUNET_TUN_DNS_CLASS_CHAOS: u32 = 3;
pub const GNUNET_TUN_DNS_CLASS_HESIOD: u32 = 4;
pub const GNUNET_TUN_DNS_OPCODE_QUERY: u32 = 0;
pub const GNUNET_TUN_DNS_OPCODE_INVERSE_QUERY: u32 = 1;
pub const GNUNET_TUN_DNS_OPCODE_STATUS: u32 = 2;
pub const GNUNET_TUN_DNS_RETURN_CODE_NO_ERROR: u32 = 0;
pub const GNUNET_TUN_DNS_RETURN_CODE_FORMAT_ERROR: u32 = 1;
pub const GNUNET_TUN_DNS_RETURN_CODE_SERVER_FAILURE: u32 = 2;
pub const GNUNET_TUN_DNS_RETURN_CODE_NAME_ERROR: u32 = 3;
pub const GNUNET_TUN_DNS_RETURN_CODE_NOT_IMPLEMENTED: u32 = 4;
pub const GNUNET_TUN_DNS_RETURN_CODE_REFUSED: u32 = 5;
pub const GNUNET_TUN_DNS_RETURN_CODE_YXDOMAIN: u32 = 6;
pub const GNUNET_TUN_DNS_RETURN_CODE_YXRRSET: u32 = 7;
pub const GNUNET_TUN_DNS_RETURN_CODE_NXRRSET: u32 = 8;
pub const GNUNET_TUN_DNS_RETURN_CODE_NOT_AUTH: u32 = 9;
pub const GNUNET_TUN_DNS_RETURN_CODE_NOT_ZONE: u32 = 10;
pub const GNUNET_TUN_ICMPTYPE_ECHO_REPLY: u32 = 0;
pub const GNUNET_TUN_ICMPTYPE_DESTINATION_UNREACHABLE: u32 = 3;
pub const GNUNET_TUN_ICMPTYPE_SOURCE_QUENCH: u32 = 4;
pub const GNUNET_TUN_ICMPTYPE_REDIRECT_MESSAGE: u32 = 5;
pub const GNUNET_TUN_ICMPTYPE_ECHO_REQUEST: u32 = 8;
pub const GNUNET_TUN_ICMPTYPE_ROUTER_ADVERTISEMENT: u32 = 9;
pub const GNUNET_TUN_ICMPTYPE_ROUTER_SOLICITATION: u32 = 10;
pub const GNUNET_TUN_ICMPTYPE_TIME_EXCEEDED: u32 = 11;
pub const GNUNET_TUN_ICMPTYPE6_DESTINATION_UNREACHABLE: u32 = 1;
pub const GNUNET_TUN_ICMPTYPE6_PACKET_TOO_BIG: u32 = 2;
pub const GNUNET_TUN_ICMPTYPE6_TIME_EXCEEDED: u32 = 3;
pub const GNUNET_TUN_ICMPTYPE6_PARAMETER_PROBLEM: u32 = 4;
pub const GNUNET_TUN_ICMPTYPE6_ECHO_REQUEST: u32 = 128;
pub const GNUNET_TUN_ICMPTYPE6_ECHO_REPLY: u32 = 129;
pub const GNUNET_DNSPARSER_MAX_LABEL_LENGTH: u32 = 63;
pub const GNUNET_DNSPARSER_MAX_NAME_LENGTH: u32 = 253;
pub const GNUNET_DNSPARSER_TYPE_ANY: u32 = 0;
pub const GNUNET_DNSPARSER_TYPE_A: u32 = 1;
pub const GNUNET_DNSPARSER_TYPE_NS: u32 = 2;
pub const GNUNET_DNSPARSER_TYPE_CNAME: u32 = 5;
pub const GNUNET_DNSPARSER_TYPE_SOA: u32 = 6;
pub const GNUNET_DNSPARSER_TYPE_PTR: u32 = 12;
pub const GNUNET_DNSPARSER_TYPE_MX: u32 = 15;
pub const GNUNET_DNSPARSER_TYPE_TXT: u32 = 16;
pub const GNUNET_DNSPARSER_TYPE_RP: u32 = 17;
pub const GNUNET_DNSPARSER_TYPE_AFSDB: u32 = 18;
pub const GNUNET_DNSPARSER_TYPE_SIG: u32 = 24;
pub const GNUNET_DNSPARSER_TYPE_KEY: u32 = 25;
pub const GNUNET_DNSPARSER_TYPE_AAAA: u32 = 28;
pub const GNUNET_DNSPARSER_TYPE_LOC: u32 = 29;
pub const GNUNET_DNSPARSER_TYPE_SRV: u32 = 33;
pub const GNUNET_DNSPARSER_TYPE_NAPTR: u32 = 35;
pub const GNUNET_DNSPARSER_TYPE_KX: u32 = 36;
pub const GNUNET_DNSPARSER_TYPE_CERT: u32 = 37;
pub const GNUNET_DNSPARSER_TYPE_DNAME: u32 = 39;
pub const GNUNET_DNSPARSER_TYPE_APL: u32 = 42;
pub const GNUNET_DNSPARSER_TYPE_DS: u32 = 43;
pub const GNUNET_DNSPARSER_TYPE_SSHFP: u32 = 44;
pub const GNUNET_DNSPARSER_TYPE_IPSECKEY: u32 = 45;
pub const GNUNET_DNSPARSER_TYPE_RRSIG: u32 = 46;
pub const GNUNET_DNSPARSER_TYPE_NSEC: u32 = 47;
pub const GNUNET_DNSPARSER_TYPE_DNSKEY: u32 = 48;
pub const GNUNET_DNSPARSER_TYPE_DHCID: u32 = 49;
pub const GNUNET_DNSPARSER_TYPE_NSEC3: u32 = 50;
pub const GNUNET_DNSPARSER_TYPE_NSEC3PARAM: u32 = 51;
pub const GNUNET_DNSPARSER_TYPE_TLSA: u32 = 52;
pub const GNUNET_DNSPARSER_TYPE_HIP: u32 = 55;
pub const GNUNET_DNSPARSER_TYPE_CDS: u32 = 59;
pub const GNUNET_DNSPARSER_TYPE_CDNSKEY: u32 = 60;
pub const GNUNET_DNSPARSER_TYPE_OPENPGPKEY: u32 = 61;
pub const GNUNET_DNSPARSER_TYPE_TKEY: u32 = 249;
pub const GNUNET_DNSPARSER_TYPE_TSIG: u32 = 250;
pub const GNUNET_DNSPARSER_TYPE_ALL: u32 = 255;
pub const GNUNET_DNSPARSER_TYPE_URI: u32 = 256;
pub const GNUNET_DNSPARSER_TYPE_CAA: u32 = 257;
pub const GNUNET_DNSPARSER_TYPE_TA: u32 = 32768;
pub const GNUNET_HELLO_URI_PREFIX: &'static [u8; 16usize] = b"gnunet://hello/\0";
pub const GNUNET_FRIEND_HELLO_URI_PREFIX: &'static [u8; 23usize] = b"gnunet://friend-hello/\0";
pub const GNUNET_HELLO_URI_SEP: u8 = 43u8;
pub const GNUNET_NT_COUNT: u32 = 6;
pub const GNUNET_ATS_DefaultBandwidth: u32 = 65536;
pub const GNUNET_ATS_VALUE_UNDEFINED: u32 = 4294967295;
pub const GNUNET_ATS_VALUE_UNDEFINED_STR: &'static [u8; 10usize] = b"undefined\0";
pub const GNUNET_ATS_MaxBandwidth: u32 = 4294967295;
pub const GNUNET_ATS_MaxBandwidthString: &'static [u8; 10usize] = b"unlimited\0";
pub const GNUNET_SIGNATURE_PURPOSE_TEST: u32 = 0;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN: u32 = 1;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT: u32 = 2;
pub const GNUNET_SIGNATURE_PURPOSE_REVOCATION: u32 = 3;
pub const GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT: u32 = 4;
pub const GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT: u32 = 5;
pub const GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK: u32 = 6;
pub const GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK: u32 = 7;
pub const GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK: u32 = 8;
pub const GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG: u32 = 9;
pub const GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE: u32 = 10;
pub const GNUNET_SIGNATURE_PURPOSE_DNS_RECORD: u32 = 11;
pub const GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE: u32 = 12;
pub const GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT: u32 = 13;
pub const GNUNET_SIGNATURE_PURPOSE_NSE_SEND: u32 = 14;
pub const GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN: u32 = 15;
pub const GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY: u32 = 16;
pub const GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK: u32 = 17;
pub const GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT: u32 = 18;
pub const GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE: u32 = 19;
pub const GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING: u32 = 20;
pub const GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1: u32 = 21;
pub const GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2: u32 = 22;
pub const GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION: u32 = 23;
pub const GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST: u32 = 24;
pub const GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT: u32 = 25;
pub const GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN: u32 = 26;
pub const GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN: u32 = 27;
pub const GNUNET_SIGNATURE_PURPOSE_DELEGATE: u32 = 28;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS: u32 = 29;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL: u32 = 30;
pub const GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE: u32 = 31;
pub const GNUNET_SIGNATURE_COMMUNICATOR_TCP_REKEY: u32 = 32;
pub const GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE: u32 = 33;
pub const GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST: u32 = 34;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE: u32 = 35;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP: u32 = 36;
pub const GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR: u32 = 37;
pub const GNUNET_SIGNATURE_PURPOSE_CADET_CONNECTION_INITIATOR: u32 = 38;
pub const GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE_ACK: u32 = 39;
pub const GNUNET_TRANSPORT_VERSION: u32 = 3;
pub const GNUNET_CORE_VERSION: u32 = 1;
pub const GNUNET_IDENTITY_VERSION: u32 = 256;
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
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;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
    pub __count: ::std::os::raw::c_int,
    pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
    pub __wch: ::std::os::raw::c_uint,
    pub __wchb: [::std::os::raw::c_char; 4usize],
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
        4usize,
        concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
        4usize,
        concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wch as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t__bindgen_ty_1),
            "::",
            stringify!(__wch)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wchb as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t__bindgen_ty_1),
            "::",
            stringify!(__wchb)
        )
    );
}
#[test]
fn bindgen_test_layout___mbstate_t() {
    assert_eq!(
        ::std::mem::size_of::<__mbstate_t>(),
        8usize,
        concat!("Size of: ", stringify!(__mbstate_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__mbstate_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__mbstate_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__count as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t),
            "::",
            stringify!(__count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__value as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__mbstate_t),
            "::",
            stringify!(__value)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos_t {
    pub __pos: __off_t,
    pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos_t() {
    assert_eq!(
        ::std::mem::size_of::<_G_fpos_t>(),
        16usize,
        concat!("Size of: ", stringify!(_G_fpos_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_G_fpos_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_G_fpos_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__pos as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_G_fpos_t),
            "::",
            stringify!(__pos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__state as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_G_fpos_t),
            "::",
            stringify!(__state)
        )
    );
}
pub type __fpos_t = _G_fpos_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos64_t {
    pub __pos: __off64_t,
    pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos64_t() {
    assert_eq!(
        ::std::mem::size_of::<_G_fpos64_t>(),
        16usize,
        concat!("Size of: ", stringify!(_G_fpos64_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_G_fpos64_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_G_fpos64_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__pos as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_G_fpos64_t),
            "::",
            stringify!(__pos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__state as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_G_fpos64_t),
            "::",
            stringify!(__state)
        )
    );
}
pub type __fpos64_t = _G_fpos64_t;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
    _unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
    pub _flags: ::std::os::raw::c_int,
    pub _IO_read_ptr: *mut ::std::os::raw::c_char,
    pub _IO_read_end: *mut ::std::os::raw::c_char,
    pub _IO_read_base: *mut ::std::os::raw::c_char,
    pub _IO_write_base: *mut ::std::os::raw::c_char,
    pub _IO_write_ptr: *mut ::std::os::raw::c_char,
    pub _IO_write_end: *mut ::std::os::raw::c_char,
    pub _IO_buf_base: *mut ::std::os::raw::c_char,
    pub _IO_buf_end: *mut ::std::os::raw::c_char,
    pub _IO_save_base: *mut ::std::os::raw::c_char,
    pub _IO_backup_base: *mut ::std::os::raw::c_char,
    pub _IO_save_end: *mut ::std::os::raw::c_char,
    pub _markers: *mut _IO_marker,
    pub _chain: *mut _IO_FILE,
    pub _fileno: ::std::os::raw::c_int,
    pub _flags2: ::std::os::raw::c_int,
    pub _old_offset: __off_t,
    pub _cur_column: ::std::os::raw::c_ushort,
    pub _vtable_offset: ::std::os::raw::c_schar,
    pub _shortbuf: [::std::os::raw::c_char; 1usize],
    pub _lock: *mut _IO_lock_t,
    pub _offset: __off64_t,
    pub _codecvt: *mut _IO_codecvt,
    pub _wide_data: *mut _IO_wide_data,
    pub _freeres_list: *mut _IO_FILE,
    pub _freeres_buf: *mut ::std::os::raw::c_void,
    pub __pad5: usize,
    pub _mode: ::std::os::raw::c_int,
    pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
    assert_eq!(
        ::std::mem::size_of::<_IO_FILE>(),
        216usize,
        concat!("Size of: ", stringify!(_IO_FILE))
    );
    assert_eq!(
        ::std::mem::align_of::<_IO_FILE>(),
        8usize,
        concat!("Alignment of ", stringify!(_IO_FILE))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_read_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_write_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_buf_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_buf_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_save_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_backup_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_IO_save_end)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_markers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_chain)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_fileno)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_flags2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_old_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_cur_column)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize },
        130usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_vtable_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize },
        131usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_shortbuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_lock)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._codecvt as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_codecvt)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._wide_data as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_wide_data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_list as *const _ as usize },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_freeres_list)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_buf as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_freeres_buf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad5)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_mode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize },
        196usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(_unused2)
        )
    );
}
pub type cookie_read_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        __cookie: *mut ::std::os::raw::c_void,
        __buf: *mut ::std::os::raw::c_char,
        __nbytes: usize,
    ) -> __ssize_t,
>;
pub type cookie_write_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        __cookie: *mut ::std::os::raw::c_void,
        __buf: *const ::std::os::raw::c_char,
        __nbytes: usize,
    ) -> __ssize_t,
>;
pub type cookie_seek_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        __cookie: *mut ::std::os::raw::c_void,
        __pos: *mut __off64_t,
        __w: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type cookie_close_function_t = ::std::option::Option<
    unsafe extern "C" fn(__cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_cookie_io_functions_t {
    pub read: cookie_read_function_t,
    pub write: cookie_write_function_t,
    pub seek: cookie_seek_function_t,
    pub close: cookie_close_function_t,
}
#[test]
fn bindgen_test_layout__IO_cookie_io_functions_t() {
    assert_eq!(
        ::std::mem::size_of::<_IO_cookie_io_functions_t>(),
        32usize,
        concat!("Size of: ", stringify!(_IO_cookie_io_functions_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_IO_cookie_io_functions_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_IO_cookie_io_functions_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_cookie_io_functions_t>())).read as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_cookie_io_functions_t),
            "::",
            stringify!(read)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_cookie_io_functions_t>())).write as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_cookie_io_functions_t),
            "::",
            stringify!(write)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_cookie_io_functions_t>())).seek as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_cookie_io_functions_t),
            "::",
            stringify!(seek)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_cookie_io_functions_t>())).close as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_cookie_io_functions_t),
            "::",
            stringify!(close)
        )
    );
}
pub type cookie_io_functions_t = _IO_cookie_io_functions_t;
pub type off_t = __off_t;
pub type off64_t = __off64_t;
pub type fpos_t = __fpos_t;
pub type fpos64_t = __fpos64_t;
extern "C" {
    pub static mut stdin: *mut FILE;
}
extern "C" {
    pub static mut stdout: *mut FILE;
}
extern "C" {
    pub static mut stderr: *mut FILE;
}
extern "C" {
    pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rename(
        __old: *const ::std::os::raw::c_char,
        __new: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn renameat(
        __oldfd: ::std::os::raw::c_int,
        __old: *const ::std::os::raw::c_char,
        __newfd: ::std::os::raw::c_int,
        __new: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn renameat2(
        __oldfd: ::std::os::raw::c_int,
        __old: *const ::std::os::raw::c_char,
        __newfd: ::std::os::raw::c_int,
        __new: *const ::std::os::raw::c_char,
        __flags: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn tmpfile() -> *mut FILE;
}
extern "C" {
    pub fn tmpfile64() -> *mut FILE;
}
extern "C" {
    pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn tempnam(
        __dir: *const ::std::os::raw::c_char,
        __pfx: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fcloseall() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fopen(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn freopen(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
        __stream: *mut FILE,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fopen64(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn freopen64(
        __filename: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
        __stream: *mut FILE,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
        -> *mut FILE;
}
extern "C" {
    pub fn fopencookie(
        __magic_cookie: *mut ::std::os::raw::c_void,
        __modes: *const ::std::os::raw::c_char,
        __io_funcs: cookie_io_functions_t,
    ) -> *mut FILE;
}
extern "C" {
    pub fn fmemopen(
        __s: *mut ::std::os::raw::c_void,
        __len: usize,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn open_memstream(
        __bufloc: *mut *mut ::std::os::raw::c_char,
        __sizeloc: *mut usize,
    ) -> *mut FILE;
}
extern "C" {
    pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char);
}
extern "C" {
    pub fn setvbuf(
        __stream: *mut FILE,
        __buf: *mut ::std::os::raw::c_char,
        __modes: ::std::os::raw::c_int,
        __n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
}
extern "C" {
    pub fn setlinebuf(__stream: *mut FILE);
}
extern "C" {
    pub fn fprintf(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sprintf(
        __s: *mut ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfprintf(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vprintf(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsprintf(
        __s: *mut ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn snprintf(
        __s: *mut ::std::os::raw::c_char,
        __maxlen: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsnprintf(
        __s: *mut ::std::os::raw::c_char,
        __maxlen: ::std::os::raw::c_ulong,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vasprintf(
        __ptr: *mut *mut ::std::os::raw::c_char,
        __f: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __asprintf(
        __ptr: *mut *mut ::std::os::raw::c_char,
        __fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn asprintf(
        __ptr: *mut *mut ::std::os::raw::c_char,
        __fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vdprintf(
        __fd: ::std::os::raw::c_int,
        __fmt: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn dprintf(
        __fd: ::std::os::raw::c_int,
        __fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fscanf(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sscanf(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_fscanf"]
    pub fn fscanf1(
        __stream: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_scanf"]
    pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_sscanf"]
    pub fn sscanf1(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vfscanf(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vscanf(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn vsscanf(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vfscanf"]
    pub fn vfscanf1(
        __s: *mut FILE,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vscanf"]
    pub fn vscanf1(
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[link_name = "\u{1}__isoc99_vsscanf"]
    pub fn vsscanf1(
        __s: *const ::std::os::raw::c_char,
        __format: *const ::std::os::raw::c_char,
        __arg: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fgets(
        __s: *mut ::std::os::raw::c_char,
        __n: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fgets_unlocked(
        __s: *mut ::std::os::raw::c_char,
        __n: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __getdelim(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __delimiter: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn getdelim(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __delimiter: ::std::os::raw::c_int,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn getline(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut usize,
        __stream: *mut FILE,
    ) -> __ssize_t;
}
extern "C" {
    pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fread(
        __ptr: *mut ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
        __n: ::std::os::raw::c_ulong,
        __stream: *mut FILE,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn fwrite(
        __ptr: *const ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
        __n: ::std::os::raw::c_ulong,
        __s: *mut FILE,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn fputs_unlocked(
        __s: *const ::std::os::raw::c_char,
        __stream: *mut FILE,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fread_unlocked(
        __ptr: *mut ::std::os::raw::c_void,
        __size: usize,
        __n: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn fwrite_unlocked(
        __ptr: *const ::std::os::raw::c_void,
        __size: usize,
        __n: usize,
        __stream: *mut FILE,
    ) -> usize;
}
extern "C" {
    pub fn fseek(
        __stream: *mut FILE,
        __off: ::std::os::raw::c_long,
        __whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn rewind(__stream: *mut FILE);
}
extern "C" {
    pub fn fseeko(
        __stream: *mut FILE,
        __off: __off_t,
        __whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftello(__stream: *mut FILE) -> __off_t;
}
extern "C" {
    pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fseeko64(
        __stream: *mut FILE,
        __off: __off64_t,
        __whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ftello64(__stream: *mut FILE) -> __off64_t;
}
extern "C" {
    pub fn fgetpos64(__stream: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fsetpos64(__stream: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearerr(__stream: *mut FILE);
}
extern "C" {
    pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearerr_unlocked(__stream: *mut FILE);
}
extern "C" {
    pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn perror(__s: *const ::std::os::raw::c_char);
}
extern "C" {
    pub static mut sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
    pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    pub static mut _sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
    pub static mut _sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
extern "C" {
    pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn popen(
        __command: *const ::std::os::raw::c_char,
        __modes: *const ::std::os::raw::c_char,
    ) -> *mut FILE;
}
extern "C" {
    pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn cuserid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct obstack {
    _unused: [u8; 0],
}
extern "C" {
    pub fn obstack_printf(
        __obstack: *mut obstack,
        __format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn obstack_vprintf(
        __obstack: *mut obstack,
        __format: *const ::std::os::raw::c_char,
        __args: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn flockfile(__stream: *mut FILE);
}
extern "C" {
    pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn funlockfile(__stream: *mut FILE);
}
extern "C" {
    pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[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: u128,
}
#[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!(
        ::std::mem::align_of::<max_align_t>(),
        16usize,
        concat!("Alignment 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)
        )
    );
}
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;
extern "C" {
    pub fn sodium_version_string() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sodium_library_version_major() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_library_version_minor() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_library_minimal() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_init() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_set_misuse_handler(
        handler: ::std::option::Option<unsafe extern "C" fn()>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_misuse();
}
extern "C" {
    pub fn crypto_aead_aes256gcm_is_available() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_nsecbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_npubbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_abytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_messagebytes_max() -> usize;
}
#[repr(C)]
#[repr(align(16))]
#[derive(Copy, Clone)]
pub struct crypto_aead_aes256gcm_state_ {
    pub opaque: [::std::os::raw::c_uchar; 512usize],
}
#[test]
fn bindgen_test_layout_crypto_aead_aes256gcm_state_() {
    assert_eq!(
        ::std::mem::size_of::<crypto_aead_aes256gcm_state_>(),
        512usize,
        concat!("Size of: ", stringify!(crypto_aead_aes256gcm_state_))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_aead_aes256gcm_state_>(),
        16usize,
        concat!("Alignment of ", stringify!(crypto_aead_aes256gcm_state_))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_aead_aes256gcm_state_>())).opaque as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_aead_aes256gcm_state_),
            "::",
            stringify!(opaque)
        )
    );
}
pub type crypto_aead_aes256gcm_state = crypto_aead_aes256gcm_state_;
extern "C" {
    pub fn crypto_aead_aes256gcm_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_encrypt(
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_decrypt(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_encrypt_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        maclen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_decrypt_detached(
        m: *mut ::std::os::raw::c_uchar,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        mac: *const ::std::os::raw::c_uchar,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_beforenm(
        ctx_: *mut crypto_aead_aes256gcm_state,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_encrypt_afternm(
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        ctx_: *const crypto_aead_aes256gcm_state,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_decrypt_afternm(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        ctx_: *const crypto_aead_aes256gcm_state,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_encrypt_detached_afternm(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        maclen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        ctx_: *const crypto_aead_aes256gcm_state,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_decrypt_detached_afternm(
        m: *mut ::std::os::raw::c_uchar,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        mac: *const ::std::os::raw::c_uchar,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        ctx_: *const crypto_aead_aes256gcm_state,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_aes256gcm_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_nsecbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_npubbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_abytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_encrypt(
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_decrypt(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_encrypt_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        maclen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_decrypt_detached(
        m: *mut ::std::os::raw::c_uchar,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        mac: *const ::std::os::raw::c_uchar,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_ietf_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_nsecbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_npubbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_abytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_encrypt(
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_decrypt(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_encrypt_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        maclen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_decrypt_detached(
        m: *mut ::std::os::raw::c_uchar,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        mac: *const ::std::os::raw::c_uchar,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_chacha20poly1305_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_nsecbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_npubbytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_abytes() -> usize;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_encrypt(
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_decrypt(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_encrypt_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        maclen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        nsec: *const ::std::os::raw::c_uchar,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_decrypt_detached(
        m: *mut ::std::os::raw::c_uchar,
        nsec: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        mac: *const ::std::os::raw::c_uchar,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        npub: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_aead_xchacha20poly1305_ietf_keygen(k: *mut ::std::os::raw::c_uchar);
}
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = ::std::os::raw::c_uint;
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
    pub quot: ::std::os::raw::c_int,
    pub rem: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
    assert_eq!(
        ::std::mem::size_of::<div_t>(),
        8usize,
        concat!("Size of: ", stringify!(div_t))
    );
    assert_eq!(
        ::std::mem::align_of::<div_t>(),
        4usize,
        concat!("Alignment of ", stringify!(div_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<div_t>())).quot as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(div_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<div_t>())).rem as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(div_t),
            "::",
            stringify!(rem)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
    pub quot: ::std::os::raw::c_long,
    pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
    assert_eq!(
        ::std::mem::size_of::<ldiv_t>(),
        16usize,
        concat!("Size of: ", stringify!(ldiv_t))
    );
    assert_eq!(
        ::std::mem::align_of::<ldiv_t>(),
        8usize,
        concat!("Alignment of ", stringify!(ldiv_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ldiv_t>())).quot as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ldiv_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ldiv_t>())).rem as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ldiv_t),
            "::",
            stringify!(rem)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
    pub quot: ::std::os::raw::c_longlong,
    pub rem: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
    assert_eq!(
        ::std::mem::size_of::<lldiv_t>(),
        16usize,
        concat!("Size of: ", stringify!(lldiv_t))
    );
    assert_eq!(
        ::std::mem::align_of::<lldiv_t>(),
        8usize,
        concat!("Alignment of ", stringify!(lldiv_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lldiv_t>())).quot as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lldiv_t),
            "::",
            stringify!(quot)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lldiv_t>())).rem as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lldiv_t),
            "::",
            stringify!(rem)
        )
    );
}
extern "C" {
    pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
    pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
    pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtod(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f64;
}
extern "C" {
    pub fn strtof(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> f32;
}
extern "C" {
    pub fn strtold(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> u128;
}
extern "C" {
    pub fn strtof32(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> _Float32;
}
extern "C" {
    pub fn strtof64(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> _Float64;
}
extern "C" {
    pub fn strtof32x(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> _Float32x;
}
extern "C" {
    pub fn strtof64x(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
    ) -> _Float64x;
}
extern "C" {
    pub fn strtol(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn strtoul(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strtoq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtouq(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn strtoll(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtoull(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn strfromd(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfromf(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfroml(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: u128,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfromf32(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: _Float32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfromf64(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: _Float64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfromf32x(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: _Float32x,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfromf64x(
        __dest: *mut ::std::os::raw::c_char,
        __size: usize,
        __format: *const ::std::os::raw::c_char,
        __f: _Float64x,
    ) -> ::std::os::raw::c_int;
}
#[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 strtol_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
        __loc: locale_t,
    ) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn strtoul_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
        __loc: locale_t,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strtoll_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
        __loc: locale_t,
    ) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn strtoull_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __base: ::std::os::raw::c_int,
        __loc: locale_t,
    ) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
    pub fn strtod_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> f64;
}
extern "C" {
    pub fn strtof_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> f32;
}
extern "C" {
    pub fn strtold_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> u128;
}
extern "C" {
    pub fn strtof32_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> _Float32;
}
extern "C" {
    pub fn strtof64_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> _Float64;
}
extern "C" {
    pub fn strtof32x_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> _Float32x;
}
extern "C" {
    pub fn strtof64x_l(
        __nptr: *const ::std::os::raw::c_char,
        __endptr: *mut *mut ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> _Float64x;
}
extern "C" {
    pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type ino64_t = __ino64_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type time_t = __time_t;
pub type timer_t = __timer_t;
pub type useconds_t = __useconds_t;
pub type suseconds_t = __suseconds_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
    assert_eq!(
        ::std::mem::size_of::<__sigset_t>(),
        128usize,
        concat!("Size of: ", stringify!(__sigset_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__sigset_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__sigset_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__sigset_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__sigset_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
    assert_eq!(
        ::std::mem::size_of::<timeval>(),
        16usize,
        concat!("Size of: ", stringify!(timeval))
    );
    assert_eq!(
        ::std::mem::align_of::<timeval>(),
        8usize,
        concat!("Alignment of ", stringify!(timeval))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timeval),
            "::",
            stringify!(tv_usec)
        )
    );
}
#[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 __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
    assert_eq!(
        ::std::mem::size_of::<fd_set>(),
        128usize,
        concat!("Size of: ", stringify!(fd_set))
    );
    assert_eq!(
        ::std::mem::align_of::<fd_set>(),
        8usize,
        concat!("Alignment of ", stringify!(fd_set))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<fd_set>())).fds_bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(fd_set),
            "::",
            stringify!(fds_bits)
        )
    );
}
pub type fd_mask = __fd_mask;
extern "C" {
    pub fn select(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn pselect(
        __nfds: ::std::os::raw::c_int,
        __readfds: *mut fd_set,
        __writefds: *mut fd_set,
        __exceptfds: *mut fd_set,
        __timeout: *const timespec,
        __sigmask: *const __sigset_t,
    ) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
pub type blkcnt64_t = __blkcnt64_t;
pub type fsblkcnt64_t = __fsblkcnt64_t;
pub type fsfilcnt64_t = __fsfilcnt64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_internal_list>(),
        16usize,
        concat!("Size of: ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_internal_list>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_internal_list))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__prev as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__prev)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__next as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_list),
            "::",
            stringify!(__next)
        )
    );
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_slist {
    pub __next: *mut __pthread_internal_slist,
}
#[test]
fn bindgen_test_layout___pthread_internal_slist() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_internal_slist>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_internal_slist))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_internal_slist>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_internal_slist))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_internal_slist>())).__next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_internal_slist),
            "::",
            stringify!(__next)
        )
    );
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_short,
    pub __elision: ::std::os::raw::c_short,
    pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_mutex_s>(),
        40usize,
        concat!("Size of: ", stringify!(__pthread_mutex_s))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_mutex_s>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_mutex_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__lock as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__lock)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__count as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__owner as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__owner)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__nusers as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__nusers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__kind as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__kind)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__spins as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__spins)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__elision as *const _ as usize },
        22usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__elision)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__list as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_mutex_s),
            "::",
            stringify!(__list)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
    pub __readers: ::std::os::raw::c_uint,
    pub __writers: ::std::os::raw::c_uint,
    pub __wrphase_futex: ::std::os::raw::c_uint,
    pub __writers_futex: ::std::os::raw::c_uint,
    pub __pad3: ::std::os::raw::c_uint,
    pub __pad4: ::std::os::raw::c_uint,
    pub __cur_writer: ::std::os::raw::c_int,
    pub __shared: ::std::os::raw::c_int,
    pub __rwelision: ::std::os::raw::c_schar,
    pub __pad1: [::std::os::raw::c_uchar; 7usize],
    pub __pad2: ::std::os::raw::c_ulong,
    pub __flags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_rwlock_arch_t>(),
        56usize,
        concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_rwlock_arch_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__readers as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__readers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__writers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__wrphase_futex as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__wrphase_futex)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers_futex as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__writers_futex)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad3 as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad3)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad4 as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad4)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__cur_writer as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__cur_writer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__shared as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__shared)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__rwelision as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__rwelision)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad1 as *const _ as usize },
        33usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad1)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad2 as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__pad2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__flags as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_rwlock_arch_t),
            "::",
            stringify!(__flags)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
    pub __g_refs: [::std::os::raw::c_uint; 2usize],
    pub __g_size: [::std::os::raw::c_uint; 2usize],
    pub __g1_orig_size: ::std::os::raw::c_uint,
    pub __wrefs: ::std::os::raw::c_uint,
    pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_1 {
    pub __wseq: ::std::os::raw::c_ulonglong,
    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__low
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(__low)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__high
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(__high)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1),
            "::",
            stringify!(__wseq)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq32 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_1),
            "::",
            stringify!(__wseq32)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_2 {
    pub __g1_start: ::std::os::raw::c_ulonglong,
    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
    _bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__low
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
            "::",
            stringify!(__low)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__high
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
            "::",
            stringify!(__high)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2>(),
        8usize,
        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2),
            "::",
            stringify!(__g1_start)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start32 as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s__bindgen_ty_2),
            "::",
            stringify!(__g1_start32)
        )
    );
}
#[test]
fn bindgen_test_layout___pthread_cond_s() {
    assert_eq!(
        ::std::mem::size_of::<__pthread_cond_s>(),
        48usize,
        concat!("Size of: ", stringify!(__pthread_cond_s))
    );
    assert_eq!(
        ::std::mem::align_of::<__pthread_cond_s>(),
        8usize,
        concat!("Alignment of ", stringify!(__pthread_cond_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_refs as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_refs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_size as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g1_orig_size as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g1_orig_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__wrefs as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__wrefs)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_signals as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(__pthread_cond_s),
            "::",
            stringify!(__g_signals)
        )
    );
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_mutexattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutexattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_mutexattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutexattr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_condattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_condattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_condattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_condattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_attr_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_attr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: __pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 40usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 5usize],
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_mutex_t>(),
        40usize,
        concat!("Size of: ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_mutex_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_mutex_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_mutex_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: __pthread_cond_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
    _bindgen_union_align: [u64; 6usize],
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_cond_t>(),
        48usize,
        concat!("Size of: ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_cond_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_cond_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_cond_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
    pub __data: __pthread_rwlock_arch_t,
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlock_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlock_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlock_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlock_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
    pub __size: [::std::os::raw::c_char; 8usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Size of: ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_rwlockattr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_rwlockattr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
    pub __size: [::std::os::raw::c_char; 32usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 4usize],
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_barrier_t>(),
        32usize,
        concat!("Size of: ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrier_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_barrier_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrier_t),
            "::",
            stringify!(__align)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
    pub __size: [::std::os::raw::c_char; 4usize],
    pub __align: ::std::os::raw::c_int,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_barrierattr_t>(),
        4usize,
        concat!("Size of: ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_barrierattr_t>(),
        4usize,
        concat!("Alignment of ", stringify!(pthread_barrierattr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_barrierattr_t),
            "::",
            stringify!(__align)
        )
    );
}
extern "C" {
    pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn initstate(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
    pub fptr: *mut i32,
    pub rptr: *mut i32,
    pub state: *mut i32,
    pub rand_type: ::std::os::raw::c_int,
    pub rand_deg: ::std::os::raw::c_int,
    pub rand_sep: ::std::os::raw::c_int,
    pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
    assert_eq!(
        ::std::mem::size_of::<random_data>(),
        48usize,
        concat!("Size of: ", stringify!(random_data))
    );
    assert_eq!(
        ::std::mem::align_of::<random_data>(),
        8usize,
        concat!("Alignment of ", stringify!(random_data))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).fptr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(fptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).rptr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(rptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).state as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(state)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).rand_type as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(rand_type)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).rand_deg as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(rand_deg)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).rand_sep as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(rand_sep)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<random_data>())).end_ptr as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(random_data),
            "::",
            stringify!(end_ptr)
        )
    );
}
extern "C" {
    pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srandom_r(
        __seed: ::std::os::raw::c_uint,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn initstate_r(
        __seed: ::std::os::raw::c_uint,
        __statebuf: *mut ::std::os::raw::c_char,
        __statelen: usize,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setstate_r(
        __statebuf: *mut ::std::os::raw::c_char,
        __buf: *mut random_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn drand48() -> f64;
}
extern "C" {
    pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
    pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
    pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
    pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
    pub __x: [::std::os::raw::c_ushort; 3usize],
    pub __old_x: [::std::os::raw::c_ushort; 3usize],
    pub __c: ::std::os::raw::c_ushort,
    pub __init: ::std::os::raw::c_ushort,
    pub __a: ::std::os::raw::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
    assert_eq!(
        ::std::mem::size_of::<drand48_data>(),
        24usize,
        concat!("Size of: ", stringify!(drand48_data))
    );
    assert_eq!(
        ::std::mem::align_of::<drand48_data>(),
        8usize,
        concat!("Alignment of ", stringify!(drand48_data))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<drand48_data>())).__x as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(drand48_data),
            "::",
            stringify!(__x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<drand48_data>())).__old_x as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(drand48_data),
            "::",
            stringify!(__old_x)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<drand48_data>())).__c as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(drand48_data),
            "::",
            stringify!(__c)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<drand48_data>())).__init as *const _ as usize },
        14usize,
        concat!(
            "Offset of field: ",
            stringify!(drand48_data),
            "::",
            stringify!(__init)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<drand48_data>())).__a as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(drand48_data),
            "::",
            stringify!(__a)
        )
    );
}
extern "C" {
    pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn erand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn nrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mrand48_r(
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn jrand48_r(
        __xsubi: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
        __result: *mut ::std::os::raw::c_long,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn srand48_r(
        __seedval: ::std::os::raw::c_long,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn seed48_r(
        __seed16v: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lcong48_r(
        __param: *mut ::std::os::raw::c_ushort,
        __buffer: *mut drand48_data,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn calloc(
        __nmemb: ::std::os::raw::c_ulong,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn realloc(
        __ptr: *mut ::std::os::raw::c_void,
        __size: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn reallocarray(
        __ptr: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn posix_memalign(
        __memptr: *mut *mut ::std::os::raw::c_void,
        __alignment: usize,
        __size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn aligned_alloc(__alignment: usize, __size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn abort();
}
extern "C" {
    pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn at_quick_exit(
        __func: ::std::option::Option<unsafe extern "C" fn()>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn on_exit(
        __func: ::std::option::Option<
            unsafe extern "C" fn(
                __status: ::std::os::raw::c_int,
                __arg: *mut ::std::os::raw::c_void,
            ),
        >,
        __arg: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn quick_exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn _Exit(__status: ::std::os::raw::c_int);
}
extern "C" {
    pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn secure_getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setenv(
        __name: *const ::std::os::raw::c_char,
        __value: *const ::std::os::raw::c_char,
        __replace: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkstemp64(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkstemps(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkstemps64(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mkostemp(
        __template: *mut ::std::os::raw::c_char,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkostemp64(
        __template: *mut ::std::os::raw::c_char,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkostemps(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mkostemps64(
        __template: *mut ::std::os::raw::c_char,
        __suffixlen: ::std::os::raw::c_int,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn canonicalize_file_name(
        __name: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn realpath(
        __name: *const ::std::os::raw::c_char,
        __resolved: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::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,
>;
pub type comparison_fn_t = __compar_fn_t;
pub type __compar_d_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
        arg3: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn bsearch(
        __key: *const ::std::os::raw::c_void,
        __base: *const ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn qsort(
        __base: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_fn_t,
    );
}
extern "C" {
    pub fn qsort_r(
        __base: *mut ::std::os::raw::c_void,
        __nmemb: usize,
        __size: usize,
        __compar: __compar_d_fn_t,
        __arg: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
    pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
    pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
    pub fn lldiv(
        __numer: ::std::os::raw::c_longlong,
        __denom: ::std::os::raw::c_longlong,
    ) -> lldiv_t;
}
extern "C" {
    pub fn ecvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn fcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcvt(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qecvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qfcvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn qgcvt(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ecvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn fcvt_r(
        __value: f64,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn qecvt_r(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn qfcvt_r(
        __value: u128,
        __ndigit: ::std::os::raw::c_int,
        __decpt: *mut ::std::os::raw::c_int,
        __sign: *mut ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbtowc(
        __pwc: *mut wchar_t,
        __s: *const ::std::os::raw::c_char,
        __n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
    pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
    pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsubopt(
        __optionp: *mut *mut ::std::os::raw::c_char,
        __tokens: *const *mut ::std::os::raw::c_char,
        __valuep: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn posix_openpt(__oflag: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn grantpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn unlockpt(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ptsname(__fd: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ptsname_r(
        __fd: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __buflen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getpt() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
        -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct crypto_hash_sha512_state {
    pub state: [u64; 8usize],
    pub count: [u64; 2usize],
    pub buf: [u8; 128usize],
}
#[test]
fn bindgen_test_layout_crypto_hash_sha512_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_hash_sha512_state>(),
        208usize,
        concat!("Size of: ", stringify!(crypto_hash_sha512_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_hash_sha512_state>(),
        8usize,
        concat!("Alignment of ", stringify!(crypto_hash_sha512_state))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha512_state>())).state as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha512_state),
            "::",
            stringify!(state)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha512_state>())).count as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha512_state),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha512_state>())).buf as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha512_state),
            "::",
            stringify!(buf)
        )
    );
}
extern "C" {
    pub fn crypto_hash_sha512_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_hash_sha512_bytes() -> usize;
}
extern "C" {
    pub fn crypto_hash_sha512(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha512_init(state: *mut crypto_hash_sha512_state) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha512_update(
        state: *mut crypto_hash_sha512_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha512_final(
        state: *mut crypto_hash_sha512_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_bytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct crypto_auth_hmacsha512_state {
    pub ictx: crypto_hash_sha512_state,
    pub octx: crypto_hash_sha512_state,
}
#[test]
fn bindgen_test_layout_crypto_auth_hmacsha512_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_auth_hmacsha512_state>(),
        416usize,
        concat!("Size of: ", stringify!(crypto_auth_hmacsha512_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_auth_hmacsha512_state>(),
        8usize,
        concat!("Alignment of ", stringify!(crypto_auth_hmacsha512_state))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_auth_hmacsha512_state>())).ictx as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_auth_hmacsha512_state),
            "::",
            stringify!(ictx)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_auth_hmacsha512_state>())).octx as *const _ as usize
        },
        208usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_auth_hmacsha512_state),
            "::",
            stringify!(octx)
        )
    );
}
extern "C" {
    pub fn crypto_auth_hmacsha512_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_init(
        state: *mut crypto_auth_hmacsha512_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_update(
        state: *mut crypto_auth_hmacsha512_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_final(
        state: *mut crypto_auth_hmacsha512_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_bytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
pub type crypto_auth_hmacsha512256_state = crypto_auth_hmacsha512_state;
extern "C" {
    pub fn crypto_auth_hmacsha512256_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_init(
        state: *mut crypto_auth_hmacsha512256_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_update(
        state: *mut crypto_auth_hmacsha512256_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_final(
        state: *mut crypto_auth_hmacsha512256_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha512256_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_auth_bytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_auth(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_keygen(k: *mut ::std::os::raw::c_uchar);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct crypto_hash_sha256_state {
    pub state: [u32; 8usize],
    pub count: u64,
    pub buf: [u8; 64usize],
}
#[test]
fn bindgen_test_layout_crypto_hash_sha256_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_hash_sha256_state>(),
        104usize,
        concat!("Size of: ", stringify!(crypto_hash_sha256_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_hash_sha256_state>(),
        8usize,
        concat!("Alignment of ", stringify!(crypto_hash_sha256_state))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha256_state>())).state as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha256_state),
            "::",
            stringify!(state)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha256_state>())).count as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha256_state),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_hash_sha256_state>())).buf as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_hash_sha256_state),
            "::",
            stringify!(buf)
        )
    );
}
extern "C" {
    pub fn crypto_hash_sha256_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_hash_sha256_bytes() -> usize;
}
extern "C" {
    pub fn crypto_hash_sha256(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha256_init(state: *mut crypto_hash_sha256_state) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha256_update(
        state: *mut crypto_hash_sha256_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_sha256_final(
        state: *mut crypto_hash_sha256_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_bytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha256(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct crypto_auth_hmacsha256_state {
    pub ictx: crypto_hash_sha256_state,
    pub octx: crypto_hash_sha256_state,
}
#[test]
fn bindgen_test_layout_crypto_auth_hmacsha256_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_auth_hmacsha256_state>(),
        208usize,
        concat!("Size of: ", stringify!(crypto_auth_hmacsha256_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_auth_hmacsha256_state>(),
        8usize,
        concat!("Alignment of ", stringify!(crypto_auth_hmacsha256_state))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_auth_hmacsha256_state>())).ictx as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_auth_hmacsha256_state),
            "::",
            stringify!(ictx)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_auth_hmacsha256_state>())).octx as *const _ as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_auth_hmacsha256_state),
            "::",
            stringify!(octx)
        )
    );
}
extern "C" {
    pub fn crypto_auth_hmacsha256_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_init(
        state: *mut crypto_auth_hmacsha256_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_update(
        state: *mut crypto_auth_hmacsha256_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_final(
        state: *mut crypto_auth_hmacsha256_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_auth_hmacsha256_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_stream_xsalsa20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_xsalsa20_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_xsalsa20_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_xsalsa20(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xsalsa20_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xsalsa20_xor_ic(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        ic: u64,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xsalsa20_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_beforenmbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_beforenm(
        k: *mut ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_boxzerobytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_zerobytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_afternm(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xsalsa20poly1305_open_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_box_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_box_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_box_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_easy(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open_easy(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open_detached(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_beforenmbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_beforenm(
        k: *mut ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_easy_afternm(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open_easy_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_detached_afternm(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open_detached_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_sealbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_seal(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_seal_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_zerobytes() -> usize;
}
extern "C" {
    pub fn crypto_box_boxzerobytes() -> usize;
}
extern "C" {
    pub fn crypto_box(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_afternm(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_open_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_hsalsa20_outputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hsalsa20_inputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hsalsa20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hsalsa20_constbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hsalsa20(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_hchacha20_outputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hchacha20_inputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hchacha20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hchacha20_constbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_hchacha20(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_salsa20_outputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa20_inputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa20_constbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa20(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_salsa2012_outputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa2012_inputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa2012_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa2012_constbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa2012(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_salsa208_outputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa208_inputbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa208_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa208_constbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_salsa208(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(64))]
#[derive(Copy, Clone)]
pub struct crypto_generichash_blake2b_state {
    pub opaque: [::std::os::raw::c_uchar; 384usize],
}
#[test]
fn bindgen_test_layout_crypto_generichash_blake2b_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_generichash_blake2b_state>(),
        384usize,
        concat!("Size of: ", stringify!(crypto_generichash_blake2b_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_generichash_blake2b_state>(),
        64usize,
        concat!(
            "Alignment of ",
            stringify!(crypto_generichash_blake2b_state)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_generichash_blake2b_state>())).opaque as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_generichash_blake2b_state),
            "::",
            stringify!(opaque)
        )
    );
}
extern "C" {
    pub fn crypto_generichash_blake2b_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_bytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_keybytes_min() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_keybytes_max() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_saltbytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_personalbytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_blake2b(
        out: *mut ::std::os::raw::c_uchar,
        outlen: usize,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_salt_personal(
        out: *mut ::std::os::raw::c_uchar,
        outlen: usize,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
        salt: *const ::std::os::raw::c_uchar,
        personal: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_init(
        state: *mut crypto_generichash_blake2b_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
        outlen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_init_salt_personal(
        state: *mut crypto_generichash_blake2b_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
        outlen: usize,
        salt: *const ::std::os::raw::c_uchar,
        personal: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_update(
        state: *mut crypto_generichash_blake2b_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_final(
        state: *mut crypto_generichash_blake2b_state,
        out: *mut ::std::os::raw::c_uchar,
        outlen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_blake2b_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_generichash_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_generichash_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_generichash_bytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_keybytes_min() -> usize;
}
extern "C" {
    pub fn crypto_generichash_keybytes_max() -> usize;
}
extern "C" {
    pub fn crypto_generichash_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash_primitive() -> *const ::std::os::raw::c_char;
}
pub type crypto_generichash_state = crypto_generichash_blake2b_state;
extern "C" {
    pub fn crypto_generichash_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_generichash(
        out: *mut ::std::os::raw::c_uchar,
        outlen: usize,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_init(
        state: *mut crypto_generichash_state,
        key: *const ::std::os::raw::c_uchar,
        keylen: usize,
        outlen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_update(
        state: *mut crypto_generichash_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_final(
        state: *mut crypto_generichash_state,
        out: *mut ::std::os::raw::c_uchar,
        outlen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_generichash_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_hash_bytes() -> usize;
}
extern "C" {
    pub fn crypto_hash(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_hash_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_kdf_blake2b_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_kdf_blake2b_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_kdf_blake2b_contextbytes() -> usize;
}
extern "C" {
    pub fn crypto_kdf_blake2b_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_kdf_blake2b_derive_from_key(
        subkey: *mut ::std::os::raw::c_uchar,
        subkey_len: usize,
        subkey_id: u64,
        ctx: *const ::std::os::raw::c_char,
        key: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_kdf_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_kdf_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_kdf_contextbytes() -> usize;
}
extern "C" {
    pub fn crypto_kdf_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_kdf_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_kdf_derive_from_key(
        subkey: *mut ::std::os::raw::c_uchar,
        subkey_len: usize,
        subkey_id: u64,
        ctx: *const ::std::os::raw::c_char,
        key: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_kdf_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_kx_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_kx_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_kx_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_kx_sessionkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_kx_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_kx_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_kx_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_kx_client_session_keys(
        rx: *mut ::std::os::raw::c_uchar,
        tx: *mut ::std::os::raw::c_uchar,
        client_pk: *const ::std::os::raw::c_uchar,
        client_sk: *const ::std::os::raw::c_uchar,
        server_pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_kx_server_session_keys(
        rx: *mut ::std::os::raw::c_uchar,
        tx: *mut ::std::os::raw::c_uchar,
        server_pk: *const ::std::os::raw::c_uchar,
        server_sk: *const ::std::os::raw::c_uchar,
        client_pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(16))]
#[derive(Copy, Clone)]
pub struct crypto_onetimeauth_poly1305_state {
    pub opaque: [::std::os::raw::c_uchar; 256usize],
}
#[test]
fn bindgen_test_layout_crypto_onetimeauth_poly1305_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_onetimeauth_poly1305_state>(),
        256usize,
        concat!("Size of: ", stringify!(crypto_onetimeauth_poly1305_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_onetimeauth_poly1305_state>(),
        16usize,
        concat!(
            "Alignment of ",
            stringify!(crypto_onetimeauth_poly1305_state)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_onetimeauth_poly1305_state>())).opaque as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_onetimeauth_poly1305_state),
            "::",
            stringify!(opaque)
        )
    );
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_bytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_init(
        state: *mut crypto_onetimeauth_poly1305_state,
        key: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_update(
        state: *mut crypto_onetimeauth_poly1305_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_final(
        state: *mut crypto_onetimeauth_poly1305_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_poly1305_keygen(k: *mut ::std::os::raw::c_uchar);
}
pub type crypto_onetimeauth_state = crypto_onetimeauth_poly1305_state;
extern "C" {
    pub fn crypto_onetimeauth_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_bytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_onetimeauth_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_onetimeauth(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_verify(
        h: *const ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_init(
        state: *mut crypto_onetimeauth_state,
        key: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_update(
        state: *mut crypto_onetimeauth_state,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_final(
        state: *mut crypto_onetimeauth_state,
        out: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_onetimeauth_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_pwhash_argon2i_alg_argon2i13() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_passwd_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_passwd_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_saltbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_strbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_strprefix() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_opslimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_opslimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_memlimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_memlimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_opslimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_memlimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_opslimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_memlimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_opslimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_memlimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2i(
        out: *mut ::std::os::raw::c_uchar,
        outlen: ::std::os::raw::c_ulonglong,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        salt: *const ::std::os::raw::c_uchar,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
        alg: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_str(
        out: *mut ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_str_verify(
        str_: *const ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2i_str_needs_rehash(
        str_: *const ::std::os::raw::c_char,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_alg_argon2id13() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_passwd_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_passwd_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_saltbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_strbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_strprefix() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_opslimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_opslimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_memlimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_memlimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_opslimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_memlimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_opslimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_memlimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_opslimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_memlimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_argon2id(
        out: *mut ::std::os::raw::c_uchar,
        outlen: ::std::os::raw::c_ulonglong,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        salt: *const ::std::os::raw::c_uchar,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
        alg: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_str(
        out: *mut ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_str_verify(
        str_: *const ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_argon2id_str_needs_rehash(
        str_: *const ::std::os::raw::c_char,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_alg_argon2i13() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_alg_argon2id13() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_alg_default() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_passwd_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_passwd_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_saltbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_strbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_strprefix() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_pwhash_opslimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_opslimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_memlimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_memlimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_opslimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_memlimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_opslimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_memlimit_moderate() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_opslimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_memlimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash(
        out: *mut ::std::os::raw::c_uchar,
        outlen: ::std::os::raw::c_ulonglong,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        salt: *const ::std::os::raw::c_uchar,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
        alg: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_str(
        out: *mut ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_str_alg(
        out: *mut ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
        alg: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_str_verify(
        str_: *const ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_str_needs_rehash(
        str_: *const ::std::os::raw::c_char,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_scalarmult_curve25519_bytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_curve25519_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_curve25519(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_curve25519_base(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_bytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_scalarmult_base(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_boxzerobytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xsalsa20poly1305_zerobytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_secretbox_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_easy(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_open_easy(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_open_detached(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_secretbox_zerobytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_boxzerobytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_xor_ic(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        ic: u64,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_xor_ic(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        ic: u32,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_chacha20_ietf_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_abytes() -> usize;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_headerbytes() -> usize;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_tag_message() -> ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_tag_push() -> ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_tag_rekey() -> ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_tag_final() -> ::std::os::raw::c_uchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct crypto_secretstream_xchacha20poly1305_state {
    pub k: [::std::os::raw::c_uchar; 32usize],
    pub nonce: [::std::os::raw::c_uchar; 12usize],
    pub _pad: [::std::os::raw::c_uchar; 8usize],
}
#[test]
fn bindgen_test_layout_crypto_secretstream_xchacha20poly1305_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_secretstream_xchacha20poly1305_state>(),
        52usize,
        concat!(
            "Size of: ",
            stringify!(crypto_secretstream_xchacha20poly1305_state)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_secretstream_xchacha20poly1305_state>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(crypto_secretstream_xchacha20poly1305_state)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_secretstream_xchacha20poly1305_state>())).k as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_secretstream_xchacha20poly1305_state),
            "::",
            stringify!(k)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_secretstream_xchacha20poly1305_state>())).nonce
                as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_secretstream_xchacha20poly1305_state),
            "::",
            stringify!(nonce)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<crypto_secretstream_xchacha20poly1305_state>()))._pad as *const _
                as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_secretstream_xchacha20poly1305_state),
            "::",
            stringify!(_pad)
        )
    );
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_init_push(
        state: *mut crypto_secretstream_xchacha20poly1305_state,
        header: *mut ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_push(
        state: *mut crypto_secretstream_xchacha20poly1305_state,
        c: *mut ::std::os::raw::c_uchar,
        clen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
        tag: ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_init_pull(
        state: *mut crypto_secretstream_xchacha20poly1305_state,
        header: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_pull(
        state: *mut crypto_secretstream_xchacha20poly1305_state,
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        tag_p: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        ad: *const ::std::os::raw::c_uchar,
        adlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretstream_xchacha20poly1305_rekey(
        state: *mut crypto_secretstream_xchacha20poly1305_state,
    );
}
extern "C" {
    pub fn crypto_shorthash_siphash24_bytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_siphash24_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_siphash24(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_shorthash_siphashx24_bytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_siphashx24_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_siphashx24(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_shorthash_bytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_shorthash_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_shorthash(
        out: *mut ::std::os::raw::c_uchar,
        in_: *const ::std::os::raw::c_uchar,
        inlen: ::std::os::raw::c_ulonglong,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_shorthash_keygen(k: *mut ::std::os::raw::c_uchar);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct crypto_sign_ed25519ph_state {
    pub hs: crypto_hash_sha512_state,
}
#[test]
fn bindgen_test_layout_crypto_sign_ed25519ph_state() {
    assert_eq!(
        ::std::mem::size_of::<crypto_sign_ed25519ph_state>(),
        208usize,
        concat!("Size of: ", stringify!(crypto_sign_ed25519ph_state))
    );
    assert_eq!(
        ::std::mem::align_of::<crypto_sign_ed25519ph_state>(),
        8usize,
        concat!("Alignment of ", stringify!(crypto_sign_ed25519ph_state))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<crypto_sign_ed25519ph_state>())).hs as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(crypto_sign_ed25519ph_state),
            "::",
            stringify!(hs)
        )
    );
}
extern "C" {
    pub fn crypto_sign_ed25519ph_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519_bytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_sign_ed25519(
        sm: *mut ::std::os::raw::c_uchar,
        smlen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_open(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        sm: *const ::std::os::raw::c_uchar,
        smlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_detached(
        sig: *mut ::std::os::raw::c_uchar,
        siglen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_verify_detached(
        sig: *const ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_pk_to_curve25519(
        curve25519_pk: *mut ::std::os::raw::c_uchar,
        ed25519_pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_sk_to_curve25519(
        curve25519_sk: *mut ::std::os::raw::c_uchar,
        ed25519_sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_sk_to_seed(
        seed: *mut ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519_sk_to_pk(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519ph_init(
        state: *mut crypto_sign_ed25519ph_state,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519ph_update(
        state: *mut crypto_sign_ed25519ph_state,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519ph_final_create(
        state: *mut crypto_sign_ed25519ph_state,
        sig: *mut ::std::os::raw::c_uchar,
        siglen_p: *mut ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_ed25519ph_final_verify(
        state: *mut crypto_sign_ed25519ph_state,
        sig: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
pub type crypto_sign_state = crypto_sign_ed25519ph_state;
extern "C" {
    pub fn crypto_sign_statebytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_bytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_sign_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_sign_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_sign_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign(
        sm: *mut ::std::os::raw::c_uchar,
        smlen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_open(
        m: *mut ::std::os::raw::c_uchar,
        mlen_p: *mut ::std::os::raw::c_ulonglong,
        sm: *const ::std::os::raw::c_uchar,
        smlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_detached(
        sig: *mut ::std::os::raw::c_uchar,
        siglen_p: *mut ::std::os::raw::c_ulonglong,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_verify_detached(
        sig: *const ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_init(state: *mut crypto_sign_state) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_update(
        state: *mut crypto_sign_state,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_final_create(
        state: *mut crypto_sign_state,
        sig: *mut ::std::os::raw::c_uchar,
        siglen_p: *mut ::std::os::raw::c_ulonglong,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_sign_final_verify(
        state: *mut crypto_sign_state,
        sig: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_primitive() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_stream(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_stream_salsa20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa20_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa20_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa20(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa20_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa20_xor_ic(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        ic: u64,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa20_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_verify_16_bytes() -> usize;
}
extern "C" {
    pub fn crypto_verify_16(
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_verify_32_bytes() -> usize;
}
extern "C" {
    pub fn crypto_verify_32(
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_verify_64_bytes() -> usize;
}
extern "C" {
    pub fn crypto_verify_64(
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct randombytes_implementation {
    pub implementation_name:
        ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
    pub random: ::std::option::Option<unsafe extern "C" fn() -> u32>,
    pub stir: ::std::option::Option<unsafe extern "C" fn()>,
    pub uniform: ::std::option::Option<unsafe extern "C" fn(upper_bound: u32) -> u32>,
    pub buf:
        ::std::option::Option<unsafe extern "C" fn(buf: *mut ::std::os::raw::c_void, size: usize)>,
    pub close: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout_randombytes_implementation() {
    assert_eq!(
        ::std::mem::size_of::<randombytes_implementation>(),
        48usize,
        concat!("Size of: ", stringify!(randombytes_implementation))
    );
    assert_eq!(
        ::std::mem::align_of::<randombytes_implementation>(),
        8usize,
        concat!("Alignment of ", stringify!(randombytes_implementation))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<randombytes_implementation>())).implementation_name as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(implementation_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<randombytes_implementation>())).random as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(random)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<randombytes_implementation>())).stir as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(stir)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<randombytes_implementation>())).uniform as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(uniform)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<randombytes_implementation>())).buf as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(buf)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<randombytes_implementation>())).close as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(randombytes_implementation),
            "::",
            stringify!(close)
        )
    );
}
extern "C" {
    pub fn randombytes_seedbytes() -> usize;
}
extern "C" {
    pub fn randombytes_buf(buf: *mut ::std::os::raw::c_void, size: usize);
}
extern "C" {
    pub fn randombytes_buf_deterministic(
        buf: *mut ::std::os::raw::c_void,
        size: usize,
        seed: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn randombytes_random() -> u32;
}
extern "C" {
    pub fn randombytes_uniform(upper_bound: u32) -> u32;
}
extern "C" {
    pub fn randombytes_stir();
}
extern "C" {
    pub fn randombytes_close() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn randombytes_set_implementation(
        impl_: *mut randombytes_implementation,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn randombytes_implementation_name() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn randombytes(buf: *mut ::std::os::raw::c_uchar, buf_len: ::std::os::raw::c_ulonglong);
}
extern "C" {
    pub static mut randombytes_internal_implementation: randombytes_implementation;
}
extern "C" {
    pub static mut randombytes_sysrandom_implementation: randombytes_implementation;
}
extern "C" {
    pub fn sodium_runtime_has_neon() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_sse2() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_sse3() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_ssse3() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_sse41() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_avx() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_avx2() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_avx512f() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_pclmul() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_aesni() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_runtime_has_rdrand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _sodium_runtime_get_cpu_features() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_memzero(pnt: *mut ::std::os::raw::c_void, len: usize);
}
extern "C" {
    pub fn sodium_stackzero(len: usize);
}
extern "C" {
    pub fn sodium_memcmp(
        b1_: *const ::std::os::raw::c_void,
        b2_: *const ::std::os::raw::c_void,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_compare(
        b1_: *const ::std::os::raw::c_uchar,
        b2_: *const ::std::os::raw::c_uchar,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_is_zero(n: *const ::std::os::raw::c_uchar, nlen: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_increment(n: *mut ::std::os::raw::c_uchar, nlen: usize);
}
extern "C" {
    pub fn sodium_add(
        a: *mut ::std::os::raw::c_uchar,
        b: *const ::std::os::raw::c_uchar,
        len: usize,
    );
}
extern "C" {
    pub fn sodium_sub(
        a: *mut ::std::os::raw::c_uchar,
        b: *const ::std::os::raw::c_uchar,
        len: usize,
    );
}
extern "C" {
    pub fn sodium_bin2hex(
        hex: *mut ::std::os::raw::c_char,
        hex_maxlen: usize,
        bin: *const ::std::os::raw::c_uchar,
        bin_len: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn sodium_hex2bin(
        bin: *mut ::std::os::raw::c_uchar,
        bin_maxlen: usize,
        hex: *const ::std::os::raw::c_char,
        hex_len: usize,
        ignore: *const ::std::os::raw::c_char,
        bin_len: *mut usize,
        hex_end: *mut *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_base64_encoded_len(bin_len: usize, variant: ::std::os::raw::c_int) -> usize;
}
extern "C" {
    pub fn sodium_bin2base64(
        b64: *mut ::std::os::raw::c_char,
        b64_maxlen: usize,
        bin: *const ::std::os::raw::c_uchar,
        bin_len: usize,
        variant: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn sodium_base642bin(
        bin: *mut ::std::os::raw::c_uchar,
        bin_maxlen: usize,
        b64: *const ::std::os::raw::c_char,
        b64_len: usize,
        ignore: *const ::std::os::raw::c_char,
        bin_len: *mut usize,
        b64_end: *mut *const ::std::os::raw::c_char,
        variant: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_mlock(addr: *mut ::std::os::raw::c_void, len: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_munlock(addr: *mut ::std::os::raw::c_void, len: usize) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_malloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn sodium_allocarray(count: usize, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn sodium_free(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn sodium_mprotect_noaccess(ptr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_mprotect_readonly(ptr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_mprotect_readwrite(ptr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_pad(
        padded_buflen_p: *mut usize,
        buf: *mut ::std::os::raw::c_uchar,
        unpadded_buflen: usize,
        blocksize: usize,
        max_buflen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sodium_unpad(
        unpadded_buflen_p: *mut usize,
        buf: *const ::std::os::raw::c_uchar,
        padded_buflen: usize,
        blocksize: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _sodium_alloc_init() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xchacha20_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_xchacha20_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_xchacha20_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_xchacha20(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xchacha20_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xchacha20_xor_ic(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        ic: u64,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_xchacha20_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_seedbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_publickeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_secretkeybytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_beforenmbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_seed_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
        seed: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_keypair(
        pk: *mut ::std::os::raw::c_uchar,
        sk: *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_easy(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_open_easy(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_open_detached(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_beforenm(
        k: *mut ::std::os::raw::c_uchar,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_easy_afternm(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_open_easy_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_detached_afternm(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_open_detached_afternm(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_sealbytes() -> usize;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_seal(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_box_curve25519xchacha20poly1305_seal_open(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        pk: *const ::std::os::raw::c_uchar,
        sk: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_bytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ed25519_uniformbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ed25519_hashbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ed25519_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ed25519_nonreducedscalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ed25519_is_valid_point(
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_add(
        r: *mut ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
        q: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_sub(
        r: *mut ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
        q: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_from_uniform(
        p: *mut ::std::os::raw::c_uchar,
        r: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_from_hash(
        p: *mut ::std::os::raw::c_uchar,
        h: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_random(p: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_random(r: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_invert(
        recip: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_negate(
        neg: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_complement(
        comp: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_add(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_sub(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_mul(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ed25519_scalar_reduce(
        r: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_bytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ristretto255_hashbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ristretto255_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ristretto255_nonreducedscalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_core_ristretto255_is_valid_point(
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ristretto255_add(
        r: *mut ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
        q: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ristretto255_sub(
        r: *mut ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
        q: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ristretto255_from_hash(
        p: *mut ::std::os::raw::c_uchar,
        r: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ristretto255_random(p: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_random(r: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_invert(
        recip: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_negate(
        neg: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_complement(
        comp: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_add(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_sub(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_mul(
        z: *mut ::std::os::raw::c_uchar,
        x: *const ::std::os::raw::c_uchar,
        y: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_core_ristretto255_scalar_reduce(
        r: *mut ::std::os::raw::c_uchar,
        s: *const ::std::os::raw::c_uchar,
    );
}
extern "C" {
    pub fn crypto_scalarmult_ed25519_bytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_ed25519_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_ed25519(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_ed25519_noclamp(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_ed25519_base(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_ed25519_base_noclamp(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_ristretto255_bytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_ristretto255_scalarbytes() -> usize;
}
extern "C" {
    pub fn crypto_scalarmult_ristretto255(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
        p: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_scalarmult_ristretto255_base(
        q: *mut ::std::os::raw::c_uchar,
        n: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_macbytes() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_easy(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_open_easy(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_detached(
        c: *mut ::std::os::raw::c_uchar,
        mac: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_secretbox_xchacha20poly1305_open_detached(
        m: *mut ::std::os::raw::c_uchar,
        c: *const ::std::os::raw::c_uchar,
        mac: *const ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_bytes_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_bytes_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_passwd_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_passwd_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_saltbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_strbytes() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_strprefix() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_opslimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_opslimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_memlimit_min() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_memlimit_max() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_opslimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_memlimit_interactive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive() -> usize;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256(
        out: *mut ::std::os::raw::c_uchar,
        outlen: ::std::os::raw::c_ulonglong,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        salt: *const ::std::os::raw::c_uchar,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_str(
        out: *mut ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_str_verify(
        str_: *const ::std::os::raw::c_char,
        passwd: *const ::std::os::raw::c_char,
        passwdlen: ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_ll(
        passwd: *const u8,
        passwdlen: usize,
        salt: *const u8,
        saltlen: usize,
        N: u64,
        r: u32,
        p: u32,
        buf: *mut u8,
        buflen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_pwhash_scryptsalsa208sha256_str_needs_rehash(
        str_: *const ::std::os::raw::c_char,
        opslimit: ::std::os::raw::c_ulonglong,
        memlimit: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa2012_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa2012_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa2012_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa2012(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa2012_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa2012_keygen(k: *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn crypto_stream_salsa208_keybytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa208_noncebytes() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa208_messagebytes_max() -> usize;
}
extern "C" {
    pub fn crypto_stream_salsa208(
        c: *mut ::std::os::raw::c_uchar,
        clen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa208_xor(
        c: *mut ::std::os::raw::c_uchar,
        m: *const ::std::os::raw::c_uchar,
        mlen: ::std::os::raw::c_ulonglong,
        n: *const ::std::os::raw::c_uchar,
        k: *const ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn crypto_stream_salsa208_keygen(k: *mut ::std::os::raw::c_uchar);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct iovec {
    pub iov_base: *mut ::std::os::raw::c_void,
    pub iov_len: usize,
}
#[test]
fn bindgen_test_layout_iovec() {
    assert_eq!(
        ::std::mem::size_of::<iovec>(),
        16usize,
        concat!("Size of: ", stringify!(iovec))
    );
    assert_eq!(
        ::std::mem::align_of::<iovec>(),
        8usize,
        concat!("Alignment of ", stringify!(iovec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iovec>())).iov_base as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(iovec),
            "::",
            stringify!(iov_base)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iovec>())).iov_len as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(iovec),
            "::",
            stringify!(iov_len)
        )
    );
}
pub type socklen_t = __socklen_t;
pub const __socket_type_SOCK_STREAM: __socket_type = 1;
pub const __socket_type_SOCK_DGRAM: __socket_type = 2;
pub const __socket_type_SOCK_RAW: __socket_type = 3;
pub const __socket_type_SOCK_RDM: __socket_type = 4;
pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5;
pub const __socket_type_SOCK_DCCP: __socket_type = 6;
pub const __socket_type_SOCK_PACKET: __socket_type = 10;
pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288;
pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048;
pub type __socket_type = ::std::os::raw::c_uint;
pub type sa_family_t = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr {
    pub sa_family: sa_family_t,
    pub sa_data: [::std::os::raw::c_char; 14usize],
}
#[test]
fn bindgen_test_layout_sockaddr() {
    assert_eq!(
        ::std::mem::size_of::<sockaddr>(),
        16usize,
        concat!("Size of: ", stringify!(sockaddr))
    );
    assert_eq!(
        ::std::mem::align_of::<sockaddr>(),
        2usize,
        concat!("Alignment of ", stringify!(sockaddr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr>())).sa_family as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr),
            "::",
            stringify!(sa_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr>())).sa_data as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr),
            "::",
            stringify!(sa_data)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sockaddr_storage {
    pub ss_family: sa_family_t,
    pub __ss_padding: [::std::os::raw::c_char; 118usize],
    pub __ss_align: ::std::os::raw::c_ulong,
}
#[test]
fn bindgen_test_layout_sockaddr_storage() {
    assert_eq!(
        ::std::mem::size_of::<sockaddr_storage>(),
        128usize,
        concat!("Size of: ", stringify!(sockaddr_storage))
    );
    assert_eq!(
        ::std::mem::align_of::<sockaddr_storage>(),
        8usize,
        concat!("Alignment of ", stringify!(sockaddr_storage))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_storage>())).ss_family as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_storage),
            "::",
            stringify!(ss_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_storage>())).__ss_padding as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_storage),
            "::",
            stringify!(__ss_padding)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_storage>())).__ss_align as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_storage),
            "::",
            stringify!(__ss_align)
        )
    );
}
pub const MSG_OOB: ::std::os::raw::c_uint = 1;
pub const MSG_PEEK: ::std::os::raw::c_uint = 2;
pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4;
pub const MSG_TRYHARD: ::std::os::raw::c_uint = 4;
pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8;
pub const MSG_PROXY: ::std::os::raw::c_uint = 16;
pub const MSG_TRUNC: ::std::os::raw::c_uint = 32;
pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64;
pub const MSG_EOR: ::std::os::raw::c_uint = 128;
pub const MSG_WAITALL: ::std::os::raw::c_uint = 256;
pub const MSG_FIN: ::std::os::raw::c_uint = 512;
pub const MSG_SYN: ::std::os::raw::c_uint = 1024;
pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048;
pub const MSG_RST: ::std::os::raw::c_uint = 4096;
pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192;
pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384;
pub const MSG_MORE: ::std::os::raw::c_uint = 32768;
pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536;
pub const MSG_BATCH: ::std::os::raw::c_uint = 262144;
pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864;
pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912;
pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824;
pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct msghdr {
    pub msg_name: *mut ::std::os::raw::c_void,
    pub msg_namelen: socklen_t,
    pub msg_iov: *mut iovec,
    pub msg_iovlen: usize,
    pub msg_control: *mut ::std::os::raw::c_void,
    pub msg_controllen: usize,
    pub msg_flags: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_msghdr() {
    assert_eq!(
        ::std::mem::size_of::<msghdr>(),
        56usize,
        concat!("Size of: ", stringify!(msghdr))
    );
    assert_eq!(
        ::std::mem::align_of::<msghdr>(),
        8usize,
        concat!("Alignment of ", stringify!(msghdr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_namelen as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_namelen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_iov as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_iov)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_iovlen as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_iovlen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_control as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_control)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_controllen as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_controllen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<msghdr>())).msg_flags as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(msghdr),
            "::",
            stringify!(msg_flags)
        )
    );
}
#[repr(C)]
#[derive(Debug)]
pub struct cmsghdr {
    pub cmsg_len: usize,
    pub cmsg_level: ::std::os::raw::c_int,
    pub cmsg_type: ::std::os::raw::c_int,
    pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>,
}
#[test]
fn bindgen_test_layout_cmsghdr() {
    assert_eq!(
        ::std::mem::size_of::<cmsghdr>(),
        16usize,
        concat!("Size of: ", stringify!(cmsghdr))
    );
    assert_eq!(
        ::std::mem::align_of::<cmsghdr>(),
        8usize,
        concat!("Alignment of ", stringify!(cmsghdr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<cmsghdr>())).cmsg_len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(cmsghdr),
            "::",
            stringify!(cmsg_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<cmsghdr>())).cmsg_level as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(cmsghdr),
            "::",
            stringify!(cmsg_level)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<cmsghdr>())).cmsg_type as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(cmsghdr),
            "::",
            stringify!(cmsg_type)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<cmsghdr>())).__cmsg_data as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(cmsghdr),
            "::",
            stringify!(__cmsg_data)
        )
    );
}
extern "C" {
    pub fn __cmsg_nxthdr(__mhdr: *mut msghdr, __cmsg: *mut cmsghdr) -> *mut cmsghdr;
}
pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1;
pub const SCM_CREDENTIALS: ::std::os::raw::c_uint = 2;
pub type _bindgen_ty_2 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ucred {
    pub pid: pid_t,
    pub uid: uid_t,
    pub gid: gid_t,
}
#[test]
fn bindgen_test_layout_ucred() {
    assert_eq!(
        ::std::mem::size_of::<ucred>(),
        12usize,
        concat!("Size of: ", stringify!(ucred))
    );
    assert_eq!(
        ::std::mem::align_of::<ucred>(),
        4usize,
        concat!("Alignment of ", stringify!(ucred))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ucred>())).pid as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ucred),
            "::",
            stringify!(pid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ucred>())).uid as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ucred),
            "::",
            stringify!(uid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ucred>())).gid as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ucred),
            "::",
            stringify!(gid)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fd_set {
    pub fds_bits: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___kernel_fd_set() {
    assert_eq!(
        ::std::mem::size_of::<__kernel_fd_set>(),
        128usize,
        concat!("Size of: ", stringify!(__kernel_fd_set))
    );
    assert_eq!(
        ::std::mem::align_of::<__kernel_fd_set>(),
        8usize,
        concat!("Alignment of ", stringify!(__kernel_fd_set))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__kernel_fd_set),
            "::",
            stringify!(fds_bits)
        )
    );
}
pub type __kernel_sighandler_t =
    ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
pub type __kernel_key_t = ::std::os::raw::c_int;
pub type __kernel_mqd_t = ::std::os::raw::c_int;
pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
pub type __kernel_old_dev_t = ::std::os::raw::c_ulong;
pub type __kernel_long_t = ::std::os::raw::c_long;
pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
pub type __kernel_ino_t = __kernel_ulong_t;
pub type __kernel_mode_t = ::std::os::raw::c_uint;
pub type __kernel_pid_t = ::std::os::raw::c_int;
pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
pub type __kernel_uid_t = ::std::os::raw::c_uint;
pub type __kernel_gid_t = ::std::os::raw::c_uint;
pub type __kernel_suseconds_t = __kernel_long_t;
pub type __kernel_daddr_t = ::std::os::raw::c_int;
pub type __kernel_uid32_t = ::std::os::raw::c_uint;
pub type __kernel_gid32_t = ::std::os::raw::c_uint;
pub type __kernel_size_t = __kernel_ulong_t;
pub type __kernel_ssize_t = __kernel_long_t;
pub type __kernel_ptrdiff_t = __kernel_long_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fsid_t {
    pub val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___kernel_fsid_t() {
    assert_eq!(
        ::std::mem::size_of::<__kernel_fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__kernel_fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__kernel_fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__kernel_fsid_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__kernel_fsid_t),
            "::",
            stringify!(val)
        )
    );
}
pub type __kernel_off_t = __kernel_long_t;
pub type __kernel_loff_t = ::std::os::raw::c_longlong;
pub type __kernel_old_time_t = __kernel_long_t;
pub type __kernel_time_t = __kernel_long_t;
pub type __kernel_time64_t = ::std::os::raw::c_longlong;
pub type __kernel_clock_t = __kernel_long_t;
pub type __kernel_timer_t = ::std::os::raw::c_int;
pub type __kernel_clockid_t = ::std::os::raw::c_int;
pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct linger {
    pub l_onoff: ::std::os::raw::c_int,
    pub l_linger: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_linger() {
    assert_eq!(
        ::std::mem::size_of::<linger>(),
        8usize,
        concat!("Size of: ", stringify!(linger))
    );
    assert_eq!(
        ::std::mem::align_of::<linger>(),
        4usize,
        concat!("Alignment of ", stringify!(linger))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<linger>())).l_onoff as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(linger),
            "::",
            stringify!(l_onoff)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<linger>())).l_linger as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(linger),
            "::",
            stringify!(l_linger)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct osockaddr {
    pub sa_family: ::std::os::raw::c_ushort,
    pub sa_data: [::std::os::raw::c_uchar; 14usize],
}
#[test]
fn bindgen_test_layout_osockaddr() {
    assert_eq!(
        ::std::mem::size_of::<osockaddr>(),
        16usize,
        concat!("Size of: ", stringify!(osockaddr))
    );
    assert_eq!(
        ::std::mem::align_of::<osockaddr>(),
        2usize,
        concat!("Alignment of ", stringify!(osockaddr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<osockaddr>())).sa_family as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(osockaddr),
            "::",
            stringify!(sa_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<osockaddr>())).sa_data as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(osockaddr),
            "::",
            stringify!(sa_data)
        )
    );
}
pub const SHUT_RD: ::std::os::raw::c_uint = 0;
pub const SHUT_WR: ::std::os::raw::c_uint = 1;
pub const SHUT_RDWR: ::std::os::raw::c_uint = 2;
pub type _bindgen_ty_3 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __SOCKADDR_ARG {
    pub __sockaddr__: *mut sockaddr,
    pub __sockaddr_at__: *mut sockaddr_at,
    pub __sockaddr_ax25__: *mut sockaddr_ax25,
    pub __sockaddr_dl__: *mut sockaddr_dl,
    pub __sockaddr_eon__: *mut sockaddr_eon,
    pub __sockaddr_in__: *mut sockaddr_in,
    pub __sockaddr_in6__: *mut sockaddr_in6,
    pub __sockaddr_inarp__: *mut sockaddr_inarp,
    pub __sockaddr_ipx__: *mut sockaddr_ipx,
    pub __sockaddr_iso__: *mut sockaddr_iso,
    pub __sockaddr_ns__: *mut sockaddr_ns,
    pub __sockaddr_un__: *mut sockaddr_un,
    pub __sockaddr_x25__: *mut sockaddr_x25,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout___SOCKADDR_ARG() {
    assert_eq!(
        ::std::mem::size_of::<__SOCKADDR_ARG>(),
        8usize,
        concat!("Size of: ", stringify!(__SOCKADDR_ARG))
    );
    assert_eq!(
        ::std::mem::align_of::<__SOCKADDR_ARG>(),
        8usize,
        concat!("Alignment of ", stringify!(__SOCKADDR_ARG))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_at__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_at__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_ax25__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ax25__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_dl__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_dl__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_eon__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_eon__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_in__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_in__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_in6__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_in6__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_inarp__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_inarp__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_ipx__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ipx__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_iso__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_iso__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_ns__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ns__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_un__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_un__)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__SOCKADDR_ARG>())).__sockaddr_x25__ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_x25__)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __CONST_SOCKADDR_ARG {
    pub __sockaddr__: *const sockaddr,
    pub __sockaddr_at__: *const sockaddr_at,
    pub __sockaddr_ax25__: *const sockaddr_ax25,
    pub __sockaddr_dl__: *const sockaddr_dl,
    pub __sockaddr_eon__: *const sockaddr_eon,
    pub __sockaddr_in__: *const sockaddr_in,
    pub __sockaddr_in6__: *const sockaddr_in6,
    pub __sockaddr_inarp__: *const sockaddr_inarp,
    pub __sockaddr_ipx__: *const sockaddr_ipx,
    pub __sockaddr_iso__: *const sockaddr_iso,
    pub __sockaddr_ns__: *const sockaddr_ns,
    pub __sockaddr_un__: *const sockaddr_un,
    pub __sockaddr_x25__: *const sockaddr_x25,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout___CONST_SOCKADDR_ARG() {
    assert_eq!(
        ::std::mem::size_of::<__CONST_SOCKADDR_ARG>(),
        8usize,
        concat!("Size of: ", stringify!(__CONST_SOCKADDR_ARG))
    );
    assert_eq!(
        ::std::mem::align_of::<__CONST_SOCKADDR_ARG>(),
        8usize,
        concat!("Alignment of ", stringify!(__CONST_SOCKADDR_ARG))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_at__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_at__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_ax25__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ax25__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_dl__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_dl__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_eon__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_eon__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_in__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_in__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_in6__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_in6__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_inarp__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_inarp__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_ipx__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ipx__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_iso__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_iso__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_ns__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_ns__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_un__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_un__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<__CONST_SOCKADDR_ARG>())).__sockaddr_x25__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__CONST_SOCKADDR_ARG),
            "::",
            stringify!(__sockaddr_x25__)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mmsghdr {
    pub msg_hdr: msghdr,
    pub msg_len: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_mmsghdr() {
    assert_eq!(
        ::std::mem::size_of::<mmsghdr>(),
        64usize,
        concat!("Size of: ", stringify!(mmsghdr))
    );
    assert_eq!(
        ::std::mem::align_of::<mmsghdr>(),
        8usize,
        concat!("Alignment of ", stringify!(mmsghdr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mmsghdr>())).msg_hdr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(mmsghdr),
            "::",
            stringify!(msg_hdr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<mmsghdr>())).msg_len as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(mmsghdr),
            "::",
            stringify!(msg_len)
        )
    );
}
extern "C" {
    pub fn socket(
        __domain: ::std::os::raw::c_int,
        __type: ::std::os::raw::c_int,
        __protocol: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn socketpair(
        __domain: ::std::os::raw::c_int,
        __type: ::std::os::raw::c_int,
        __protocol: ::std::os::raw::c_int,
        __fds: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn bind(
        __fd: ::std::os::raw::c_int,
        __addr: __CONST_SOCKADDR_ARG,
        __len: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsockname(
        __fd: ::std::os::raw::c_int,
        __addr: __SOCKADDR_ARG,
        __len: *mut socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn connect(
        __fd: ::std::os::raw::c_int,
        __addr: __CONST_SOCKADDR_ARG,
        __len: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getpeername(
        __fd: ::std::os::raw::c_int,
        __addr: __SOCKADDR_ARG,
        __len: *mut socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn send(
        __fd: ::std::os::raw::c_int,
        __buf: *const ::std::os::raw::c_void,
        __n: usize,
        __flags: ::std::os::raw::c_int,
    ) -> isize;
}
extern "C" {
    pub fn recv(
        __fd: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_void,
        __n: usize,
        __flags: ::std::os::raw::c_int,
    ) -> isize;
}
extern "C" {
    pub fn sendto(
        __fd: ::std::os::raw::c_int,
        __buf: *const ::std::os::raw::c_void,
        __n: usize,
        __flags: ::std::os::raw::c_int,
        __addr: __CONST_SOCKADDR_ARG,
        __addr_len: socklen_t,
    ) -> isize;
}
extern "C" {
    pub fn recvfrom(
        __fd: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_void,
        __n: usize,
        __flags: ::std::os::raw::c_int,
        __addr: __SOCKADDR_ARG,
        __addr_len: *mut socklen_t,
    ) -> isize;
}
extern "C" {
    pub fn sendmsg(
        __fd: ::std::os::raw::c_int,
        __message: *const msghdr,
        __flags: ::std::os::raw::c_int,
    ) -> isize;
}
extern "C" {
    pub fn sendmmsg(
        __fd: ::std::os::raw::c_int,
        __vmessages: *mut mmsghdr,
        __vlen: ::std::os::raw::c_uint,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn recvmsg(
        __fd: ::std::os::raw::c_int,
        __message: *mut msghdr,
        __flags: ::std::os::raw::c_int,
    ) -> isize;
}
extern "C" {
    pub fn recvmmsg(
        __fd: ::std::os::raw::c_int,
        __vmessages: *mut mmsghdr,
        __vlen: ::std::os::raw::c_uint,
        __flags: ::std::os::raw::c_int,
        __tmo: *mut timespec,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsockopt(
        __fd: ::std::os::raw::c_int,
        __level: ::std::os::raw::c_int,
        __optname: ::std::os::raw::c_int,
        __optval: *mut ::std::os::raw::c_void,
        __optlen: *mut socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setsockopt(
        __fd: ::std::os::raw::c_int,
        __level: ::std::os::raw::c_int,
        __optname: ::std::os::raw::c_int,
        __optval: *const ::std::os::raw::c_void,
        __optlen: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn listen(__fd: ::std::os::raw::c_int, __n: ::std::os::raw::c_int)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn accept(
        __fd: ::std::os::raw::c_int,
        __addr: __SOCKADDR_ARG,
        __addr_len: *mut socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn accept4(
        __fd: ::std::os::raw::c_int,
        __addr: __SOCKADDR_ARG,
        __addr_len: *mut socklen_t,
        __flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn shutdown(
        __fd: ::std::os::raw::c_int,
        __how: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sockatmark(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn isfdtype(
        __fd: ::std::os::raw::c_int,
        __fdtype: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
pub type in_addr_t = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct in_addr {
    pub s_addr: in_addr_t,
}
#[test]
fn bindgen_test_layout_in_addr() {
    assert_eq!(
        ::std::mem::size_of::<in_addr>(),
        4usize,
        concat!("Size of: ", stringify!(in_addr))
    );
    assert_eq!(
        ::std::mem::align_of::<in_addr>(),
        4usize,
        concat!("Alignment of ", stringify!(in_addr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in_addr>())).s_addr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in_addr),
            "::",
            stringify!(s_addr)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip_opts {
    pub ip_dst: in_addr,
    pub ip_opts: [::std::os::raw::c_char; 40usize],
}
#[test]
fn bindgen_test_layout_ip_opts() {
    assert_eq!(
        ::std::mem::size_of::<ip_opts>(),
        44usize,
        concat!("Size of: ", stringify!(ip_opts))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_opts>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_opts))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_opts>())).ip_dst as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_opts),
            "::",
            stringify!(ip_dst)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_opts>())).ip_opts as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_opts),
            "::",
            stringify!(ip_opts)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip_mreqn {
    pub imr_multiaddr: in_addr,
    pub imr_address: in_addr,
    pub imr_ifindex: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_ip_mreqn() {
    assert_eq!(
        ::std::mem::size_of::<ip_mreqn>(),
        12usize,
        concat!("Size of: ", stringify!(ip_mreqn))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_mreqn>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_mreqn))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreqn>())).imr_multiaddr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreqn),
            "::",
            stringify!(imr_multiaddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreqn>())).imr_address as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreqn),
            "::",
            stringify!(imr_address)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreqn>())).imr_ifindex as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreqn),
            "::",
            stringify!(imr_ifindex)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct in_pktinfo {
    pub ipi_ifindex: ::std::os::raw::c_int,
    pub ipi_spec_dst: in_addr,
    pub ipi_addr: in_addr,
}
#[test]
fn bindgen_test_layout_in_pktinfo() {
    assert_eq!(
        ::std::mem::size_of::<in_pktinfo>(),
        12usize,
        concat!("Size of: ", stringify!(in_pktinfo))
    );
    assert_eq!(
        ::std::mem::align_of::<in_pktinfo>(),
        4usize,
        concat!("Alignment of ", stringify!(in_pktinfo))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in_pktinfo>())).ipi_ifindex as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in_pktinfo),
            "::",
            stringify!(ipi_ifindex)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in_pktinfo>())).ipi_spec_dst as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(in_pktinfo),
            "::",
            stringify!(ipi_spec_dst)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in_pktinfo>())).ipi_addr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(in_pktinfo),
            "::",
            stringify!(ipi_addr)
        )
    );
}
pub const IPPROTO_IP: ::std::os::raw::c_uint = 0;
pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1;
pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2;
pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4;
pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6;
pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8;
pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12;
pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17;
pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22;
pub const IPPROTO_TP: ::std::os::raw::c_uint = 29;
pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33;
pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41;
pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46;
pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47;
pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50;
pub const IPPROTO_AH: ::std::os::raw::c_uint = 51;
pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92;
pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94;
pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98;
pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103;
pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108;
pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132;
pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136;
pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137;
pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255;
pub const IPPROTO_MAX: ::std::os::raw::c_uint = 256;
pub type _bindgen_ty_4 = ::std::os::raw::c_uint;
pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0;
pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43;
pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44;
pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58;
pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59;
pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60;
pub const IPPROTO_MH: ::std::os::raw::c_uint = 135;
pub type _bindgen_ty_5 = ::std::os::raw::c_uint;
pub type in_port_t = u16;
pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7;
pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9;
pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11;
pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13;
pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15;
pub const IPPORT_FTP: ::std::os::raw::c_uint = 21;
pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23;
pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25;
pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37;
pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42;
pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43;
pub const IPPORT_MTP: ::std::os::raw::c_uint = 57;
pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69;
pub const IPPORT_RJE: ::std::os::raw::c_uint = 77;
pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79;
pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87;
pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95;
pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512;
pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513;
pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514;
pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520;
pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512;
pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513;
pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520;
pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024;
pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000;
pub type _bindgen_ty_6 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct in6_addr {
    pub __in6_u: in6_addr__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union in6_addr__bindgen_ty_1 {
    pub __u6_addr8: [u8; 16usize],
    pub __u6_addr16: [u16; 8usize],
    pub __u6_addr32: [u32; 4usize],
    _bindgen_union_align: [u32; 4usize],
}
#[test]
fn bindgen_test_layout_in6_addr__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<in6_addr__bindgen_ty_1>(),
        16usize,
        concat!("Size of: ", stringify!(in6_addr__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<in6_addr__bindgen_ty_1>(),
        4usize,
        concat!("Alignment of ", stringify!(in6_addr__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<in6_addr__bindgen_ty_1>())).__u6_addr8 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_addr__bindgen_ty_1),
            "::",
            stringify!(__u6_addr8)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<in6_addr__bindgen_ty_1>())).__u6_addr16 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_addr__bindgen_ty_1),
            "::",
            stringify!(__u6_addr16)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<in6_addr__bindgen_ty_1>())).__u6_addr32 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_addr__bindgen_ty_1),
            "::",
            stringify!(__u6_addr32)
        )
    );
}
#[test]
fn bindgen_test_layout_in6_addr() {
    assert_eq!(
        ::std::mem::size_of::<in6_addr>(),
        16usize,
        concat!("Size of: ", stringify!(in6_addr))
    );
    assert_eq!(
        ::std::mem::align_of::<in6_addr>(),
        4usize,
        concat!("Alignment of ", stringify!(in6_addr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in6_addr>())).__in6_u as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_addr),
            "::",
            stringify!(__in6_u)
        )
    );
}
extern "C" {
    pub static in6addr_any: in6_addr;
}
extern "C" {
    pub static in6addr_loopback: in6_addr;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_in {
    pub sin_family: sa_family_t,
    pub sin_port: in_port_t,
    pub sin_addr: in_addr,
    pub sin_zero: [::std::os::raw::c_uchar; 8usize],
}
#[test]
fn bindgen_test_layout_sockaddr_in() {
    assert_eq!(
        ::std::mem::size_of::<sockaddr_in>(),
        16usize,
        concat!("Size of: ", stringify!(sockaddr_in))
    );
    assert_eq!(
        ::std::mem::align_of::<sockaddr_in>(),
        4usize,
        concat!("Alignment of ", stringify!(sockaddr_in))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in>())).sin_family as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in),
            "::",
            stringify!(sin_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in>())).sin_port as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in),
            "::",
            stringify!(sin_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in>())).sin_addr as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in),
            "::",
            stringify!(sin_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in>())).sin_zero as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in),
            "::",
            stringify!(sin_zero)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sockaddr_in6 {
    pub sin6_family: sa_family_t,
    pub sin6_port: in_port_t,
    pub sin6_flowinfo: u32,
    pub sin6_addr: in6_addr,
    pub sin6_scope_id: u32,
}
#[test]
fn bindgen_test_layout_sockaddr_in6() {
    assert_eq!(
        ::std::mem::size_of::<sockaddr_in6>(),
        28usize,
        concat!("Size of: ", stringify!(sockaddr_in6))
    );
    assert_eq!(
        ::std::mem::align_of::<sockaddr_in6>(),
        4usize,
        concat!("Alignment of ", stringify!(sockaddr_in6))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in6>())).sin6_family as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in6),
            "::",
            stringify!(sin6_family)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in6>())).sin6_port as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in6),
            "::",
            stringify!(sin6_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in6>())).sin6_flowinfo as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in6),
            "::",
            stringify!(sin6_flowinfo)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in6>())).sin6_addr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in6),
            "::",
            stringify!(sin6_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<sockaddr_in6>())).sin6_scope_id as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(sockaddr_in6),
            "::",
            stringify!(sin6_scope_id)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip_mreq {
    pub imr_multiaddr: in_addr,
    pub imr_interface: in_addr,
}
#[test]
fn bindgen_test_layout_ip_mreq() {
    assert_eq!(
        ::std::mem::size_of::<ip_mreq>(),
        8usize,
        concat!("Size of: ", stringify!(ip_mreq))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_mreq>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_mreq))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreq>())).imr_multiaddr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreq),
            "::",
            stringify!(imr_multiaddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreq>())).imr_interface as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreq),
            "::",
            stringify!(imr_interface)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip_mreq_source {
    pub imr_multiaddr: in_addr,
    pub imr_interface: in_addr,
    pub imr_sourceaddr: in_addr,
}
#[test]
fn bindgen_test_layout_ip_mreq_source() {
    assert_eq!(
        ::std::mem::size_of::<ip_mreq_source>(),
        12usize,
        concat!("Size of: ", stringify!(ip_mreq_source))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_mreq_source>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_mreq_source))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreq_source>())).imr_multiaddr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreq_source),
            "::",
            stringify!(imr_multiaddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreq_source>())).imr_interface as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreq_source),
            "::",
            stringify!(imr_interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_mreq_source>())).imr_sourceaddr as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_mreq_source),
            "::",
            stringify!(imr_sourceaddr)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ipv6_mreq {
    pub ipv6mr_multiaddr: in6_addr,
    pub ipv6mr_interface: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_ipv6_mreq() {
    assert_eq!(
        ::std::mem::size_of::<ipv6_mreq>(),
        20usize,
        concat!("Size of: ", stringify!(ipv6_mreq))
    );
    assert_eq!(
        ::std::mem::align_of::<ipv6_mreq>(),
        4usize,
        concat!("Alignment of ", stringify!(ipv6_mreq))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ipv6_mreq>())).ipv6mr_multiaddr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ipv6_mreq),
            "::",
            stringify!(ipv6mr_multiaddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ipv6_mreq>())).ipv6mr_interface as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ipv6_mreq),
            "::",
            stringify!(ipv6mr_interface)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct group_req {
    pub gr_interface: u32,
    pub gr_group: sockaddr_storage,
}
#[test]
fn bindgen_test_layout_group_req() {
    assert_eq!(
        ::std::mem::size_of::<group_req>(),
        136usize,
        concat!("Size of: ", stringify!(group_req))
    );
    assert_eq!(
        ::std::mem::align_of::<group_req>(),
        8usize,
        concat!("Alignment of ", stringify!(group_req))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_req>())).gr_interface as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(group_req),
            "::",
            stringify!(gr_interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_req>())).gr_group as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(group_req),
            "::",
            stringify!(gr_group)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct group_source_req {
    pub gsr_interface: u32,
    pub gsr_group: sockaddr_storage,
    pub gsr_source: sockaddr_storage,
}
#[test]
fn bindgen_test_layout_group_source_req() {
    assert_eq!(
        ::std::mem::size_of::<group_source_req>(),
        264usize,
        concat!("Size of: ", stringify!(group_source_req))
    );
    assert_eq!(
        ::std::mem::align_of::<group_source_req>(),
        8usize,
        concat!("Alignment of ", stringify!(group_source_req))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_source_req>())).gsr_interface as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(group_source_req),
            "::",
            stringify!(gsr_interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_source_req>())).gsr_group as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(group_source_req),
            "::",
            stringify!(gsr_group)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_source_req>())).gsr_source as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(group_source_req),
            "::",
            stringify!(gsr_source)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip_msfilter {
    pub imsf_multiaddr: in_addr,
    pub imsf_interface: in_addr,
    pub imsf_fmode: u32,
    pub imsf_numsrc: u32,
    pub imsf_slist: [in_addr; 1usize],
}
#[test]
fn bindgen_test_layout_ip_msfilter() {
    assert_eq!(
        ::std::mem::size_of::<ip_msfilter>(),
        20usize,
        concat!("Size of: ", stringify!(ip_msfilter))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_msfilter>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_msfilter))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_msfilter>())).imsf_multiaddr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_msfilter),
            "::",
            stringify!(imsf_multiaddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_msfilter>())).imsf_interface as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_msfilter),
            "::",
            stringify!(imsf_interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_msfilter>())).imsf_fmode as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_msfilter),
            "::",
            stringify!(imsf_fmode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_msfilter>())).imsf_numsrc as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_msfilter),
            "::",
            stringify!(imsf_numsrc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_msfilter>())).imsf_slist as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_msfilter),
            "::",
            stringify!(imsf_slist)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct group_filter {
    pub gf_interface: u32,
    pub gf_group: sockaddr_storage,
    pub gf_fmode: u32,
    pub gf_numsrc: u32,
    pub gf_slist: [sockaddr_storage; 1usize],
}
#[test]
fn bindgen_test_layout_group_filter() {
    assert_eq!(
        ::std::mem::size_of::<group_filter>(),
        272usize,
        concat!("Size of: ", stringify!(group_filter))
    );
    assert_eq!(
        ::std::mem::align_of::<group_filter>(),
        8usize,
        concat!("Alignment of ", stringify!(group_filter))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_filter>())).gf_interface as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(group_filter),
            "::",
            stringify!(gf_interface)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_filter>())).gf_group as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(group_filter),
            "::",
            stringify!(gf_group)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_filter>())).gf_fmode as *const _ as usize },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(group_filter),
            "::",
            stringify!(gf_fmode)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_filter>())).gf_numsrc as *const _ as usize },
        140usize,
        concat!(
            "Offset of field: ",
            stringify!(group_filter),
            "::",
            stringify!(gf_numsrc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<group_filter>())).gf_slist as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(group_filter),
            "::",
            stringify!(gf_slist)
        )
    );
}
extern "C" {
    pub fn ntohl(__netlong: u32) -> u32;
}
extern "C" {
    pub fn ntohs(__netshort: u16) -> u16;
}
extern "C" {
    pub fn htonl(__hostlong: u32) -> u32;
}
extern "C" {
    pub fn htons(__hostshort: u16) -> u16;
}
extern "C" {
    pub fn bindresvport(
        __sockfd: ::std::os::raw::c_int,
        __sock_in: *mut sockaddr_in,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn bindresvport6(
        __sockfd: ::std::os::raw::c_int,
        __sock_in: *mut sockaddr_in6,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct in6_pktinfo {
    pub ipi6_addr: in6_addr,
    pub ipi6_ifindex: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_in6_pktinfo() {
    assert_eq!(
        ::std::mem::size_of::<in6_pktinfo>(),
        20usize,
        concat!("Size of: ", stringify!(in6_pktinfo))
    );
    assert_eq!(
        ::std::mem::align_of::<in6_pktinfo>(),
        4usize,
        concat!("Alignment of ", stringify!(in6_pktinfo))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in6_pktinfo>())).ipi6_addr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_pktinfo),
            "::",
            stringify!(ipi6_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<in6_pktinfo>())).ipi6_ifindex as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(in6_pktinfo),
            "::",
            stringify!(ipi6_ifindex)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip6_mtuinfo {
    pub ip6m_addr: sockaddr_in6,
    pub ip6m_mtu: u32,
}
#[test]
fn bindgen_test_layout_ip6_mtuinfo() {
    assert_eq!(
        ::std::mem::size_of::<ip6_mtuinfo>(),
        32usize,
        concat!("Size of: ", stringify!(ip6_mtuinfo))
    );
    assert_eq!(
        ::std::mem::align_of::<ip6_mtuinfo>(),
        4usize,
        concat!("Alignment of ", stringify!(ip6_mtuinfo))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip6_mtuinfo>())).ip6m_addr as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip6_mtuinfo),
            "::",
            stringify!(ip6m_addr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip6_mtuinfo>())).ip6m_mtu as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(ip6_mtuinfo),
            "::",
            stringify!(ip6m_mtu)
        )
    );
}
extern "C" {
    pub fn inet6_option_space(__nbytes: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_option_init(
        __bp: *mut ::std::os::raw::c_void,
        __cmsgp: *mut *mut cmsghdr,
        __type: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_option_append(
        __cmsg: *mut cmsghdr,
        __typep: *const u8,
        __multx: ::std::os::raw::c_int,
        __plusy: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_option_alloc(
        __cmsg: *mut cmsghdr,
        __datalen: ::std::os::raw::c_int,
        __multx: ::std::os::raw::c_int,
        __plusy: ::std::os::raw::c_int,
    ) -> *mut u8;
}
extern "C" {
    pub fn inet6_option_next(
        __cmsg: *const cmsghdr,
        __tptrp: *mut *mut u8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_option_find(
        __cmsg: *const cmsghdr,
        __tptrp: *mut *mut u8,
        __type: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_init(
        __extbuf: *mut ::std::os::raw::c_void,
        __extlen: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_append(
        __extbuf: *mut ::std::os::raw::c_void,
        __extlen: socklen_t,
        __offset: ::std::os::raw::c_int,
        __type: u8,
        __len: socklen_t,
        __align: u8,
        __databufp: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_finish(
        __extbuf: *mut ::std::os::raw::c_void,
        __extlen: socklen_t,
        __offset: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_set_val(
        __databuf: *mut ::std::os::raw::c_void,
        __offset: ::std::os::raw::c_int,
        __val: *mut ::std::os::raw::c_void,
        __vallen: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_next(
        __extbuf: *mut ::std::os::raw::c_void,
        __extlen: socklen_t,
        __offset: ::std::os::raw::c_int,
        __typep: *mut u8,
        __lenp: *mut socklen_t,
        __databufp: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_find(
        __extbuf: *mut ::std::os::raw::c_void,
        __extlen: socklen_t,
        __offset: ::std::os::raw::c_int,
        __type: u8,
        __lenp: *mut socklen_t,
        __databufp: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_opt_get_val(
        __databuf: *mut ::std::os::raw::c_void,
        __offset: ::std::os::raw::c_int,
        __val: *mut ::std::os::raw::c_void,
        __vallen: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_rth_space(
        __type: ::std::os::raw::c_int,
        __segments: ::std::os::raw::c_int,
    ) -> socklen_t;
}
extern "C" {
    pub fn inet6_rth_init(
        __bp: *mut ::std::os::raw::c_void,
        __bp_len: socklen_t,
        __type: ::std::os::raw::c_int,
        __segments: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn inet6_rth_add(
        __bp: *mut ::std::os::raw::c_void,
        __addr: *const in6_addr,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_rth_reverse(
        __in: *const ::std::os::raw::c_void,
        __out: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_rth_segments(__bp: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn inet6_rth_getaddr(
        __bp: *const ::std::os::raw::c_void,
        __index: ::std::os::raw::c_int,
    ) -> *mut in6_addr;
}
extern "C" {
    pub fn getipv4sourcefilter(
        __s: ::std::os::raw::c_int,
        __interface_addr: in_addr,
        __group: in_addr,
        __fmode: *mut u32,
        __numsrc: *mut u32,
        __slist: *mut in_addr,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setipv4sourcefilter(
        __s: ::std::os::raw::c_int,
        __interface_addr: in_addr,
        __group: in_addr,
        __fmode: u32,
        __numsrc: u32,
        __slist: *const in_addr,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn getsourcefilter(
        __s: ::std::os::raw::c_int,
        __interface_addr: u32,
        __group: *const sockaddr,
        __grouplen: socklen_t,
        __fmode: *mut u32,
        __numsrc: *mut u32,
        __slist: *mut sockaddr_storage,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setsourcefilter(
        __s: ::std::os::raw::c_int,
        __interface_addr: u32,
        __group: *const sockaddr,
        __grouplen: socklen_t,
        __fmode: u32,
        __numsrc: u32,
        __slist: *const sockaddr_storage,
    ) -> ::std::os::raw::c_int;
}
pub const GNUNET_GenericReturnValue_GNUNET_SYSERR: GNUNET_GenericReturnValue = -1;
pub const GNUNET_GenericReturnValue_GNUNET_NO: GNUNET_GenericReturnValue = 0;
pub const GNUNET_GenericReturnValue_GNUNET_OK: GNUNET_GenericReturnValue = 1;
pub const GNUNET_GenericReturnValue_GNUNET_YES: GNUNET_GenericReturnValue = 1;
#[doc = " Named constants for return values.  The following invariants hold:"]
#[doc = " `GNUNET_NO == 0` (to allow `if (GNUNET_NO)`) `GNUNET_OK !="]
#[doc = " GNUNET_SYSERR`, `GNUNET_OK != GNUNET_NO`, `GNUNET_NO !="]
#[doc = " GNUNET_SYSERR` and finally `GNUNET_YES != GNUNET_NO`."]
pub type GNUNET_GenericReturnValue = ::std::os::raw::c_int;
#[doc = " @brief A 512-bit hashcode.  These are the default length for GNUnet, using SHA-512."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HashCode {
    pub bits: [u32; 16usize],
}
#[test]
fn bindgen_test_layout_GNUNET_HashCode() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_HashCode>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_HashCode))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_HashCode>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_HashCode))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HashCode>())).bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HashCode),
            "::",
            stringify!(bits)
        )
    );
}
#[doc = " @brief A 256-bit hashcode.  Used under special conditions, like when space"]
#[doc = " is critical and security is not impacted by it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ShortHashCode {
    pub bits: [u32; 8usize],
}
#[test]
fn bindgen_test_layout_GNUNET_ShortHashCode() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_ShortHashCode>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_ShortHashCode))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_ShortHashCode>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_ShortHashCode))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ShortHashCode>())).bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ShortHashCode),
            "::",
            stringify!(bits)
        )
    );
}
#[doc = " A UUID, a 128 bit \"random\" value.  We OFTEN use"]
#[doc = " timeflakes (see: https://github.com/anthonynsimon/timeflake),"]
#[doc = " where only 80 bits are random and the rest encodes"]
#[doc = " a timestamp to improve database access."]
#[doc = ""]
#[doc = " See #GNUNET_CRYPTO_random_timeflake()."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_Uuid {
    #[doc = " 128 random bits."]
    pub value: [u32; 4usize],
}
#[test]
fn bindgen_test_layout_GNUNET_Uuid() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_Uuid>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_Uuid))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_Uuid>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_Uuid))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_Uuid>())).value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_Uuid),
            "::",
            stringify!(value)
        )
    );
}
#[doc = " Header for all communications."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MessageHeader {
    #[doc = " The length of the struct (in bytes, including the length field itself),"]
    #[doc = " in big-endian format."]
    pub size: u16,
    #[doc = " The type of the message (GNUNET_MESSAGE_TYPE_XXXX), in big-endian format."]
    pub type_: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_MessageHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_MessageHeader>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_MessageHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_MessageHeader>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_MessageHeader))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MessageHeader>())).size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MessageHeader),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MessageHeader>())).type_ as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MessageHeader),
            "::",
            stringify!(type_)
        )
    );
}
#[doc = " Answer from service to client about last operation."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_OperationResultMessage {
    pub header: GNUNET_MessageHeader,
    pub reserved: u32,
    #[doc = " Operation ID."]
    pub op_id: u64,
    #[doc = " Status code for the operation."]
    pub result_code: u64,
}
#[test]
fn bindgen_test_layout_GNUNET_OperationResultMessage() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_OperationResultMessage>(),
        24usize,
        concat!("Size of: ", stringify!(GNUNET_OperationResultMessage))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_OperationResultMessage>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_OperationResultMessage))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OperationResultMessage>())).header as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OperationResultMessage),
            "::",
            stringify!(header)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OperationResultMessage>())).reserved as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OperationResultMessage),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OperationResultMessage>())).op_id as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OperationResultMessage),
            "::",
            stringify!(op_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OperationResultMessage>())).result_code as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OperationResultMessage),
            "::",
            stringify!(result_code)
        )
    );
}
#[doc = " Identifier for an asynchronous execution context."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_AsyncScopeId {
    pub bits: [u32; 4usize],
}
#[test]
fn bindgen_test_layout_GNUNET_AsyncScopeId() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_AsyncScopeId>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_AsyncScopeId))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_AsyncScopeId>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_AsyncScopeId))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_AsyncScopeId>())).bits as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_AsyncScopeId),
            "::",
            stringify!(bits)
        )
    );
}
#[doc = " Saved async scope identifier or root scope."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_AsyncScopeSave {
    #[doc = " Saved scope.  Unused if 'have_scope==GNUNET_NO'."]
    pub scope_id: GNUNET_AsyncScopeId,
    #[doc = " GNUNET_YES unless this saved scope is the unnamed root scope."]
    pub have_scope: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_GNUNET_AsyncScopeSave() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_AsyncScopeSave>(),
        20usize,
        concat!("Size of: ", stringify!(GNUNET_AsyncScopeSave))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_AsyncScopeSave>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_AsyncScopeSave))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_AsyncScopeSave>())).scope_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_AsyncScopeSave),
            "::",
            stringify!(scope_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_AsyncScopeSave>())).have_scope as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_AsyncScopeSave),
            "::",
            stringify!(have_scope)
        )
    );
}
#[doc = " Function called with a filename."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param filename complete filename (absolute path)"]
#[doc = " @return #GNUNET_OK to continue to iterate,"]
#[doc = "  #GNUNET_NO to stop iteration with no error,"]
#[doc = "  #GNUNET_SYSERR to abort iteration with error!"]
pub type GNUNET_FileNameCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue,
>;
#[doc = " Generic continuation callback."]
#[doc = ""]
#[doc = " @param cls  Closure."]
pub type GNUNET_ContinuationCallback =
    ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>;
#[doc = " Function called with the result of an asynchronous operation."]
#[doc = ""]
#[doc = " @param cls"]
#[doc = "        Closure."]
#[doc = " @param result_code"]
#[doc = "        Result code for the operation."]
#[doc = " @param data"]
#[doc = "        Data result for the operation."]
#[doc = " @param data_size"]
#[doc = "        Size of @a data."]
pub type GNUNET_ResultCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        result_code: i64,
        data: *const ::std::os::raw::c_void,
        data_size: u16,
    ),
>;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_UNSPECIFIED: GNUNET_ErrorType = -1;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_NONE: GNUNET_ErrorType = 0;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_ERROR: GNUNET_ErrorType = 1;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_WARNING: GNUNET_ErrorType = 2;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_MESSAGE: GNUNET_ErrorType = 4;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_INFO: GNUNET_ErrorType = 8;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_DEBUG: GNUNET_ErrorType = 16;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_INVALID: GNUNET_ErrorType = 32;
pub const GNUNET_ErrorType_GNUNET_ERROR_TYPE_BULK: GNUNET_ErrorType = 64;
#[doc = " @ingroup logging"]
#[doc = " Types of errors."]
pub type GNUNET_ErrorType = ::std::os::raw::c_int;
#[doc = " @ingroup logging"]
#[doc = " User-defined handler for log messages."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param kind severeity"]
#[doc = " @param component what component is issuing the message?"]
#[doc = " @param date when was the message logged?"]
#[doc = " @param message what is the message"]
pub type GNUNET_Logger = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        kind: GNUNET_ErrorType,
        component: *const ::std::os::raw::c_char,
        date: *const ::std::os::raw::c_char,
        message: *const ::std::os::raw::c_char,
    ),
>;
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Get the number of log calls that are going to be skipped"]
    #[doc = ""]
    #[doc = " @return number of log calls to be ignored"]
    pub fn GNUNET_get_log_skip() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GNUNET_get_log_call_status(
        caller_level: ::std::os::raw::c_int,
        comp: *const ::std::os::raw::c_char,
        file: *const ::std::os::raw::c_char,
        function: *const ::std::os::raw::c_char,
        line: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Main log function."]
    #[doc = ""]
    #[doc = " @param kind how serious is the error?"]
    #[doc = " @param message what is the message (format string)"]
    #[doc = " @param ... arguments for format string"]
    pub fn GNUNET_log_nocheck(kind: GNUNET_ErrorType, message: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Log function that specifies an alternative component."]
    #[doc = " This function should be used by plugins."]
    #[doc = ""]
    #[doc = " @param kind how serious is the error?"]
    #[doc = " @param comp component responsible for generating the message"]
    #[doc = " @param message what is the message (format string)"]
    #[doc = " @param ... arguments for format string"]
    pub fn GNUNET_log_from_nocheck(
        kind: GNUNET_ErrorType,
        comp: *const ::std::os::raw::c_char,
        message: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Log error message about missing configuration option."]
    #[doc = ""]
    #[doc = " @param kind log level"]
    #[doc = " @param section section with missing option"]
    #[doc = " @param option name of missing option"]
    pub fn GNUNET_log_config_missing(
        kind: GNUNET_ErrorType,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Log error message about invalid configuration option value."]
    #[doc = ""]
    #[doc = " @param kind log level"]
    #[doc = " @param section section with invalid option"]
    #[doc = " @param option name of invalid option"]
    #[doc = " @param required what is required that is invalid about the option"]
    pub fn GNUNET_log_config_invalid(
        kind: GNUNET_ErrorType,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        required: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Abort the process, generate a core dump if possible."]
    #[doc = " Most code should use `GNUNET_assert (0)` instead to"]
    #[doc = " first log the location of the failure."]
    pub fn GNUNET_abort_();
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Ignore the next @a n calls to the log function."]
    #[doc = ""]
    #[doc = " @param n number of log calls to ignore (could be negative)"]
    #[doc = " @param check_reset #GNUNET_YES to assert that the log skip counter is currently zero"]
    pub fn GNUNET_log_skip(n: ::std::os::raw::c_int, check_reset: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Setup logging."]
    #[doc = ""]
    #[doc = " @param comp default component to use"]
    #[doc = " @param loglevel what types of messages should be logged"]
    #[doc = " @param logfile change logging to logfile (use NULL to keep stderr)"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if logfile could not be opened"]
    pub fn GNUNET_log_setup(
        comp: *const ::std::os::raw::c_char,
        loglevel: *const ::std::os::raw::c_char,
        logfile: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Add a custom logger.  Note that installing any custom logger"]
    #[doc = " will disable the standard logger.  When multiple custom loggers"]
    #[doc = " are installed, all will be called.  The standard logger will"]
    #[doc = " only be used if no custom loggers are present."]
    #[doc = ""]
    #[doc = " @param logger log function"]
    #[doc = " @param logger_cls closure for @a logger"]
    pub fn GNUNET_logger_add(logger: GNUNET_Logger, logger_cls: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Remove a custom logger."]
    #[doc = ""]
    #[doc = " @param logger log function"]
    #[doc = " @param logger_cls closure for @a logger"]
    pub fn GNUNET_logger_remove(logger: GNUNET_Logger, logger_cls: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a short hash value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param shc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_sh2s(shc: *const GNUNET_ShortHashCode) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a UUID to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param uuid the UUID"]
    #[doc = " @return string"]
    pub fn GNUNET_uuid2s(uuid: *const GNUNET_Uuid) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a hash value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_h2s(hc: *const GNUNET_HashCode) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a hash value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant! Identical to #GNUNET_h2s(), except that another"]
    #[doc = " buffer is used so both #GNUNET_h2s() and #GNUNET_h2s2() can be"]
    #[doc = " used within the same log statement."]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_h2s2(hc: *const GNUNET_HashCode) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a hash value to a string (for printing debug messages)."]
    #[doc = " This prints all 104 characters of a hashcode!"]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_h2s_full(hc: *const GNUNET_HashCode) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a public key value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_p2s(p: *const GNUNET_CRYPTO_EddsaPublicKey) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a public key value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_p2s2(p: *const GNUNET_CRYPTO_EddsaPublicKey) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a public key value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_e2s(p: *const GNUNET_CRYPTO_EcdhePublicKey) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a public key value to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param hc the hash code"]
    #[doc = " @return string"]
    pub fn GNUNET_e2s2(p: *const GNUNET_CRYPTO_EcdhePublicKey) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a peer identity to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param pid the peer identity"]
    #[doc = " @return string form of the pid; will be overwritten by next"]
    #[doc = "         call to #GNUNET_i2s()."]
    pub fn GNUNET_i2s(pid: *const GNUNET_PeerIdentity) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a peer identity to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!  Identical to #GNUNET_i2s(), except that another"]
    #[doc = " buffer is used so both #GNUNET_i2s() and #GNUNET_i2s2() can be"]
    #[doc = " used within the same log statement."]
    #[doc = ""]
    #[doc = " @param pid the peer identity"]
    #[doc = " @return string form of the pid; will be overwritten by next"]
    #[doc = "         call to #GNUNET_i2s()."]
    pub fn GNUNET_i2s2(pid: *const GNUNET_PeerIdentity) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a peer identity to a string (for printing debug messages)."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param pid the peer identity"]
    #[doc = " @return string form of the pid; will be overwritten by next"]
    #[doc = "         call to #GNUNET_i2s_full()."]
    pub fn GNUNET_i2s_full(pid: *const GNUNET_PeerIdentity) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert a \"struct sockaddr*\" (IPv4 or IPv6 address) to a string"]
    #[doc = " (for printing debug messages).  This is one of the very few calls"]
    #[doc = " in the entire API that is NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param addr the address"]
    #[doc = " @param addrlen the length of the @a addr"]
    #[doc = " @return nicely formatted string for the address"]
    #[doc = "  will be overwritten by next call to #GNUNET_a2s()."]
    pub fn GNUNET_a2s(addr: *const sockaddr, addrlen: socklen_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup logging"]
    #[doc = " Convert error type to string."]
    #[doc = ""]
    #[doc = " @param kind type to convert"]
    #[doc = " @return string corresponding to the type"]
    pub fn GNUNET_error_type_to_string(kind: GNUNET_ErrorType) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert unsigned 64-bit integer to network byte order."]
    #[doc = ""]
    #[doc = " @param n"]
    #[doc = "        The value in host byte order."]
    #[doc = ""]
    #[doc = " @return The same value in network byte order."]
    pub fn GNUNET_htonll(n: u64) -> u64;
}
extern "C" {
    #[doc = " Convert double to network byte order."]
    #[doc = ""]
    #[doc = " @param d"]
    #[doc = "        The value in host byte order."]
    #[doc = ""]
    #[doc = " @return The same value in network byte order."]
    pub fn GNUNET_hton_double(d: f64) -> f64;
}
extern "C" {
    #[doc = " Convert double to host byte order"]
    #[doc = ""]
    #[doc = " @param d"]
    #[doc = "        The value in network byte order."]
    #[doc = ""]
    #[doc = " @return The same value in host byte order."]
    pub fn GNUNET_ntoh_double(d: f64) -> f64;
}
extern "C" {
    #[doc = " Compare memory in @a b1 and @a b2 in constant time, suitable for private"]
    #[doc = " data."]
    #[doc = ""]
    #[doc = " @param b1 some buffer of size @a len"]
    #[doc = " @param b2 another buffer of size @a len"]
    #[doc = " @param len number of bytes in @a b1 and @a b2"]
    #[doc = " @return 0 if buffers are equal,"]
    pub fn GNUNET_memcmp_ct_(
        b1: *const ::std::os::raw::c_void,
        b2: *const ::std::os::raw::c_void,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check that memory in @a a is all zeros. @a a must be a pointer."]
    #[doc = ""]
    #[doc = " @param a pointer to @a n bytes which should be tested for the"]
    #[doc = "          entire memory being zero'ed out."]
    #[doc = " @param n number of bytes in @a to be tested"]
    #[doc = " @return GNUNET_YES if a is zero, GNUNET_NO otherwise"]
    pub fn GNUNET_is_zero_(a: *const ::std::os::raw::c_void, n: usize)
        -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup memory"]
    #[doc = " Like snprintf, just aborts if the buffer is of insufficient size."]
    #[doc = ""]
    #[doc = " @param buf pointer to buffer that is written to"]
    #[doc = " @param size number of bytes in @a buf"]
    #[doc = " @param format format strings"]
    #[doc = " @param ... data for format string"]
    #[doc = " @return number of bytes written to buf or negative value on error"]
    pub fn GNUNET_snprintf(
        buf: *mut ::std::os::raw::c_char,
        size: usize,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup memory"]
    #[doc = " Like asprintf, just portable."]
    #[doc = ""]
    #[doc = " @param buf set to a buffer of sufficient size (allocated, caller must free)"]
    #[doc = " @param format format string (see printf, fprintf, etc.)"]
    #[doc = " @param ... data for format string"]
    #[doc = " @return number of bytes in \"*buf\" excluding 0-termination"]
    pub fn GNUNET_asprintf(
        buf: *mut *mut ::std::os::raw::c_char,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Allocate memory. Checks the return value, aborts if no more"]
    #[doc = " memory is available.  Don't use GNUNET_xmalloc_ directly. Use the"]
    #[doc = " #GNUNET_malloc macro."]
    #[doc = " The memory will be zero'ed out."]
    #[doc = ""]
    #[doc = " @param size number of bytes to allocate"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return allocated memory, never NULL"]
    pub fn GNUNET_xmalloc_(
        size: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Allocate memory for a two dimensional array in one block"]
    #[doc = " and set up pointers. Aborts if no more memory is available."]
    #[doc = " Don't use GNUNET_xnew_array_2d_ directly. Use the"]
    #[doc = " #GNUNET_new_array_2d macro."]
    #[doc = " The memory of the elements will be zero'ed out."]
    #[doc = ""]
    #[doc = " @param n size of the first dimension"]
    #[doc = " @param m size of the second dimension"]
    #[doc = " @param elementSize size of a single element in bytes"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return allocated memory, never NULL"]
    pub fn GNUNET_xnew_array_2d_(
        n: usize,
        m: usize,
        elementSize: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Allocate memory for a three dimensional array in one block"]
    #[doc = " and set up pointers. Aborts if no more memory is available."]
    #[doc = " Don't use GNUNET_xnew_array_3d_ directly. Use the"]
    #[doc = " #GNUNET_new_array_3d macro."]
    #[doc = " The memory of the elements will be zero'ed out."]
    #[doc = ""]
    #[doc = " @param n size of the first dimension"]
    #[doc = " @param m size of the second dimension"]
    #[doc = " @param o size of the third dimension"]
    #[doc = " @param elementSize size of a single element in bytes"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return allocated memory, never NULL"]
    pub fn GNUNET_xnew_array_3d_(
        n: usize,
        m: usize,
        o: usize,
        elementSize: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut *mut *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Allocate and initialize memory. Checks the return value, aborts if no more"]
    #[doc = " memory is available.  Don't use GNUNET_xmemdup_ directly. Use the"]
    #[doc = " #GNUNET_memdup macro."]
    #[doc = ""]
    #[doc = " @param buf buffer to initialize from (must contain size bytes)"]
    #[doc = " @param size number of bytes to allocate"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return allocated memory, never NULL"]
    pub fn GNUNET_xmemdup_(
        buf: *const ::std::os::raw::c_void,
        size: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Allocate memory.  This function does not check if the allocation"]
    #[doc = " request is within reasonable bounds, allowing allocations larger"]
    #[doc = " than 40 MB.  If you don't expect the possibility of very large"]
    #[doc = " allocations, use #GNUNET_malloc instead.  The memory will be zero'ed"]
    #[doc = " out."]
    #[doc = ""]
    #[doc = " @param size number of bytes to allocate"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return pointer to size bytes of memory, NULL if we do not have enough memory"]
    pub fn GNUNET_xmalloc_unchecked_(
        size: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Reallocate memory. Checks the return value, aborts if no more"]
    #[doc = " memory is available."]
    pub fn GNUNET_xrealloc_(
        ptr: *mut ::std::os::raw::c_void,
        n: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Free memory. Merely a wrapper for the case that we"]
    #[doc = " want to keep track of allocations.  Don't use GNUNET_xfree_"]
    #[doc = " directly. Use the #GNUNET_free macro."]
    #[doc = ""]
    #[doc = " @param ptr pointer to memory to free"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    pub fn GNUNET_xfree_(
        ptr: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Dup a string. Don't call GNUNET_xstrdup_ directly. Use the #GNUNET_strdup macro."]
    #[doc = " @param str string to duplicate"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return the duplicated string"]
    pub fn GNUNET_xstrdup_(
        str_: *const ::std::os::raw::c_char,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Dup partially a string. Don't call GNUNET_xstrndup_ directly. Use the #GNUNET_strndup macro."]
    #[doc = ""]
    #[doc = " @param str string to duplicate"]
    #[doc = " @param len length of the string to duplicate"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    #[doc = " @return the duplicated string"]
    pub fn GNUNET_xstrndup_(
        str_: *const ::std::os::raw::c_char,
        len: usize,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Grow an array, the new elements are zeroed out."]
    #[doc = " Grows old by (*oldCount-newCount)*elementSize"]
    #[doc = " bytes and sets *oldCount to newCount."]
    #[doc = ""]
    #[doc = " Don't call GNUNET_xgrow_ directly. Use the #GNUNET_array_grow macro."]
    #[doc = ""]
    #[doc = " @param old address of the pointer to the array"]
    #[doc = "        *old may be NULL"]
    #[doc = " @param elementSize the size of the elements of the array"]
    #[doc = " @param oldCount address of the number of elements in the *old array"]
    #[doc = " @param newCount number of elements in the new array, may be 0 (then *old will be NULL afterwards)"]
    #[doc = " @param filename where is this call being made (for debugging)"]
    #[doc = " @param linenumber line where this call is being made (for debugging)"]
    pub fn GNUNET_xgrow_(
        old: *mut *mut ::std::os::raw::c_void,
        elementSize: usize,
        oldCount: *mut ::std::os::raw::c_uint,
        newCount: ::std::os::raw::c_uint,
        filename: *const ::std::os::raw::c_char,
        linenumber: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " @ingroup memory"]
    #[doc = " Create a copy of the given message."]
    #[doc = ""]
    #[doc = " @param msg message to copy"]
    #[doc = " @return duplicate of the message"]
    pub fn GNUNET_copy_message(msg: *const GNUNET_MessageHeader) -> *mut GNUNET_MessageHeader;
}
extern "C" {
    #[doc = " Set the async scope for the current thread."]
    #[doc = ""]
    #[doc = " @param aid the async scope identifier"]
    #[doc = " @param old_scope[out] location to save the old scope"]
    pub fn GNUNET_async_scope_enter(
        aid: *const GNUNET_AsyncScopeId,
        old_scope: *mut GNUNET_AsyncScopeSave,
    );
}
extern "C" {
    #[doc = " Clear the current thread's async scope."]
    #[doc = ""]
    #[doc = " @param old_scope scope to restore"]
    pub fn GNUNET_async_scope_restore(old_scope: *mut GNUNET_AsyncScopeSave);
}
extern "C" {
    #[doc = " Get the current async scope."]
    #[doc = ""]
    #[doc = " @param[out] scope_ret pointer to where the result is stored"]
    pub fn GNUNET_async_scope_get(scope_ret: *mut GNUNET_AsyncScopeSave);
}
extern "C" {
    #[doc = " Generate a fresh async scope identifier."]
    #[doc = ""]
    #[doc = " @param[out] aid_ret pointer to where the result is stored"]
    pub fn GNUNET_async_scope_fresh(aid_ret: *mut GNUNET_AsyncScopeId);
}
#[doc = " Run with the same priority as the current job."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_KEEP: GNUNET_SCHEDULER_Priority = 0;
#[doc = " Run when otherwise idle."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_IDLE: GNUNET_SCHEDULER_Priority = 1;
#[doc = " Run as background job (higher than idle,"]
#[doc = " lower than default)."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_BACKGROUND:
    GNUNET_SCHEDULER_Priority = 2;
#[doc = " Run with the default priority (normal"]
#[doc = " P2P operations).  Any task that is scheduled"]
#[doc = " without an explicit priority being specified"]
#[doc = " will run with this priority."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_DEFAULT: GNUNET_SCHEDULER_Priority =
    3;
#[doc = " Run with high priority (important requests)."]
#[doc = " Higher than DEFAULT."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_HIGH: GNUNET_SCHEDULER_Priority = 4;
#[doc = " Run with priority for interactive tasks."]
#[doc = " Higher than \"HIGH\"."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_UI: GNUNET_SCHEDULER_Priority = 5;
#[doc = " Run with priority for urgent tasks.  Use"]
#[doc = " for things like aborts and shutdowns that"]
#[doc = " need to preempt \"UI\"-level tasks."]
#[doc = " Higher than \"UI\"."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_URGENT: GNUNET_SCHEDULER_Priority = 6;
#[doc = " This is an internal priority level that is only used for tasks"]
#[doc = " that are being triggered due to shutdown (they have automatically"]
#[doc = " highest priority).  User code must not use this priority level"]
#[doc = " directly.  Tasks run with this priority level that internally"]
#[doc = " schedule other tasks will see their original priority level"]
#[doc = " be inherited (unless otherwise specified)."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_SHUTDOWN: GNUNET_SCHEDULER_Priority =
    7;
#[doc = " Number of priorities (must be the last priority)."]
#[doc = " This priority must not be used by clients."]
pub const GNUNET_SCHEDULER_Priority_GNUNET_SCHEDULER_PRIORITY_COUNT: GNUNET_SCHEDULER_Priority = 8;
#[doc = " Valid task priorities.  Use these, do not pass random integers!"]
#[doc = " For various reasons (#3862 -- building with QT Creator, and"]
#[doc = " our restricted cross-compilation with emscripten) this cannot"]
#[doc = " be in gnunet_scheduler_lib.h, but it works if we declare it here."]
#[doc = " Naturally, logically this is part of the scheduler."]
pub type GNUNET_SCHEDULER_Priority = ::std::os::raw::c_uint;
extern "C" {
    pub fn memcpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memmove(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memccpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memset(
        __s: *mut ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memcmp(
        __s1: *const ::std::os::raw::c_void,
        __s2: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn memchr(
        __s: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn rawmemchr(
        __s: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn memrchr(
        __s: *const ::std::os::raw::c_void,
        __c: ::std::os::raw::c_int,
        __n: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn strcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcat(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strncat(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcoll(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strxfrm(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strcoll_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __l: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strxfrm_l(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: usize,
        __l: locale_t,
    ) -> usize;
}
extern "C" {
    pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strndup(
        __string: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strchr(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strrchr(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strchrnul(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcspn(
        __s: *const ::std::os::raw::c_char,
        __reject: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strspn(
        __s: *const ::std::os::raw::c_char,
        __accept: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strpbrk(
        __s: *const ::std::os::raw::c_char,
        __accept: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strstr(
        __haystack: *const ::std::os::raw::c_char,
        __needle: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strtok(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __strtok_r(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
        __save_ptr: *mut *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strtok_r(
        __s: *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
        __save_ptr: *mut *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strcasestr(
        __haystack: *const ::std::os::raw::c_char,
        __needle: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn memmem(
        __haystack: *const ::std::os::raw::c_void,
        __haystacklen: usize,
        __needle: *const ::std::os::raw::c_void,
        __needlelen: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn __mempcpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mempcpy(
        __dest: *mut ::std::os::raw::c_void,
        __src: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize;
}
extern "C" {
    pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strerror_r(
        __errnum: ::std::os::raw::c_int,
        __buf: *mut ::std::os::raw::c_char,
        __buflen: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strerror_l(
        __errnum: ::std::os::raw::c_int,
        __l: locale_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn bcmp(
        __s1: *const ::std::os::raw::c_void,
        __s2: *const ::std::os::raw::c_void,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn bcopy(
        __src: *const ::std::os::raw::c_void,
        __dest: *mut ::std::os::raw::c_void,
        __n: usize,
    );
}
extern "C" {
    pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn index(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn rindex(
        __s: *const ::std::os::raw::c_char,
        __c: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcasecmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncasecmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strcasecmp_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __loc: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strncasecmp_l(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
        __n: usize,
        __loc: locale_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize);
}
extern "C" {
    pub fn strsep(
        __stringp: *mut *mut ::std::os::raw::c_char,
        __delim: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __stpcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn stpcpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn __stpncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn stpncpy(
        __dest: *mut ::std::os::raw::c_char,
        __src: *const ::std::os::raw::c_char,
        __n: ::std::os::raw::c_ulong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn strverscmp(
        __s1: *const ::std::os::raw::c_char,
        __s2: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn strfry(__string: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn memfrob(__s: *mut ::std::os::raw::c_void, __n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn basename(__filename: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
pub const gpg_err_source_t_GPG_ERR_SOURCE_UNKNOWN: gpg_err_source_t = 0;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GCRYPT: gpg_err_source_t = 1;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GPG: gpg_err_source_t = 2;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GPGSM: gpg_err_source_t = 3;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GPGAGENT: gpg_err_source_t = 4;
pub const gpg_err_source_t_GPG_ERR_SOURCE_PINENTRY: gpg_err_source_t = 5;
pub const gpg_err_source_t_GPG_ERR_SOURCE_SCD: gpg_err_source_t = 6;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GPGME: gpg_err_source_t = 7;
pub const gpg_err_source_t_GPG_ERR_SOURCE_KEYBOX: gpg_err_source_t = 8;
pub const gpg_err_source_t_GPG_ERR_SOURCE_KSBA: gpg_err_source_t = 9;
pub const gpg_err_source_t_GPG_ERR_SOURCE_DIRMNGR: gpg_err_source_t = 10;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GSTI: gpg_err_source_t = 11;
pub const gpg_err_source_t_GPG_ERR_SOURCE_GPA: gpg_err_source_t = 12;
pub const gpg_err_source_t_GPG_ERR_SOURCE_KLEO: gpg_err_source_t = 13;
pub const gpg_err_source_t_GPG_ERR_SOURCE_G13: gpg_err_source_t = 14;
pub const gpg_err_source_t_GPG_ERR_SOURCE_ASSUAN: gpg_err_source_t = 15;
pub const gpg_err_source_t_GPG_ERR_SOURCE_TLS: gpg_err_source_t = 17;
pub const gpg_err_source_t_GPG_ERR_SOURCE_ANY: gpg_err_source_t = 31;
pub const gpg_err_source_t_GPG_ERR_SOURCE_USER_1: gpg_err_source_t = 32;
pub const gpg_err_source_t_GPG_ERR_SOURCE_USER_2: gpg_err_source_t = 33;
pub const gpg_err_source_t_GPG_ERR_SOURCE_USER_3: gpg_err_source_t = 34;
pub const gpg_err_source_t_GPG_ERR_SOURCE_USER_4: gpg_err_source_t = 35;
pub const gpg_err_source_t_GPG_ERR_SOURCE_DIM: gpg_err_source_t = 128;
pub type gpg_err_source_t = ::std::os::raw::c_uint;
pub const gpg_err_code_t_GPG_ERR_NO_ERROR: gpg_err_code_t = 0;
pub const gpg_err_code_t_GPG_ERR_GENERAL: gpg_err_code_t = 1;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_PACKET: gpg_err_code_t = 2;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_VERSION: gpg_err_code_t = 3;
pub const gpg_err_code_t_GPG_ERR_PUBKEY_ALGO: gpg_err_code_t = 4;
pub const gpg_err_code_t_GPG_ERR_DIGEST_ALGO: gpg_err_code_t = 5;
pub const gpg_err_code_t_GPG_ERR_BAD_PUBKEY: gpg_err_code_t = 6;
pub const gpg_err_code_t_GPG_ERR_BAD_SECKEY: gpg_err_code_t = 7;
pub const gpg_err_code_t_GPG_ERR_BAD_SIGNATURE: gpg_err_code_t = 8;
pub const gpg_err_code_t_GPG_ERR_NO_PUBKEY: gpg_err_code_t = 9;
pub const gpg_err_code_t_GPG_ERR_CHECKSUM: gpg_err_code_t = 10;
pub const gpg_err_code_t_GPG_ERR_BAD_PASSPHRASE: gpg_err_code_t = 11;
pub const gpg_err_code_t_GPG_ERR_CIPHER_ALGO: gpg_err_code_t = 12;
pub const gpg_err_code_t_GPG_ERR_KEYRING_OPEN: gpg_err_code_t = 13;
pub const gpg_err_code_t_GPG_ERR_INV_PACKET: gpg_err_code_t = 14;
pub const gpg_err_code_t_GPG_ERR_INV_ARMOR: gpg_err_code_t = 15;
pub const gpg_err_code_t_GPG_ERR_NO_USER_ID: gpg_err_code_t = 16;
pub const gpg_err_code_t_GPG_ERR_NO_SECKEY: gpg_err_code_t = 17;
pub const gpg_err_code_t_GPG_ERR_WRONG_SECKEY: gpg_err_code_t = 18;
pub const gpg_err_code_t_GPG_ERR_BAD_KEY: gpg_err_code_t = 19;
pub const gpg_err_code_t_GPG_ERR_COMPR_ALGO: gpg_err_code_t = 20;
pub const gpg_err_code_t_GPG_ERR_NO_PRIME: gpg_err_code_t = 21;
pub const gpg_err_code_t_GPG_ERR_NO_ENCODING_METHOD: gpg_err_code_t = 22;
pub const gpg_err_code_t_GPG_ERR_NO_ENCRYPTION_SCHEME: gpg_err_code_t = 23;
pub const gpg_err_code_t_GPG_ERR_NO_SIGNATURE_SCHEME: gpg_err_code_t = 24;
pub const gpg_err_code_t_GPG_ERR_INV_ATTR: gpg_err_code_t = 25;
pub const gpg_err_code_t_GPG_ERR_NO_VALUE: gpg_err_code_t = 26;
pub const gpg_err_code_t_GPG_ERR_NOT_FOUND: gpg_err_code_t = 27;
pub const gpg_err_code_t_GPG_ERR_VALUE_NOT_FOUND: gpg_err_code_t = 28;
pub const gpg_err_code_t_GPG_ERR_SYNTAX: gpg_err_code_t = 29;
pub const gpg_err_code_t_GPG_ERR_BAD_MPI: gpg_err_code_t = 30;
pub const gpg_err_code_t_GPG_ERR_INV_PASSPHRASE: gpg_err_code_t = 31;
pub const gpg_err_code_t_GPG_ERR_SIG_CLASS: gpg_err_code_t = 32;
pub const gpg_err_code_t_GPG_ERR_RESOURCE_LIMIT: gpg_err_code_t = 33;
pub const gpg_err_code_t_GPG_ERR_INV_KEYRING: gpg_err_code_t = 34;
pub const gpg_err_code_t_GPG_ERR_TRUSTDB: gpg_err_code_t = 35;
pub const gpg_err_code_t_GPG_ERR_BAD_CERT: gpg_err_code_t = 36;
pub const gpg_err_code_t_GPG_ERR_INV_USER_ID: gpg_err_code_t = 37;
pub const gpg_err_code_t_GPG_ERR_UNEXPECTED: gpg_err_code_t = 38;
pub const gpg_err_code_t_GPG_ERR_TIME_CONFLICT: gpg_err_code_t = 39;
pub const gpg_err_code_t_GPG_ERR_KEYSERVER: gpg_err_code_t = 40;
pub const gpg_err_code_t_GPG_ERR_WRONG_PUBKEY_ALGO: gpg_err_code_t = 41;
pub const gpg_err_code_t_GPG_ERR_TRIBUTE_TO_D_A: gpg_err_code_t = 42;
pub const gpg_err_code_t_GPG_ERR_WEAK_KEY: gpg_err_code_t = 43;
pub const gpg_err_code_t_GPG_ERR_INV_KEYLEN: gpg_err_code_t = 44;
pub const gpg_err_code_t_GPG_ERR_INV_ARG: gpg_err_code_t = 45;
pub const gpg_err_code_t_GPG_ERR_BAD_URI: gpg_err_code_t = 46;
pub const gpg_err_code_t_GPG_ERR_INV_URI: gpg_err_code_t = 47;
pub const gpg_err_code_t_GPG_ERR_NETWORK: gpg_err_code_t = 48;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_HOST: gpg_err_code_t = 49;
pub const gpg_err_code_t_GPG_ERR_SELFTEST_FAILED: gpg_err_code_t = 50;
pub const gpg_err_code_t_GPG_ERR_NOT_ENCRYPTED: gpg_err_code_t = 51;
pub const gpg_err_code_t_GPG_ERR_NOT_PROCESSED: gpg_err_code_t = 52;
pub const gpg_err_code_t_GPG_ERR_UNUSABLE_PUBKEY: gpg_err_code_t = 53;
pub const gpg_err_code_t_GPG_ERR_UNUSABLE_SECKEY: gpg_err_code_t = 54;
pub const gpg_err_code_t_GPG_ERR_INV_VALUE: gpg_err_code_t = 55;
pub const gpg_err_code_t_GPG_ERR_BAD_CERT_CHAIN: gpg_err_code_t = 56;
pub const gpg_err_code_t_GPG_ERR_MISSING_CERT: gpg_err_code_t = 57;
pub const gpg_err_code_t_GPG_ERR_NO_DATA: gpg_err_code_t = 58;
pub const gpg_err_code_t_GPG_ERR_BUG: gpg_err_code_t = 59;
pub const gpg_err_code_t_GPG_ERR_NOT_SUPPORTED: gpg_err_code_t = 60;
pub const gpg_err_code_t_GPG_ERR_INV_OP: gpg_err_code_t = 61;
pub const gpg_err_code_t_GPG_ERR_TIMEOUT: gpg_err_code_t = 62;
pub const gpg_err_code_t_GPG_ERR_INTERNAL: gpg_err_code_t = 63;
pub const gpg_err_code_t_GPG_ERR_EOF_GCRYPT: gpg_err_code_t = 64;
pub const gpg_err_code_t_GPG_ERR_INV_OBJ: gpg_err_code_t = 65;
pub const gpg_err_code_t_GPG_ERR_TOO_SHORT: gpg_err_code_t = 66;
pub const gpg_err_code_t_GPG_ERR_TOO_LARGE: gpg_err_code_t = 67;
pub const gpg_err_code_t_GPG_ERR_NO_OBJ: gpg_err_code_t = 68;
pub const gpg_err_code_t_GPG_ERR_NOT_IMPLEMENTED: gpg_err_code_t = 69;
pub const gpg_err_code_t_GPG_ERR_CONFLICT: gpg_err_code_t = 70;
pub const gpg_err_code_t_GPG_ERR_INV_CIPHER_MODE: gpg_err_code_t = 71;
pub const gpg_err_code_t_GPG_ERR_INV_FLAG: gpg_err_code_t = 72;
pub const gpg_err_code_t_GPG_ERR_INV_HANDLE: gpg_err_code_t = 73;
pub const gpg_err_code_t_GPG_ERR_TRUNCATED: gpg_err_code_t = 74;
pub const gpg_err_code_t_GPG_ERR_INCOMPLETE_LINE: gpg_err_code_t = 75;
pub const gpg_err_code_t_GPG_ERR_INV_RESPONSE: gpg_err_code_t = 76;
pub const gpg_err_code_t_GPG_ERR_NO_AGENT: gpg_err_code_t = 77;
pub const gpg_err_code_t_GPG_ERR_AGENT: gpg_err_code_t = 78;
pub const gpg_err_code_t_GPG_ERR_INV_DATA: gpg_err_code_t = 79;
pub const gpg_err_code_t_GPG_ERR_ASSUAN_SERVER_FAULT: gpg_err_code_t = 80;
pub const gpg_err_code_t_GPG_ERR_ASSUAN: gpg_err_code_t = 81;
pub const gpg_err_code_t_GPG_ERR_INV_SESSION_KEY: gpg_err_code_t = 82;
pub const gpg_err_code_t_GPG_ERR_INV_SEXP: gpg_err_code_t = 83;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_ALGORITHM: gpg_err_code_t = 84;
pub const gpg_err_code_t_GPG_ERR_NO_PIN_ENTRY: gpg_err_code_t = 85;
pub const gpg_err_code_t_GPG_ERR_PIN_ENTRY: gpg_err_code_t = 86;
pub const gpg_err_code_t_GPG_ERR_BAD_PIN: gpg_err_code_t = 87;
pub const gpg_err_code_t_GPG_ERR_INV_NAME: gpg_err_code_t = 88;
pub const gpg_err_code_t_GPG_ERR_BAD_DATA: gpg_err_code_t = 89;
pub const gpg_err_code_t_GPG_ERR_INV_PARAMETER: gpg_err_code_t = 90;
pub const gpg_err_code_t_GPG_ERR_WRONG_CARD: gpg_err_code_t = 91;
pub const gpg_err_code_t_GPG_ERR_NO_DIRMNGR: gpg_err_code_t = 92;
pub const gpg_err_code_t_GPG_ERR_DIRMNGR: gpg_err_code_t = 93;
pub const gpg_err_code_t_GPG_ERR_CERT_REVOKED: gpg_err_code_t = 94;
pub const gpg_err_code_t_GPG_ERR_NO_CRL_KNOWN: gpg_err_code_t = 95;
pub const gpg_err_code_t_GPG_ERR_CRL_TOO_OLD: gpg_err_code_t = 96;
pub const gpg_err_code_t_GPG_ERR_LINE_TOO_LONG: gpg_err_code_t = 97;
pub const gpg_err_code_t_GPG_ERR_NOT_TRUSTED: gpg_err_code_t = 98;
pub const gpg_err_code_t_GPG_ERR_CANCELED: gpg_err_code_t = 99;
pub const gpg_err_code_t_GPG_ERR_BAD_CA_CERT: gpg_err_code_t = 100;
pub const gpg_err_code_t_GPG_ERR_CERT_EXPIRED: gpg_err_code_t = 101;
pub const gpg_err_code_t_GPG_ERR_CERT_TOO_YOUNG: gpg_err_code_t = 102;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_CERT: gpg_err_code_t = 103;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_SEXP: gpg_err_code_t = 104;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_PROTECTION: gpg_err_code_t = 105;
pub const gpg_err_code_t_GPG_ERR_CORRUPTED_PROTECTION: gpg_err_code_t = 106;
pub const gpg_err_code_t_GPG_ERR_AMBIGUOUS_NAME: gpg_err_code_t = 107;
pub const gpg_err_code_t_GPG_ERR_CARD: gpg_err_code_t = 108;
pub const gpg_err_code_t_GPG_ERR_CARD_RESET: gpg_err_code_t = 109;
pub const gpg_err_code_t_GPG_ERR_CARD_REMOVED: gpg_err_code_t = 110;
pub const gpg_err_code_t_GPG_ERR_INV_CARD: gpg_err_code_t = 111;
pub const gpg_err_code_t_GPG_ERR_CARD_NOT_PRESENT: gpg_err_code_t = 112;
pub const gpg_err_code_t_GPG_ERR_NO_PKCS15_APP: gpg_err_code_t = 113;
pub const gpg_err_code_t_GPG_ERR_NOT_CONFIRMED: gpg_err_code_t = 114;
pub const gpg_err_code_t_GPG_ERR_CONFIGURATION: gpg_err_code_t = 115;
pub const gpg_err_code_t_GPG_ERR_NO_POLICY_MATCH: gpg_err_code_t = 116;
pub const gpg_err_code_t_GPG_ERR_INV_INDEX: gpg_err_code_t = 117;
pub const gpg_err_code_t_GPG_ERR_INV_ID: gpg_err_code_t = 118;
pub const gpg_err_code_t_GPG_ERR_NO_SCDAEMON: gpg_err_code_t = 119;
pub const gpg_err_code_t_GPG_ERR_SCDAEMON: gpg_err_code_t = 120;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_PROTOCOL: gpg_err_code_t = 121;
pub const gpg_err_code_t_GPG_ERR_BAD_PIN_METHOD: gpg_err_code_t = 122;
pub const gpg_err_code_t_GPG_ERR_CARD_NOT_INITIALIZED: gpg_err_code_t = 123;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_OPERATION: gpg_err_code_t = 124;
pub const gpg_err_code_t_GPG_ERR_WRONG_KEY_USAGE: gpg_err_code_t = 125;
pub const gpg_err_code_t_GPG_ERR_NOTHING_FOUND: gpg_err_code_t = 126;
pub const gpg_err_code_t_GPG_ERR_WRONG_BLOB_TYPE: gpg_err_code_t = 127;
pub const gpg_err_code_t_GPG_ERR_MISSING_VALUE: gpg_err_code_t = 128;
pub const gpg_err_code_t_GPG_ERR_HARDWARE: gpg_err_code_t = 129;
pub const gpg_err_code_t_GPG_ERR_PIN_BLOCKED: gpg_err_code_t = 130;
pub const gpg_err_code_t_GPG_ERR_USE_CONDITIONS: gpg_err_code_t = 131;
pub const gpg_err_code_t_GPG_ERR_PIN_NOT_SYNCED: gpg_err_code_t = 132;
pub const gpg_err_code_t_GPG_ERR_INV_CRL: gpg_err_code_t = 133;
pub const gpg_err_code_t_GPG_ERR_BAD_BER: gpg_err_code_t = 134;
pub const gpg_err_code_t_GPG_ERR_INV_BER: gpg_err_code_t = 135;
pub const gpg_err_code_t_GPG_ERR_ELEMENT_NOT_FOUND: gpg_err_code_t = 136;
pub const gpg_err_code_t_GPG_ERR_IDENTIFIER_NOT_FOUND: gpg_err_code_t = 137;
pub const gpg_err_code_t_GPG_ERR_INV_TAG: gpg_err_code_t = 138;
pub const gpg_err_code_t_GPG_ERR_INV_LENGTH: gpg_err_code_t = 139;
pub const gpg_err_code_t_GPG_ERR_INV_KEYINFO: gpg_err_code_t = 140;
pub const gpg_err_code_t_GPG_ERR_UNEXPECTED_TAG: gpg_err_code_t = 141;
pub const gpg_err_code_t_GPG_ERR_NOT_DER_ENCODED: gpg_err_code_t = 142;
pub const gpg_err_code_t_GPG_ERR_NO_CMS_OBJ: gpg_err_code_t = 143;
pub const gpg_err_code_t_GPG_ERR_INV_CMS_OBJ: gpg_err_code_t = 144;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_CMS_OBJ: gpg_err_code_t = 145;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_CMS_OBJ: gpg_err_code_t = 146;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_ENCODING: gpg_err_code_t = 147;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_CMS_VERSION: gpg_err_code_t = 148;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_ALGORITHM: gpg_err_code_t = 149;
pub const gpg_err_code_t_GPG_ERR_INV_ENGINE: gpg_err_code_t = 150;
pub const gpg_err_code_t_GPG_ERR_PUBKEY_NOT_TRUSTED: gpg_err_code_t = 151;
pub const gpg_err_code_t_GPG_ERR_DECRYPT_FAILED: gpg_err_code_t = 152;
pub const gpg_err_code_t_GPG_ERR_KEY_EXPIRED: gpg_err_code_t = 153;
pub const gpg_err_code_t_GPG_ERR_SIG_EXPIRED: gpg_err_code_t = 154;
pub const gpg_err_code_t_GPG_ERR_ENCODING_PROBLEM: gpg_err_code_t = 155;
pub const gpg_err_code_t_GPG_ERR_INV_STATE: gpg_err_code_t = 156;
pub const gpg_err_code_t_GPG_ERR_DUP_VALUE: gpg_err_code_t = 157;
pub const gpg_err_code_t_GPG_ERR_MISSING_ACTION: gpg_err_code_t = 158;
pub const gpg_err_code_t_GPG_ERR_MODULE_NOT_FOUND: gpg_err_code_t = 159;
pub const gpg_err_code_t_GPG_ERR_INV_OID_STRING: gpg_err_code_t = 160;
pub const gpg_err_code_t_GPG_ERR_INV_TIME: gpg_err_code_t = 161;
pub const gpg_err_code_t_GPG_ERR_INV_CRL_OBJ: gpg_err_code_t = 162;
pub const gpg_err_code_t_GPG_ERR_UNSUPPORTED_CRL_VERSION: gpg_err_code_t = 163;
pub const gpg_err_code_t_GPG_ERR_INV_CERT_OBJ: gpg_err_code_t = 164;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_NAME: gpg_err_code_t = 165;
pub const gpg_err_code_t_GPG_ERR_LOCALE_PROBLEM: gpg_err_code_t = 166;
pub const gpg_err_code_t_GPG_ERR_NOT_LOCKED: gpg_err_code_t = 167;
pub const gpg_err_code_t_GPG_ERR_PROTOCOL_VIOLATION: gpg_err_code_t = 168;
pub const gpg_err_code_t_GPG_ERR_INV_MAC: gpg_err_code_t = 169;
pub const gpg_err_code_t_GPG_ERR_INV_REQUEST: gpg_err_code_t = 170;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_EXTN: gpg_err_code_t = 171;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_CRIT_EXTN: gpg_err_code_t = 172;
pub const gpg_err_code_t_GPG_ERR_LOCKED: gpg_err_code_t = 173;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_OPTION: gpg_err_code_t = 174;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_COMMAND: gpg_err_code_t = 175;
pub const gpg_err_code_t_GPG_ERR_NOT_OPERATIONAL: gpg_err_code_t = 176;
pub const gpg_err_code_t_GPG_ERR_NO_PASSPHRASE: gpg_err_code_t = 177;
pub const gpg_err_code_t_GPG_ERR_NO_PIN: gpg_err_code_t = 178;
pub const gpg_err_code_t_GPG_ERR_NOT_ENABLED: gpg_err_code_t = 179;
pub const gpg_err_code_t_GPG_ERR_NO_ENGINE: gpg_err_code_t = 180;
pub const gpg_err_code_t_GPG_ERR_MISSING_KEY: gpg_err_code_t = 181;
pub const gpg_err_code_t_GPG_ERR_TOO_MANY: gpg_err_code_t = 182;
pub const gpg_err_code_t_GPG_ERR_LIMIT_REACHED: gpg_err_code_t = 183;
pub const gpg_err_code_t_GPG_ERR_NOT_INITIALIZED: gpg_err_code_t = 184;
pub const gpg_err_code_t_GPG_ERR_MISSING_ISSUER_CERT: gpg_err_code_t = 185;
pub const gpg_err_code_t_GPG_ERR_NO_KEYSERVER: gpg_err_code_t = 186;
pub const gpg_err_code_t_GPG_ERR_INV_CURVE: gpg_err_code_t = 187;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_CURVE: gpg_err_code_t = 188;
pub const gpg_err_code_t_GPG_ERR_DUP_KEY: gpg_err_code_t = 189;
pub const gpg_err_code_t_GPG_ERR_AMBIGUOUS: gpg_err_code_t = 190;
pub const gpg_err_code_t_GPG_ERR_NO_CRYPT_CTX: gpg_err_code_t = 191;
pub const gpg_err_code_t_GPG_ERR_WRONG_CRYPT_CTX: gpg_err_code_t = 192;
pub const gpg_err_code_t_GPG_ERR_BAD_CRYPT_CTX: gpg_err_code_t = 193;
pub const gpg_err_code_t_GPG_ERR_CRYPT_CTX_CONFLICT: gpg_err_code_t = 194;
pub const gpg_err_code_t_GPG_ERR_BROKEN_PUBKEY: gpg_err_code_t = 195;
pub const gpg_err_code_t_GPG_ERR_BROKEN_SECKEY: gpg_err_code_t = 196;
pub const gpg_err_code_t_GPG_ERR_MAC_ALGO: gpg_err_code_t = 197;
pub const gpg_err_code_t_GPG_ERR_FULLY_CANCELED: gpg_err_code_t = 198;
pub const gpg_err_code_t_GPG_ERR_UNFINISHED: gpg_err_code_t = 199;
pub const gpg_err_code_t_GPG_ERR_BUFFER_TOO_SHORT: gpg_err_code_t = 200;
pub const gpg_err_code_t_GPG_ERR_SEXP_INV_LEN_SPEC: gpg_err_code_t = 201;
pub const gpg_err_code_t_GPG_ERR_SEXP_STRING_TOO_LONG: gpg_err_code_t = 202;
pub const gpg_err_code_t_GPG_ERR_SEXP_UNMATCHED_PAREN: gpg_err_code_t = 203;
pub const gpg_err_code_t_GPG_ERR_SEXP_NOT_CANONICAL: gpg_err_code_t = 204;
pub const gpg_err_code_t_GPG_ERR_SEXP_BAD_CHARACTER: gpg_err_code_t = 205;
pub const gpg_err_code_t_GPG_ERR_SEXP_BAD_QUOTATION: gpg_err_code_t = 206;
pub const gpg_err_code_t_GPG_ERR_SEXP_ZERO_PREFIX: gpg_err_code_t = 207;
pub const gpg_err_code_t_GPG_ERR_SEXP_NESTED_DH: gpg_err_code_t = 208;
pub const gpg_err_code_t_GPG_ERR_SEXP_UNMATCHED_DH: gpg_err_code_t = 209;
pub const gpg_err_code_t_GPG_ERR_SEXP_UNEXPECTED_PUNC: gpg_err_code_t = 210;
pub const gpg_err_code_t_GPG_ERR_SEXP_BAD_HEX_CHAR: gpg_err_code_t = 211;
pub const gpg_err_code_t_GPG_ERR_SEXP_ODD_HEX_NUMBERS: gpg_err_code_t = 212;
pub const gpg_err_code_t_GPG_ERR_SEXP_BAD_OCT_CHAR: gpg_err_code_t = 213;
pub const gpg_err_code_t_GPG_ERR_SUBKEYS_EXP_OR_REV: gpg_err_code_t = 217;
pub const gpg_err_code_t_GPG_ERR_DB_CORRUPTED: gpg_err_code_t = 218;
pub const gpg_err_code_t_GPG_ERR_SERVER_FAILED: gpg_err_code_t = 219;
pub const gpg_err_code_t_GPG_ERR_NO_NAME: gpg_err_code_t = 220;
pub const gpg_err_code_t_GPG_ERR_NO_KEY: gpg_err_code_t = 221;
pub const gpg_err_code_t_GPG_ERR_LEGACY_KEY: gpg_err_code_t = 222;
pub const gpg_err_code_t_GPG_ERR_REQUEST_TOO_SHORT: gpg_err_code_t = 223;
pub const gpg_err_code_t_GPG_ERR_REQUEST_TOO_LONG: gpg_err_code_t = 224;
pub const gpg_err_code_t_GPG_ERR_OBJ_TERM_STATE: gpg_err_code_t = 225;
pub const gpg_err_code_t_GPG_ERR_NO_CERT_CHAIN: gpg_err_code_t = 226;
pub const gpg_err_code_t_GPG_ERR_CERT_TOO_LARGE: gpg_err_code_t = 227;
pub const gpg_err_code_t_GPG_ERR_INV_RECORD: gpg_err_code_t = 228;
pub const gpg_err_code_t_GPG_ERR_BAD_MAC: gpg_err_code_t = 229;
pub const gpg_err_code_t_GPG_ERR_UNEXPECTED_MSG: gpg_err_code_t = 230;
pub const gpg_err_code_t_GPG_ERR_COMPR_FAILED: gpg_err_code_t = 231;
pub const gpg_err_code_t_GPG_ERR_WOULD_WRAP: gpg_err_code_t = 232;
pub const gpg_err_code_t_GPG_ERR_FATAL_ALERT: gpg_err_code_t = 233;
pub const gpg_err_code_t_GPG_ERR_NO_CIPHER: gpg_err_code_t = 234;
pub const gpg_err_code_t_GPG_ERR_MISSING_CLIENT_CERT: gpg_err_code_t = 235;
pub const gpg_err_code_t_GPG_ERR_CLOSE_NOTIFY: gpg_err_code_t = 236;
pub const gpg_err_code_t_GPG_ERR_TICKET_EXPIRED: gpg_err_code_t = 237;
pub const gpg_err_code_t_GPG_ERR_BAD_TICKET: gpg_err_code_t = 238;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_IDENTITY: gpg_err_code_t = 239;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CERT: gpg_err_code_t = 240;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CERT_REQ: gpg_err_code_t = 241;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CERT_VER: gpg_err_code_t = 242;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CHANGE_CIPHER: gpg_err_code_t = 243;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CLIENT_HELLO: gpg_err_code_t = 244;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_SERVER_HELLO: gpg_err_code_t = 245;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_SERVER_HELLO_DONE: gpg_err_code_t = 246;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_FINISHED: gpg_err_code_t = 247;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_SERVER_KEX: gpg_err_code_t = 248;
pub const gpg_err_code_t_GPG_ERR_BAD_HS_CLIENT_KEX: gpg_err_code_t = 249;
pub const gpg_err_code_t_GPG_ERR_BOGUS_STRING: gpg_err_code_t = 250;
pub const gpg_err_code_t_GPG_ERR_FORBIDDEN: gpg_err_code_t = 251;
pub const gpg_err_code_t_GPG_ERR_KEY_DISABLED: gpg_err_code_t = 252;
pub const gpg_err_code_t_GPG_ERR_KEY_ON_CARD: gpg_err_code_t = 253;
pub const gpg_err_code_t_GPG_ERR_INV_LOCK_OBJ: gpg_err_code_t = 254;
pub const gpg_err_code_t_GPG_ERR_TRUE: gpg_err_code_t = 255;
pub const gpg_err_code_t_GPG_ERR_FALSE: gpg_err_code_t = 256;
pub const gpg_err_code_t_GPG_ERR_ASS_GENERAL: gpg_err_code_t = 257;
pub const gpg_err_code_t_GPG_ERR_ASS_ACCEPT_FAILED: gpg_err_code_t = 258;
pub const gpg_err_code_t_GPG_ERR_ASS_CONNECT_FAILED: gpg_err_code_t = 259;
pub const gpg_err_code_t_GPG_ERR_ASS_INV_RESPONSE: gpg_err_code_t = 260;
pub const gpg_err_code_t_GPG_ERR_ASS_INV_VALUE: gpg_err_code_t = 261;
pub const gpg_err_code_t_GPG_ERR_ASS_INCOMPLETE_LINE: gpg_err_code_t = 262;
pub const gpg_err_code_t_GPG_ERR_ASS_LINE_TOO_LONG: gpg_err_code_t = 263;
pub const gpg_err_code_t_GPG_ERR_ASS_NESTED_COMMANDS: gpg_err_code_t = 264;
pub const gpg_err_code_t_GPG_ERR_ASS_NO_DATA_CB: gpg_err_code_t = 265;
pub const gpg_err_code_t_GPG_ERR_ASS_NO_INQUIRE_CB: gpg_err_code_t = 266;
pub const gpg_err_code_t_GPG_ERR_ASS_NOT_A_SERVER: gpg_err_code_t = 267;
pub const gpg_err_code_t_GPG_ERR_ASS_NOT_A_CLIENT: gpg_err_code_t = 268;
pub const gpg_err_code_t_GPG_ERR_ASS_SERVER_START: gpg_err_code_t = 269;
pub const gpg_err_code_t_GPG_ERR_ASS_READ_ERROR: gpg_err_code_t = 270;
pub const gpg_err_code_t_GPG_ERR_ASS_WRITE_ERROR: gpg_err_code_t = 271;
pub const gpg_err_code_t_GPG_ERR_ASS_TOO_MUCH_DATA: gpg_err_code_t = 273;
pub const gpg_err_code_t_GPG_ERR_ASS_UNEXPECTED_CMD: gpg_err_code_t = 274;
pub const gpg_err_code_t_GPG_ERR_ASS_UNKNOWN_CMD: gpg_err_code_t = 275;
pub const gpg_err_code_t_GPG_ERR_ASS_SYNTAX: gpg_err_code_t = 276;
pub const gpg_err_code_t_GPG_ERR_ASS_CANCELED: gpg_err_code_t = 277;
pub const gpg_err_code_t_GPG_ERR_ASS_NO_INPUT: gpg_err_code_t = 278;
pub const gpg_err_code_t_GPG_ERR_ASS_NO_OUTPUT: gpg_err_code_t = 279;
pub const gpg_err_code_t_GPG_ERR_ASS_PARAMETER: gpg_err_code_t = 280;
pub const gpg_err_code_t_GPG_ERR_ASS_UNKNOWN_INQUIRE: gpg_err_code_t = 281;
pub const gpg_err_code_t_GPG_ERR_ENGINE_TOO_OLD: gpg_err_code_t = 300;
pub const gpg_err_code_t_GPG_ERR_WINDOW_TOO_SMALL: gpg_err_code_t = 301;
pub const gpg_err_code_t_GPG_ERR_WINDOW_TOO_LARGE: gpg_err_code_t = 302;
pub const gpg_err_code_t_GPG_ERR_MISSING_ENVVAR: gpg_err_code_t = 303;
pub const gpg_err_code_t_GPG_ERR_USER_ID_EXISTS: gpg_err_code_t = 304;
pub const gpg_err_code_t_GPG_ERR_NAME_EXISTS: gpg_err_code_t = 305;
pub const gpg_err_code_t_GPG_ERR_DUP_NAME: gpg_err_code_t = 306;
pub const gpg_err_code_t_GPG_ERR_TOO_YOUNG: gpg_err_code_t = 307;
pub const gpg_err_code_t_GPG_ERR_TOO_OLD: gpg_err_code_t = 308;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_FLAG: gpg_err_code_t = 309;
pub const gpg_err_code_t_GPG_ERR_INV_ORDER: gpg_err_code_t = 310;
pub const gpg_err_code_t_GPG_ERR_ALREADY_FETCHED: gpg_err_code_t = 311;
pub const gpg_err_code_t_GPG_ERR_TRY_LATER: gpg_err_code_t = 312;
pub const gpg_err_code_t_GPG_ERR_WRONG_NAME: gpg_err_code_t = 313;
pub const gpg_err_code_t_GPG_ERR_NO_AUTH: gpg_err_code_t = 314;
pub const gpg_err_code_t_GPG_ERR_BAD_AUTH: gpg_err_code_t = 315;
pub const gpg_err_code_t_GPG_ERR_NO_KEYBOXD: gpg_err_code_t = 316;
pub const gpg_err_code_t_GPG_ERR_KEYBOXD: gpg_err_code_t = 317;
pub const gpg_err_code_t_GPG_ERR_NO_SERVICE: gpg_err_code_t = 318;
pub const gpg_err_code_t_GPG_ERR_SERVICE: gpg_err_code_t = 319;
pub const gpg_err_code_t_GPG_ERR_SYSTEM_BUG: gpg_err_code_t = 666;
pub const gpg_err_code_t_GPG_ERR_DNS_UNKNOWN: gpg_err_code_t = 711;
pub const gpg_err_code_t_GPG_ERR_DNS_SECTION: gpg_err_code_t = 712;
pub const gpg_err_code_t_GPG_ERR_DNS_ADDRESS: gpg_err_code_t = 713;
pub const gpg_err_code_t_GPG_ERR_DNS_NO_QUERY: gpg_err_code_t = 714;
pub const gpg_err_code_t_GPG_ERR_DNS_NO_ANSWER: gpg_err_code_t = 715;
pub const gpg_err_code_t_GPG_ERR_DNS_CLOSED: gpg_err_code_t = 716;
pub const gpg_err_code_t_GPG_ERR_DNS_VERIFY: gpg_err_code_t = 717;
pub const gpg_err_code_t_GPG_ERR_DNS_TIMEOUT: gpg_err_code_t = 718;
pub const gpg_err_code_t_GPG_ERR_LDAP_GENERAL: gpg_err_code_t = 721;
pub const gpg_err_code_t_GPG_ERR_LDAP_ATTR_GENERAL: gpg_err_code_t = 722;
pub const gpg_err_code_t_GPG_ERR_LDAP_NAME_GENERAL: gpg_err_code_t = 723;
pub const gpg_err_code_t_GPG_ERR_LDAP_SECURITY_GENERAL: gpg_err_code_t = 724;
pub const gpg_err_code_t_GPG_ERR_LDAP_SERVICE_GENERAL: gpg_err_code_t = 725;
pub const gpg_err_code_t_GPG_ERR_LDAP_UPDATE_GENERAL: gpg_err_code_t = 726;
pub const gpg_err_code_t_GPG_ERR_LDAP_E_GENERAL: gpg_err_code_t = 727;
pub const gpg_err_code_t_GPG_ERR_LDAP_X_GENERAL: gpg_err_code_t = 728;
pub const gpg_err_code_t_GPG_ERR_LDAP_OTHER_GENERAL: gpg_err_code_t = 729;
pub const gpg_err_code_t_GPG_ERR_LDAP_X_CONNECTING: gpg_err_code_t = 750;
pub const gpg_err_code_t_GPG_ERR_LDAP_REFERRAL_LIMIT: gpg_err_code_t = 751;
pub const gpg_err_code_t_GPG_ERR_LDAP_CLIENT_LOOP: gpg_err_code_t = 752;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_RESULTS: gpg_err_code_t = 754;
pub const gpg_err_code_t_GPG_ERR_LDAP_CONTROL_NOT_FOUND: gpg_err_code_t = 755;
pub const gpg_err_code_t_GPG_ERR_LDAP_NOT_SUPPORTED: gpg_err_code_t = 756;
pub const gpg_err_code_t_GPG_ERR_LDAP_CONNECT: gpg_err_code_t = 757;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_MEMORY: gpg_err_code_t = 758;
pub const gpg_err_code_t_GPG_ERR_LDAP_PARAM: gpg_err_code_t = 759;
pub const gpg_err_code_t_GPG_ERR_LDAP_USER_CANCELLED: gpg_err_code_t = 760;
pub const gpg_err_code_t_GPG_ERR_LDAP_FILTER: gpg_err_code_t = 761;
pub const gpg_err_code_t_GPG_ERR_LDAP_AUTH_UNKNOWN: gpg_err_code_t = 762;
pub const gpg_err_code_t_GPG_ERR_LDAP_TIMEOUT: gpg_err_code_t = 763;
pub const gpg_err_code_t_GPG_ERR_LDAP_DECODING: gpg_err_code_t = 764;
pub const gpg_err_code_t_GPG_ERR_LDAP_ENCODING: gpg_err_code_t = 765;
pub const gpg_err_code_t_GPG_ERR_LDAP_LOCAL: gpg_err_code_t = 766;
pub const gpg_err_code_t_GPG_ERR_LDAP_SERVER_DOWN: gpg_err_code_t = 767;
pub const gpg_err_code_t_GPG_ERR_LDAP_SUCCESS: gpg_err_code_t = 768;
pub const gpg_err_code_t_GPG_ERR_LDAP_OPERATIONS: gpg_err_code_t = 769;
pub const gpg_err_code_t_GPG_ERR_LDAP_PROTOCOL: gpg_err_code_t = 770;
pub const gpg_err_code_t_GPG_ERR_LDAP_TIMELIMIT: gpg_err_code_t = 771;
pub const gpg_err_code_t_GPG_ERR_LDAP_SIZELIMIT: gpg_err_code_t = 772;
pub const gpg_err_code_t_GPG_ERR_LDAP_COMPARE_FALSE: gpg_err_code_t = 773;
pub const gpg_err_code_t_GPG_ERR_LDAP_COMPARE_TRUE: gpg_err_code_t = 774;
pub const gpg_err_code_t_GPG_ERR_LDAP_UNSUPPORTED_AUTH: gpg_err_code_t = 775;
pub const gpg_err_code_t_GPG_ERR_LDAP_STRONG_AUTH_RQRD: gpg_err_code_t = 776;
pub const gpg_err_code_t_GPG_ERR_LDAP_PARTIAL_RESULTS: gpg_err_code_t = 777;
pub const gpg_err_code_t_GPG_ERR_LDAP_REFERRAL: gpg_err_code_t = 778;
pub const gpg_err_code_t_GPG_ERR_LDAP_ADMINLIMIT: gpg_err_code_t = 779;
pub const gpg_err_code_t_GPG_ERR_LDAP_UNAVAIL_CRIT_EXTN: gpg_err_code_t = 780;
pub const gpg_err_code_t_GPG_ERR_LDAP_CONFIDENT_RQRD: gpg_err_code_t = 781;
pub const gpg_err_code_t_GPG_ERR_LDAP_SASL_BIND_INPROG: gpg_err_code_t = 782;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_SUCH_ATTRIBUTE: gpg_err_code_t = 784;
pub const gpg_err_code_t_GPG_ERR_LDAP_UNDEFINED_TYPE: gpg_err_code_t = 785;
pub const gpg_err_code_t_GPG_ERR_LDAP_BAD_MATCHING: gpg_err_code_t = 786;
pub const gpg_err_code_t_GPG_ERR_LDAP_CONST_VIOLATION: gpg_err_code_t = 787;
pub const gpg_err_code_t_GPG_ERR_LDAP_TYPE_VALUE_EXISTS: gpg_err_code_t = 788;
pub const gpg_err_code_t_GPG_ERR_LDAP_INV_SYNTAX: gpg_err_code_t = 789;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_SUCH_OBJ: gpg_err_code_t = 800;
pub const gpg_err_code_t_GPG_ERR_LDAP_ALIAS_PROBLEM: gpg_err_code_t = 801;
pub const gpg_err_code_t_GPG_ERR_LDAP_INV_DN_SYNTAX: gpg_err_code_t = 802;
pub const gpg_err_code_t_GPG_ERR_LDAP_IS_LEAF: gpg_err_code_t = 803;
pub const gpg_err_code_t_GPG_ERR_LDAP_ALIAS_DEREF: gpg_err_code_t = 804;
pub const gpg_err_code_t_GPG_ERR_LDAP_X_PROXY_AUTH_FAIL: gpg_err_code_t = 815;
pub const gpg_err_code_t_GPG_ERR_LDAP_BAD_AUTH: gpg_err_code_t = 816;
pub const gpg_err_code_t_GPG_ERR_LDAP_INV_CREDENTIALS: gpg_err_code_t = 817;
pub const gpg_err_code_t_GPG_ERR_LDAP_INSUFFICIENT_ACC: gpg_err_code_t = 818;
pub const gpg_err_code_t_GPG_ERR_LDAP_BUSY: gpg_err_code_t = 819;
pub const gpg_err_code_t_GPG_ERR_LDAP_UNAVAILABLE: gpg_err_code_t = 820;
pub const gpg_err_code_t_GPG_ERR_LDAP_UNWILL_TO_PERFORM: gpg_err_code_t = 821;
pub const gpg_err_code_t_GPG_ERR_LDAP_LOOP_DETECT: gpg_err_code_t = 822;
pub const gpg_err_code_t_GPG_ERR_LDAP_NAMING_VIOLATION: gpg_err_code_t = 832;
pub const gpg_err_code_t_GPG_ERR_LDAP_OBJ_CLS_VIOLATION: gpg_err_code_t = 833;
pub const gpg_err_code_t_GPG_ERR_LDAP_NOT_ALLOW_NONLEAF: gpg_err_code_t = 834;
pub const gpg_err_code_t_GPG_ERR_LDAP_NOT_ALLOW_ON_RDN: gpg_err_code_t = 835;
pub const gpg_err_code_t_GPG_ERR_LDAP_ALREADY_EXISTS: gpg_err_code_t = 836;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_OBJ_CLASS_MODS: gpg_err_code_t = 837;
pub const gpg_err_code_t_GPG_ERR_LDAP_RESULTS_TOO_LARGE: gpg_err_code_t = 838;
pub const gpg_err_code_t_GPG_ERR_LDAP_AFFECTS_MULT_DSAS: gpg_err_code_t = 839;
pub const gpg_err_code_t_GPG_ERR_LDAP_VLV: gpg_err_code_t = 844;
pub const gpg_err_code_t_GPG_ERR_LDAP_OTHER: gpg_err_code_t = 848;
pub const gpg_err_code_t_GPG_ERR_LDAP_CUP_RESOURCE_LIMIT: gpg_err_code_t = 881;
pub const gpg_err_code_t_GPG_ERR_LDAP_CUP_SEC_VIOLATION: gpg_err_code_t = 882;
pub const gpg_err_code_t_GPG_ERR_LDAP_CUP_INV_DATA: gpg_err_code_t = 883;
pub const gpg_err_code_t_GPG_ERR_LDAP_CUP_UNSUP_SCHEME: gpg_err_code_t = 884;
pub const gpg_err_code_t_GPG_ERR_LDAP_CUP_RELOAD: gpg_err_code_t = 885;
pub const gpg_err_code_t_GPG_ERR_LDAP_CANCELLED: gpg_err_code_t = 886;
pub const gpg_err_code_t_GPG_ERR_LDAP_NO_SUCH_OPERATION: gpg_err_code_t = 887;
pub const gpg_err_code_t_GPG_ERR_LDAP_TOO_LATE: gpg_err_code_t = 888;
pub const gpg_err_code_t_GPG_ERR_LDAP_CANNOT_CANCEL: gpg_err_code_t = 889;
pub const gpg_err_code_t_GPG_ERR_LDAP_ASSERTION_FAILED: gpg_err_code_t = 890;
pub const gpg_err_code_t_GPG_ERR_LDAP_PROX_AUTH_DENIED: gpg_err_code_t = 891;
pub const gpg_err_code_t_GPG_ERR_USER_1: gpg_err_code_t = 1024;
pub const gpg_err_code_t_GPG_ERR_USER_2: gpg_err_code_t = 1025;
pub const gpg_err_code_t_GPG_ERR_USER_3: gpg_err_code_t = 1026;
pub const gpg_err_code_t_GPG_ERR_USER_4: gpg_err_code_t = 1027;
pub const gpg_err_code_t_GPG_ERR_USER_5: gpg_err_code_t = 1028;
pub const gpg_err_code_t_GPG_ERR_USER_6: gpg_err_code_t = 1029;
pub const gpg_err_code_t_GPG_ERR_USER_7: gpg_err_code_t = 1030;
pub const gpg_err_code_t_GPG_ERR_USER_8: gpg_err_code_t = 1031;
pub const gpg_err_code_t_GPG_ERR_USER_9: gpg_err_code_t = 1032;
pub const gpg_err_code_t_GPG_ERR_USER_10: gpg_err_code_t = 1033;
pub const gpg_err_code_t_GPG_ERR_USER_11: gpg_err_code_t = 1034;
pub const gpg_err_code_t_GPG_ERR_USER_12: gpg_err_code_t = 1035;
pub const gpg_err_code_t_GPG_ERR_USER_13: gpg_err_code_t = 1036;
pub const gpg_err_code_t_GPG_ERR_USER_14: gpg_err_code_t = 1037;
pub const gpg_err_code_t_GPG_ERR_USER_15: gpg_err_code_t = 1038;
pub const gpg_err_code_t_GPG_ERR_USER_16: gpg_err_code_t = 1039;
pub const gpg_err_code_t_GPG_ERR_SQL_OK: gpg_err_code_t = 1500;
pub const gpg_err_code_t_GPG_ERR_SQL_ERROR: gpg_err_code_t = 1501;
pub const gpg_err_code_t_GPG_ERR_SQL_INTERNAL: gpg_err_code_t = 1502;
pub const gpg_err_code_t_GPG_ERR_SQL_PERM: gpg_err_code_t = 1503;
pub const gpg_err_code_t_GPG_ERR_SQL_ABORT: gpg_err_code_t = 1504;
pub const gpg_err_code_t_GPG_ERR_SQL_BUSY: gpg_err_code_t = 1505;
pub const gpg_err_code_t_GPG_ERR_SQL_LOCKED: gpg_err_code_t = 1506;
pub const gpg_err_code_t_GPG_ERR_SQL_NOMEM: gpg_err_code_t = 1507;
pub const gpg_err_code_t_GPG_ERR_SQL_READONLY: gpg_err_code_t = 1508;
pub const gpg_err_code_t_GPG_ERR_SQL_INTERRUPT: gpg_err_code_t = 1509;
pub const gpg_err_code_t_GPG_ERR_SQL_IOERR: gpg_err_code_t = 1510;
pub const gpg_err_code_t_GPG_ERR_SQL_CORRUPT: gpg_err_code_t = 1511;
pub const gpg_err_code_t_GPG_ERR_SQL_NOTFOUND: gpg_err_code_t = 1512;
pub const gpg_err_code_t_GPG_ERR_SQL_FULL: gpg_err_code_t = 1513;
pub const gpg_err_code_t_GPG_ERR_SQL_CANTOPEN: gpg_err_code_t = 1514;
pub const gpg_err_code_t_GPG_ERR_SQL_PROTOCOL: gpg_err_code_t = 1515;
pub const gpg_err_code_t_GPG_ERR_SQL_EMPTY: gpg_err_code_t = 1516;
pub const gpg_err_code_t_GPG_ERR_SQL_SCHEMA: gpg_err_code_t = 1517;
pub const gpg_err_code_t_GPG_ERR_SQL_TOOBIG: gpg_err_code_t = 1518;
pub const gpg_err_code_t_GPG_ERR_SQL_CONSTRAINT: gpg_err_code_t = 1519;
pub const gpg_err_code_t_GPG_ERR_SQL_MISMATCH: gpg_err_code_t = 1520;
pub const gpg_err_code_t_GPG_ERR_SQL_MISUSE: gpg_err_code_t = 1521;
pub const gpg_err_code_t_GPG_ERR_SQL_NOLFS: gpg_err_code_t = 1522;
pub const gpg_err_code_t_GPG_ERR_SQL_AUTH: gpg_err_code_t = 1523;
pub const gpg_err_code_t_GPG_ERR_SQL_FORMAT: gpg_err_code_t = 1524;
pub const gpg_err_code_t_GPG_ERR_SQL_RANGE: gpg_err_code_t = 1525;
pub const gpg_err_code_t_GPG_ERR_SQL_NOTADB: gpg_err_code_t = 1526;
pub const gpg_err_code_t_GPG_ERR_SQL_NOTICE: gpg_err_code_t = 1527;
pub const gpg_err_code_t_GPG_ERR_SQL_WARNING: gpg_err_code_t = 1528;
pub const gpg_err_code_t_GPG_ERR_SQL_ROW: gpg_err_code_t = 1600;
pub const gpg_err_code_t_GPG_ERR_SQL_DONE: gpg_err_code_t = 1601;
pub const gpg_err_code_t_GPG_ERR_MISSING_ERRNO: gpg_err_code_t = 16381;
pub const gpg_err_code_t_GPG_ERR_UNKNOWN_ERRNO: gpg_err_code_t = 16382;
pub const gpg_err_code_t_GPG_ERR_EOF: gpg_err_code_t = 16383;
pub const gpg_err_code_t_GPG_ERR_E2BIG: gpg_err_code_t = 32768;
pub const gpg_err_code_t_GPG_ERR_EACCES: gpg_err_code_t = 32769;
pub const gpg_err_code_t_GPG_ERR_EADDRINUSE: gpg_err_code_t = 32770;
pub const gpg_err_code_t_GPG_ERR_EADDRNOTAVAIL: gpg_err_code_t = 32771;
pub const gpg_err_code_t_GPG_ERR_EADV: gpg_err_code_t = 32772;
pub const gpg_err_code_t_GPG_ERR_EAFNOSUPPORT: gpg_err_code_t = 32773;
pub const gpg_err_code_t_GPG_ERR_EAGAIN: gpg_err_code_t = 32774;
pub const gpg_err_code_t_GPG_ERR_EALREADY: gpg_err_code_t = 32775;
pub const gpg_err_code_t_GPG_ERR_EAUTH: gpg_err_code_t = 32776;
pub const gpg_err_code_t_GPG_ERR_EBACKGROUND: gpg_err_code_t = 32777;
pub const gpg_err_code_t_GPG_ERR_EBADE: gpg_err_code_t = 32778;
pub const gpg_err_code_t_GPG_ERR_EBADF: gpg_err_code_t = 32779;
pub const gpg_err_code_t_GPG_ERR_EBADFD: gpg_err_code_t = 32780;
pub const gpg_err_code_t_GPG_ERR_EBADMSG: gpg_err_code_t = 32781;
pub const gpg_err_code_t_GPG_ERR_EBADR: gpg_err_code_t = 32782;
pub const gpg_err_code_t_GPG_ERR_EBADRPC: gpg_err_code_t = 32783;
pub const gpg_err_code_t_GPG_ERR_EBADRQC: gpg_err_code_t = 32784;
pub const gpg_err_code_t_GPG_ERR_EBADSLT: gpg_err_code_t = 32785;
pub const gpg_err_code_t_GPG_ERR_EBFONT: gpg_err_code_t = 32786;
pub const gpg_err_code_t_GPG_ERR_EBUSY: gpg_err_code_t = 32787;
pub const gpg_err_code_t_GPG_ERR_ECANCELED: gpg_err_code_t = 32788;
pub const gpg_err_code_t_GPG_ERR_ECHILD: gpg_err_code_t = 32789;
pub const gpg_err_code_t_GPG_ERR_ECHRNG: gpg_err_code_t = 32790;
pub const gpg_err_code_t_GPG_ERR_ECOMM: gpg_err_code_t = 32791;
pub const gpg_err_code_t_GPG_ERR_ECONNABORTED: gpg_err_code_t = 32792;
pub const gpg_err_code_t_GPG_ERR_ECONNREFUSED: gpg_err_code_t = 32793;
pub const gpg_err_code_t_GPG_ERR_ECONNRESET: gpg_err_code_t = 32794;
pub const gpg_err_code_t_GPG_ERR_ED: gpg_err_code_t = 32795;
pub const gpg_err_code_t_GPG_ERR_EDEADLK: gpg_err_code_t = 32796;
pub const gpg_err_code_t_GPG_ERR_EDEADLOCK: gpg_err_code_t = 32797;
pub const gpg_err_code_t_GPG_ERR_EDESTADDRREQ: gpg_err_code_t = 32798;
pub const gpg_err_code_t_GPG_ERR_EDIED: gpg_err_code_t = 32799;
pub const gpg_err_code_t_GPG_ERR_EDOM: gpg_err_code_t = 32800;
pub const gpg_err_code_t_GPG_ERR_EDOTDOT: gpg_err_code_t = 32801;
pub const gpg_err_code_t_GPG_ERR_EDQUOT: gpg_err_code_t = 32802;
pub const gpg_err_code_t_GPG_ERR_EEXIST: gpg_err_code_t = 32803;
pub const gpg_err_code_t_GPG_ERR_EFAULT: gpg_err_code_t = 32804;
pub const gpg_err_code_t_GPG_ERR_EFBIG: gpg_err_code_t = 32805;
pub const gpg_err_code_t_GPG_ERR_EFTYPE: gpg_err_code_t = 32806;
pub const gpg_err_code_t_GPG_ERR_EGRATUITOUS: gpg_err_code_t = 32807;
pub const gpg_err_code_t_GPG_ERR_EGREGIOUS: gpg_err_code_t = 32808;
pub const gpg_err_code_t_GPG_ERR_EHOSTDOWN: gpg_err_code_t = 32809;
pub const gpg_err_code_t_GPG_ERR_EHOSTUNREACH: gpg_err_code_t = 32810;
pub const gpg_err_code_t_GPG_ERR_EIDRM: gpg_err_code_t = 32811;
pub const gpg_err_code_t_GPG_ERR_EIEIO: gpg_err_code_t = 32812;
pub const gpg_err_code_t_GPG_ERR_EILSEQ: gpg_err_code_t = 32813;
pub const gpg_err_code_t_GPG_ERR_EINPROGRESS: gpg_err_code_t = 32814;
pub const gpg_err_code_t_GPG_ERR_EINTR: gpg_err_code_t = 32815;
pub const gpg_err_code_t_GPG_ERR_EINVAL: gpg_err_code_t = 32816;
pub const gpg_err_code_t_GPG_ERR_EIO: gpg_err_code_t = 32817;
pub const gpg_err_code_t_GPG_ERR_EISCONN: gpg_err_code_t = 32818;
pub const gpg_err_code_t_GPG_ERR_EISDIR: gpg_err_code_t = 32819;
pub const gpg_err_code_t_GPG_ERR_EISNAM: gpg_err_code_t = 32820;
pub const gpg_err_code_t_GPG_ERR_EL2HLT: gpg_err_code_t = 32821;
pub const gpg_err_code_t_GPG_ERR_EL2NSYNC: gpg_err_code_t = 32822;
pub const gpg_err_code_t_GPG_ERR_EL3HLT: gpg_err_code_t = 32823;
pub const gpg_err_code_t_GPG_ERR_EL3RST: gpg_err_code_t = 32824;
pub const gpg_err_code_t_GPG_ERR_ELIBACC: gpg_err_code_t = 32825;
pub const gpg_err_code_t_GPG_ERR_ELIBBAD: gpg_err_code_t = 32826;
pub const gpg_err_code_t_GPG_ERR_ELIBEXEC: gpg_err_code_t = 32827;
pub const gpg_err_code_t_GPG_ERR_ELIBMAX: gpg_err_code_t = 32828;
pub const gpg_err_code_t_GPG_ERR_ELIBSCN: gpg_err_code_t = 32829;
pub const gpg_err_code_t_GPG_ERR_ELNRNG: gpg_err_code_t = 32830;
pub const gpg_err_code_t_GPG_ERR_ELOOP: gpg_err_code_t = 32831;
pub const gpg_err_code_t_GPG_ERR_EMEDIUMTYPE: gpg_err_code_t = 32832;
pub const gpg_err_code_t_GPG_ERR_EMFILE: gpg_err_code_t = 32833;
pub const gpg_err_code_t_GPG_ERR_EMLINK: gpg_err_code_t = 32834;
pub const gpg_err_code_t_GPG_ERR_EMSGSIZE: gpg_err_code_t = 32835;
pub const gpg_err_code_t_GPG_ERR_EMULTIHOP: gpg_err_code_t = 32836;
pub const gpg_err_code_t_GPG_ERR_ENAMETOOLONG: gpg_err_code_t = 32837;
pub const gpg_err_code_t_GPG_ERR_ENAVAIL: gpg_err_code_t = 32838;
pub const gpg_err_code_t_GPG_ERR_ENEEDAUTH: gpg_err_code_t = 32839;
pub const gpg_err_code_t_GPG_ERR_ENETDOWN: gpg_err_code_t = 32840;
pub const gpg_err_code_t_GPG_ERR_ENETRESET: gpg_err_code_t = 32841;
pub const gpg_err_code_t_GPG_ERR_ENETUNREACH: gpg_err_code_t = 32842;
pub const gpg_err_code_t_GPG_ERR_ENFILE: gpg_err_code_t = 32843;
pub const gpg_err_code_t_GPG_ERR_ENOANO: gpg_err_code_t = 32844;
pub const gpg_err_code_t_GPG_ERR_ENOBUFS: gpg_err_code_t = 32845;
pub const gpg_err_code_t_GPG_ERR_ENOCSI: gpg_err_code_t = 32846;
pub const gpg_err_code_t_GPG_ERR_ENODATA: gpg_err_code_t = 32847;
pub const gpg_err_code_t_GPG_ERR_ENODEV: gpg_err_code_t = 32848;
pub const gpg_err_code_t_GPG_ERR_ENOENT: gpg_err_code_t = 32849;
pub const gpg_err_code_t_GPG_ERR_ENOEXEC: gpg_err_code_t = 32850;
pub const gpg_err_code_t_GPG_ERR_ENOLCK: gpg_err_code_t = 32851;
pub const gpg_err_code_t_GPG_ERR_ENOLINK: gpg_err_code_t = 32852;
pub const gpg_err_code_t_GPG_ERR_ENOMEDIUM: gpg_err_code_t = 32853;
pub const gpg_err_code_t_GPG_ERR_ENOMEM: gpg_err_code_t = 32854;
pub const gpg_err_code_t_GPG_ERR_ENOMSG: gpg_err_code_t = 32855;
pub const gpg_err_code_t_GPG_ERR_ENONET: gpg_err_code_t = 32856;
pub const gpg_err_code_t_GPG_ERR_ENOPKG: gpg_err_code_t = 32857;
pub const gpg_err_code_t_GPG_ERR_ENOPROTOOPT: gpg_err_code_t = 32858;
pub const gpg_err_code_t_GPG_ERR_ENOSPC: gpg_err_code_t = 32859;
pub const gpg_err_code_t_GPG_ERR_ENOSR: gpg_err_code_t = 32860;
pub const gpg_err_code_t_GPG_ERR_ENOSTR: gpg_err_code_t = 32861;
pub const gpg_err_code_t_GPG_ERR_ENOSYS: gpg_err_code_t = 32862;
pub const gpg_err_code_t_GPG_ERR_ENOTBLK: gpg_err_code_t = 32863;
pub const gpg_err_code_t_GPG_ERR_ENOTCONN: gpg_err_code_t = 32864;
pub const gpg_err_code_t_GPG_ERR_ENOTDIR: gpg_err_code_t = 32865;
pub const gpg_err_code_t_GPG_ERR_ENOTEMPTY: gpg_err_code_t = 32866;
pub const gpg_err_code_t_GPG_ERR_ENOTNAM: gpg_err_code_t = 32867;
pub const gpg_err_code_t_GPG_ERR_ENOTSOCK: gpg_err_code_t = 32868;
pub const gpg_err_code_t_GPG_ERR_ENOTSUP: gpg_err_code_t = 32869;
pub const gpg_err_code_t_GPG_ERR_ENOTTY: gpg_err_code_t = 32870;
pub const gpg_err_code_t_GPG_ERR_ENOTUNIQ: gpg_err_code_t = 32871;
pub const gpg_err_code_t_GPG_ERR_ENXIO: gpg_err_code_t = 32872;
pub const gpg_err_code_t_GPG_ERR_EOPNOTSUPP: gpg_err_code_t = 32873;
pub const gpg_err_code_t_GPG_ERR_EOVERFLOW: gpg_err_code_t = 32874;
pub const gpg_err_code_t_GPG_ERR_EPERM: gpg_err_code_t = 32875;
pub const gpg_err_code_t_GPG_ERR_EPFNOSUPPORT: gpg_err_code_t = 32876;
pub const gpg_err_code_t_GPG_ERR_EPIPE: gpg_err_code_t = 32877;
pub const gpg_err_code_t_GPG_ERR_EPROCLIM: gpg_err_code_t = 32878;
pub const gpg_err_code_t_GPG_ERR_EPROCUNAVAIL: gpg_err_code_t = 32879;
pub const gpg_err_code_t_GPG_ERR_EPROGMISMATCH: gpg_err_code_t = 32880;
pub const gpg_err_code_t_GPG_ERR_EPROGUNAVAIL: gpg_err_code_t = 32881;
pub const gpg_err_code_t_GPG_ERR_EPROTO: gpg_err_code_t = 32882;
pub const gpg_err_code_t_GPG_ERR_EPROTONOSUPPORT: gpg_err_code_t = 32883;
pub const gpg_err_code_t_GPG_ERR_EPROTOTYPE: gpg_err_code_t = 32884;
pub const gpg_err_code_t_GPG_ERR_ERANGE: gpg_err_code_t = 32885;
pub const gpg_err_code_t_GPG_ERR_EREMCHG: gpg_err_code_t = 32886;
pub const gpg_err_code_t_GPG_ERR_EREMOTE: gpg_err_code_t = 32887;
pub const gpg_err_code_t_GPG_ERR_EREMOTEIO: gpg_err_code_t = 32888;
pub const gpg_err_code_t_GPG_ERR_ERESTART: gpg_err_code_t = 32889;
pub const gpg_err_code_t_GPG_ERR_EROFS: gpg_err_code_t = 32890;
pub const gpg_err_code_t_GPG_ERR_ERPCMISMATCH: gpg_err_code_t = 32891;
pub const gpg_err_code_t_GPG_ERR_ESHUTDOWN: gpg_err_code_t = 32892;
pub const gpg_err_code_t_GPG_ERR_ESOCKTNOSUPPORT: gpg_err_code_t = 32893;
pub const gpg_err_code_t_GPG_ERR_ESPIPE: gpg_err_code_t = 32894;
pub const gpg_err_code_t_GPG_ERR_ESRCH: gpg_err_code_t = 32895;
pub const gpg_err_code_t_GPG_ERR_ESRMNT: gpg_err_code_t = 32896;
pub const gpg_err_code_t_GPG_ERR_ESTALE: gpg_err_code_t = 32897;
pub const gpg_err_code_t_GPG_ERR_ESTRPIPE: gpg_err_code_t = 32898;
pub const gpg_err_code_t_GPG_ERR_ETIME: gpg_err_code_t = 32899;
pub const gpg_err_code_t_GPG_ERR_ETIMEDOUT: gpg_err_code_t = 32900;
pub const gpg_err_code_t_GPG_ERR_ETOOMANYREFS: gpg_err_code_t = 32901;
pub const gpg_err_code_t_GPG_ERR_ETXTBSY: gpg_err_code_t = 32902;
pub const gpg_err_code_t_GPG_ERR_EUCLEAN: gpg_err_code_t = 32903;
pub const gpg_err_code_t_GPG_ERR_EUNATCH: gpg_err_code_t = 32904;
pub const gpg_err_code_t_GPG_ERR_EUSERS: gpg_err_code_t = 32905;
pub const gpg_err_code_t_GPG_ERR_EWOULDBLOCK: gpg_err_code_t = 32906;
pub const gpg_err_code_t_GPG_ERR_EXDEV: gpg_err_code_t = 32907;
pub const gpg_err_code_t_GPG_ERR_EXFULL: gpg_err_code_t = 32908;
pub const gpg_err_code_t_GPG_ERR_CODE_DIM: gpg_err_code_t = 65536;
pub type gpg_err_code_t = ::std::os::raw::c_uint;
pub type gpg_error_t = ::std::os::raw::c_uint;
extern "C" {
    pub fn gpg_err_init() -> gpg_error_t;
}
extern "C" {
    pub fn gpg_err_deinit(mode: ::std::os::raw::c_int);
}
extern "C" {
    pub fn gpgrt_set_syscall_clamp(
        pre: ::std::option::Option<unsafe extern "C" fn()>,
        post: ::std::option::Option<unsafe extern "C" fn()>,
    );
}
extern "C" {
    pub fn gpgrt_get_syscall_clamp(
        r_pre: *mut ::std::option::Option<unsafe extern "C" fn()>,
        r_post: *mut ::std::option::Option<unsafe extern "C" fn()>,
    );
}
extern "C" {
    pub fn gpgrt_set_alloc_func(
        f: ::std::option::Option<
            unsafe extern "C" fn(
                a: *mut ::std::os::raw::c_void,
                n: usize,
            ) -> *mut ::std::os::raw::c_void,
        >,
    );
}
extern "C" {
    pub fn gpgrt_add_emergency_cleanup(f: ::std::option::Option<unsafe extern "C" fn()>);
}
extern "C" {
    pub fn gpgrt_abort();
}
extern "C" {
    pub fn gpg_strerror(err: gpg_error_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpg_strerror_r(
        err: gpg_error_t,
        buf: *mut ::std::os::raw::c_char,
        buflen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpg_strsource(err: gpg_error_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpg_err_code_from_errno(err: ::std::os::raw::c_int) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpg_err_code_to_errno(code: gpg_err_code_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpg_err_code_from_syserror() -> gpg_err_code_t;
}
extern "C" {
    pub fn gpg_err_set_errno(err: ::std::os::raw::c_int);
}
extern "C" {
    pub fn gpgrt_check_version(
        req_version: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpg_error_check_version(
        req_version: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
pub type gpgrt_ssize_t = isize;
pub type gpgrt_off_t = ::std::os::raw::c_long;
extern "C" {
    pub fn gpgrt_realloc(a: *mut ::std::os::raw::c_void, n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gpgrt_reallocarray(
        a: *mut ::std::os::raw::c_void,
        oldnmemb: usize,
        nmemb: usize,
        size: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gpgrt_malloc(n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gpgrt_calloc(n: usize, m: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gpgrt_strdup(string: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_strconcat(s1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_free(a: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn gpgrt_getenv(name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_setenv(
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
        overwrite: ::std::os::raw::c_int,
    ) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_mkdir(
        name: *const ::std::os::raw::c_char,
        modestr: *const ::std::os::raw::c_char,
    ) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_chdir(name: *const ::std::os::raw::c_char) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_getcwd() -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct gpgrt_lock_t {
    pub _vers: ::std::os::raw::c_long,
    pub u: gpgrt_lock_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union gpgrt_lock_t__bindgen_ty_1 {
    pub _priv: [::std::os::raw::c_char; 40usize],
    pub _x_align: ::std::os::raw::c_long,
    pub _xp_align: *mut ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 5usize],
}
#[test]
fn bindgen_test_layout_gpgrt_lock_t__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<gpgrt_lock_t__bindgen_ty_1>(),
        40usize,
        concat!("Size of: ", stringify!(gpgrt_lock_t__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<gpgrt_lock_t__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(gpgrt_lock_t__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_lock_t__bindgen_ty_1>()))._priv as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_lock_t__bindgen_ty_1),
            "::",
            stringify!(_priv)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_lock_t__bindgen_ty_1>()))._x_align as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_lock_t__bindgen_ty_1),
            "::",
            stringify!(_x_align)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_lock_t__bindgen_ty_1>()))._xp_align as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_lock_t__bindgen_ty_1),
            "::",
            stringify!(_xp_align)
        )
    );
}
#[test]
fn bindgen_test_layout_gpgrt_lock_t() {
    assert_eq!(
        ::std::mem::size_of::<gpgrt_lock_t>(),
        48usize,
        concat!("Size of: ", stringify!(gpgrt_lock_t))
    );
    assert_eq!(
        ::std::mem::align_of::<gpgrt_lock_t>(),
        8usize,
        concat!("Alignment of ", stringify!(gpgrt_lock_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_lock_t>()))._vers as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_lock_t),
            "::",
            stringify!(_vers)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_lock_t>())).u as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_lock_t),
            "::",
            stringify!(u)
        )
    );
}
extern "C" {
    pub fn gpgrt_lock_init(lockhd: *mut gpgrt_lock_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_lock_lock(lockhd: *mut gpgrt_lock_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_lock_trylock(lockhd: *mut gpgrt_lock_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_lock_unlock(lockhd: *mut gpgrt_lock_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_lock_destroy(lockhd: *mut gpgrt_lock_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_yield() -> gpg_err_code_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt_stream_internal {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt__stream {
    pub flags: _gpgrt__stream__bindgen_ty_1,
    pub buffer: *mut ::std::os::raw::c_uchar,
    pub buffer_size: usize,
    pub data_len: usize,
    pub data_offset: usize,
    pub data_flushed: usize,
    pub unread_buffer: *mut ::std::os::raw::c_uchar,
    pub unread_buffer_size: usize,
    pub unread_data_len: usize,
    pub intern: *mut _gpgrt_stream_internal,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt__stream__bindgen_ty_1 {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
}
#[test]
fn bindgen_test_layout__gpgrt__stream__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt__stream__bindgen_ty_1>(),
        4usize,
        concat!("Size of: ", stringify!(_gpgrt__stream__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt__stream__bindgen_ty_1>(),
        4usize,
        concat!("Alignment of ", stringify!(_gpgrt__stream__bindgen_ty_1))
    );
}
impl _gpgrt__stream__bindgen_ty_1 {
    #[inline]
    pub fn magic(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
    }
    #[inline]
    pub fn set_magic(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 16u8, val as u64)
        }
    }
    #[inline]
    pub fn writing(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_writing(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(16usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn reserved(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) }
    }
    #[inline]
    pub fn set_reserved(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(17usize, 15u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        magic: ::std::os::raw::c_uint,
        writing: ::std::os::raw::c_uint,
        reserved: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 16u8, {
            let magic: u32 = unsafe { ::std::mem::transmute(magic) };
            magic as u64
        });
        __bindgen_bitfield_unit.set(16usize, 1u8, {
            let writing: u32 = unsafe { ::std::mem::transmute(writing) };
            writing as u64
        });
        __bindgen_bitfield_unit.set(17usize, 15u8, {
            let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
            reserved as u64
        });
        __bindgen_bitfield_unit
    }
}
#[test]
fn bindgen_test_layout__gpgrt__stream() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt__stream>(),
        80usize,
        concat!("Size of: ", stringify!(_gpgrt__stream))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt__stream>(),
        8usize,
        concat!("Alignment of ", stringify!(_gpgrt__stream))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).flags as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).buffer as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(buffer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).buffer_size as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(buffer_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).data_len as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(data_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).data_offset as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(data_offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).data_flushed as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(data_flushed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).unread_buffer as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(unread_buffer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt__stream>())).unread_buffer_size as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(unread_buffer_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).unread_data_len as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(unread_data_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt__stream>())).intern as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt__stream),
            "::",
            stringify!(intern)
        )
    );
}
pub type gpgrt_stream_t = *mut _gpgrt__stream;
pub type gpgrt_cookie_read_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        cookie: *mut ::std::os::raw::c_void,
        buffer: *mut ::std::os::raw::c_void,
        size: usize,
    ) -> isize,
>;
pub type gpgrt_cookie_write_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        cookie: *mut ::std::os::raw::c_void,
        buffer: *const ::std::os::raw::c_void,
        size: usize,
    ) -> isize,
>;
pub type gpgrt_cookie_seek_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        cookie: *mut ::std::os::raw::c_void,
        pos: *mut gpgrt_off_t,
        whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type gpgrt_cookie_close_function_t = ::std::option::Option<
    unsafe extern "C" fn(cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt_cookie_io_functions {
    pub func_read: gpgrt_cookie_read_function_t,
    pub func_write: gpgrt_cookie_write_function_t,
    pub func_seek: gpgrt_cookie_seek_function_t,
    pub func_close: gpgrt_cookie_close_function_t,
}
#[test]
fn bindgen_test_layout__gpgrt_cookie_io_functions() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt_cookie_io_functions>(),
        32usize,
        concat!("Size of: ", stringify!(_gpgrt_cookie_io_functions))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt_cookie_io_functions>(),
        8usize,
        concat!("Alignment of ", stringify!(_gpgrt_cookie_io_functions))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt_cookie_io_functions>())).func_read as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_cookie_io_functions),
            "::",
            stringify!(func_read)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt_cookie_io_functions>())).func_write as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_cookie_io_functions),
            "::",
            stringify!(func_write)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt_cookie_io_functions>())).func_seek as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_cookie_io_functions),
            "::",
            stringify!(func_seek)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt_cookie_io_functions>())).func_close as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_cookie_io_functions),
            "::",
            stringify!(func_close)
        )
    );
}
pub type gpgrt_cookie_io_functions_t = _gpgrt_cookie_io_functions;
pub const gpgrt_syshd_types_GPGRT_SYSHD_NONE: gpgrt_syshd_types = 0;
pub const gpgrt_syshd_types_GPGRT_SYSHD_FD: gpgrt_syshd_types = 1;
pub const gpgrt_syshd_types_GPGRT_SYSHD_SOCK: gpgrt_syshd_types = 2;
pub const gpgrt_syshd_types_GPGRT_SYSHD_RVID: gpgrt_syshd_types = 3;
pub const gpgrt_syshd_types_GPGRT_SYSHD_HANDLE: gpgrt_syshd_types = 4;
pub type gpgrt_syshd_types = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _gpgrt_syshd {
    pub type_: gpgrt_syshd_types,
    pub u: _gpgrt_syshd__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _gpgrt_syshd__bindgen_ty_1 {
    pub fd: ::std::os::raw::c_int,
    pub sock: ::std::os::raw::c_int,
    pub rvid: ::std::os::raw::c_int,
    pub handle: *mut ::std::os::raw::c_void,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout__gpgrt_syshd__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt_syshd__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(_gpgrt_syshd__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt_syshd__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(_gpgrt_syshd__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_syshd__bindgen_ty_1>())).fd as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd__bindgen_ty_1),
            "::",
            stringify!(fd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_syshd__bindgen_ty_1>())).sock as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd__bindgen_ty_1),
            "::",
            stringify!(sock)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_syshd__bindgen_ty_1>())).rvid as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd__bindgen_ty_1),
            "::",
            stringify!(rvid)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_gpgrt_syshd__bindgen_ty_1>())).handle as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd__bindgen_ty_1),
            "::",
            stringify!(handle)
        )
    );
}
#[test]
fn bindgen_test_layout__gpgrt_syshd() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt_syshd>(),
        16usize,
        concat!("Size of: ", stringify!(_gpgrt_syshd))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt_syshd>(),
        8usize,
        concat!("Alignment of ", stringify!(_gpgrt_syshd))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_syshd>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_syshd>())).u as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_syshd),
            "::",
            stringify!(u)
        )
    );
}
pub type gpgrt_syshd_t = _gpgrt_syshd;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt_poll_s {
    pub stream: gpgrt_stream_t,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u8>,
    pub __bindgen_padding_0: u32,
}
#[test]
fn bindgen_test_layout__gpgrt_poll_s() {
    assert_eq!(
        ::std::mem::size_of::<_gpgrt_poll_s>(),
        16usize,
        concat!("Size of: ", stringify!(_gpgrt_poll_s))
    );
    assert_eq!(
        ::std::mem::align_of::<_gpgrt_poll_s>(),
        8usize,
        concat!("Alignment of ", stringify!(_gpgrt_poll_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_gpgrt_poll_s>())).stream as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_gpgrt_poll_s),
            "::",
            stringify!(stream)
        )
    );
}
impl _gpgrt_poll_s {
    #[inline]
    pub fn want_read(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_want_read(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn want_write(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_want_write(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn want_oob(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_want_oob(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn want_rdhup(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_want_rdhup(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserv1(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set__reserv1(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn got_read(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_read(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(8usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn got_write(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_write(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(9usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn got_oob(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_oob(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(10usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn got_rdhup(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_rdhup(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(11usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserv2(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set__reserv2(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(12usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn got_err(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_err(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(16usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn got_hup(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_hup(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(17usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn got_nval(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_got_nval(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(18usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserv3(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set__reserv3(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(19usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn ignore(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_ignore(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(23usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn user(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_user(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(24usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        want_read: ::std::os::raw::c_uint,
        want_write: ::std::os::raw::c_uint,
        want_oob: ::std::os::raw::c_uint,
        want_rdhup: ::std::os::raw::c_uint,
        _reserv1: ::std::os::raw::c_uint,
        got_read: ::std::os::raw::c_uint,
        got_write: ::std::os::raw::c_uint,
        got_oob: ::std::os::raw::c_uint,
        got_rdhup: ::std::os::raw::c_uint,
        _reserv2: ::std::os::raw::c_uint,
        got_err: ::std::os::raw::c_uint,
        got_hup: ::std::os::raw::c_uint,
        got_nval: ::std::os::raw::c_uint,
        _reserv3: ::std::os::raw::c_uint,
        ignore: ::std::os::raw::c_uint,
        user: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 4usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let want_read: u32 = unsafe { ::std::mem::transmute(want_read) };
            want_read as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let want_write: u32 = unsafe { ::std::mem::transmute(want_write) };
            want_write as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let want_oob: u32 = unsafe { ::std::mem::transmute(want_oob) };
            want_oob as u64
        });
        __bindgen_bitfield_unit.set(3usize, 1u8, {
            let want_rdhup: u32 = unsafe { ::std::mem::transmute(want_rdhup) };
            want_rdhup as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let _reserv1: u32 = unsafe { ::std::mem::transmute(_reserv1) };
            _reserv1 as u64
        });
        __bindgen_bitfield_unit.set(8usize, 1u8, {
            let got_read: u32 = unsafe { ::std::mem::transmute(got_read) };
            got_read as u64
        });
        __bindgen_bitfield_unit.set(9usize, 1u8, {
            let got_write: u32 = unsafe { ::std::mem::transmute(got_write) };
            got_write as u64
        });
        __bindgen_bitfield_unit.set(10usize, 1u8, {
            let got_oob: u32 = unsafe { ::std::mem::transmute(got_oob) };
            got_oob as u64
        });
        __bindgen_bitfield_unit.set(11usize, 1u8, {
            let got_rdhup: u32 = unsafe { ::std::mem::transmute(got_rdhup) };
            got_rdhup as u64
        });
        __bindgen_bitfield_unit.set(12usize, 4u8, {
            let _reserv2: u32 = unsafe { ::std::mem::transmute(_reserv2) };
            _reserv2 as u64
        });
        __bindgen_bitfield_unit.set(16usize, 1u8, {
            let got_err: u32 = unsafe { ::std::mem::transmute(got_err) };
            got_err as u64
        });
        __bindgen_bitfield_unit.set(17usize, 1u8, {
            let got_hup: u32 = unsafe { ::std::mem::transmute(got_hup) };
            got_hup as u64
        });
        __bindgen_bitfield_unit.set(18usize, 1u8, {
            let got_nval: u32 = unsafe { ::std::mem::transmute(got_nval) };
            got_nval as u64
        });
        __bindgen_bitfield_unit.set(19usize, 4u8, {
            let _reserv3: u32 = unsafe { ::std::mem::transmute(_reserv3) };
            _reserv3 as u64
        });
        __bindgen_bitfield_unit.set(23usize, 1u8, {
            let ignore: u32 = unsafe { ::std::mem::transmute(ignore) };
            ignore as u64
        });
        __bindgen_bitfield_unit.set(24usize, 8u8, {
            let user: u32 = unsafe { ::std::mem::transmute(user) };
            user as u64
        });
        __bindgen_bitfield_unit
    }
}
pub type gpgrt_poll_t = _gpgrt_poll_s;
pub type gpgrt_string_filter_t = ::std::option::Option<
    unsafe extern "C" fn(
        s: *const ::std::os::raw::c_char,
        n: ::std::os::raw::c_int,
        opaque: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_char,
>;
extern "C" {
    pub fn gpgrt_fopen(
        path: *const ::std::os::raw::c_char,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_mopen(
        data: *mut ::std::os::raw::c_void,
        data_n: usize,
        data_len: usize,
        grow: ::std::os::raw::c_uint,
        func_realloc: ::std::option::Option<
            unsafe extern "C" fn(
                mem: *mut ::std::os::raw::c_void,
                size: usize,
            ) -> *mut ::std::os::raw::c_void,
        >,
        func_free: ::std::option::Option<unsafe extern "C" fn(mem: *mut ::std::os::raw::c_void)>,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fopenmem(memlimit: usize, mode: *const ::std::os::raw::c_char) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fopenmem_init(
        memlimit: usize,
        mode: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_void,
        datalen: usize,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fdopen(
        filedes: ::std::os::raw::c_int,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fdopen_nc(
        filedes: ::std::os::raw::c_int,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_sysopen(
        syshd: *mut gpgrt_syshd_t,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_sysopen_nc(
        syshd: *mut gpgrt_syshd_t,
        mode: *const ::std::os::raw::c_char,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fpopen(fp: *mut FILE, mode: *const ::std::os::raw::c_char) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fpopen_nc(fp: *mut FILE, mode: *const ::std::os::raw::c_char) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_freopen(
        path: *const ::std::os::raw::c_char,
        mode: *const ::std::os::raw::c_char,
        stream: gpgrt_stream_t,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fopencookie(
        cookie: *mut ::std::os::raw::c_void,
        mode: *const ::std::os::raw::c_char,
        functions: gpgrt_cookie_io_functions_t,
    ) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_fclose(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fclose_snatch(
        stream: gpgrt_stream_t,
        r_buffer: *mut *mut ::std::os::raw::c_void,
        r_buflen: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_onclose(
        stream: gpgrt_stream_t,
        mode: ::std::os::raw::c_int,
        fnc: ::std::option::Option<
            unsafe extern "C" fn(arg1: gpgrt_stream_t, arg2: *mut ::std::os::raw::c_void),
        >,
        fnc_value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fileno(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fileno_unlocked(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_syshd(stream: gpgrt_stream_t, syshd: *mut gpgrt_syshd_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_syshd_unlocked(
        stream: gpgrt_stream_t,
        syshd: *mut gpgrt_syshd_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _gpgrt_set_std_fd(no: ::std::os::raw::c_int, fd: ::std::os::raw::c_int);
}
extern "C" {
    pub fn _gpgrt_get_std_stream(fd: ::std::os::raw::c_int) -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_flockfile(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn gpgrt_ftrylockfile(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_funlockfile(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn gpgrt_feof(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_feof_unlocked(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_ferror(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_ferror_unlocked(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_clearerr(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn gpgrt_clearerr_unlocked(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn _gpgrt_pending(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _gpgrt_pending_unlocked(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fflush(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fseek(
        stream: gpgrt_stream_t,
        offset: ::std::os::raw::c_long,
        whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fseeko(
        stream: gpgrt_stream_t,
        offset: gpgrt_off_t,
        whence: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_ftruncate(stream: gpgrt_stream_t, length: gpgrt_off_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_ftell(stream: gpgrt_stream_t) -> ::std::os::raw::c_long;
}
extern "C" {
    pub fn gpgrt_ftello(stream: gpgrt_stream_t) -> gpgrt_off_t;
}
extern "C" {
    pub fn gpgrt_rewind(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn gpgrt_fgetc(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fputc(c: ::std::os::raw::c_int, stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _gpgrt_getc_underflow(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _gpgrt_putc_overflow(
        c: ::std::os::raw::c_int,
        stream: gpgrt_stream_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_ungetc(c: ::std::os::raw::c_int, stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_read(
        stream: gpgrt_stream_t,
        buffer: *mut ::std::os::raw::c_void,
        bytes_to_read: usize,
        bytes_read: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_write(
        stream: gpgrt_stream_t,
        buffer: *const ::std::os::raw::c_void,
        bytes_to_write: usize,
        bytes_written: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_write_sanitized(
        stream: gpgrt_stream_t,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
        delimiters: *const ::std::os::raw::c_char,
        bytes_written: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_write_hexstring(
        stream: gpgrt_stream_t,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
        reserved: ::std::os::raw::c_int,
        bytes_written: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fread(
        ptr: *mut ::std::os::raw::c_void,
        size: usize,
        nitems: usize,
        stream: gpgrt_stream_t,
    ) -> usize;
}
extern "C" {
    pub fn gpgrt_fwrite(
        ptr: *const ::std::os::raw::c_void,
        size: usize,
        nitems: usize,
        stream: gpgrt_stream_t,
    ) -> usize;
}
extern "C" {
    pub fn gpgrt_fgets(
        s: *mut ::std::os::raw::c_char,
        n: ::std::os::raw::c_int,
        stream: gpgrt_stream_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_fputs(
        s: *const ::std::os::raw::c_char,
        stream: gpgrt_stream_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fputs_unlocked(
        s: *const ::std::os::raw::c_char,
        stream: gpgrt_stream_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_getline(
        lineptr: *mut *mut ::std::os::raw::c_char,
        n: *mut usize,
        stream: gpgrt_stream_t,
    ) -> isize;
}
extern "C" {
    pub fn gpgrt_read_line(
        stream: gpgrt_stream_t,
        addr_of_buffer: *mut *mut ::std::os::raw::c_char,
        length_of_buffer: *mut usize,
        max_length: *mut usize,
    ) -> isize;
}
extern "C" {
    pub fn gpgrt_fprintf(
        stream: gpgrt_stream_t,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fprintf_unlocked(
        stream: gpgrt_stream_t,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fprintf_sf(
        stream: gpgrt_stream_t,
        sf: gpgrt_string_filter_t,
        sfvalue: *mut ::std::os::raw::c_void,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fprintf_sf_unlocked(
        stream: gpgrt_stream_t,
        sf: gpgrt_string_filter_t,
        sfvalue: *mut ::std::os::raw::c_void,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_printf(format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_printf_unlocked(
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_vfprintf(
        stream: gpgrt_stream_t,
        format: *const ::std::os::raw::c_char,
        ap: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_vfprintf_unlocked(
        stream: gpgrt_stream_t,
        format: *const ::std::os::raw::c_char,
        ap: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_setvbuf(
        stream: gpgrt_stream_t,
        buf: *mut ::std::os::raw::c_char,
        mode: ::std::os::raw::c_int,
        size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_setbuf(stream: gpgrt_stream_t, buf: *mut ::std::os::raw::c_char);
}
extern "C" {
    pub fn gpgrt_set_binary(stream: gpgrt_stream_t);
}
extern "C" {
    pub fn gpgrt_set_nonblock(
        stream: gpgrt_stream_t,
        onoff: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_get_nonblock(stream: gpgrt_stream_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_poll(
        fdlist: *mut gpgrt_poll_t,
        nfds: ::std::os::raw::c_uint,
        timeout: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_tmpfile() -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_opaque_set(stream: gpgrt_stream_t, opaque: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn gpgrt_opaque_get(stream: gpgrt_stream_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gpgrt_fname_set(stream: gpgrt_stream_t, fname: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn gpgrt_fname_get(stream: gpgrt_stream_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_asprintf(
        r_buf: *mut *mut ::std::os::raw::c_char,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_vasprintf(
        r_buf: *mut *mut ::std::os::raw::c_char,
        format: *const ::std::os::raw::c_char,
        ap: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_bsprintf(
        format: *const ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_vbsprintf(
        format: *const ::std::os::raw::c_char,
        ap: *mut __va_list_tag,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_snprintf(
        buf: *mut ::std::os::raw::c_char,
        bufsize: usize,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_vsnprintf(
        buf: *mut ::std::os::raw::c_char,
        bufsize: usize,
        format: *const ::std::os::raw::c_char,
        arg_ptr: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt_b64state {
    _unused: [u8; 0],
}
pub type gpgrt_b64state_t = *mut _gpgrt_b64state;
extern "C" {
    pub fn gpgrt_b64enc_start(
        stream: gpgrt_stream_t,
        title: *const ::std::os::raw::c_char,
    ) -> gpgrt_b64state_t;
}
extern "C" {
    pub fn gpgrt_b64enc_write(
        state: gpgrt_b64state_t,
        buffer: *const ::std::os::raw::c_void,
        nbytes: usize,
    ) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_b64enc_finish(state: gpgrt_b64state_t) -> gpg_err_code_t;
}
extern "C" {
    pub fn gpgrt_b64dec_start(title: *const ::std::os::raw::c_char) -> gpgrt_b64state_t;
}
extern "C" {
    pub fn gpgrt_b64dec_proc(
        state: gpgrt_b64state_t,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
        r_nbytes: *mut usize,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gpgrt_b64dec_finish(state: gpgrt_b64state_t) -> gpg_error_t;
}
pub const gpgrt_log_levels_GPGRT_LOGLVL_BEGIN: gpgrt_log_levels = 0;
pub const gpgrt_log_levels_GPGRT_LOGLVL_CONT: gpgrt_log_levels = 1;
pub const gpgrt_log_levels_GPGRT_LOGLVL_INFO: gpgrt_log_levels = 2;
pub const gpgrt_log_levels_GPGRT_LOGLVL_WARN: gpgrt_log_levels = 3;
pub const gpgrt_log_levels_GPGRT_LOGLVL_ERROR: gpgrt_log_levels = 4;
pub const gpgrt_log_levels_GPGRT_LOGLVL_FATAL: gpgrt_log_levels = 5;
pub const gpgrt_log_levels_GPGRT_LOGLVL_BUG: gpgrt_log_levels = 6;
pub const gpgrt_log_levels_GPGRT_LOGLVL_DEBUG: gpgrt_log_levels = 7;
pub type gpgrt_log_levels = ::std::os::raw::c_uint;
extern "C" {
    pub fn gpgrt_log_set_sink(
        name: *const ::std::os::raw::c_char,
        stream: gpgrt_stream_t,
        fd: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn gpgrt_log_set_socket_dir_cb(
        fnc: ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
    );
}
extern "C" {
    pub fn gpgrt_log_set_pid_suffix_cb(
        cb: ::std::option::Option<
            unsafe extern "C" fn(r_value: *mut ::std::os::raw::c_ulong) -> ::std::os::raw::c_int,
        >,
    );
}
extern "C" {
    pub fn gpgrt_log_set_prefix(text: *const ::std::os::raw::c_char, flags: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gpgrt_get_errorcount(clear: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_inc_errorcount();
}
extern "C" {
    pub fn gpgrt_log_get_prefix(
        flags: *mut ::std::os::raw::c_uint,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_log_test_fd(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_log_get_fd() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_log_get_stream() -> gpgrt_stream_t;
}
extern "C" {
    pub fn gpgrt_log(level: ::std::os::raw::c_int, fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_logv(
        level: ::std::os::raw::c_int,
        fmt: *const ::std::os::raw::c_char,
        arg_ptr: *mut __va_list_tag,
    );
}
extern "C" {
    pub fn gpgrt_logv_prefix(
        level: ::std::os::raw::c_int,
        prefix: *const ::std::os::raw::c_char,
        fmt: *const ::std::os::raw::c_char,
        arg_ptr: *mut __va_list_tag,
    );
}
extern "C" {
    pub fn gpgrt_log_string(level: ::std::os::raw::c_int, string: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn gpgrt_log_bug(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_fatal(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_error(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_info(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_debug(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_debug_string(
        string: *const ::std::os::raw::c_char,
        fmt: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn gpgrt_log_printf(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_printhex(
        buffer: *const ::std::os::raw::c_void,
        length: usize,
        fmt: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn gpgrt_log_clock(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gpgrt_log_flush();
}
extern "C" {
    pub fn _gpgrt_log_assert(
        expr: *const ::std::os::raw::c_char,
        file: *const ::std::os::raw::c_char,
        line: ::std::os::raw::c_int,
        func: *const ::std::os::raw::c_char,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _gpgrt_argparse_internal_s {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct gpgrt_argparse_t {
    pub argc: *mut ::std::os::raw::c_int,
    pub argv: *mut *mut *mut ::std::os::raw::c_char,
    pub flags: ::std::os::raw::c_uint,
    pub err: ::std::os::raw::c_int,
    pub lineno: ::std::os::raw::c_uint,
    pub r_opt: ::std::os::raw::c_int,
    pub r_type: ::std::os::raw::c_int,
    pub r: gpgrt_argparse_t__bindgen_ty_1,
    pub internal: *mut _gpgrt_argparse_internal_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union gpgrt_argparse_t__bindgen_ty_1 {
    pub ret_int: ::std::os::raw::c_int,
    pub ret_long: ::std::os::raw::c_long,
    pub ret_ulong: ::std::os::raw::c_ulong,
    pub ret_str: *mut ::std::os::raw::c_char,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_gpgrt_argparse_t__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<gpgrt_argparse_t__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(gpgrt_argparse_t__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<gpgrt_argparse_t__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(gpgrt_argparse_t__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_argparse_t__bindgen_ty_1>())).ret_int as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t__bindgen_ty_1),
            "::",
            stringify!(ret_int)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_argparse_t__bindgen_ty_1>())).ret_long as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t__bindgen_ty_1),
            "::",
            stringify!(ret_long)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_argparse_t__bindgen_ty_1>())).ret_ulong as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t__bindgen_ty_1),
            "::",
            stringify!(ret_ulong)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<gpgrt_argparse_t__bindgen_ty_1>())).ret_str as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t__bindgen_ty_1),
            "::",
            stringify!(ret_str)
        )
    );
}
#[test]
fn bindgen_test_layout_gpgrt_argparse_t() {
    assert_eq!(
        ::std::mem::size_of::<gpgrt_argparse_t>(),
        56usize,
        concat!("Size of: ", stringify!(gpgrt_argparse_t))
    );
    assert_eq!(
        ::std::mem::align_of::<gpgrt_argparse_t>(),
        8usize,
        concat!("Alignment of ", stringify!(gpgrt_argparse_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).argc as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(argc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).argv as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(argv)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).flags as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).err as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(err)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).lineno as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(lineno)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).r_opt as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(r_opt)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).r_type as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(r_type)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).r as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(r)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_argparse_t>())).internal as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_argparse_t),
            "::",
            stringify!(internal)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpgrt_opt_t {
    pub short_opt: ::std::os::raw::c_int,
    pub long_opt: *const ::std::os::raw::c_char,
    pub flags: ::std::os::raw::c_uint,
    pub description: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_gpgrt_opt_t() {
    assert_eq!(
        ::std::mem::size_of::<gpgrt_opt_t>(),
        32usize,
        concat!("Size of: ", stringify!(gpgrt_opt_t))
    );
    assert_eq!(
        ::std::mem::align_of::<gpgrt_opt_t>(),
        8usize,
        concat!("Alignment of ", stringify!(gpgrt_opt_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_opt_t>())).short_opt as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_opt_t),
            "::",
            stringify!(short_opt)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_opt_t>())).long_opt as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_opt_t),
            "::",
            stringify!(long_opt)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_opt_t>())).flags as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_opt_t),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpgrt_opt_t>())).description as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(gpgrt_opt_t),
            "::",
            stringify!(description)
        )
    );
}
extern "C" {
    pub fn gpgrt_argparse(
        fp: gpgrt_stream_t,
        arg: *mut gpgrt_argparse_t,
        opts: *mut gpgrt_opt_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_argparser(
        arg: *mut gpgrt_argparse_t,
        opts: *mut gpgrt_opt_t,
        confname: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_usage(level: ::std::os::raw::c_int);
}
extern "C" {
    pub fn gpgrt_strusage(level: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_set_strusage(
        f: ::std::option::Option<
            unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char,
        >,
    );
}
extern "C" {
    pub fn gpgrt_set_usage_outfnc(
        f: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: ::std::os::raw::c_int,
                arg2: *const ::std::os::raw::c_char,
            ) -> ::std::os::raw::c_int,
        >,
    );
}
extern "C" {
    pub fn gpgrt_set_fixed_string_mapper(
        f: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::os::raw::c_char,
            ) -> *const ::std::os::raw::c_char,
        >,
    );
}
extern "C" {
    pub fn gpgrt_set_confdir(what: ::std::os::raw::c_int, name: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn gpgrt_cmp_version(
        a: *const ::std::os::raw::c_char,
        b: *const ::std::os::raw::c_char,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpgrt_fnameconcat(
        first: *const ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gpgrt_absfnameconcat(
        first: *const ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timezone {
    pub tz_minuteswest: ::std::os::raw::c_int,
    pub tz_dsttime: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_timezone() {
    assert_eq!(
        ::std::mem::size_of::<timezone>(),
        8usize,
        concat!("Size of: ", stringify!(timezone))
    );
    assert_eq!(
        ::std::mem::align_of::<timezone>(),
        4usize,
        concat!("Alignment of ", stringify!(timezone))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timezone>())).tz_minuteswest as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timezone),
            "::",
            stringify!(tz_minuteswest)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timezone>())).tz_dsttime as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(timezone),
            "::",
            stringify!(tz_dsttime)
        )
    );
}
extern "C" {
    pub fn gettimeofday(
        __tv: *mut timeval,
        __tz: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn settimeofday(__tv: *const timeval, __tz: *const timezone) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn adjtime(__delta: *const timeval, __olddelta: *mut timeval) -> ::std::os::raw::c_int;
}
pub const __itimer_which_ITIMER_REAL: __itimer_which = 0;
pub const __itimer_which_ITIMER_VIRTUAL: __itimer_which = 1;
pub const __itimer_which_ITIMER_PROF: __itimer_which = 2;
pub type __itimer_which = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct itimerval {
    pub it_interval: timeval,
    pub it_value: timeval,
}
#[test]
fn bindgen_test_layout_itimerval() {
    assert_eq!(
        ::std::mem::size_of::<itimerval>(),
        32usize,
        concat!("Size of: ", stringify!(itimerval))
    );
    assert_eq!(
        ::std::mem::align_of::<itimerval>(),
        8usize,
        concat!("Alignment of ", stringify!(itimerval))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerval>())).it_interval as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerval),
            "::",
            stringify!(it_interval)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<itimerval>())).it_value as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(itimerval),
            "::",
            stringify!(it_value)
        )
    );
}
pub use self::__itimer_which as __itimer_which_t;
extern "C" {
    pub fn getitimer(__which: __itimer_which_t, __value: *mut itimerval) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setitimer(
        __which: __itimer_which_t,
        __new: *const itimerval,
        __old: *mut itimerval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn utimes(
        __file: *const ::std::os::raw::c_char,
        __tvp: *const timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lutimes(
        __file: *const ::std::os::raw::c_char,
        __tvp: *const timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn futimes(__fd: ::std::os::raw::c_int, __tvp: *const timeval) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn futimesat(
        __fd: ::std::os::raw::c_int,
        __file: *const ::std::os::raw::c_char,
        __tvp: *const timeval,
    ) -> ::std::os::raw::c_int;
}
pub type gcry_socklen_t = socklen_t;
pub type gcry_error_t = gpg_error_t;
pub use self::gpg_err_code_t as gcry_err_code_t;
pub use self::gpg_err_source_t as gcry_err_source_t;
extern "C" {
    pub fn gcry_strerror(err: gcry_error_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_strsource(err: gcry_error_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_err_code_from_errno(err: ::std::os::raw::c_int) -> gcry_err_code_t;
}
extern "C" {
    pub fn gcry_err_code_to_errno(code: gcry_err_code_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_err_make_from_errno(
        source: gcry_err_source_t,
        err: ::std::os::raw::c_int,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_error_from_errno(err: ::std::os::raw::c_int) -> gcry_error_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_thread_cbs {
    pub option: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_gcry_thread_cbs() {
    assert_eq!(
        ::std::mem::size_of::<gcry_thread_cbs>(),
        4usize,
        concat!("Size of: ", stringify!(gcry_thread_cbs))
    );
    assert_eq!(
        ::std::mem::align_of::<gcry_thread_cbs>(),
        4usize,
        concat!("Alignment of ", stringify!(gcry_thread_cbs))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_thread_cbs>())).option as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_thread_cbs),
            "::",
            stringify!(option)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_context {
    _unused: [u8; 0],
}
pub type gcry_ctx_t = *mut gcry_context;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_mpi {
    _unused: [u8; 0],
}
pub type gcry_mpi_t = *mut gcry_mpi;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_mpi_point {
    _unused: [u8; 0],
}
pub type gcry_mpi_point_t = *mut gcry_mpi_point;
pub type GCRY_MPI = *mut gcry_mpi;
pub type GcryMPI = *mut gcry_mpi;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_buffer_t {
    pub size: usize,
    pub off: usize,
    pub len: usize,
    pub data: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_gcry_buffer_t() {
    assert_eq!(
        ::std::mem::size_of::<gcry_buffer_t>(),
        32usize,
        concat!("Size of: ", stringify!(gcry_buffer_t))
    );
    assert_eq!(
        ::std::mem::align_of::<gcry_buffer_t>(),
        8usize,
        concat!("Alignment of ", stringify!(gcry_buffer_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_buffer_t>())).size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_buffer_t),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_buffer_t>())).off as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_buffer_t),
            "::",
            stringify!(off)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_buffer_t>())).len as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_buffer_t),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_buffer_t>())).data as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_buffer_t),
            "::",
            stringify!(data)
        )
    );
}
extern "C" {
    pub fn gcry_check_version(
        req_version: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
pub const gcry_ctl_cmds_GCRYCTL_CFB_SYNC: gcry_ctl_cmds = 3;
pub const gcry_ctl_cmds_GCRYCTL_RESET: gcry_ctl_cmds = 4;
pub const gcry_ctl_cmds_GCRYCTL_FINALIZE: gcry_ctl_cmds = 5;
pub const gcry_ctl_cmds_GCRYCTL_GET_KEYLEN: gcry_ctl_cmds = 6;
pub const gcry_ctl_cmds_GCRYCTL_GET_BLKLEN: gcry_ctl_cmds = 7;
pub const gcry_ctl_cmds_GCRYCTL_TEST_ALGO: gcry_ctl_cmds = 8;
pub const gcry_ctl_cmds_GCRYCTL_IS_SECURE: gcry_ctl_cmds = 9;
pub const gcry_ctl_cmds_GCRYCTL_GET_ASNOID: gcry_ctl_cmds = 10;
pub const gcry_ctl_cmds_GCRYCTL_ENABLE_ALGO: gcry_ctl_cmds = 11;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_ALGO: gcry_ctl_cmds = 12;
pub const gcry_ctl_cmds_GCRYCTL_DUMP_RANDOM_STATS: gcry_ctl_cmds = 13;
pub const gcry_ctl_cmds_GCRYCTL_DUMP_SECMEM_STATS: gcry_ctl_cmds = 14;
pub const gcry_ctl_cmds_GCRYCTL_GET_ALGO_NPKEY: gcry_ctl_cmds = 15;
pub const gcry_ctl_cmds_GCRYCTL_GET_ALGO_NSKEY: gcry_ctl_cmds = 16;
pub const gcry_ctl_cmds_GCRYCTL_GET_ALGO_NSIGN: gcry_ctl_cmds = 17;
pub const gcry_ctl_cmds_GCRYCTL_GET_ALGO_NENCR: gcry_ctl_cmds = 18;
pub const gcry_ctl_cmds_GCRYCTL_SET_VERBOSITY: gcry_ctl_cmds = 19;
pub const gcry_ctl_cmds_GCRYCTL_SET_DEBUG_FLAGS: gcry_ctl_cmds = 20;
pub const gcry_ctl_cmds_GCRYCTL_CLEAR_DEBUG_FLAGS: gcry_ctl_cmds = 21;
pub const gcry_ctl_cmds_GCRYCTL_USE_SECURE_RNDPOOL: gcry_ctl_cmds = 22;
pub const gcry_ctl_cmds_GCRYCTL_DUMP_MEMORY_STATS: gcry_ctl_cmds = 23;
pub const gcry_ctl_cmds_GCRYCTL_INIT_SECMEM: gcry_ctl_cmds = 24;
pub const gcry_ctl_cmds_GCRYCTL_TERM_SECMEM: gcry_ctl_cmds = 25;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_SECMEM_WARN: gcry_ctl_cmds = 27;
pub const gcry_ctl_cmds_GCRYCTL_SUSPEND_SECMEM_WARN: gcry_ctl_cmds = 28;
pub const gcry_ctl_cmds_GCRYCTL_RESUME_SECMEM_WARN: gcry_ctl_cmds = 29;
pub const gcry_ctl_cmds_GCRYCTL_DROP_PRIVS: gcry_ctl_cmds = 30;
pub const gcry_ctl_cmds_GCRYCTL_ENABLE_M_GUARD: gcry_ctl_cmds = 31;
pub const gcry_ctl_cmds_GCRYCTL_START_DUMP: gcry_ctl_cmds = 32;
pub const gcry_ctl_cmds_GCRYCTL_STOP_DUMP: gcry_ctl_cmds = 33;
pub const gcry_ctl_cmds_GCRYCTL_GET_ALGO_USAGE: gcry_ctl_cmds = 34;
pub const gcry_ctl_cmds_GCRYCTL_IS_ALGO_ENABLED: gcry_ctl_cmds = 35;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_INTERNAL_LOCKING: gcry_ctl_cmds = 36;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_SECMEM: gcry_ctl_cmds = 37;
pub const gcry_ctl_cmds_GCRYCTL_INITIALIZATION_FINISHED: gcry_ctl_cmds = 38;
pub const gcry_ctl_cmds_GCRYCTL_INITIALIZATION_FINISHED_P: gcry_ctl_cmds = 39;
pub const gcry_ctl_cmds_GCRYCTL_ANY_INITIALIZATION_P: gcry_ctl_cmds = 40;
pub const gcry_ctl_cmds_GCRYCTL_SET_CBC_CTS: gcry_ctl_cmds = 41;
pub const gcry_ctl_cmds_GCRYCTL_SET_CBC_MAC: gcry_ctl_cmds = 42;
pub const gcry_ctl_cmds_GCRYCTL_ENABLE_QUICK_RANDOM: gcry_ctl_cmds = 44;
pub const gcry_ctl_cmds_GCRYCTL_SET_RANDOM_SEED_FILE: gcry_ctl_cmds = 45;
pub const gcry_ctl_cmds_GCRYCTL_UPDATE_RANDOM_SEED_FILE: gcry_ctl_cmds = 46;
pub const gcry_ctl_cmds_GCRYCTL_SET_THREAD_CBS: gcry_ctl_cmds = 47;
pub const gcry_ctl_cmds_GCRYCTL_FAST_POLL: gcry_ctl_cmds = 48;
pub const gcry_ctl_cmds_GCRYCTL_SET_RANDOM_DAEMON_SOCKET: gcry_ctl_cmds = 49;
pub const gcry_ctl_cmds_GCRYCTL_USE_RANDOM_DAEMON: gcry_ctl_cmds = 50;
pub const gcry_ctl_cmds_GCRYCTL_FAKED_RANDOM_P: gcry_ctl_cmds = 51;
pub const gcry_ctl_cmds_GCRYCTL_SET_RNDEGD_SOCKET: gcry_ctl_cmds = 52;
pub const gcry_ctl_cmds_GCRYCTL_PRINT_CONFIG: gcry_ctl_cmds = 53;
pub const gcry_ctl_cmds_GCRYCTL_OPERATIONAL_P: gcry_ctl_cmds = 54;
pub const gcry_ctl_cmds_GCRYCTL_FIPS_MODE_P: gcry_ctl_cmds = 55;
pub const gcry_ctl_cmds_GCRYCTL_FORCE_FIPS_MODE: gcry_ctl_cmds = 56;
pub const gcry_ctl_cmds_GCRYCTL_SELFTEST: gcry_ctl_cmds = 57;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_HWF: gcry_ctl_cmds = 63;
pub const gcry_ctl_cmds_GCRYCTL_SET_ENFORCED_FIPS_FLAG: gcry_ctl_cmds = 64;
pub const gcry_ctl_cmds_GCRYCTL_SET_PREFERRED_RNG_TYPE: gcry_ctl_cmds = 65;
pub const gcry_ctl_cmds_GCRYCTL_GET_CURRENT_RNG_TYPE: gcry_ctl_cmds = 66;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_LOCKED_SECMEM: gcry_ctl_cmds = 67;
pub const gcry_ctl_cmds_GCRYCTL_DISABLE_PRIV_DROP: gcry_ctl_cmds = 68;
pub const gcry_ctl_cmds_GCRYCTL_SET_CCM_LENGTHS: gcry_ctl_cmds = 69;
pub const gcry_ctl_cmds_GCRYCTL_CLOSE_RANDOM_DEVICE: gcry_ctl_cmds = 70;
pub const gcry_ctl_cmds_GCRYCTL_INACTIVATE_FIPS_FLAG: gcry_ctl_cmds = 71;
pub const gcry_ctl_cmds_GCRYCTL_REACTIVATE_FIPS_FLAG: gcry_ctl_cmds = 72;
pub const gcry_ctl_cmds_GCRYCTL_SET_SBOX: gcry_ctl_cmds = 73;
pub const gcry_ctl_cmds_GCRYCTL_DRBG_REINIT: gcry_ctl_cmds = 74;
pub const gcry_ctl_cmds_GCRYCTL_SET_TAGLEN: gcry_ctl_cmds = 75;
pub const gcry_ctl_cmds_GCRYCTL_GET_TAGLEN: gcry_ctl_cmds = 76;
pub const gcry_ctl_cmds_GCRYCTL_REINIT_SYSCALL_CLAMP: gcry_ctl_cmds = 77;
pub type gcry_ctl_cmds = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_control(CMD: gcry_ctl_cmds, ...) -> gcry_error_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_sexp {
    _unused: [u8; 0],
}
pub type gcry_sexp_t = *mut gcry_sexp;
pub type GCRY_SEXP = *mut gcry_sexp;
pub type GcrySexp = *mut gcry_sexp;
pub const gcry_sexp_format_GCRYSEXP_FMT_DEFAULT: gcry_sexp_format = 0;
pub const gcry_sexp_format_GCRYSEXP_FMT_CANON: gcry_sexp_format = 1;
pub const gcry_sexp_format_GCRYSEXP_FMT_BASE64: gcry_sexp_format = 2;
pub const gcry_sexp_format_GCRYSEXP_FMT_ADVANCED: gcry_sexp_format = 3;
pub type gcry_sexp_format = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_sexp_new(
        retsexp: *mut gcry_sexp_t,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
        autodetect: ::std::os::raw::c_int,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_sexp_create(
        retsexp: *mut gcry_sexp_t,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
        autodetect: ::std::os::raw::c_int,
        freefnc: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_sexp_sscan(
        retsexp: *mut gcry_sexp_t,
        erroff: *mut usize,
        buffer: *const ::std::os::raw::c_char,
        length: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_sexp_build(
        retsexp: *mut gcry_sexp_t,
        erroff: *mut usize,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_sexp_build_array(
        retsexp: *mut gcry_sexp_t,
        erroff: *mut usize,
        format: *const ::std::os::raw::c_char,
        arg_list: *mut *mut ::std::os::raw::c_void,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_sexp_release(sexp: gcry_sexp_t);
}
extern "C" {
    pub fn gcry_sexp_canon_len(
        buffer: *const ::std::os::raw::c_uchar,
        length: usize,
        erroff: *mut usize,
        errcode: *mut gcry_error_t,
    ) -> usize;
}
extern "C" {
    pub fn gcry_sexp_sprint(
        sexp: gcry_sexp_t,
        mode: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        maxlength: usize,
    ) -> usize;
}
extern "C" {
    pub fn gcry_sexp_dump(a: gcry_sexp_t);
}
extern "C" {
    pub fn gcry_sexp_cons(a: gcry_sexp_t, b: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_alist(array: *const gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_vlist(a: gcry_sexp_t, ...) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_append(a: gcry_sexp_t, n: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_prepend(a: gcry_sexp_t, n: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_find_token(
        list: gcry_sexp_t,
        tok: *const ::std::os::raw::c_char,
        toklen: usize,
    ) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_length(list: gcry_sexp_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_sexp_nth(list: gcry_sexp_t, number: ::std::os::raw::c_int) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_car(list: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_cdr(list: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_cadr(list: gcry_sexp_t) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_sexp_nth_data(
        list: gcry_sexp_t,
        number: ::std::os::raw::c_int,
        datalen: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_sexp_nth_buffer(
        list: gcry_sexp_t,
        number: ::std::os::raw::c_int,
        rlength: *mut usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_sexp_nth_string(
        list: gcry_sexp_t,
        number: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_sexp_nth_mpi(
        list: gcry_sexp_t,
        number: ::std::os::raw::c_int,
        mpifmt: ::std::os::raw::c_int,
    ) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_sexp_extract_param(
        sexp: gcry_sexp_t,
        path: *const ::std::os::raw::c_char,
        list: *const ::std::os::raw::c_char,
        ...
    ) -> gpg_error_t;
}
pub const gcry_mpi_format_GCRYMPI_FMT_NONE: gcry_mpi_format = 0;
pub const gcry_mpi_format_GCRYMPI_FMT_STD: gcry_mpi_format = 1;
pub const gcry_mpi_format_GCRYMPI_FMT_PGP: gcry_mpi_format = 2;
pub const gcry_mpi_format_GCRYMPI_FMT_SSH: gcry_mpi_format = 3;
pub const gcry_mpi_format_GCRYMPI_FMT_HEX: gcry_mpi_format = 4;
pub const gcry_mpi_format_GCRYMPI_FMT_USG: gcry_mpi_format = 5;
pub const gcry_mpi_format_GCRYMPI_FMT_OPAQUE: gcry_mpi_format = 8;
pub type gcry_mpi_format = ::std::os::raw::c_uint;
pub const gcry_mpi_flag_GCRYMPI_FLAG_SECURE: gcry_mpi_flag = 1;
pub const gcry_mpi_flag_GCRYMPI_FLAG_OPAQUE: gcry_mpi_flag = 2;
pub const gcry_mpi_flag_GCRYMPI_FLAG_IMMUTABLE: gcry_mpi_flag = 4;
pub const gcry_mpi_flag_GCRYMPI_FLAG_CONST: gcry_mpi_flag = 8;
pub const gcry_mpi_flag_GCRYMPI_FLAG_USER1: gcry_mpi_flag = 256;
pub const gcry_mpi_flag_GCRYMPI_FLAG_USER2: gcry_mpi_flag = 512;
pub const gcry_mpi_flag_GCRYMPI_FLAG_USER3: gcry_mpi_flag = 1024;
pub const gcry_mpi_flag_GCRYMPI_FLAG_USER4: gcry_mpi_flag = 2048;
pub type gcry_mpi_flag = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_mpi_new(nbits: ::std::os::raw::c_uint) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_snew(nbits: ::std::os::raw::c_uint) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_release(a: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_copy(a: gcry_mpi_t) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_snatch(w: gcry_mpi_t, u: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_set(w: gcry_mpi_t, u: gcry_mpi_t) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_set_ui(w: gcry_mpi_t, u: ::std::os::raw::c_ulong) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_swap(a: gcry_mpi_t, b: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_is_neg(a: gcry_mpi_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_neg(w: gcry_mpi_t, u: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_abs(w: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_cmp(u: gcry_mpi_t, v: gcry_mpi_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_cmp_ui(u: gcry_mpi_t, v: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_scan(
        ret_mpi: *mut gcry_mpi_t,
        format: gcry_mpi_format,
        buffer: *const ::std::os::raw::c_void,
        buflen: usize,
        nscanned: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mpi_print(
        format: gcry_mpi_format,
        buffer: *mut ::std::os::raw::c_uchar,
        buflen: usize,
        nwritten: *mut usize,
        a: gcry_mpi_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mpi_aprint(
        format: gcry_mpi_format,
        buffer: *mut *mut ::std::os::raw::c_uchar,
        nwritten: *mut usize,
        a: gcry_mpi_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mpi_dump(a: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_add(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_add_ui(w: gcry_mpi_t, u: gcry_mpi_t, v: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn gcry_mpi_addm(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t, m: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_sub(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_sub_ui(w: gcry_mpi_t, u: gcry_mpi_t, v: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn gcry_mpi_subm(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t, m: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_mul(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_mul_ui(w: gcry_mpi_t, u: gcry_mpi_t, v: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn gcry_mpi_mulm(w: gcry_mpi_t, u: gcry_mpi_t, v: gcry_mpi_t, m: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_mul_2exp(w: gcry_mpi_t, u: gcry_mpi_t, cnt: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn gcry_mpi_div(
        q: gcry_mpi_t,
        r: gcry_mpi_t,
        dividend: gcry_mpi_t,
        divisor: gcry_mpi_t,
        round: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn gcry_mpi_mod(r: gcry_mpi_t, dividend: gcry_mpi_t, divisor: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_powm(w: gcry_mpi_t, b: gcry_mpi_t, e: gcry_mpi_t, m: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_mpi_gcd(g: gcry_mpi_t, a: gcry_mpi_t, b: gcry_mpi_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_invm(x: gcry_mpi_t, a: gcry_mpi_t, m: gcry_mpi_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_point_new(nbits: ::std::os::raw::c_uint) -> gcry_mpi_point_t;
}
extern "C" {
    pub fn gcry_mpi_point_release(point: gcry_mpi_point_t);
}
extern "C" {
    pub fn gcry_mpi_point_copy(point: gcry_mpi_point_t) -> gcry_mpi_point_t;
}
extern "C" {
    pub fn gcry_mpi_point_get(x: gcry_mpi_t, y: gcry_mpi_t, z: gcry_mpi_t, point: gcry_mpi_point_t);
}
extern "C" {
    pub fn gcry_mpi_point_snatch_get(
        x: gcry_mpi_t,
        y: gcry_mpi_t,
        z: gcry_mpi_t,
        point: gcry_mpi_point_t,
    );
}
extern "C" {
    pub fn gcry_mpi_point_set(
        point: gcry_mpi_point_t,
        x: gcry_mpi_t,
        y: gcry_mpi_t,
        z: gcry_mpi_t,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    pub fn gcry_mpi_point_snatch_set(
        point: gcry_mpi_point_t,
        x: gcry_mpi_t,
        y: gcry_mpi_t,
        z: gcry_mpi_t,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    pub fn gcry_mpi_ec_new(
        r_ctx: *mut gcry_ctx_t,
        keyparam: gcry_sexp_t,
        curvename: *const ::std::os::raw::c_char,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_mpi_ec_get_mpi(
        name: *const ::std::os::raw::c_char,
        ctx: gcry_ctx_t,
        copy: ::std::os::raw::c_int,
    ) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_ec_get_point(
        name: *const ::std::os::raw::c_char,
        ctx: gcry_ctx_t,
        copy: ::std::os::raw::c_int,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    pub fn gcry_mpi_ec_set_mpi(
        name: *const ::std::os::raw::c_char,
        newvalue: gcry_mpi_t,
        ctx: gcry_ctx_t,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_mpi_ec_set_point(
        name: *const ::std::os::raw::c_char,
        newvalue: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_mpi_ec_decode_point(
        result: gcry_mpi_point_t,
        value: gcry_mpi_t,
        ctx: gcry_ctx_t,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_mpi_ec_get_affine(
        x: gcry_mpi_t,
        y: gcry_mpi_t,
        point: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_ec_dup(w: gcry_mpi_point_t, u: gcry_mpi_point_t, ctx: gcry_ctx_t);
}
extern "C" {
    pub fn gcry_mpi_ec_add(
        w: gcry_mpi_point_t,
        u: gcry_mpi_point_t,
        v: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    );
}
extern "C" {
    pub fn gcry_mpi_ec_sub(
        w: gcry_mpi_point_t,
        u: gcry_mpi_point_t,
        v: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    );
}
extern "C" {
    pub fn gcry_mpi_ec_mul(
        w: gcry_mpi_point_t,
        n: gcry_mpi_t,
        u: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    );
}
extern "C" {
    pub fn gcry_mpi_ec_curve_point(w: gcry_mpi_point_t, ctx: gcry_ctx_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_get_nbits(a: gcry_mpi_t) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gcry_mpi_test_bit(a: gcry_mpi_t, n: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mpi_set_bit(a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_clear_bit(a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_set_highbit(a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_clear_highbit(a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_rshift(x: gcry_mpi_t, a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_lshift(x: gcry_mpi_t, a: gcry_mpi_t, n: ::std::os::raw::c_uint);
}
extern "C" {
    pub fn gcry_mpi_set_opaque(
        a: gcry_mpi_t,
        p: *mut ::std::os::raw::c_void,
        nbits: ::std::os::raw::c_uint,
    ) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_set_opaque_copy(
        a: gcry_mpi_t,
        p: *const ::std::os::raw::c_void,
        nbits: ::std::os::raw::c_uint,
    ) -> gcry_mpi_t;
}
extern "C" {
    pub fn gcry_mpi_get_opaque(
        a: gcry_mpi_t,
        nbits: *mut ::std::os::raw::c_uint,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_mpi_set_flag(a: gcry_mpi_t, flag: gcry_mpi_flag);
}
extern "C" {
    pub fn gcry_mpi_clear_flag(a: gcry_mpi_t, flag: gcry_mpi_flag);
}
extern "C" {
    pub fn gcry_mpi_get_flag(a: gcry_mpi_t, flag: gcry_mpi_flag) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _gcry_mpi_get_const(no: ::std::os::raw::c_int) -> gcry_mpi_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_cipher_handle {
    _unused: [u8; 0],
}
pub type gcry_cipher_hd_t = *mut gcry_cipher_handle;
pub type GCRY_CIPHER_HD = *mut gcry_cipher_handle;
pub type GcryCipherHd = *mut gcry_cipher_handle;
pub const gcry_cipher_algos_GCRY_CIPHER_NONE: gcry_cipher_algos = 0;
pub const gcry_cipher_algos_GCRY_CIPHER_IDEA: gcry_cipher_algos = 1;
pub const gcry_cipher_algos_GCRY_CIPHER_3DES: gcry_cipher_algos = 2;
pub const gcry_cipher_algos_GCRY_CIPHER_CAST5: gcry_cipher_algos = 3;
pub const gcry_cipher_algos_GCRY_CIPHER_BLOWFISH: gcry_cipher_algos = 4;
pub const gcry_cipher_algos_GCRY_CIPHER_SAFER_SK128: gcry_cipher_algos = 5;
pub const gcry_cipher_algos_GCRY_CIPHER_DES_SK: gcry_cipher_algos = 6;
pub const gcry_cipher_algos_GCRY_CIPHER_AES: gcry_cipher_algos = 7;
pub const gcry_cipher_algos_GCRY_CIPHER_AES192: gcry_cipher_algos = 8;
pub const gcry_cipher_algos_GCRY_CIPHER_AES256: gcry_cipher_algos = 9;
pub const gcry_cipher_algos_GCRY_CIPHER_TWOFISH: gcry_cipher_algos = 10;
pub const gcry_cipher_algos_GCRY_CIPHER_ARCFOUR: gcry_cipher_algos = 301;
pub const gcry_cipher_algos_GCRY_CIPHER_DES: gcry_cipher_algos = 302;
pub const gcry_cipher_algos_GCRY_CIPHER_TWOFISH128: gcry_cipher_algos = 303;
pub const gcry_cipher_algos_GCRY_CIPHER_SERPENT128: gcry_cipher_algos = 304;
pub const gcry_cipher_algos_GCRY_CIPHER_SERPENT192: gcry_cipher_algos = 305;
pub const gcry_cipher_algos_GCRY_CIPHER_SERPENT256: gcry_cipher_algos = 306;
pub const gcry_cipher_algos_GCRY_CIPHER_RFC2268_40: gcry_cipher_algos = 307;
pub const gcry_cipher_algos_GCRY_CIPHER_RFC2268_128: gcry_cipher_algos = 308;
pub const gcry_cipher_algos_GCRY_CIPHER_SEED: gcry_cipher_algos = 309;
pub const gcry_cipher_algos_GCRY_CIPHER_CAMELLIA128: gcry_cipher_algos = 310;
pub const gcry_cipher_algos_GCRY_CIPHER_CAMELLIA192: gcry_cipher_algos = 311;
pub const gcry_cipher_algos_GCRY_CIPHER_CAMELLIA256: gcry_cipher_algos = 312;
pub const gcry_cipher_algos_GCRY_CIPHER_SALSA20: gcry_cipher_algos = 313;
pub const gcry_cipher_algos_GCRY_CIPHER_SALSA20R12: gcry_cipher_algos = 314;
pub const gcry_cipher_algos_GCRY_CIPHER_GOST28147: gcry_cipher_algos = 315;
pub const gcry_cipher_algos_GCRY_CIPHER_CHACHA20: gcry_cipher_algos = 316;
pub type gcry_cipher_algos = ::std::os::raw::c_uint;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_NONE: gcry_cipher_modes = 0;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_ECB: gcry_cipher_modes = 1;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_CFB: gcry_cipher_modes = 2;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_CBC: gcry_cipher_modes = 3;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_STREAM: gcry_cipher_modes = 4;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_OFB: gcry_cipher_modes = 5;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_CTR: gcry_cipher_modes = 6;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_AESWRAP: gcry_cipher_modes = 7;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_CCM: gcry_cipher_modes = 8;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_GCM: gcry_cipher_modes = 9;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_POLY1305: gcry_cipher_modes = 10;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_OCB: gcry_cipher_modes = 11;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_CFB8: gcry_cipher_modes = 12;
pub const gcry_cipher_modes_GCRY_CIPHER_MODE_XTS: gcry_cipher_modes = 13;
pub type gcry_cipher_modes = ::std::os::raw::c_uint;
pub const gcry_cipher_flags_GCRY_CIPHER_SECURE: gcry_cipher_flags = 1;
pub const gcry_cipher_flags_GCRY_CIPHER_ENABLE_SYNC: gcry_cipher_flags = 2;
pub const gcry_cipher_flags_GCRY_CIPHER_CBC_CTS: gcry_cipher_flags = 4;
pub const gcry_cipher_flags_GCRY_CIPHER_CBC_MAC: gcry_cipher_flags = 8;
pub type gcry_cipher_flags = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_cipher_open(
        handle: *mut gcry_cipher_hd_t,
        algo: ::std::os::raw::c_int,
        mode: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_close(h: gcry_cipher_hd_t);
}
extern "C" {
    pub fn gcry_cipher_ctl(
        h: gcry_cipher_hd_t,
        cmd: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        buflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_info(
        h: gcry_cipher_hd_t,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_algo_info(
        algo: ::std::os::raw::c_int,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_algo_name(algorithm: ::std::os::raw::c_int)
        -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_cipher_map_name(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_cipher_mode_from_oid(
        string: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_cipher_encrypt(
        h: gcry_cipher_hd_t,
        out: *mut ::std::os::raw::c_void,
        outsize: usize,
        in_: *const ::std::os::raw::c_void,
        inlen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_decrypt(
        h: gcry_cipher_hd_t,
        out: *mut ::std::os::raw::c_void,
        outsize: usize,
        in_: *const ::std::os::raw::c_void,
        inlen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_setkey(
        hd: gcry_cipher_hd_t,
        key: *const ::std::os::raw::c_void,
        keylen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_setiv(
        hd: gcry_cipher_hd_t,
        iv: *const ::std::os::raw::c_void,
        ivlen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_authenticate(
        hd: gcry_cipher_hd_t,
        abuf: *const ::std::os::raw::c_void,
        abuflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_gettag(
        hd: gcry_cipher_hd_t,
        outtag: *mut ::std::os::raw::c_void,
        taglen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_checktag(
        hd: gcry_cipher_hd_t,
        intag: *const ::std::os::raw::c_void,
        taglen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_cipher_setctr(
        hd: gcry_cipher_hd_t,
        ctr: *const ::std::os::raw::c_void,
        ctrlen: usize,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_cipher_get_algo_keylen(algo: ::std::os::raw::c_int) -> usize;
}
extern "C" {
    pub fn gcry_cipher_get_algo_blklen(algo: ::std::os::raw::c_int) -> usize;
}
pub const gcry_pk_algos_GCRY_PK_RSA: gcry_pk_algos = 1;
pub const gcry_pk_algos_GCRY_PK_RSA_E: gcry_pk_algos = 2;
pub const gcry_pk_algos_GCRY_PK_RSA_S: gcry_pk_algos = 3;
pub const gcry_pk_algos_GCRY_PK_ELG_E: gcry_pk_algos = 16;
pub const gcry_pk_algos_GCRY_PK_DSA: gcry_pk_algos = 17;
pub const gcry_pk_algos_GCRY_PK_ECC: gcry_pk_algos = 18;
pub const gcry_pk_algos_GCRY_PK_ELG: gcry_pk_algos = 20;
pub const gcry_pk_algos_GCRY_PK_ECDSA: gcry_pk_algos = 301;
pub const gcry_pk_algos_GCRY_PK_ECDH: gcry_pk_algos = 302;
pub const gcry_pk_algos_GCRY_PK_EDDSA: gcry_pk_algos = 303;
pub type gcry_pk_algos = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_pk_encrypt(
        result: *mut gcry_sexp_t,
        data: gcry_sexp_t,
        pkey: gcry_sexp_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_decrypt(
        result: *mut gcry_sexp_t,
        data: gcry_sexp_t,
        skey: gcry_sexp_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_sign(
        result: *mut gcry_sexp_t,
        data: gcry_sexp_t,
        skey: gcry_sexp_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_verify(
        sigval: gcry_sexp_t,
        data: gcry_sexp_t,
        pkey: gcry_sexp_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_testkey(key: gcry_sexp_t) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_genkey(r_key: *mut gcry_sexp_t, s_parms: gcry_sexp_t) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_ctl(
        cmd: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        buflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_algo_info(
        algo: ::std::os::raw::c_int,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_pk_algo_name(algorithm: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_pk_map_name(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_pk_get_nbits(key: gcry_sexp_t) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gcry_pk_get_keygrip(
        key: gcry_sexp_t,
        array: *mut ::std::os::raw::c_uchar,
    ) -> *mut ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn gcry_pk_get_curve(
        key: gcry_sexp_t,
        iterator: ::std::os::raw::c_int,
        r_nbits: *mut ::std::os::raw::c_uint,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_pk_get_param(
        algo: ::std::os::raw::c_int,
        name: *const ::std::os::raw::c_char,
    ) -> gcry_sexp_t;
}
extern "C" {
    pub fn gcry_pubkey_get_sexp(
        r_sexp: *mut gcry_sexp_t,
        mode: ::std::os::raw::c_int,
        ctx: gcry_ctx_t,
    ) -> gcry_error_t;
}
pub const gcry_md_algos_GCRY_MD_NONE: gcry_md_algos = 0;
pub const gcry_md_algos_GCRY_MD_MD5: gcry_md_algos = 1;
pub const gcry_md_algos_GCRY_MD_SHA1: gcry_md_algos = 2;
pub const gcry_md_algos_GCRY_MD_RMD160: gcry_md_algos = 3;
pub const gcry_md_algos_GCRY_MD_MD2: gcry_md_algos = 5;
pub const gcry_md_algos_GCRY_MD_TIGER: gcry_md_algos = 6;
pub const gcry_md_algos_GCRY_MD_HAVAL: gcry_md_algos = 7;
pub const gcry_md_algos_GCRY_MD_SHA256: gcry_md_algos = 8;
pub const gcry_md_algos_GCRY_MD_SHA384: gcry_md_algos = 9;
pub const gcry_md_algos_GCRY_MD_SHA512: gcry_md_algos = 10;
pub const gcry_md_algos_GCRY_MD_SHA224: gcry_md_algos = 11;
pub const gcry_md_algos_GCRY_MD_MD4: gcry_md_algos = 301;
pub const gcry_md_algos_GCRY_MD_CRC32: gcry_md_algos = 302;
pub const gcry_md_algos_GCRY_MD_CRC32_RFC1510: gcry_md_algos = 303;
pub const gcry_md_algos_GCRY_MD_CRC24_RFC2440: gcry_md_algos = 304;
pub const gcry_md_algos_GCRY_MD_WHIRLPOOL: gcry_md_algos = 305;
pub const gcry_md_algos_GCRY_MD_TIGER1: gcry_md_algos = 306;
pub const gcry_md_algos_GCRY_MD_TIGER2: gcry_md_algos = 307;
pub const gcry_md_algos_GCRY_MD_GOSTR3411_94: gcry_md_algos = 308;
pub const gcry_md_algos_GCRY_MD_STRIBOG256: gcry_md_algos = 309;
pub const gcry_md_algos_GCRY_MD_STRIBOG512: gcry_md_algos = 310;
pub const gcry_md_algos_GCRY_MD_GOSTR3411_CP: gcry_md_algos = 311;
pub const gcry_md_algos_GCRY_MD_SHA3_224: gcry_md_algos = 312;
pub const gcry_md_algos_GCRY_MD_SHA3_256: gcry_md_algos = 313;
pub const gcry_md_algos_GCRY_MD_SHA3_384: gcry_md_algos = 314;
pub const gcry_md_algos_GCRY_MD_SHA3_512: gcry_md_algos = 315;
pub const gcry_md_algos_GCRY_MD_SHAKE128: gcry_md_algos = 316;
pub const gcry_md_algos_GCRY_MD_SHAKE256: gcry_md_algos = 317;
pub const gcry_md_algos_GCRY_MD_BLAKE2B_512: gcry_md_algos = 318;
pub const gcry_md_algos_GCRY_MD_BLAKE2B_384: gcry_md_algos = 319;
pub const gcry_md_algos_GCRY_MD_BLAKE2B_256: gcry_md_algos = 320;
pub const gcry_md_algos_GCRY_MD_BLAKE2B_160: gcry_md_algos = 321;
pub const gcry_md_algos_GCRY_MD_BLAKE2S_256: gcry_md_algos = 322;
pub const gcry_md_algos_GCRY_MD_BLAKE2S_224: gcry_md_algos = 323;
pub const gcry_md_algos_GCRY_MD_BLAKE2S_160: gcry_md_algos = 324;
pub const gcry_md_algos_GCRY_MD_BLAKE2S_128: gcry_md_algos = 325;
pub type gcry_md_algos = ::std::os::raw::c_uint;
pub const gcry_md_flags_GCRY_MD_FLAG_SECURE: gcry_md_flags = 1;
pub const gcry_md_flags_GCRY_MD_FLAG_HMAC: gcry_md_flags = 2;
pub const gcry_md_flags_GCRY_MD_FLAG_BUGEMU1: gcry_md_flags = 256;
pub type gcry_md_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_md_context {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_md_handle {
    pub ctx: *mut gcry_md_context,
    pub bufpos: ::std::os::raw::c_int,
    pub bufsize: ::std::os::raw::c_int,
    pub buf: [::std::os::raw::c_uchar; 1usize],
}
#[test]
fn bindgen_test_layout_gcry_md_handle() {
    assert_eq!(
        ::std::mem::size_of::<gcry_md_handle>(),
        24usize,
        concat!("Size of: ", stringify!(gcry_md_handle))
    );
    assert_eq!(
        ::std::mem::align_of::<gcry_md_handle>(),
        8usize,
        concat!("Alignment of ", stringify!(gcry_md_handle))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_md_handle>())).ctx as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_md_handle),
            "::",
            stringify!(ctx)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_md_handle>())).bufpos as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_md_handle),
            "::",
            stringify!(bufpos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_md_handle>())).bufsize as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_md_handle),
            "::",
            stringify!(bufsize)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gcry_md_handle>())).buf as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(gcry_md_handle),
            "::",
            stringify!(buf)
        )
    );
}
pub type gcry_md_hd_t = *mut gcry_md_handle;
pub type GCRY_MD_HD = *mut gcry_md_handle;
pub type GcryMDHd = *mut gcry_md_handle;
extern "C" {
    pub fn gcry_md_open(
        h: *mut gcry_md_hd_t,
        algo: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_close(hd: gcry_md_hd_t);
}
extern "C" {
    pub fn gcry_md_enable(hd: gcry_md_hd_t, algo: ::std::os::raw::c_int) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_copy(bhd: *mut gcry_md_hd_t, ahd: gcry_md_hd_t) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_reset(hd: gcry_md_hd_t);
}
extern "C" {
    pub fn gcry_md_ctl(
        hd: gcry_md_hd_t,
        cmd: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        buflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_write(hd: gcry_md_hd_t, buffer: *const ::std::os::raw::c_void, length: usize);
}
extern "C" {
    pub fn gcry_md_read(
        hd: gcry_md_hd_t,
        algo: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_uchar;
}
extern "C" {
    pub fn gcry_md_extract(
        hd: gcry_md_hd_t,
        algo: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_md_hash_buffer(
        algo: ::std::os::raw::c_int,
        digest: *mut ::std::os::raw::c_void,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
    );
}
extern "C" {
    pub fn gcry_md_hash_buffers(
        algo: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
        digest: *mut ::std::os::raw::c_void,
        iov: *const gcry_buffer_t,
        iovcnt: ::std::os::raw::c_int,
    ) -> gpg_error_t;
}
extern "C" {
    pub fn gcry_md_get_algo(hd: gcry_md_hd_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_md_get_algo_dlen(algo: ::std::os::raw::c_int) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gcry_md_is_enabled(
        a: gcry_md_hd_t,
        algo: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_md_is_secure(a: gcry_md_hd_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_md_info(
        h: gcry_md_hd_t,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_algo_info(
        algo: ::std::os::raw::c_int,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_algo_name(algo: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_md_map_name(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_md_setkey(
        hd: gcry_md_hd_t,
        key: *const ::std::os::raw::c_void,
        keylen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_md_debug(hd: gcry_md_hd_t, suffix: *const ::std::os::raw::c_char);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gcry_mac_handle {
    _unused: [u8; 0],
}
pub type gcry_mac_hd_t = *mut gcry_mac_handle;
pub const gcry_mac_algos_GCRY_MAC_NONE: gcry_mac_algos = 0;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA256: gcry_mac_algos = 101;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA224: gcry_mac_algos = 102;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA512: gcry_mac_algos = 103;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA384: gcry_mac_algos = 104;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA1: gcry_mac_algos = 105;
pub const gcry_mac_algos_GCRY_MAC_HMAC_MD5: gcry_mac_algos = 106;
pub const gcry_mac_algos_GCRY_MAC_HMAC_MD4: gcry_mac_algos = 107;
pub const gcry_mac_algos_GCRY_MAC_HMAC_RMD160: gcry_mac_algos = 108;
pub const gcry_mac_algos_GCRY_MAC_HMAC_TIGER1: gcry_mac_algos = 109;
pub const gcry_mac_algos_GCRY_MAC_HMAC_WHIRLPOOL: gcry_mac_algos = 110;
pub const gcry_mac_algos_GCRY_MAC_HMAC_GOSTR3411_94: gcry_mac_algos = 111;
pub const gcry_mac_algos_GCRY_MAC_HMAC_STRIBOG256: gcry_mac_algos = 112;
pub const gcry_mac_algos_GCRY_MAC_HMAC_STRIBOG512: gcry_mac_algos = 113;
pub const gcry_mac_algos_GCRY_MAC_HMAC_MD2: gcry_mac_algos = 114;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA3_224: gcry_mac_algos = 115;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA3_256: gcry_mac_algos = 116;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA3_384: gcry_mac_algos = 117;
pub const gcry_mac_algos_GCRY_MAC_HMAC_SHA3_512: gcry_mac_algos = 118;
pub const gcry_mac_algos_GCRY_MAC_CMAC_AES: gcry_mac_algos = 201;
pub const gcry_mac_algos_GCRY_MAC_CMAC_3DES: gcry_mac_algos = 202;
pub const gcry_mac_algos_GCRY_MAC_CMAC_CAMELLIA: gcry_mac_algos = 203;
pub const gcry_mac_algos_GCRY_MAC_CMAC_CAST5: gcry_mac_algos = 204;
pub const gcry_mac_algos_GCRY_MAC_CMAC_BLOWFISH: gcry_mac_algos = 205;
pub const gcry_mac_algos_GCRY_MAC_CMAC_TWOFISH: gcry_mac_algos = 206;
pub const gcry_mac_algos_GCRY_MAC_CMAC_SERPENT: gcry_mac_algos = 207;
pub const gcry_mac_algos_GCRY_MAC_CMAC_SEED: gcry_mac_algos = 208;
pub const gcry_mac_algos_GCRY_MAC_CMAC_RFC2268: gcry_mac_algos = 209;
pub const gcry_mac_algos_GCRY_MAC_CMAC_IDEA: gcry_mac_algos = 210;
pub const gcry_mac_algos_GCRY_MAC_CMAC_GOST28147: gcry_mac_algos = 211;
pub const gcry_mac_algos_GCRY_MAC_GMAC_AES: gcry_mac_algos = 401;
pub const gcry_mac_algos_GCRY_MAC_GMAC_CAMELLIA: gcry_mac_algos = 402;
pub const gcry_mac_algos_GCRY_MAC_GMAC_TWOFISH: gcry_mac_algos = 403;
pub const gcry_mac_algos_GCRY_MAC_GMAC_SERPENT: gcry_mac_algos = 404;
pub const gcry_mac_algos_GCRY_MAC_GMAC_SEED: gcry_mac_algos = 405;
pub const gcry_mac_algos_GCRY_MAC_POLY1305: gcry_mac_algos = 501;
pub const gcry_mac_algos_GCRY_MAC_POLY1305_AES: gcry_mac_algos = 502;
pub const gcry_mac_algos_GCRY_MAC_POLY1305_CAMELLIA: gcry_mac_algos = 503;
pub const gcry_mac_algos_GCRY_MAC_POLY1305_TWOFISH: gcry_mac_algos = 504;
pub const gcry_mac_algos_GCRY_MAC_POLY1305_SERPENT: gcry_mac_algos = 505;
pub const gcry_mac_algos_GCRY_MAC_POLY1305_SEED: gcry_mac_algos = 506;
pub type gcry_mac_algos = ::std::os::raw::c_uint;
pub const gcry_mac_flags_GCRY_MAC_FLAG_SECURE: gcry_mac_flags = 1;
pub type gcry_mac_flags = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_mac_open(
        handle: *mut gcry_mac_hd_t,
        algo: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
        ctx: gcry_ctx_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_close(h: gcry_mac_hd_t);
}
extern "C" {
    pub fn gcry_mac_ctl(
        h: gcry_mac_hd_t,
        cmd: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        buflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_algo_info(
        algo: ::std::os::raw::c_int,
        what: ::std::os::raw::c_int,
        buffer: *mut ::std::os::raw::c_void,
        nbytes: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_setkey(
        hd: gcry_mac_hd_t,
        key: *const ::std::os::raw::c_void,
        keylen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_setiv(
        hd: gcry_mac_hd_t,
        iv: *const ::std::os::raw::c_void,
        ivlen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_write(
        hd: gcry_mac_hd_t,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_read(
        hd: gcry_mac_hd_t,
        buffer: *mut ::std::os::raw::c_void,
        buflen: *mut usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_verify(
        hd: gcry_mac_hd_t,
        buffer: *const ::std::os::raw::c_void,
        buflen: usize,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_mac_get_algo(hd: gcry_mac_hd_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gcry_mac_get_algo_maclen(algo: ::std::os::raw::c_int) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gcry_mac_get_algo_keylen(algo: ::std::os::raw::c_int) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn gcry_mac_algo_name(algorithm: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_mac_map_name(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
pub const gcry_kdf_algos_GCRY_KDF_NONE: gcry_kdf_algos = 0;
pub const gcry_kdf_algos_GCRY_KDF_SIMPLE_S2K: gcry_kdf_algos = 16;
pub const gcry_kdf_algos_GCRY_KDF_SALTED_S2K: gcry_kdf_algos = 17;
pub const gcry_kdf_algos_GCRY_KDF_ITERSALTED_S2K: gcry_kdf_algos = 19;
pub const gcry_kdf_algos_GCRY_KDF_PBKDF1: gcry_kdf_algos = 33;
pub const gcry_kdf_algos_GCRY_KDF_PBKDF2: gcry_kdf_algos = 34;
pub const gcry_kdf_algos_GCRY_KDF_SCRYPT: gcry_kdf_algos = 48;
pub type gcry_kdf_algos = ::std::os::raw::c_uint;
extern "C" {
    pub fn gcry_kdf_derive(
        passphrase: *const ::std::os::raw::c_void,
        passphraselen: usize,
        algo: ::std::os::raw::c_int,
        subalgo: ::std::os::raw::c_int,
        salt: *const ::std::os::raw::c_void,
        saltlen: usize,
        iterations: ::std::os::raw::c_ulong,
        keysize: usize,
        keybuffer: *mut ::std::os::raw::c_void,
    ) -> gpg_error_t;
}
pub const gcry_rng_types_GCRY_RNG_TYPE_STANDARD: gcry_rng_types = 1;
pub const gcry_rng_types_GCRY_RNG_TYPE_FIPS: gcry_rng_types = 2;
pub const gcry_rng_types_GCRY_RNG_TYPE_SYSTEM: gcry_rng_types = 3;
pub type gcry_rng_types = ::std::os::raw::c_uint;
pub const gcry_random_level_GCRY_WEAK_RANDOM: gcry_random_level = 0;
pub const gcry_random_level_GCRY_STRONG_RANDOM: gcry_random_level = 1;
pub const gcry_random_level_GCRY_VERY_STRONG_RANDOM: gcry_random_level = 2;
pub type gcry_random_level = ::std::os::raw::c_uint;
pub use self::gcry_random_level as gcry_random_level_t;
extern "C" {
    pub fn gcry_randomize(
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
        level: gcry_random_level,
    );
}
extern "C" {
    pub fn gcry_random_add_bytes(
        buffer: *const ::std::os::raw::c_void,
        length: usize,
        quality: ::std::os::raw::c_int,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_random_bytes(
        nbytes: usize,
        level: gcry_random_level,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_random_bytes_secure(
        nbytes: usize,
        level: gcry_random_level,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_mpi_randomize(
        w: gcry_mpi_t,
        nbits: ::std::os::raw::c_uint,
        level: gcry_random_level,
    );
}
extern "C" {
    pub fn gcry_create_nonce(buffer: *mut ::std::os::raw::c_void, length: usize);
}
pub type gcry_prime_check_func_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg: *mut ::std::os::raw::c_void,
        mode: ::std::os::raw::c_int,
        candidate: gcry_mpi_t,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn gcry_prime_generate(
        prime: *mut gcry_mpi_t,
        prime_bits: ::std::os::raw::c_uint,
        factor_bits: ::std::os::raw::c_uint,
        factors: *mut *mut gcry_mpi_t,
        cb_func: gcry_prime_check_func_t,
        cb_arg: *mut ::std::os::raw::c_void,
        random_level: gcry_random_level_t,
        flags: ::std::os::raw::c_uint,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_prime_group_generator(
        r_g: *mut gcry_mpi_t,
        prime: gcry_mpi_t,
        factors: *mut gcry_mpi_t,
        start_g: gcry_mpi_t,
    ) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_prime_release_factors(factors: *mut gcry_mpi_t);
}
extern "C" {
    pub fn gcry_prime_check(x: gcry_mpi_t, flags: ::std::os::raw::c_uint) -> gcry_error_t;
}
extern "C" {
    pub fn gcry_ctx_release(ctx: gcry_ctx_t);
}
extern "C" {
    pub fn gcry_log_debug(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn gcry_log_debughex(
        text: *const ::std::os::raw::c_char,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
    );
}
extern "C" {
    pub fn gcry_log_debugmpi(text: *const ::std::os::raw::c_char, mpi: gcry_mpi_t);
}
extern "C" {
    pub fn gcry_log_debugpnt(
        text: *const ::std::os::raw::c_char,
        point: gcry_mpi_point_t,
        ctx: gcry_ctx_t,
    );
}
extern "C" {
    pub fn gcry_log_debugsxp(text: *const ::std::os::raw::c_char, sexp: gcry_sexp_t);
}
extern "C" {
    pub fn gcry_get_config(
        mode: ::std::os::raw::c_int,
        what: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
pub const gcry_log_levels_GCRY_LOG_CONT: gcry_log_levels = 0;
pub const gcry_log_levels_GCRY_LOG_INFO: gcry_log_levels = 10;
pub const gcry_log_levels_GCRY_LOG_WARN: gcry_log_levels = 20;
pub const gcry_log_levels_GCRY_LOG_ERROR: gcry_log_levels = 30;
pub const gcry_log_levels_GCRY_LOG_FATAL: gcry_log_levels = 40;
pub const gcry_log_levels_GCRY_LOG_BUG: gcry_log_levels = 50;
pub const gcry_log_levels_GCRY_LOG_DEBUG: gcry_log_levels = 100;
pub type gcry_log_levels = ::std::os::raw::c_uint;
pub type gcry_handler_progress_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_char,
        arg3: ::std::os::raw::c_int,
        arg4: ::std::os::raw::c_int,
        arg5: ::std::os::raw::c_int,
    ),
>;
pub type gcry_handler_alloc_t =
    ::std::option::Option<unsafe extern "C" fn(n: usize) -> *mut ::std::os::raw::c_void>;
pub type gcry_handler_secure_check_t = ::std::option::Option<
    unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
pub type gcry_handler_realloc_t = ::std::option::Option<
    unsafe extern "C" fn(p: *mut ::std::os::raw::c_void, n: usize) -> *mut ::std::os::raw::c_void,
>;
pub type gcry_handler_free_t =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
pub type gcry_handler_no_mem_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut ::std::os::raw::c_void,
        arg2: usize,
        arg3: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int,
>;
pub type gcry_handler_error_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut ::std::os::raw::c_void,
        arg2: ::std::os::raw::c_int,
        arg3: *const ::std::os::raw::c_char,
    ),
>;
pub type gcry_handler_log_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut ::std::os::raw::c_void,
        arg2: ::std::os::raw::c_int,
        arg3: *const ::std::os::raw::c_char,
        arg4: *mut __va_list_tag,
    ),
>;
extern "C" {
    pub fn gcry_set_progress_handler(
        cb: gcry_handler_progress_t,
        cb_data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn gcry_set_allocation_handler(
        func_alloc: gcry_handler_alloc_t,
        func_alloc_secure: gcry_handler_alloc_t,
        func_secure_check: gcry_handler_secure_check_t,
        func_realloc: gcry_handler_realloc_t,
        func_free: gcry_handler_free_t,
    );
}
extern "C" {
    pub fn gcry_set_outofcore_handler(
        h: gcry_handler_no_mem_t,
        opaque: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn gcry_set_fatalerror_handler(
        fnc: gcry_handler_error_t,
        opaque: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn gcry_set_log_handler(f: gcry_handler_log_t, opaque: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn gcry_set_gettext_handler(
        f: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::os::raw::c_char,
            ) -> *const ::std::os::raw::c_char,
        >,
    );
}
extern "C" {
    pub fn gcry_malloc(n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_calloc(n: usize, m: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_malloc_secure(n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_calloc_secure(n: usize, m: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_realloc(a: *mut ::std::os::raw::c_void, n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_strdup(string: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_xmalloc(n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_xcalloc(n: usize, m: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_xmalloc_secure(n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_xcalloc_secure(n: usize, m: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_xrealloc(a: *mut ::std::os::raw::c_void, n: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn gcry_xstrdup(a: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn gcry_free(a: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn gcry_is_secure(a: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
#[doc = " No good quality of the operation is needed (i.e.,"]
#[doc = " random numbers can be pseudo-random)."]
#[doc = " @ingroup crypto"]
pub const GNUNET_CRYPTO_Quality_GNUNET_CRYPTO_QUALITY_WEAK: GNUNET_CRYPTO_Quality = 0;
#[doc = " High-quality operations are desired."]
#[doc = " @ingroup crypto"]
pub const GNUNET_CRYPTO_Quality_GNUNET_CRYPTO_QUALITY_STRONG: GNUNET_CRYPTO_Quality = 1;
#[doc = " Randomness for IVs etc. is required."]
#[doc = " @ingroup crypto"]
pub const GNUNET_CRYPTO_Quality_GNUNET_CRYPTO_QUALITY_NONCE: GNUNET_CRYPTO_Quality = 2;
#[doc = " Desired quality level for random numbers."]
#[doc = " @ingroup crypto"]
pub type GNUNET_CRYPTO_Quality = ::std::os::raw::c_uint;
#[doc = " @brief 0-terminated ASCII encoding of a struct GNUNET_HashCode."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_CRYPTO_HashAsciiEncoded {
    pub encoding: [::std::os::raw::c_uchar; 104usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_HashAsciiEncoded() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_HashAsciiEncoded>(),
        104usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_HashAsciiEncoded))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_HashAsciiEncoded>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_HashAsciiEncoded))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_HashAsciiEncoded>())).encoding as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_HashAsciiEncoded),
            "::",
            stringify!(encoding)
        )
    );
}
#[doc = " @brief header of what an ECC signature signs"]
#[doc = "        this must be followed by \"size - 8\" bytes of"]
#[doc = "        the actual signed data"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EccSignaturePurpose {
    #[doc = " How many bytes does this signature sign?"]
    #[doc = " (including this purpose header); in network"]
    #[doc = " byte order (!)."]
    pub size: u32,
    #[doc = " What does this signature vouch for?  This"]
    #[doc = " must contain a GNUNET_SIGNATURE_PURPOSE_XXX"]
    #[doc = " constant (from gnunet_signatures.h).  In"]
    #[doc = " network byte order!"]
    pub purpose: u32,
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EccSignaturePurpose() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EccSignaturePurpose>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EccSignaturePurpose))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EccSignaturePurpose>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_EccSignaturePurpose)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_EccSignaturePurpose>())).size as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EccSignaturePurpose),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_EccSignaturePurpose>())).purpose as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EccSignaturePurpose),
            "::",
            stringify!(purpose)
        )
    );
}
#[doc = " @brief an ECC signature using EdDSA."]
#[doc = " See cr.yp.to/papers.html#ed25519"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EddsaSignature {
    #[doc = " R value."]
    pub r: [::std::os::raw::c_uchar; 32usize],
    #[doc = " S value."]
    pub s: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EddsaSignature() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EddsaSignature>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EddsaSignature))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EddsaSignature>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EddsaSignature))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EddsaSignature>())).r as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EddsaSignature),
            "::",
            stringify!(r)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EddsaSignature>())).s as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EddsaSignature),
            "::",
            stringify!(s)
        )
    );
}
#[doc = " @brief an ECC signature using ECDSA"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EcdsaSignature {
    #[doc = " R value."]
    pub r: [::std::os::raw::c_uchar; 32usize],
    #[doc = " S value."]
    pub s: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EcdsaSignature() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EcdsaSignature>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EcdsaSignature))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EcdsaSignature>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EcdsaSignature))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdsaSignature>())).r as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdsaSignature),
            "::",
            stringify!(r)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdsaSignature>())).s as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdsaSignature),
            "::",
            stringify!(s)
        )
    );
}
#[doc = " Public key. Details in gnunet_util_crypto.h."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EddsaPublicKey {
    #[doc = " Point Q consists of a y-value mod p (256 bits); the x-value is"]
    #[doc = " always positive. The point is stored in Ed25519 standard"]
    #[doc = " compact format."]
    pub q_y: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EddsaPublicKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EddsaPublicKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EddsaPublicKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EddsaPublicKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EddsaPublicKey))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_EddsaPublicKey>())).q_y as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EddsaPublicKey),
            "::",
            stringify!(q_y)
        )
    );
}
#[doc = " Public ECC key (always for Curve25519) encoded in a format suitable"]
#[doc = " for network transmission and ECDSA signatures."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EcdsaPublicKey {
    #[doc = " Q consists of an x- and a y-value, each mod p (256 bits), given"]
    #[doc = " here in affine coordinates and Ed25519 standard compact format."]
    pub q_y: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EcdsaPublicKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EcdsaPublicKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EcdsaPublicKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EcdsaPublicKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EcdsaPublicKey))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdsaPublicKey>())).q_y as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdsaPublicKey),
            "::",
            stringify!(q_y)
        )
    );
}
#[doc = " The identity of the host (wraps the signing key of the peer)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_PeerIdentity {
    pub public_key: GNUNET_CRYPTO_EddsaPublicKey,
}
#[test]
fn bindgen_test_layout_GNUNET_PeerIdentity() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_PeerIdentity>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_PeerIdentity))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_PeerIdentity>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_PeerIdentity))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_PeerIdentity>())).public_key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_PeerIdentity),
            "::",
            stringify!(public_key)
        )
    );
}
#[doc = " Public key. Details in gnunet_util_crypto.h."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EcdhePublicKey {
    #[doc = " Q consists of an x- and a y-value, each mod p (256 bits), given"]
    #[doc = " here in affine coordinates and Ed25519 standard compact format."]
    pub q_y: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EcdhePublicKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EcdhePublicKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EcdhePublicKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EcdhePublicKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EcdhePublicKey))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdhePublicKey>())).q_y as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdhePublicKey),
            "::",
            stringify!(q_y)
        )
    );
}
#[doc = " Private ECC key encoded for transmission.  To be used only for ECDH"]
#[doc = " key exchange (ECDHE to be precise)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EcdhePrivateKey {
    #[doc = " d is a value mod n, where n has at most 256 bits."]
    pub d: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EcdhePrivateKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EcdhePrivateKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EcdhePrivateKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EcdhePrivateKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EcdhePrivateKey))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdhePrivateKey>())).d as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdhePrivateKey),
            "::",
            stringify!(d)
        )
    );
}
#[doc = " Private ECC key encoded for transmission.  To be used only for ECDSA"]
#[doc = " signatures."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EcdsaPrivateKey {
    #[doc = " d is a value mod n, where n has at most 256 bits."]
    pub d: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EcdsaPrivateKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EcdsaPrivateKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EcdsaPrivateKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EcdsaPrivateKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EcdsaPrivateKey))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EcdsaPrivateKey>())).d as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EcdsaPrivateKey),
            "::",
            stringify!(d)
        )
    );
}
#[doc = " Private ECC key encoded for transmission.  To be used only for EdDSA"]
#[doc = " signatures."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EddsaPrivateKey {
    #[doc = " d is a value mod n, where n has at most 256 bits."]
    pub d: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EddsaPrivateKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EddsaPrivateKey>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EddsaPrivateKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EddsaPrivateKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EddsaPrivateKey))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EddsaPrivateKey>())).d as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EddsaPrivateKey),
            "::",
            stringify!(d)
        )
    );
}
#[doc = " @brief type for session keys"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_SymmetricSessionKey {
    #[doc = " Actual key for AES."]
    pub aes_key: [::std::os::raw::c_uchar; 32usize],
    #[doc = " Actual key for TwoFish."]
    pub twofish_key: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_SymmetricSessionKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_SymmetricSessionKey>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_SymmetricSessionKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_SymmetricSessionKey>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_SymmetricSessionKey)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_SymmetricSessionKey>())).aes_key as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_SymmetricSessionKey),
            "::",
            stringify!(aes_key)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_SymmetricSessionKey>())).twofish_key as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_SymmetricSessionKey),
            "::",
            stringify!(twofish_key)
        )
    );
}
#[doc = " Type of a nonce used for challenges."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ChallengeNonceP {
    #[doc = " The value of the nonce.  Note that this is NOT a hash."]
    pub value: GNUNET_ShortHashCode,
}
#[test]
fn bindgen_test_layout_ChallengeNonceP() {
    assert_eq!(
        ::std::mem::size_of::<ChallengeNonceP>(),
        32usize,
        concat!("Size of: ", stringify!(ChallengeNonceP))
    );
    assert_eq!(
        ::std::mem::align_of::<ChallengeNonceP>(),
        4usize,
        concat!("Alignment of ", stringify!(ChallengeNonceP))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ChallengeNonceP>())).value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ChallengeNonceP),
            "::",
            stringify!(value)
        )
    );
}
#[doc = " @brief IV for sym cipher"]
#[doc = ""]
#[doc = " NOTE: must be smaller (!) in size than the"]
#[doc = " `struct GNUNET_HashCode`."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_SymmetricInitializationVector {
    pub aes_iv: [::std::os::raw::c_uchar; 16usize],
    pub twofish_iv: [::std::os::raw::c_uchar; 16usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_SymmetricInitializationVector() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_SymmetricInitializationVector>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_CRYPTO_SymmetricInitializationVector)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_SymmetricInitializationVector>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_SymmetricInitializationVector)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_SymmetricInitializationVector>())).aes_iv
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_SymmetricInitializationVector),
            "::",
            stringify!(aes_iv)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_SymmetricInitializationVector>())).twofish_iv
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_SymmetricInitializationVector),
            "::",
            stringify!(twofish_iv)
        )
    );
}
#[doc = " @brief type for (message) authentication keys"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_CRYPTO_AuthKey {
    pub key: [::std::os::raw::c_uchar; 64usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_AuthKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_AuthKey>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_AuthKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_AuthKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_AuthKey))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_AuthKey>())).key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_AuthKey),
            "::",
            stringify!(key)
        )
    );
}
#[doc = " Paillier public key."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_CRYPTO_PaillierPublicKey {
    #[doc = " N value."]
    pub n: [::std::os::raw::c_uchar; 256usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_PaillierPublicKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_PaillierPublicKey>(),
        256usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_PaillierPublicKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_PaillierPublicKey>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_PaillierPublicKey))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_PaillierPublicKey>())).n as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PaillierPublicKey),
            "::",
            stringify!(n)
        )
    );
}
#[doc = " Paillier private key."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_CRYPTO_PaillierPrivateKey {
    #[doc = " Lambda-component of the private key."]
    pub lambda: [::std::os::raw::c_uchar; 256usize],
    #[doc = " Mu-component of the private key."]
    pub mu: [::std::os::raw::c_uchar; 256usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_PaillierPrivateKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_PaillierPrivateKey>(),
        512usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_PaillierPrivateKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_PaillierPrivateKey>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_PaillierPrivateKey)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_PaillierPrivateKey>())).lambda as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PaillierPrivateKey),
            "::",
            stringify!(lambda)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_PaillierPrivateKey>())).mu as *const _ as usize
        },
        256usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PaillierPrivateKey),
            "::",
            stringify!(mu)
        )
    );
}
#[doc = " Paillier ciphertext."]
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct GNUNET_CRYPTO_PaillierCiphertext {
    #[doc = " Guaranteed minimum number of homomorphic operations with this ciphertext,"]
    #[doc = " in network byte order (NBO)."]
    pub remaining_ops: i32,
    #[doc = " The bits of the ciphertext."]
    pub bits: [::std::os::raw::c_uchar; 512usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_PaillierCiphertext() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_PaillierCiphertext>(),
        516usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_PaillierCiphertext))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_PaillierCiphertext>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_PaillierCiphertext)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_PaillierCiphertext>())).remaining_ops as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PaillierCiphertext),
            "::",
            stringify!(remaining_ops)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_PaillierCiphertext>())).bits as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PaillierCiphertext),
            "::",
            stringify!(bits)
        )
    );
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Seed a weak random generator. Only #GNUNET_CRYPTO_QUALITY_WEAK-mode generator"]
    #[doc = " can be seeded."]
    #[doc = ""]
    #[doc = " @param seed the seed to use"]
    pub fn GNUNET_CRYPTO_seed_weak_random(seed: i32);
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Calculate the checksum of a buffer in one step."]
    #[doc = ""]
    #[doc = " @param buf buffer to calculate CRC over"]
    #[doc = " @param len number of bytes in @a buf"]
    #[doc = " @return crc8 value"]
    pub fn GNUNET_CRYPTO_crc8_n(buf: *const ::std::os::raw::c_void, len: usize) -> u8;
}
extern "C" {
    #[doc = " Perform an incremental step in a CRC16 (for TCP/IP) calculation."]
    #[doc = ""]
    #[doc = " @param sum current sum, initially 0"]
    #[doc = " @param buf buffer to calculate CRC over (must be 16-bit aligned)"]
    #[doc = " @param len number of bytes in @a buf, must be multiple of 2"]
    #[doc = " @return updated crc sum (must be subjected to #GNUNET_CRYPTO_crc16_finish to get actual crc16)"]
    pub fn GNUNET_CRYPTO_crc16_step(
        sum: u32,
        buf: *const ::std::os::raw::c_void,
        len: usize,
    ) -> u32;
}
extern "C" {
    #[doc = " Convert results from GNUNET_CRYPTO_crc16_step to final crc16."]
    #[doc = ""]
    #[doc = " @param sum cumulative sum"]
    #[doc = " @return crc16 value"]
    pub fn GNUNET_CRYPTO_crc16_finish(sum: u32) -> u16;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Calculate the checksum of a buffer in one step."]
    #[doc = ""]
    #[doc = " @param buf buffer to calculate CRC over (must be 16-bit aligned)"]
    #[doc = " @param len number of bytes in @a buf, must be multiple of 2"]
    #[doc = " @return crc16 value"]
    pub fn GNUNET_CRYPTO_crc16_n(buf: *const ::std::os::raw::c_void, len: usize) -> u16;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Compute the CRC32 checksum for the first len"]
    #[doc = " bytes of the buffer."]
    #[doc = ""]
    #[doc = " @param buf the data over which we're taking the CRC"]
    #[doc = " @param len the length of the buffer @a buf in bytes"]
    #[doc = " @return the resulting CRC32 checksum"]
    pub fn GNUNET_CRYPTO_crc32_n(buf: *const ::std::os::raw::c_void, len: usize) -> i32;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Zero out @a buffer, securely against compiler optimizations."]
    #[doc = " Used to delete key material."]
    #[doc = ""]
    #[doc = " @param buffer the buffer to zap"]
    #[doc = " @param length buffer length"]
    pub fn GNUNET_CRYPTO_zero_keys(buffer: *mut ::std::os::raw::c_void, length: usize);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Fill block with a random values."]
    #[doc = ""]
    #[doc = " @param mode desired quality of the random number"]
    #[doc = " @param buffer the buffer to fill"]
    #[doc = " @param length buffer length"]
    pub fn GNUNET_CRYPTO_random_block(
        mode: GNUNET_CRYPTO_Quality,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
    );
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Fill UUID with a timeflake pseudo-random value.  Note that"]
    #[doc = " timeflakes use only 80 bits of randomness and 48 bits"]
    #[doc = " to encode a timestamp in milliseconds. So what we return"]
    #[doc = " here is not a completely random number."]
    #[doc = ""]
    #[doc = " @param mode desired quality of the random number"]
    #[doc = " @param uuid the value to fill"]
    pub fn GNUNET_CRYPTO_random_timeflake(mode: GNUNET_CRYPTO_Quality, uuid: *mut GNUNET_Uuid);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Produce a random value."]
    #[doc = ""]
    #[doc = " @param mode desired quality of the random number"]
    #[doc = " @param i the upper limit (exclusive) for the random number"]
    #[doc = " @return a random value in the interval [0,@a i) (exclusive)."]
    pub fn GNUNET_CRYPTO_random_u32(mode: GNUNET_CRYPTO_Quality, i: u32) -> u32;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Random on unsigned 64-bit values."]
    #[doc = ""]
    #[doc = " @param mode desired quality of the random number"]
    #[doc = " @param max value returned will be in range [0,@a max) (exclusive)"]
    #[doc = " @return random 64-bit number"]
    pub fn GNUNET_CRYPTO_random_u64(mode: GNUNET_CRYPTO_Quality, max: u64) -> u64;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Get an array with a random permutation of the"]
    #[doc = " numbers 0...n-1."]
    #[doc = " @param mode #GNUNET_CRYPTO_QUALITY_STRONG if the strong (but expensive) PRNG should be used,"]
    #[doc = "             #GNUNET_CRYPTO_QUALITY_WEAK or #GNUNET_CRYPTO_QUALITY_NONCE otherwise"]
    #[doc = " @param n the size of the array"]
    #[doc = " @return the permutation array (allocated from heap)"]
    pub fn GNUNET_CRYPTO_random_permute(
        mode: GNUNET_CRYPTO_Quality,
        n: ::std::os::raw::c_uint,
    ) -> *mut ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Create a new random session key."]
    #[doc = ""]
    #[doc = " @param key key to initialize"]
    pub fn GNUNET_CRYPTO_symmetric_create_session_key(key: *mut GNUNET_CRYPTO_SymmetricSessionKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Encrypt a block using a symmetric sessionkey."]
    #[doc = ""]
    #[doc = " @param block the block to encrypt"]
    #[doc = " @param size the size of the @a block"]
    #[doc = " @param sessionkey the key used to encrypt"]
    #[doc = " @param iv the initialization vector to use, use INITVALUE"]
    #[doc = "        for streams."]
    #[doc = " @return the size of the encrypted block, -1 for errors"]
    pub fn GNUNET_CRYPTO_symmetric_encrypt(
        block: *const ::std::os::raw::c_void,
        size: usize,
        sessionkey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        iv: *const GNUNET_CRYPTO_SymmetricInitializationVector,
        result: *mut ::std::os::raw::c_void,
    ) -> isize;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Decrypt a given block using a symmetric sessionkey."]
    #[doc = ""]
    #[doc = " @param block the data to decrypt, encoded as returned by encrypt"]
    #[doc = " @param size how big is the block?"]
    #[doc = " @param sessionkey the key used to decrypt"]
    #[doc = " @param iv the initialization vector to use"]
    #[doc = " @param result address to store the result at"]
    #[doc = " @return -1 on failure, size of decrypted block on success"]
    pub fn GNUNET_CRYPTO_symmetric_decrypt(
        block: *const ::std::os::raw::c_void,
        size: usize,
        sessionkey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        iv: *const GNUNET_CRYPTO_SymmetricInitializationVector,
        result: *mut ::std::os::raw::c_void,
    ) -> isize;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief Derive an IV"]
    #[doc = " @param iv initialization vector"]
    #[doc = " @param skey session key"]
    #[doc = " @param salt salt for the derivation"]
    #[doc = " @param salt_len size of the @a salt"]
    #[doc = " @param ... pairs of void * & size_t for context chunks, terminated by NULL"]
    pub fn GNUNET_CRYPTO_symmetric_derive_iv(
        iv: *mut GNUNET_CRYPTO_SymmetricInitializationVector,
        skey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        salt: *const ::std::os::raw::c_void,
        salt_len: usize,
        ...
    );
}
extern "C" {
    #[doc = " @brief Derive an IV"]
    #[doc = " @param iv initialization vector"]
    #[doc = " @param skey session key"]
    #[doc = " @param salt salt for the derivation"]
    #[doc = " @param salt_len size of the @a salt"]
    #[doc = " @param argp pairs of void * & size_t for context chunks, terminated by NULL"]
    pub fn GNUNET_CRYPTO_symmetric_derive_iv_v(
        iv: *mut GNUNET_CRYPTO_SymmetricInitializationVector,
        skey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        salt: *const ::std::os::raw::c_void,
        salt_len: usize,
        argp: *mut __va_list_tag,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Convert hash to ASCII encoding."]
    #[doc = " @param block the hash code"]
    #[doc = " @param result where to store the encoding (struct GNUNET_CRYPTO_HashAsciiEncoded can be"]
    #[doc = "  safely cast to char*, a '\\\\0' termination is set)."]
    pub fn GNUNET_CRYPTO_hash_to_enc(
        block: *const GNUNET_HashCode,
        result: *mut GNUNET_CRYPTO_HashAsciiEncoded,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Convert ASCII encoding back to a 'struct GNUNET_HashCode'"]
    #[doc = ""]
    #[doc = " @param enc the encoding"]
    #[doc = " @param enclen number of characters in @a enc (without 0-terminator, which can be missing)"]
    #[doc = " @param result where to store the hash code"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if result has the wrong encoding"]
    pub fn GNUNET_CRYPTO_hash_from_string2(
        enc: *const ::std::os::raw::c_char,
        enclen: usize,
        result: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = ""]
    #[doc = " Compute the distance between 2 hashcodes.  The"]
    #[doc = " computation must be fast, not involve @a a[0] or @a a[4] (they're used"]
    #[doc = " elsewhere), and be somewhat consistent. And of course, the result"]
    #[doc = " should be a positive number."]
    #[doc = ""]
    #[doc = " @param a some hash code"]
    #[doc = " @param b some hash code"]
    #[doc = " @return number between 0 and UINT32_MAX"]
    pub fn GNUNET_CRYPTO_hash_distance_u32(
        a: *const GNUNET_HashCode,
        b: *const GNUNET_HashCode,
    ) -> u32;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Compute hash of a given block."]
    #[doc = ""]
    #[doc = " @param block the data to hash"]
    #[doc = " @param size size of the @a block"]
    #[doc = " @param ret pointer to where to write the hashcode"]
    pub fn GNUNET_CRYPTO_hash(
        block: *const ::std::os::raw::c_void,
        size: usize,
        ret: *mut GNUNET_HashCode,
    );
}
#[doc = " Value for a salt for #GNUNET_CRYPTO_pow_hash()."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_PowSalt {
    pub salt: [::std::os::raw::c_char; 16usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_PowSalt() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_PowSalt>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_PowSalt))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_PowSalt>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_PowSalt))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_PowSalt>())).salt as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_PowSalt),
            "::",
            stringify!(salt)
        )
    );
}
extern "C" {
    #[doc = " Calculate the 'proof-of-work' hash (an expensive hash)."]
    #[doc = ""]
    #[doc = " @param salt salt for the hash. Must be crypto_pwhash_argon2id_SALTBYTES long."]
    #[doc = " @param buf data to hash"]
    #[doc = " @param buf_len number of bytes in @a buf"]
    #[doc = " @param result where to write the resulting hash"]
    pub fn GNUNET_CRYPTO_pow_hash(
        salt: *const GNUNET_CRYPTO_PowSalt,
        buf: *const ::std::os::raw::c_void,
        buf_len: usize,
        result: *mut GNUNET_HashCode,
    );
}
#[doc = " Context for cumulative hashing."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HashContext {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Start incremental hashing operation."]
    #[doc = ""]
    #[doc = " @return context for incremental hash computation"]
    pub fn GNUNET_CRYPTO_hash_context_start() -> *mut GNUNET_HashContext;
}
extern "C" {
    #[doc = " Make a copy of the hash computation."]
    #[doc = ""]
    #[doc = " @param hc hash context to use (to continue hashing independently)"]
    #[doc = " @return copy of @a hc"]
    pub fn GNUNET_CRYPTO_hash_context_copy(
        hc: *const GNUNET_HashContext,
    ) -> *mut GNUNET_HashContext;
}
extern "C" {
    #[doc = " Add data to be hashed."]
    #[doc = ""]
    #[doc = " @param hc cumulative hash context"]
    #[doc = " @param buf data to add"]
    #[doc = " @param size number of bytes in @a buf"]
    pub fn GNUNET_CRYPTO_hash_context_read(
        hc: *mut GNUNET_HashContext,
        buf: *const ::std::os::raw::c_void,
        size: usize,
    );
}
extern "C" {
    #[doc = " Finish the hash computation."]
    #[doc = ""]
    #[doc = " @param hc hash context to use, is freed in the process"]
    #[doc = " @param r_hash where to write the latest / final hash code"]
    pub fn GNUNET_CRYPTO_hash_context_finish(
        hc: *mut GNUNET_HashContext,
        r_hash: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " Abort hashing, do not bother calculating final result."]
    #[doc = ""]
    #[doc = " @param hc hash context to destroy"]
    pub fn GNUNET_CRYPTO_hash_context_abort(hc: *mut GNUNET_HashContext);
}
extern "C" {
    #[doc = " Calculate HMAC of a message (RFC 2104)"]
    #[doc = " TODO: Shouldn' this be the standard hmac function and"]
    #[doc = " the above be renamed?"]
    #[doc = ""]
    #[doc = " @param key secret key"]
    #[doc = " @param key_len secret key length"]
    #[doc = " @param plaintext input plaintext"]
    #[doc = " @param plaintext_len length of @a plaintext"]
    #[doc = " @param hmac where to store the hmac"]
    pub fn GNUNET_CRYPTO_hmac_raw(
        key: *const ::std::os::raw::c_void,
        key_len: usize,
        plaintext: *const ::std::os::raw::c_void,
        plaintext_len: usize,
        hmac: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Calculate HMAC of a message (RFC 2104)"]
    #[doc = ""]
    #[doc = " @param key secret key"]
    #[doc = " @param plaintext input plaintext"]
    #[doc = " @param plaintext_len length of @a plaintext"]
    #[doc = " @param hmac where to store the hmac"]
    pub fn GNUNET_CRYPTO_hmac(
        key: *const GNUNET_CRYPTO_AuthKey,
        plaintext: *const ::std::os::raw::c_void,
        plaintext_len: usize,
        hmac: *mut GNUNET_HashCode,
    );
}
#[doc = " Function called once the hash computation over the"]
#[doc = " specified file has completed."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param res resulting hash, NULL on error"]
pub type GNUNET_CRYPTO_HashCompletedCallback = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, res: *const GNUNET_HashCode),
>;
#[doc = " Handle to file hashing operation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_FileHashContext {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Compute the hash of an entire file."]
    #[doc = ""]
    #[doc = " @param priority scheduling priority to use"]
    #[doc = " @param filename name of file to hash"]
    #[doc = " @param blocksize number of bytes to process in one task"]
    #[doc = " @param callback function to call upon completion"]
    #[doc = " @param callback_cls closure for @a callback"]
    #[doc = " @return NULL on (immediate) error"]
    pub fn GNUNET_CRYPTO_hash_file(
        priority: GNUNET_SCHEDULER_Priority,
        filename: *const ::std::os::raw::c_char,
        blocksize: usize,
        callback: GNUNET_CRYPTO_HashCompletedCallback,
        callback_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_CRYPTO_FileHashContext;
}
extern "C" {
    #[doc = " Cancel a file hashing operation."]
    #[doc = ""]
    #[doc = " @param fhc operation to cancel (callback must not yet have been invoked)"]
    pub fn GNUNET_CRYPTO_hash_file_cancel(fhc: *mut GNUNET_CRYPTO_FileHashContext);
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Create a random hash code."]
    #[doc = ""]
    #[doc = " @param mode desired quality level"]
    #[doc = " @param result hash code that is randomized"]
    pub fn GNUNET_CRYPTO_hash_create_random(
        mode: GNUNET_CRYPTO_Quality,
        result: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " compute @a result = @a b - @a a"]
    #[doc = ""]
    #[doc = " @param a some hash code"]
    #[doc = " @param b some hash code"]
    #[doc = " @param result set to @a b - @a a"]
    pub fn GNUNET_CRYPTO_hash_difference(
        a: *const GNUNET_HashCode,
        b: *const GNUNET_HashCode,
        result: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " compute @a result = @a a + @a delta"]
    #[doc = ""]
    #[doc = " @param a some hash code"]
    #[doc = " @param delta some hash code"]
    #[doc = " @param result set to @a a + @a delta"]
    pub fn GNUNET_CRYPTO_hash_sum(
        a: *const GNUNET_HashCode,
        delta: *const GNUNET_HashCode,
        result: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " compute result = a ^ b"]
    #[doc = ""]
    #[doc = " @param a some hash code"]
    #[doc = " @param b some hash code"]
    #[doc = " @param result set to @a a ^ @a b"]
    pub fn GNUNET_CRYPTO_hash_xor(
        a: *const GNUNET_HashCode,
        b: *const GNUNET_HashCode,
        result: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Convert a hashcode into a key."]
    #[doc = ""]
    #[doc = " @param hc hash code that serves to generate the key"]
    #[doc = " @param skey set to a valid session key"]
    #[doc = " @param iv set to a valid initialization vector"]
    pub fn GNUNET_CRYPTO_hash_to_aes_key(
        hc: *const GNUNET_HashCode,
        skey: *mut GNUNET_CRYPTO_SymmetricSessionKey,
        iv: *mut GNUNET_CRYPTO_SymmetricInitializationVector,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Obtain a bit from a hashcode."]
    #[doc = ""]
    #[doc = " @param code the `struct GNUNET_HashCode` to index bit-wise"]
    #[doc = " @param bit index into the hashcode, [0...159] where 0 is the leftmost bit"]
    #[doc = "        (bytes in code interpreted big endian)"]
    #[doc = " @return Bit \\a bit from hashcode \\a code, -1 for invalid index"]
    pub fn GNUNET_CRYPTO_hash_get_bit_ltr(
        code: *const GNUNET_HashCode,
        bit: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Obtain a bit from a hashcode."]
    #[doc = " @param code the GNUNET_CRYPTO_hash to index bit-wise"]
    #[doc = " @param bit index into the hashcode, [0...511] where 0 is the rightmost bit"]
    #[doc = "        (bytes in code interpreted little endian)"]
    #[doc = " @return Bit \\a bit from hashcode \\a code, -1 for invalid index"]
    pub fn GNUNET_CRYPTO_hash_get_bit_rtl(
        code: *const GNUNET_HashCode,
        bit: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Determine how many low order bits match in two"]
    #[doc = " `struct GNUNET_HashCodes`.  i.e. - 010011 and 011111 share"]
    #[doc = " the first two lowest order bits, and therefore the"]
    #[doc = " return value is two (NOT XOR distance, nor how many"]
    #[doc = " bits match absolutely!)."]
    #[doc = ""]
    #[doc = " @param first the first hashcode"]
    #[doc = " @param second the hashcode to compare first to"]
    #[doc = " @return the number of bits that match"]
    pub fn GNUNET_CRYPTO_hash_matching_bits(
        first: *const GNUNET_HashCode,
        second: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Compare function for HashCodes, producing a total ordering"]
    #[doc = " of all hashcodes."]
    #[doc = ""]
    #[doc = " @param h1 some hash code"]
    #[doc = " @param h2 some hash code"]
    #[doc = " @return 1 if @a h1 > @a h2, -1 if @a h1 < @a h2 and 0 if @a h1 == @a h2."]
    pub fn GNUNET_CRYPTO_hash_cmp(
        h1: *const GNUNET_HashCode,
        h2: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " Find out which of the two GNUNET_CRYPTO_hash codes is closer to target"]
    #[doc = " in the XOR metric (Kademlia)."]
    #[doc = ""]
    #[doc = " @param h1 some hash code"]
    #[doc = " @param h2 some hash code"]
    #[doc = " @param target some hash code"]
    #[doc = " @return -1 if @a h1 is closer, 1 if @a h2 is closer and 0 if @a h1== @a h2."]
    pub fn GNUNET_CRYPTO_hash_xorcmp(
        h1: *const GNUNET_HashCode,
        h2: *const GNUNET_HashCode,
        target: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " @brief Derive an authentication key"]
    #[doc = " @param key authentication key"]
    #[doc = " @param rkey root key"]
    #[doc = " @param salt salt"]
    #[doc = " @param salt_len size of the salt"]
    #[doc = " @param argp pair of void * & size_t for context chunks, terminated by NULL"]
    pub fn GNUNET_CRYPTO_hmac_derive_key_v(
        key: *mut GNUNET_CRYPTO_AuthKey,
        rkey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        salt: *const ::std::os::raw::c_void,
        salt_len: usize,
        argp: *mut __va_list_tag,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " @brief Derive an authentication key"]
    #[doc = " @param key authentication key"]
    #[doc = " @param rkey root key"]
    #[doc = " @param salt salt"]
    #[doc = " @param salt_len size of the salt"]
    #[doc = " @param ... pair of void * & size_t for context chunks, terminated by NULL"]
    pub fn GNUNET_CRYPTO_hmac_derive_key(
        key: *mut GNUNET_CRYPTO_AuthKey,
        rkey: *const GNUNET_CRYPTO_SymmetricSessionKey,
        salt: *const ::std::os::raw::c_void,
        salt_len: usize,
        ...
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " @brief Derive key"]
    #[doc = " @param result buffer for the derived key, allocated by caller"]
    #[doc = " @param out_len desired length of the derived key"]
    #[doc = " @param xtr_algo hash algorithm for the extraction phase, GCRY_MD_..."]
    #[doc = " @param prf_algo hash algorithm for the expansion phase, GCRY_MD_..."]
    #[doc = " @param xts salt"]
    #[doc = " @param xts_len length of @a xts"]
    #[doc = " @param skm source key material"]
    #[doc = " @param skm_len length of @a skm"]
    #[doc = " @param ... pair of void * & size_t for context chunks, terminated by NULL"]
    #[doc = " @return #GNUNET_YES on success"]
    pub fn GNUNET_CRYPTO_hkdf(
        result: *mut ::std::os::raw::c_void,
        out_len: usize,
        xtr_algo: ::std::os::raw::c_int,
        prf_algo: ::std::os::raw::c_int,
        xts: *const ::std::os::raw::c_void,
        xts_len: usize,
        skm: *const ::std::os::raw::c_void,
        skm_len: usize,
        ...
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " @brief Derive key"]
    #[doc = " @param result buffer for the derived key, allocated by caller"]
    #[doc = " @param out_len desired length of the derived key"]
    #[doc = " @param xtr_algo hash algorithm for the extraction phase, GCRY_MD_..."]
    #[doc = " @param prf_algo hash algorithm for the expansion phase, GCRY_MD_..."]
    #[doc = " @param xts salt"]
    #[doc = " @param xts_len length of @a xts"]
    #[doc = " @param skm source key material"]
    #[doc = " @param skm_len length of @a skm"]
    #[doc = " @param argp va_list of void * & size_t pairs for context chunks"]
    #[doc = " @return #GNUNET_YES on success"]
    pub fn GNUNET_CRYPTO_hkdf_v(
        result: *mut ::std::os::raw::c_void,
        out_len: usize,
        xtr_algo: ::std::os::raw::c_int,
        prf_algo: ::std::os::raw::c_int,
        xts: *const ::std::os::raw::c_void,
        xts_len: usize,
        skm: *const ::std::os::raw::c_void,
        skm_len: usize,
        argp: *mut __va_list_tag,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @brief Derive key"]
    #[doc = " @param result buffer for the derived key, allocated by caller"]
    #[doc = " @param out_len desired length of the derived key"]
    #[doc = " @param xts salt"]
    #[doc = " @param xts_len length of @a xts"]
    #[doc = " @param skm source key material"]
    #[doc = " @param skm_len length of @a skm"]
    #[doc = " @param argp va_list of void * & size_t pairs for context chunks"]
    #[doc = " @return #GNUNET_YES on success"]
    pub fn GNUNET_CRYPTO_kdf_v(
        result: *mut ::std::os::raw::c_void,
        out_len: usize,
        xts: *const ::std::os::raw::c_void,
        xts_len: usize,
        skm: *const ::std::os::raw::c_void,
        skm_len: usize,
        argp: *mut __va_list_tag,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Deterministically generate a pseudo-random number uniformly from the"]
    #[doc = " integers modulo a libgcrypt mpi."]
    #[doc = ""]
    #[doc = " @param[out] r MPI value set to the FDH"]
    #[doc = " @param n MPI to work modulo"]
    #[doc = " @param xts salt"]
    #[doc = " @param xts_len length of @a xts"]
    #[doc = " @param skm source key material"]
    #[doc = " @param skm_len length of @a skm"]
    #[doc = " @param ctx context string"]
    pub fn GNUNET_CRYPTO_kdf_mod_mpi(
        r: *mut gcry_mpi_t,
        n: gcry_mpi_t,
        xts: *const ::std::os::raw::c_void,
        xts_len: usize,
        skm: *const ::std::os::raw::c_void,
        skm_len: usize,
        ctx: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " @ingroup hash"]
    #[doc = " @brief Derive key"]
    #[doc = " @param result buffer for the derived key, allocated by caller"]
    #[doc = " @param out_len desired length of the derived key"]
    #[doc = " @param xts salt"]
    #[doc = " @param xts_len length of @a xts"]
    #[doc = " @param skm source key material"]
    #[doc = " @param skm_len length of @a skm"]
    #[doc = " @param ... void * & size_t pairs for context chunks"]
    #[doc = " @return #GNUNET_YES on success"]
    pub fn GNUNET_CRYPTO_kdf(
        result: *mut ::std::os::raw::c_void,
        out_len: usize,
        xts: *const ::std::os::raw::c_void,
        xts_len: usize,
        skm: *const ::std::os::raw::c_void,
        skm_len: usize,
        ...
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Extract the public key for the given private key."]
    #[doc = ""]
    #[doc = " @param priv the private key"]
    #[doc = " @param pub where to write the public key"]
    pub fn GNUNET_CRYPTO_ecdsa_key_get_public(
        priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
        pub_: *mut GNUNET_CRYPTO_EcdsaPublicKey,
    );
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Extract the public key for the given private key."]
    #[doc = ""]
    #[doc = " @param priv the private key"]
    #[doc = " @param pub where to write the public key"]
    pub fn GNUNET_CRYPTO_eddsa_key_get_public(
        priv_: *const GNUNET_CRYPTO_EddsaPrivateKey,
        pub_: *mut GNUNET_CRYPTO_EddsaPublicKey,
    );
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Extract the public key for the given private key."]
    #[doc = ""]
    #[doc = " @param priv the private key"]
    #[doc = " @param pub where to write the public key"]
    pub fn GNUNET_CRYPTO_ecdhe_key_get_public(
        priv_: *const GNUNET_CRYPTO_EcdhePrivateKey,
        pub_: *mut GNUNET_CRYPTO_EcdhePublicKey,
    );
}
extern "C" {
    #[doc = " Convert a public key to a string."]
    #[doc = ""]
    #[doc = " @param pub key to convert"]
    #[doc = " @return string representing @a pub"]
    pub fn GNUNET_CRYPTO_ecdsa_public_key_to_string(
        pub_: *const GNUNET_CRYPTO_EcdsaPublicKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert a private key to a string."]
    #[doc = ""]
    #[doc = " @param priv key to convert"]
    #[doc = " @return string representing @a priv"]
    pub fn GNUNET_CRYPTO_ecdsa_private_key_to_string(
        priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert a private key to a string."]
    #[doc = ""]
    #[doc = " @param priv key to convert"]
    #[doc = " @return string representing @a pub"]
    pub fn GNUNET_CRYPTO_eddsa_private_key_to_string(
        priv_: *const GNUNET_CRYPTO_EddsaPrivateKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert a public key to a string."]
    #[doc = ""]
    #[doc = " @param pub key to convert"]
    #[doc = " @return string representing @a pub"]
    pub fn GNUNET_CRYPTO_eddsa_public_key_to_string(
        pub_: *const GNUNET_CRYPTO_EddsaPublicKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert a string representing a public key to a public key."]
    #[doc = ""]
    #[doc = " @param enc encoded public key"]
    #[doc = " @param enclen number of bytes in @a enc (without 0-terminator)"]
    #[doc = " @param pub where to store the public key"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecdsa_public_key_from_string(
        enc: *const ::std::os::raw::c_char,
        enclen: usize,
        pub_: *mut GNUNET_CRYPTO_EcdsaPublicKey,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Convert a string representing a private key to a private key."]
    #[doc = ""]
    #[doc = " @param enc encoded public key"]
    #[doc = " @param enclen number of bytes in @a enc (without 0-terminator)"]
    #[doc = " @param priv where to store the private key"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_eddsa_private_key_from_string(
        enc: *const ::std::os::raw::c_char,
        enclen: usize,
        pub_: *mut GNUNET_CRYPTO_EddsaPrivateKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Convert a string representing a public key to a public key."]
    #[doc = ""]
    #[doc = " @param enc encoded public key"]
    #[doc = " @param enclen number of bytes in @a enc (without 0-terminator)"]
    #[doc = " @param pub where to store the public key"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_eddsa_public_key_from_string(
        enc: *const ::std::os::raw::c_char,
        enclen: usize,
        pub_: *mut GNUNET_CRYPTO_EddsaPublicKey,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief Create a new private key by reading it from a file."]
    #[doc = ""]
    #[doc = " If the files does not exist and @a do_create is set, creates a new key and"]
    #[doc = " write it to the file."]
    #[doc = ""]
    #[doc = " If the contents of the file are invalid, an error is returned."]
    #[doc = ""]
    #[doc = " @param filename name of file to use to store the key"]
    #[doc = " @param do_create should a file be created?"]
    #[doc = " @param[out] pkey set to the private key from @a filename on success"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_NO if @a do_create was set but"]
    #[doc = "         we found an existing file, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_CRYPTO_ecdsa_key_from_file(
        filename: *const ::std::os::raw::c_char,
        do_create: ::std::os::raw::c_int,
        pkey: *mut GNUNET_CRYPTO_EcdsaPrivateKey,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief Create a new private key by reading it from a file."]
    #[doc = ""]
    #[doc = " If the files does not exist and @a do_create is set, creates a new key and"]
    #[doc = " write it to the file."]
    #[doc = ""]
    #[doc = " If the contents of the file are invalid, an error is returned."]
    #[doc = ""]
    #[doc = " @param filename name of file to use to store the key"]
    #[doc = " @param do_create should a file be created?"]
    #[doc = " @param[out] pkey set to the private key from @a filename on success"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_NO if @a do_create was set but"]
    #[doc = "         we found an existing file, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_CRYPTO_eddsa_key_from_file(
        filename: *const ::std::os::raw::c_char,
        do_create: ::std::os::raw::c_int,
        pkey: *mut GNUNET_CRYPTO_EddsaPrivateKey,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Forward declaration to simplify #include-structure."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONFIGURATION_Handle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Create a new private key by reading our peer's key from"]
    #[doc = " the file specified in the configuration."]
    #[doc = ""]
    #[doc = " @param cfg the configuration to use"]
    #[doc = " @return new private key, NULL on error (for example,"]
    #[doc = "   permission denied); free using #GNUNET_free"]
    pub fn GNUNET_CRYPTO_eddsa_key_create_from_configuration(
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> *mut GNUNET_CRYPTO_EddsaPrivateKey;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Create a new private key."]
    #[doc = ""]
    #[doc = " @param[out] pk private key to initialize"]
    pub fn GNUNET_CRYPTO_ecdsa_key_create(pk: *mut GNUNET_CRYPTO_EcdsaPrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Create a new private key."]
    #[doc = ""]
    #[doc = " @param[out] pk private key to initialize"]
    pub fn GNUNET_CRYPTO_eddsa_key_create(pk: *mut GNUNET_CRYPTO_EddsaPrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Create a new private key.  Clear with #GNUNET_CRYPTO_ecdhe_key_clear()."]
    #[doc = ""]
    #[doc = " @param[out] pk set to fresh private key;"]
    pub fn GNUNET_CRYPTO_ecdhe_key_create(pk: *mut GNUNET_CRYPTO_EcdhePrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Clear memory that was used to store a private key."]
    #[doc = ""]
    #[doc = " @param pk location of the key"]
    pub fn GNUNET_CRYPTO_eddsa_key_clear(pk: *mut GNUNET_CRYPTO_EddsaPrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Clear memory that was used to store a private key."]
    #[doc = ""]
    #[doc = " @param pk location of the key"]
    pub fn GNUNET_CRYPTO_ecdsa_key_clear(pk: *mut GNUNET_CRYPTO_EcdsaPrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Clear memory that was used to store a private key."]
    #[doc = ""]
    #[doc = " @param pk location of the key"]
    pub fn GNUNET_CRYPTO_ecdhe_key_clear(pk: *mut GNUNET_CRYPTO_EcdhePrivateKey);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Get the shared private key we use for anonymous users."]
    #[doc = ""]
    #[doc = " @return \"anonymous\" private key; do not free"]
    pub fn GNUNET_CRYPTO_ecdsa_key_get_anonymous() -> *const GNUNET_CRYPTO_EcdsaPrivateKey;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Setup a hostkey file for a peer given the name of the"]
    #[doc = " configuration file (!).  This function is used so that"]
    #[doc = " at a later point code can be certain that reading a"]
    #[doc = " hostkey is fast (for example in time-dependent testcases)."]
    #[doc = ""]
    #[doc = " @param cfg_name name of the configuration file to use"]
    pub fn GNUNET_CRYPTO_eddsa_setup_hostkey(cfg_name: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Retrieve the identity of the host's peer."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param dst pointer to where to write the peer identity"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if the identity"]
    #[doc = "         could not be retrieved"]
    pub fn GNUNET_CRYPTO_get_peer_identity(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        dst: *mut GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Internal structure used to cache pre-calculated values for DLOG calculation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EccDlogContext {
    _unused: [u8; 0],
}
#[doc = " Point on a curve (always for Curve25519) encoded in a format suitable"]
#[doc = " for network transmission (ECDH), see http://cr.yp.to/ecdh.html."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_EccPoint {
    #[doc = " Q consists of an x- and a y-value, each mod p (256 bits), given"]
    #[doc = " here in affine coordinates and Ed25519 standard compact format."]
    pub q_y: [::std::os::raw::c_uchar; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_EccPoint() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_EccPoint>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_EccPoint))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_EccPoint>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_CRYPTO_EccPoint))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_CRYPTO_EccPoint>())).q_y as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_EccPoint),
            "::",
            stringify!(q_y)
        )
    );
}
extern "C" {
    #[doc = " Do pre-calculation for ECC discrete logarithm for small factors."]
    #[doc = ""]
    #[doc = " @param max maximum value the factor can be"]
    #[doc = " @param mem memory to use (should be smaller than @a max), must not be zero."]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CRYPTO_ecc_dlog_prepare(
        max: ::std::os::raw::c_uint,
        mem: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_CRYPTO_EccDlogContext;
}
extern "C" {
    #[doc = " Calculate ECC discrete logarithm for small factors."]
    #[doc = " Opposite of #GNUNET_CRYPTO_ecc_dexp()."]
    #[doc = ""]
    #[doc = " @param dlc precalculated values, determine range of factors"]
    #[doc = " @param input point on the curve to factor"]
    #[doc = " @return INT_MAX if dlog failed, otherwise the factor"]
    pub fn GNUNET_CRYPTO_ecc_dlog(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        input: gcry_mpi_point_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Multiply the generator g of the elliptic curve by @a val"]
    #[doc = " to obtain the point on the curve representing @a val."]
    #[doc = " Afterwards, point addition will correspond to integer"]
    #[doc = " addition.  #GNUNET_CRYPTO_ecc_dlog() can be used to"]
    #[doc = " convert a point back to an integer (as long as the"]
    #[doc = " integer is smaller than the MAX of the @a edc context)."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param val value to encode into a point"]
    #[doc = " @return representation of the value as an ECC point,"]
    #[doc = "         must be freed using #GNUNET_CRYPTO_ecc_free()"]
    pub fn GNUNET_CRYPTO_ecc_dexp(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        val: ::std::os::raw::c_int,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    #[doc = " Multiply the generator g of the elliptic curve by @a val"]
    #[doc = " to obtain the point on the curve representing @a val."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param val (positive) value to encode into a point"]
    #[doc = " @return representation of the value as an ECC point,"]
    #[doc = "         must be freed using #GNUNET_CRYPTO_ecc_free()"]
    pub fn GNUNET_CRYPTO_ecc_dexp_mpi(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        val: gcry_mpi_t,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    #[doc = " Multiply the point @a p on the elliptic curve by @a val."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param p point to multiply"]
    #[doc = " @param val (positive) value to encode into a point"]
    #[doc = " @return representation of the value as an ECC point,"]
    #[doc = "         must be freed using #GNUNET_CRYPTO_ecc_free()"]
    pub fn GNUNET_CRYPTO_ecc_pmul_mpi(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        p: gcry_mpi_point_t,
        val: gcry_mpi_t,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    #[doc = " Convert point value to binary representation."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param point computational point representation"]
    #[doc = " @param[out] bin binary point representation"]
    pub fn GNUNET_CRYPTO_ecc_point_to_bin(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        point: gcry_mpi_point_t,
        bin: *mut GNUNET_CRYPTO_EccPoint,
    );
}
extern "C" {
    #[doc = " Convert binary representation of a point to computational representation."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param bin binary point representation"]
    #[doc = " @return computational representation"]
    pub fn GNUNET_CRYPTO_ecc_bin_to_point(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        bin: *const GNUNET_CRYPTO_EccPoint,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    #[doc = " Add two points on the elliptic curve."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param a some value"]
    #[doc = " @param b some value"]
    #[doc = " @return @a a + @a b, must be freed using #GNUNET_CRYPTO_ecc_free()"]
    pub fn GNUNET_CRYPTO_ecc_add(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        a: gcry_mpi_point_t,
        b: gcry_mpi_point_t,
    ) -> gcry_mpi_point_t;
}
extern "C" {
    #[doc = " Obtain a random point on the curve and its"]
    #[doc = " additive inverse. Both returned values"]
    #[doc = " must be freed using #GNUNET_CRYPTO_ecc_free()."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param[out] r set to a random point on the curve"]
    #[doc = " @param[out] r_inv set to the additive inverse of @a r"]
    pub fn GNUNET_CRYPTO_ecc_rnd(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        r: *mut gcry_mpi_point_t,
        r_inv: *mut gcry_mpi_point_t,
    );
}
extern "C" {
    #[doc = " Obtain a random scalar for point multiplication on the curve and"]
    #[doc = " its multiplicative inverse."]
    #[doc = ""]
    #[doc = " @param edc calculation context for ECC operations"]
    #[doc = " @param[out] r set to a random scalar on the curve"]
    #[doc = " @param[out] r_inv set to the multiplicative inverse of @a r"]
    pub fn GNUNET_CRYPTO_ecc_rnd_mpi(
        edc: *mut GNUNET_CRYPTO_EccDlogContext,
        r: *mut gcry_mpi_t,
        r_inv: *mut gcry_mpi_t,
    );
}
extern "C" {
    #[doc = " Generate a random value mod n."]
    #[doc = ""]
    #[doc = " @param edc ECC context"]
    #[doc = " @return random value mod n."]
    pub fn GNUNET_CRYPTO_ecc_random_mod_n(edc: *mut GNUNET_CRYPTO_EccDlogContext) -> gcry_mpi_t;
}
extern "C" {
    #[doc = " Free a point value returned by the API."]
    #[doc = ""]
    #[doc = " @param p point to free"]
    pub fn GNUNET_CRYPTO_ecc_free(p: gcry_mpi_point_t);
}
extern "C" {
    #[doc = " Release precalculated values."]
    #[doc = ""]
    #[doc = " @param dlc dlog context"]
    pub fn GNUNET_CRYPTO_ecc_dlog_release(dlc: *mut GNUNET_CRYPTO_EccDlogContext);
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive key material from a public and a private ECC key."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the ECDH (x)"]
    #[doc = " @param pub public key to use for the ECDH (yG)"]
    #[doc = " @param key_material where to write the key material (xyG)"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecc_ecdh(
        priv_: *const GNUNET_CRYPTO_EcdhePrivateKey,
        pub_: *const GNUNET_CRYPTO_EcdhePublicKey,
        key_material: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive key material from a ECDH public key and a private EdDSA key."]
    #[doc = " Dual to #GNUNET_CRRYPTO_ecdh_eddsa."]
    #[doc = ""]
    #[doc = " @param priv private key from EdDSA to use for the ECDH (x)"]
    #[doc = " @param pub public key to use for the ECDH (yG)"]
    #[doc = " @param key_material where to write the key material H(h(x)yG)"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_eddsa_ecdh(
        priv_: *const GNUNET_CRYPTO_EddsaPrivateKey,
        pub_: *const GNUNET_CRYPTO_EcdhePublicKey,
        key_material: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive key material from a ECDH public key and a private ECDSA key."]
    #[doc = " Dual to #GNUNET_CRRYPTO_ecdh_ecdsa."]
    #[doc = ""]
    #[doc = " @param priv private key from ECDSA to use for the ECDH (x)"]
    #[doc = " @param pub public key to use for the ECDH (yG)"]
    #[doc = " @param key_material where to write the key material H(h(x)yG)"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecdsa_ecdh(
        priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
        pub_: *const GNUNET_CRYPTO_EcdhePublicKey,
        key_material: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive key material from a EdDSA public key and a private ECDH key."]
    #[doc = " Dual to #GNUNET_CRRYPTO_eddsa_ecdh."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the ECDH (y)"]
    #[doc = " @param pub public key from EdDSA to use for the ECDH (X=h(x)G)"]
    #[doc = " @param key_material where to write the key material H(yX)=H(h(x)yG)"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecdh_eddsa(
        priv_: *const GNUNET_CRYPTO_EcdhePrivateKey,
        pub_: *const GNUNET_CRYPTO_EddsaPublicKey,
        key_material: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive key material from a EcDSA public key and a private ECDH key."]
    #[doc = " Dual to #GNUNET_CRRYPTO_ecdsa_ecdh."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the ECDH (y)"]
    #[doc = " @param pub public key from ECDSA to use for the ECDH (X=h(x)G)"]
    #[doc = " @param key_material where to write the key material H(yX)=H(h(x)yG)"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecdh_ecdsa(
        priv_: *const GNUNET_CRYPTO_EcdhePrivateKey,
        pub_: *const GNUNET_CRYPTO_EcdsaPublicKey,
        key_material: *mut GNUNET_HashCode,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief EdDSA sign a given block."]
    #[doc = ""]
    #[doc = " The @a purpose data is the beginning of the data of which the signature is"]
    #[doc = " to be created. The `size` field in @a purpose must correctly indicate the"]
    #[doc = " number of bytes of the data structure, including its header.  If possible,"]
    #[doc = " use #GNUNET_CRYPTO_eddsa_sign() instead of this function (only if @a validate"]
    #[doc = " is not fixed-size, you must use this function directly)."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the signing"]
    #[doc = " @param purpose what to sign (size, purpose)"]
    #[doc = " @param[out] sig where to write the signature"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_eddsa_sign_(
        priv_: *const GNUNET_CRYPTO_EddsaPrivateKey,
        purpose: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *mut GNUNET_CRYPTO_EddsaSignature,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief ECDSA Sign a given block."]
    #[doc = ""]
    #[doc = " The @a purpose data is the beginning of the data of which the signature is"]
    #[doc = " to be created. The `size` field in @a purpose must correctly indicate the"]
    #[doc = " number of bytes of the data structure, including its header. If possible,"]
    #[doc = " use #GNUNET_CRYPTO_ecdsa_sign() instead of this function (only if @a validate"]
    #[doc = " is not fixed-size, you must use this function directly)."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the signing"]
    #[doc = " @param purpose what to sign (size, purpose)"]
    #[doc = " @param[out] sig where to write the signature"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_CRYPTO_ecdsa_sign_(
        priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
        purpose: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *mut GNUNET_CRYPTO_EcdsaSignature,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief Verify EdDSA signature."]
    #[doc = ""]
    #[doc = " The @a validate data is the beginning of the data of which the signature"]
    #[doc = " is to be verified. The `size` field in @a validate must correctly indicate"]
    #[doc = " the number of bytes of the data structure, including its header.  If @a"]
    #[doc = " purpose does not match the purpose given in @a validate (the latter must be"]
    #[doc = " in big endian), signature verification fails.  If possible,"]
    #[doc = " use #GNUNET_CRYPTO_eddsa_verify() instead of this function (only if @a validate"]
    #[doc = " is not fixed-size, you must use this function directly)."]
    #[doc = ""]
    #[doc = " @param purpose what is the purpose that the signature should have?"]
    #[doc = " @param validate block to validate (size, purpose, data)"]
    #[doc = " @param sig signature that is being validated"]
    #[doc = " @param pub public key of the signer"]
    #[doc = " @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid"]
    pub fn GNUNET_CRYPTO_eddsa_verify_(
        purpose: u32,
        validate: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *const GNUNET_CRYPTO_EddsaSignature,
        pub_: *const GNUNET_CRYPTO_EddsaPublicKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " @brief Verify ECDSA signature."]
    #[doc = ""]
    #[doc = " The @a validate data is the beginning of the data of which the signature is"]
    #[doc = " to be verified. The `size` field in @a validate must correctly indicate the"]
    #[doc = " number of bytes of the data structure, including its header.  If @a purpose"]
    #[doc = " does not match the purpose given in @a validate (the latter must be in big"]
    #[doc = " endian), signature verification fails.  If possible, use"]
    #[doc = " #GNUNET_CRYPTO_eddsa_verify() instead of this function (only if @a validate"]
    #[doc = " is not fixed-size, you must use this function directly)."]
    #[doc = ""]
    #[doc = " @param purpose what is the purpose that the signature should have?"]
    #[doc = " @param validate block to validate (size, purpose, data)"]
    #[doc = " @param sig signature that is being validated"]
    #[doc = " @param pub public key of the signer"]
    #[doc = " @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid"]
    pub fn GNUNET_CRYPTO_ecdsa_verify_(
        purpose: u32,
        validate: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *const GNUNET_CRYPTO_EcdsaSignature,
        pub_: *const GNUNET_CRYPTO_EcdsaPublicKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive a private key from a given private key and a label."]
    #[doc = " Essentially calculates a private key 'h = H(l,P) * d mod n'"]
    #[doc = " where n is the size of the ECC group and P is the public"]
    #[doc = " key associated with the private key 'd'."]
    #[doc = ""]
    #[doc = " @param priv original private key"]
    #[doc = " @param label label to use for key deriviation"]
    #[doc = " @param context additional context to use for HKDF of 'h';"]
    #[doc = "        typically the name of the subsystem/application"]
    #[doc = " @return derived private key"]
    pub fn GNUNET_CRYPTO_ecdsa_private_key_derive(
        priv_: *const GNUNET_CRYPTO_EcdsaPrivateKey,
        label: *const ::std::os::raw::c_char,
        context: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_CRYPTO_EcdsaPrivateKey;
}
extern "C" {
    #[doc = " @ingroup crypto"]
    #[doc = " Derive a public key from a given public key and a label."]
    #[doc = " Essentially calculates a public key 'V = H(l,P) * P'."]
    #[doc = ""]
    #[doc = " @param pub original public key"]
    #[doc = " @param label label to use for key deriviation"]
    #[doc = " @param context additional context to use for HKDF of 'h'."]
    #[doc = "        typically the name of the subsystem/application"]
    #[doc = " @param result where to write the derived public key"]
    pub fn GNUNET_CRYPTO_ecdsa_public_key_derive(
        pub_: *const GNUNET_CRYPTO_EcdsaPublicKey,
        label: *const ::std::os::raw::c_char,
        context: *const ::std::os::raw::c_char,
        result: *mut GNUNET_CRYPTO_EcdsaPublicKey,
    );
}
extern "C" {
    #[doc = " Output the given MPI value to the given buffer in network"]
    #[doc = " byte order.  The MPI @a val may not be negative."]
    #[doc = ""]
    #[doc = " @param buf where to output to"]
    #[doc = " @param size number of bytes in @a buf"]
    #[doc = " @param val value to write to @a buf"]
    pub fn GNUNET_CRYPTO_mpi_print_unsigned(
        buf: *mut ::std::os::raw::c_void,
        size: usize,
        val: gcry_mpi_t,
    );
}
extern "C" {
    #[doc = " Convert data buffer into MPI value."]
    #[doc = " The buffer is interpreted as network"]
    #[doc = " byte order, unsigned integer."]
    #[doc = ""]
    #[doc = " @param result where to store MPI value (allocated)"]
    #[doc = " @param data raw data (GCRYMPI_FMT_USG)"]
    #[doc = " @param size number of bytes in @a data"]
    pub fn GNUNET_CRYPTO_mpi_scan_unsigned(
        result: *mut gcry_mpi_t,
        data: *const ::std::os::raw::c_void,
        size: usize,
    );
}
extern "C" {
    #[doc = " Create a freshly generated paillier public key."]
    #[doc = ""]
    #[doc = " @param[out] public_key Where to store the public key?"]
    #[doc = " @param[out] private_key Where to store the private key?"]
    pub fn GNUNET_CRYPTO_paillier_create(
        public_key: *mut GNUNET_CRYPTO_PaillierPublicKey,
        private_key: *mut GNUNET_CRYPTO_PaillierPrivateKey,
    );
}
extern "C" {
    #[doc = " Encrypt a plaintext with a paillier public key."]
    #[doc = ""]
    #[doc = " @param public_key Public key to use."]
    #[doc = " @param m Plaintext to encrypt."]
    #[doc = " @param desired_ops How many homomorphic ops the caller intends to use"]
    #[doc = " @param[out] ciphertext Encryption of @a plaintext with @a public_key."]
    #[doc = " @return guaranteed number of supported homomorphic operations >= 1,"]
    #[doc = "         or desired_ops, in case that is lower,"]
    #[doc = "         or -1 if less than one homomorphic operation is possible"]
    pub fn GNUNET_CRYPTO_paillier_encrypt(
        public_key: *const GNUNET_CRYPTO_PaillierPublicKey,
        m: gcry_mpi_t,
        desired_ops: ::std::os::raw::c_int,
        ciphertext: *mut GNUNET_CRYPTO_PaillierCiphertext,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Decrypt a paillier ciphertext with a private key."]
    #[doc = ""]
    #[doc = " @param private_key Private key to use for decryption."]
    #[doc = " @param public_key Public key to use for decryption."]
    #[doc = " @param ciphertext Ciphertext to decrypt."]
    #[doc = " @param[out] m Decryption of @a ciphertext with @private_key."]
    pub fn GNUNET_CRYPTO_paillier_decrypt(
        private_key: *const GNUNET_CRYPTO_PaillierPrivateKey,
        public_key: *const GNUNET_CRYPTO_PaillierPublicKey,
        ciphertext: *const GNUNET_CRYPTO_PaillierCiphertext,
        m: gcry_mpi_t,
    );
}
extern "C" {
    #[doc = " Compute a ciphertext that represents the sum of the plaintext in @a x1 and @a x2"]
    #[doc = ""]
    #[doc = " Note that this operation can only be done a finite number of times"]
    #[doc = " before an overflow occurs."]
    #[doc = ""]
    #[doc = " @param public_key Public key to use for encryption."]
    #[doc = " @param c1 Paillier cipher text."]
    #[doc = " @param c2 Paillier cipher text."]
    #[doc = " @param[out] result Result of the homomorphic operation."]
    #[doc = " @return #GNUNET_OK if the result could be computed,"]
    #[doc = "         #GNUNET_SYSERR if no more homomorphic operations are remaining."]
    pub fn GNUNET_CRYPTO_paillier_hom_add(
        public_key: *const GNUNET_CRYPTO_PaillierPublicKey,
        c1: *const GNUNET_CRYPTO_PaillierCiphertext,
        c2: *const GNUNET_CRYPTO_PaillierCiphertext,
        result: *mut GNUNET_CRYPTO_PaillierCiphertext,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get the number of remaining supported homomorphic operations."]
    #[doc = ""]
    #[doc = " @param c Paillier cipher text."]
    #[doc = " @return the number of remaining homomorphic operations"]
    pub fn GNUNET_CRYPTO_paillier_hom_get_remaining(
        c: *const GNUNET_CRYPTO_PaillierCiphertext,
    ) -> ::std::os::raw::c_int;
}
#[doc = " The private information of an RSA key pair."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_RsaPrivateKey {
    _unused: [u8; 0],
}
#[doc = " The public information of an RSA key pair."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_RsaPublicKey {
    _unused: [u8; 0],
}
#[doc = " Constant-size pre-secret for blinding key generation."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_RsaBlindingKeySecret {
    #[doc = " Bits used to generate the blinding key.  256 bits"]
    #[doc = " of entropy is enough."]
    pub pre_secret: [u32; 8usize],
}
#[test]
fn bindgen_test_layout_GNUNET_CRYPTO_RsaBlindingKeySecret() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_CRYPTO_RsaBlindingKeySecret>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_CRYPTO_RsaBlindingKeySecret))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_CRYPTO_RsaBlindingKeySecret>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_CRYPTO_RsaBlindingKeySecret)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_CRYPTO_RsaBlindingKeySecret>())).pre_secret as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_CRYPTO_RsaBlindingKeySecret),
            "::",
            stringify!(pre_secret)
        )
    );
}
#[doc = " @brief an RSA signature"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CRYPTO_RsaSignature {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Create a new private key. Caller must free return value."]
    #[doc = ""]
    #[doc = " @param len length of the key in bits (i.e. 2048)"]
    #[doc = " @return fresh private key"]
    pub fn GNUNET_CRYPTO_rsa_private_key_create(
        len: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_CRYPTO_RsaPrivateKey;
}
extern "C" {
    #[doc = " Free memory occupied by the private key."]
    #[doc = ""]
    #[doc = " @param key pointer to the memory to free"]
    pub fn GNUNET_CRYPTO_rsa_private_key_free(key: *mut GNUNET_CRYPTO_RsaPrivateKey);
}
extern "C" {
    #[doc = " Encode the private key in a format suitable for"]
    #[doc = " storing it into a file."]
    #[doc = ""]
    #[doc = " @param key the private key"]
    #[doc = " @param[out] buffer set to a buffer with the encoded key"]
    #[doc = " @return size of memory allocatedin @a buffer"]
    pub fn GNUNET_CRYPTO_rsa_private_key_encode(
        key: *const GNUNET_CRYPTO_RsaPrivateKey,
        buffer: *mut *mut ::std::os::raw::c_void,
    ) -> usize;
}
extern "C" {
    #[doc = " Decode the private key from the data-format back"]
    #[doc = " to the \"normal\", internal format."]
    #[doc = ""]
    #[doc = " @param buf the buffer where the private key data is stored"]
    #[doc = " @param buf_size the size of the data in @a buf"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CRYPTO_rsa_private_key_decode(
        buf: *const ::std::os::raw::c_void,
        buf_size: usize,
    ) -> *mut GNUNET_CRYPTO_RsaPrivateKey;
}
extern "C" {
    #[doc = " Duplicate the given private key"]
    #[doc = ""]
    #[doc = " @param key the private key to duplicate"]
    #[doc = " @return the duplicate key; NULL upon error"]
    pub fn GNUNET_CRYPTO_rsa_private_key_dup(
        key: *const GNUNET_CRYPTO_RsaPrivateKey,
    ) -> *mut GNUNET_CRYPTO_RsaPrivateKey;
}
extern "C" {
    #[doc = " Extract the public key of the given private key."]
    #[doc = ""]
    #[doc = " @param priv the private key"]
    #[doc = " @return NULL on error, otherwise the public key"]
    pub fn GNUNET_CRYPTO_rsa_private_key_get_public(
        priv_: *const GNUNET_CRYPTO_RsaPrivateKey,
    ) -> *mut GNUNET_CRYPTO_RsaPublicKey;
}
extern "C" {
    #[doc = " Compute hash over the public key."]
    #[doc = ""]
    #[doc = " @param key public key to hash"]
    #[doc = " @param hc where to store the hash code"]
    pub fn GNUNET_CRYPTO_rsa_public_key_hash(
        key: *const GNUNET_CRYPTO_RsaPublicKey,
        hc: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " Obtain the length of the RSA key in bits."]
    #[doc = ""]
    #[doc = " @param key the public key to introspect"]
    #[doc = " @return length of the key in bits"]
    pub fn GNUNET_CRYPTO_rsa_public_key_len(
        key: *const GNUNET_CRYPTO_RsaPublicKey,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Free memory occupied by the public key."]
    #[doc = ""]
    #[doc = " @param key pointer to the memory to free"]
    pub fn GNUNET_CRYPTO_rsa_public_key_free(key: *mut GNUNET_CRYPTO_RsaPublicKey);
}
extern "C" {
    #[doc = " Encode the public key in a format suitable for"]
    #[doc = " storing it into a file."]
    #[doc = ""]
    #[doc = " @param key the private key"]
    #[doc = " @param[out] buffer set to a buffer with the encoded key"]
    #[doc = " @return size of memory allocated in @a buffer"]
    pub fn GNUNET_CRYPTO_rsa_public_key_encode(
        key: *const GNUNET_CRYPTO_RsaPublicKey,
        buffer: *mut *mut ::std::os::raw::c_void,
    ) -> usize;
}
extern "C" {
    #[doc = " Decode the public key from the data-format back"]
    #[doc = " to the \"normal\", internal format."]
    #[doc = ""]
    #[doc = " @param buf the buffer where the public key data is stored"]
    #[doc = " @param len the length of the data in @a buf"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CRYPTO_rsa_public_key_decode(
        buf: *const ::std::os::raw::c_char,
        len: usize,
    ) -> *mut GNUNET_CRYPTO_RsaPublicKey;
}
extern "C" {
    #[doc = " Duplicate the given public key"]
    #[doc = ""]
    #[doc = " @param key the public key to duplicate"]
    #[doc = " @return the duplicate key; NULL upon error"]
    pub fn GNUNET_CRYPTO_rsa_public_key_dup(
        key: *const GNUNET_CRYPTO_RsaPublicKey,
    ) -> *mut GNUNET_CRYPTO_RsaPublicKey;
}
extern "C" {
    #[doc = " Compare the values of two signatures."]
    #[doc = ""]
    #[doc = " @param s1 one signature"]
    #[doc = " @param s2 the other signature"]
    #[doc = " @return 0 if the two are equal"]
    pub fn GNUNET_CRYPTO_rsa_signature_cmp(
        s1: *const GNUNET_CRYPTO_RsaSignature,
        s2: *const GNUNET_CRYPTO_RsaSignature,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Compare the values of two private keys."]
    #[doc = ""]
    #[doc = " @param p1 one private key"]
    #[doc = " @param p2 the other private key"]
    #[doc = " @return 0 if the two are equal"]
    pub fn GNUNET_CRYPTO_rsa_private_key_cmp(
        p1: *const GNUNET_CRYPTO_RsaPrivateKey,
        p2: *const GNUNET_CRYPTO_RsaPrivateKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Compare the values of two public keys."]
    #[doc = ""]
    #[doc = " @param p1 one public key"]
    #[doc = " @param p2 the other public key"]
    #[doc = " @return 0 if the two are equal"]
    pub fn GNUNET_CRYPTO_rsa_public_key_cmp(
        p1: *const GNUNET_CRYPTO_RsaPublicKey,
        p2: *const GNUNET_CRYPTO_RsaPublicKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Blinds the given message with the given blinding key"]
    #[doc = ""]
    #[doc = " @param hash hash of the message to sign"]
    #[doc = " @param bkey the blinding key"]
    #[doc = " @param pkey the public key of the signer"]
    #[doc = " @param[out] buf set to a buffer with the blinded message to be signed"]
    #[doc = " @param[out] buf_size number of bytes stored in @a buf"]
    #[doc = " @return #GNUNET_YES if successful, #GNUNET_NO if RSA key is malicious"]
    pub fn GNUNET_CRYPTO_rsa_blind(
        hash: *const GNUNET_HashCode,
        bks: *const GNUNET_CRYPTO_RsaBlindingKeySecret,
        pkey: *mut GNUNET_CRYPTO_RsaPublicKey,
        buf: *mut *mut ::std::os::raw::c_void,
        buf_size: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sign a blinded value, which must be a full domain hash of a message."]
    #[doc = ""]
    #[doc = " @param key private key to use for the signing"]
    #[doc = " @param msg the (blinded) message to sign"]
    #[doc = " @param msg_len number of bytes in @a msg to sign"]
    #[doc = " @return NULL on error, signature on success"]
    pub fn GNUNET_CRYPTO_rsa_sign_blinded(
        key: *const GNUNET_CRYPTO_RsaPrivateKey,
        msg: *const ::std::os::raw::c_void,
        msg_len: usize,
    ) -> *mut GNUNET_CRYPTO_RsaSignature;
}
extern "C" {
    #[doc = " Create and sign a full domain hash of a message."]
    #[doc = ""]
    #[doc = " @param key private key to use for the signing"]
    #[doc = " @param hash the hash of the message to sign"]
    #[doc = " @return NULL on error, including a malicious RSA key, signature on success"]
    pub fn GNUNET_CRYPTO_rsa_sign_fdh(
        key: *const GNUNET_CRYPTO_RsaPrivateKey,
        hash: *const GNUNET_HashCode,
    ) -> *mut GNUNET_CRYPTO_RsaSignature;
}
extern "C" {
    #[doc = " Free memory occupied by signature."]
    #[doc = ""]
    #[doc = " @param sig memory to free"]
    pub fn GNUNET_CRYPTO_rsa_signature_free(sig: *mut GNUNET_CRYPTO_RsaSignature);
}
extern "C" {
    #[doc = " Encode the given signature in a format suitable for storing it into a file."]
    #[doc = ""]
    #[doc = " @param sig the signature"]
    #[doc = " @param[out] buffer set to a buffer with the encoded key"]
    #[doc = " @return size of memory allocated in @a buffer"]
    pub fn GNUNET_CRYPTO_rsa_signature_encode(
        sig: *const GNUNET_CRYPTO_RsaSignature,
        buffer: *mut *mut ::std::os::raw::c_void,
    ) -> usize;
}
extern "C" {
    #[doc = " Decode the signature from the data-format back to the \"normal\", internal"]
    #[doc = " format."]
    #[doc = ""]
    #[doc = " @param buf the buffer where the public key data is stored"]
    #[doc = " @param buf_size the number of bytes of the data in @a buf"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CRYPTO_rsa_signature_decode(
        buf: *const ::std::os::raw::c_void,
        buf_size: usize,
    ) -> *mut GNUNET_CRYPTO_RsaSignature;
}
extern "C" {
    #[doc = " Duplicate the given rsa signature"]
    #[doc = ""]
    #[doc = " @param sig the signature to duplicate"]
    #[doc = " @return the duplicate key; NULL upon error"]
    pub fn GNUNET_CRYPTO_rsa_signature_dup(
        sig: *const GNUNET_CRYPTO_RsaSignature,
    ) -> *mut GNUNET_CRYPTO_RsaSignature;
}
extern "C" {
    #[doc = " Unblind a blind-signed signature.  The signature should have been generated"]
    #[doc = " with #GNUNET_CRYPTO_rsa_sign() using a hash that was blinded with"]
    #[doc = " #GNUNET_CRYPTO_rsa_blind()."]
    #[doc = ""]
    #[doc = " @param sig the signature made on the blinded signature purpose"]
    #[doc = " @param bks the blinding key secret used to blind the signature purpose"]
    #[doc = " @param pkey the public key of the signer"]
    #[doc = " @return unblinded signature on success, NULL if RSA key is bad or malicious."]
    pub fn GNUNET_CRYPTO_rsa_unblind(
        sig: *const GNUNET_CRYPTO_RsaSignature,
        bks: *const GNUNET_CRYPTO_RsaBlindingKeySecret,
        pkey: *mut GNUNET_CRYPTO_RsaPublicKey,
    ) -> *mut GNUNET_CRYPTO_RsaSignature;
}
extern "C" {
    #[doc = " Verify whether the given hash corresponds to the given signature and the"]
    #[doc = " signature is valid with respect to the given public key."]
    #[doc = ""]
    #[doc = " @param hash the message to verify to match the @a sig"]
    #[doc = " @param sig signature that is being validated"]
    #[doc = " @param public_key public key of the signer"]
    #[doc = " @returns #GNUNET_YES if ok, #GNUNET_NO if RSA key is malicious, #GNUNET_SYSERR if signature"]
    pub fn GNUNET_CRYPTO_rsa_verify(
        hash: *const GNUNET_HashCode,
        sig: *const GNUNET_CRYPTO_RsaSignature,
        public_key: *const GNUNET_CRYPTO_RsaPublicKey,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Time for absolute times used by GNUnet, in microseconds."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TIME_Absolute {
    #[doc = " The actual value."]
    pub abs_value_us: u64,
}
#[test]
fn bindgen_test_layout_GNUNET_TIME_Absolute() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TIME_Absolute>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TIME_Absolute))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TIME_Absolute>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_TIME_Absolute))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TIME_Absolute>())).abs_value_us as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TIME_Absolute),
            "::",
            stringify!(abs_value_us)
        )
    );
}
#[doc = " Time for relative time used by GNUnet, in microseconds."]
#[doc = " Always positive, so we can only refer to future time."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TIME_Relative {
    #[doc = " The actual value."]
    pub rel_value_us: u64,
}
#[test]
fn bindgen_test_layout_GNUNET_TIME_Relative() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TIME_Relative>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TIME_Relative))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TIME_Relative>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_TIME_Relative))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TIME_Relative>())).rel_value_us as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TIME_Relative),
            "::",
            stringify!(rel_value_us)
        )
    );
}
#[doc = " Time for relative time used by GNUnet, in microseconds and in network byte order."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TIME_RelativeNBO {
    #[doc = " The actual value (in network byte order)."]
    pub rel_value_us__: u64,
}
#[test]
fn bindgen_test_layout_GNUNET_TIME_RelativeNBO() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TIME_RelativeNBO>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TIME_RelativeNBO))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TIME_RelativeNBO>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TIME_RelativeNBO))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TIME_RelativeNBO>())).rel_value_us__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TIME_RelativeNBO),
            "::",
            stringify!(rel_value_us__)
        )
    );
}
#[doc = " Time for absolute time used by GNUnet, in microseconds and in network byte order."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TIME_AbsoluteNBO {
    #[doc = " The actual value (in network byte order)."]
    pub abs_value_us__: u64,
}
#[test]
fn bindgen_test_layout_GNUNET_TIME_AbsoluteNBO() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TIME_AbsoluteNBO>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TIME_AbsoluteNBO))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TIME_AbsoluteNBO>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TIME_AbsoluteNBO))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TIME_AbsoluteNBO>())).abs_value_us__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TIME_AbsoluteNBO),
            "::",
            stringify!(abs_value_us__)
        )
    );
}
extern "C" {
    #[doc = " Randomized exponential back-off, starting at 1 ms"]
    #[doc = " and going up by a factor of 2+r, where 0 <= r <= 0.5, up"]
    #[doc = " to a maximum of the given threshold."]
    #[doc = ""]
    #[doc = " @param rt current backoff time, initially zero"]
    #[doc = " @param threshold maximum value for backoff"]
    #[doc = " @return the next backoff time"]
    pub fn GNUNET_TIME_randomized_backoff(
        rt: GNUNET_TIME_Relative,
        threshold: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return a random time value between 0.5*r and 1.5*r."]
    #[doc = ""]
    #[doc = " @param r input time for scaling"]
    #[doc = " @return randomized time"]
    pub fn GNUNET_TIME_randomize(r: GNUNET_TIME_Relative) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return relative time of 0ms."]
    pub fn GNUNET_TIME_relative_get_zero_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return absolute time of 0ms."]
    pub fn GNUNET_TIME_absolute_get_zero_() -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Return relative time of 1 microsecond."]
    pub fn GNUNET_TIME_relative_get_unit_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return relative time of 1ms."]
    pub fn GNUNET_TIME_relative_get_millisecond_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return relative time of 1s."]
    pub fn GNUNET_TIME_relative_get_second_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return relative time of 1 minute."]
    pub fn GNUNET_TIME_relative_get_minute_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return relative time of 1 hour."]
    pub fn GNUNET_TIME_relative_get_hour_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return \"forever\"."]
    pub fn GNUNET_TIME_relative_get_forever_() -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return \"forever\"."]
    pub fn GNUNET_TIME_absolute_get_forever_() -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Get the current time."]
    #[doc = ""]
    #[doc = " @return the current time"]
    pub fn GNUNET_TIME_absolute_get() -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Convert relative time to an absolute time in the"]
    #[doc = " future."]
    #[doc = ""]
    #[doc = " @param rel relative time to convert"]
    #[doc = " @return timestamp that is \"rel\" in the future, or FOREVER if rel==FOREVER (or if we would overflow)"]
    pub fn GNUNET_TIME_relative_to_absolute(rel: GNUNET_TIME_Relative) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Round a time value so that it is suitable for transmission"]
    #[doc = " via JSON encodings."]
    #[doc = ""]
    #[doc = " @param at time to round"]
    #[doc = " @return #GNUNET_OK if time was already rounded, #GNUNET_NO if"]
    #[doc = "         it was just now rounded"]
    pub fn GNUNET_TIME_round_abs(at: *mut GNUNET_TIME_Absolute) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Round a time value so that it is suitable for transmission"]
    #[doc = " via JSON encodings."]
    #[doc = ""]
    #[doc = " @param rt time to round"]
    #[doc = " @return #GNUNET_OK if time was already rounded, #GNUNET_NO if"]
    #[doc = "         it was just now rounded"]
    pub fn GNUNET_TIME_round_rel(rt: *mut GNUNET_TIME_Relative) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Return the minimum of two relative time values."]
    #[doc = ""]
    #[doc = " @param t1 first timestamp"]
    #[doc = " @param t2 other timestamp"]
    #[doc = " @return timestamp that is smaller"]
    pub fn GNUNET_TIME_relative_min(
        t1: GNUNET_TIME_Relative,
        t2: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return the maximum of two relative time values."]
    #[doc = ""]
    #[doc = " @param t1 first timestamp"]
    #[doc = " @param t2 other timestamp"]
    #[doc = " @return timestamp that is larger"]
    pub fn GNUNET_TIME_relative_max(
        t1: GNUNET_TIME_Relative,
        t2: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Return the minimum of two absolute time values."]
    #[doc = ""]
    #[doc = " @param t1 first timestamp"]
    #[doc = " @param t2 other timestamp"]
    #[doc = " @return timestamp that is smaller"]
    pub fn GNUNET_TIME_absolute_min(
        t1: GNUNET_TIME_Absolute,
        t2: GNUNET_TIME_Absolute,
    ) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Return the maximum of two absolute time values."]
    #[doc = ""]
    #[doc = " @param t1 first timestamp"]
    #[doc = " @param t2 other timestamp"]
    #[doc = " @return timestamp that is smaller"]
    pub fn GNUNET_TIME_absolute_max(
        t1: GNUNET_TIME_Absolute,
        t2: GNUNET_TIME_Absolute,
    ) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Given a timestamp in the future, how much time"]
    #[doc = " remains until then?"]
    #[doc = ""]
    #[doc = " @param future some absolute time, typically in the future"]
    #[doc = " @return future - now, or 0 if now >= future, or FOREVER if future==FOREVER."]
    pub fn GNUNET_TIME_absolute_get_remaining(future: GNUNET_TIME_Absolute)
        -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Calculate the estimate time of arrival/completion"]
    #[doc = " for an operation."]
    #[doc = ""]
    #[doc = " @param start when did the operation start?"]
    #[doc = " @param finished how much has been done?"]
    #[doc = " @param total how much must be done overall (same unit as for \"finished\")"]
    #[doc = " @return remaining duration for the operation,"]
    #[doc = "        assuming it continues at the same speed"]
    pub fn GNUNET_TIME_calculate_eta(
        start: GNUNET_TIME_Absolute,
        finished: u64,
        total: u64,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Compute the time difference between the given start and end times."]
    #[doc = " Use this function instead of actual subtraction to ensure that"]
    #[doc = " \"FOREVER\" and overflows are handled correctly."]
    #[doc = ""]
    #[doc = " @param start some absolute time"]
    #[doc = " @param end some absolute time (typically larger or equal to start)"]
    #[doc = " @return 0 if start >= end; FOREVER if end==FOREVER; otherwise end - start"]
    pub fn GNUNET_TIME_absolute_get_difference(
        start: GNUNET_TIME_Absolute,
        end: GNUNET_TIME_Absolute,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Get the duration of an operation as the"]
    #[doc = " difference of the current time and the given start time \"hence\"."]
    #[doc = ""]
    #[doc = " @param whence some absolute time, typically in the past"]
    #[doc = " @return 0 if hence > now, otherwise now-hence."]
    pub fn GNUNET_TIME_absolute_get_duration(whence: GNUNET_TIME_Absolute) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Add a given relative duration to the"]
    #[doc = " given start time."]
    #[doc = ""]
    #[doc = " @param start some absolute time"]
    #[doc = " @param duration some relative time to add"]
    #[doc = " @return FOREVER if either argument is FOREVER or on overflow; start+duration otherwise"]
    pub fn GNUNET_TIME_absolute_add(
        start: GNUNET_TIME_Absolute,
        duration: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Subtract a given relative duration from the"]
    #[doc = " given start time."]
    #[doc = ""]
    #[doc = " @param start some absolute time"]
    #[doc = " @param duration some relative time to subtract"]
    #[doc = " @return ZERO if start <= duration, or FOREVER if start time is FOREVER; start-duration otherwise"]
    pub fn GNUNET_TIME_absolute_subtract(
        start: GNUNET_TIME_Absolute,
        duration: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Multiply relative time by a given factor."]
    #[doc = ""]
    #[doc = " @param rel some duration"]
    #[doc = " @param factor integer to multiply with"]
    #[doc = " @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor"]
    pub fn GNUNET_TIME_relative_multiply(
        rel: GNUNET_TIME_Relative,
        factor: ::std::os::raw::c_ulonglong,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Saturating multiply relative time by a given factor."]
    #[doc = ""]
    #[doc = " @param rel some duration"]
    #[doc = " @param factor integer to multiply with"]
    #[doc = " @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor"]
    pub fn GNUNET_TIME_relative_saturating_multiply(
        rel: GNUNET_TIME_Relative,
        factor: ::std::os::raw::c_ulonglong,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Divide relative time by a given factor."]
    #[doc = ""]
    #[doc = " @param rel some duration"]
    #[doc = " @param factor integer to divide by"]
    #[doc = " @return FOREVER if rel=FOREVER or factor==0; otherwise rel/factor"]
    pub fn GNUNET_TIME_relative_divide(
        rel: GNUNET_TIME_Relative,
        factor: ::std::os::raw::c_ulonglong,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Add relative times together."]
    #[doc = ""]
    #[doc = " @param a1 some relative time"]
    #[doc = " @param a2 some other relative time"]
    #[doc = " @return FOREVER if either argument is FOREVER or on overflow; a1+a2 otherwise"]
    pub fn GNUNET_TIME_relative_add(
        a1: GNUNET_TIME_Relative,
        a2: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Subtract relative timestamp from the other."]
    #[doc = ""]
    #[doc = " @param a1 first timestamp"]
    #[doc = " @param a2 second timestamp"]
    #[doc = " @return ZERO if a2>=a1 (including both FOREVER), FOREVER if a1 is FOREVER, a1-a2 otherwise"]
    pub fn GNUNET_TIME_relative_subtract(
        a1: GNUNET_TIME_Relative,
        a2: GNUNET_TIME_Relative,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Convert relative time to network byte order."]
    #[doc = ""]
    #[doc = " @param a time to convert"]
    #[doc = " @return converted time value"]
    pub fn GNUNET_TIME_relative_hton(a: GNUNET_TIME_Relative) -> GNUNET_TIME_RelativeNBO;
}
extern "C" {
    #[doc = " Convert relative time from network byte order."]
    #[doc = ""]
    #[doc = " @param a time to convert"]
    #[doc = " @return converted time value"]
    pub fn GNUNET_TIME_relative_ntoh(a: GNUNET_TIME_RelativeNBO) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Convert absolute time to network byte order."]
    #[doc = ""]
    #[doc = " @param a time to convert"]
    #[doc = " @return converted time value"]
    pub fn GNUNET_TIME_absolute_hton(a: GNUNET_TIME_Absolute) -> GNUNET_TIME_AbsoluteNBO;
}
extern "C" {
    #[doc = " Convert absolute time from network byte order."]
    #[doc = ""]
    #[doc = " @param a time to convert"]
    #[doc = " @return converted time value"]
    pub fn GNUNET_TIME_absolute_ntoh(a: GNUNET_TIME_AbsoluteNBO) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Set the timestamp offset for this instance."]
    #[doc = ""]
    #[doc = " @param offset the offset to skew the locale time by"]
    pub fn GNUNET_TIME_set_offset(offset: ::std::os::raw::c_longlong);
}
extern "C" {
    #[doc = " Get the timestamp offset for this instance."]
    #[doc = ""]
    #[doc = " @return the offset we currently skew the locale time by"]
    pub fn GNUNET_TIME_get_offset() -> ::std::os::raw::c_longlong;
}
extern "C" {
    #[doc = " Return the current year (i.e. '2011')."]
    pub fn GNUNET_TIME_get_current_year() -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Convert a year to an expiration time of January 1st of that year."]
    #[doc = ""]
    #[doc = " @param year a year (after 1970, please ;-))."]
    #[doc = " @return absolute time for January 1st of that year."]
    pub fn GNUNET_TIME_year_to_time(year: ::std::os::raw::c_uint) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Convert an expiration time to the respective year (rounds)"]
    #[doc = ""]
    #[doc = " @param at absolute time"]
    #[doc = " @return year a year (after 1970), 0 on error"]
    pub fn GNUNET_TIME_time_to_year(at: GNUNET_TIME_Absolute) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Obtain the current time and make sure it is monotonically"]
    #[doc = " increasing.  Guards against systems without an RTC or"]
    #[doc = " clocks running backwards and other nasty surprises. Does"]
    #[doc = " not guarantee that the returned time is near the current"]
    #[doc = " time returned by #GNUNET_TIME_absolute_get().  Two"]
    #[doc = " subsequent calls (within a short time period) may return the"]
    #[doc = " same value. Persists the last returned time on disk to"]
    #[doc = " ensure that time never goes backwards. As a result, the"]
    #[doc = " resulting value can be used to check if a message is the"]
    #[doc = " \"most recent\" value and replays of older messages (from"]
    #[doc = " the same origin) would be discarded."]
    #[doc = ""]
    #[doc = " @param cfg configuration, used to determine where to"]
    #[doc = "   store the time; user can also insist RTC is working"]
    #[doc = "   nicely and disable the feature"]
    #[doc = " @return monotonically increasing time"]
    pub fn GNUNET_TIME_absolute_get_monotonic(
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> GNUNET_TIME_Absolute;
}
#[doc = " 32-bit bandwidth used for network exchange by GNUnet, in bytes per second."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BANDWIDTH_Value32NBO {
    #[doc = " The actual value (bytes per second)."]
    pub value__: u32,
}
#[test]
fn bindgen_test_layout_GNUNET_BANDWIDTH_Value32NBO() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_BANDWIDTH_Value32NBO>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_BANDWIDTH_Value32NBO))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_BANDWIDTH_Value32NBO>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_BANDWIDTH_Value32NBO))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Value32NBO>())).value__ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Value32NBO),
            "::",
            stringify!(value__)
        )
    );
}
#[doc = " Callback to be called by the bandwidth tracker if the tracker"]
#[doc = " was updated and the client should update it's delay values"]
#[doc = ""]
#[doc = " @param cls a closure to pass"]
pub type GNUNET_BANDWIDTH_TrackerUpdateCallback =
    ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>;
#[doc = " Callback to be called by the bandwidth tracker if the tracker"]
#[doc = " was updated and the client should update it's delay values"]
#[doc = ""]
#[doc = " @param cls a closure to pass"]
pub type GNUNET_BANDWIDTH_ExcessNotificationCallback =
    ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>;
#[doc = " Struct to track available bandwidth.  Combines a time stamp with a"]
#[doc = " number of bytes transmitted, a quota and a maximum amount that"]
#[doc = " carries over.  Not opaque so that it can be inlined into data"]
#[doc = " structures (reducing malloc-ing); however, values should not be"]
#[doc = " accessed directly by clients (hence the '__')."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BANDWIDTH_Tracker {
    #[doc = " Closure for @e update_cb."]
    pub update_cb_cls: *mut ::std::os::raw::c_void,
    #[doc = " Function we call if the tracker's bandwidth is increased and a"]
    #[doc = " previously returned timeout might now expire earlier."]
    pub update_cb: GNUNET_BANDWIDTH_TrackerUpdateCallback,
    #[doc = " Closure for @e excess_cb."]
    pub excess_cb_cls: *mut ::std::os::raw::c_void,
    #[doc = " Function we call if the tracker is about to throw"]
    #[doc = " away bandwidth due to excess (max carry exceeded)."]
    pub excess_cb: GNUNET_BANDWIDTH_ExcessNotificationCallback,
    #[doc = " Number of bytes consumed since we last updated the tracker."]
    pub consumption_since_last_update__: i64,
    #[doc = " Task scheduled to call the @e excess_cb once we have"]
    #[doc = " reached the maximum bandwidth the tracker can hold."]
    pub excess_task: *mut GNUNET_SCHEDULER_Task,
    #[doc = " Time when we last updated the tracker."]
    pub last_update__: GNUNET_TIME_Absolute,
    #[doc = " Bandwidth limit to enforce in bytes per second."]
    pub available_bytes_per_s__: u32,
    #[doc = " Maximum number of seconds over which bandwidth may \"accumulate\"."]
    #[doc = " Note that additionally, we also always allow at least"]
    #[doc = " #GNUNET_MAX_MESSAGE_SIZE to accumulate."]
    pub max_carry_s__: u32,
}
#[test]
fn bindgen_test_layout_GNUNET_BANDWIDTH_Tracker() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_BANDWIDTH_Tracker>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_BANDWIDTH_Tracker))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_BANDWIDTH_Tracker>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_BANDWIDTH_Tracker))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).update_cb_cls as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(update_cb_cls)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).update_cb as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(update_cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).excess_cb_cls as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(excess_cb_cls)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).excess_cb as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(excess_cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).consumption_since_last_update__
                as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(consumption_since_last_update__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).excess_task as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(excess_task)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).last_update__ as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(last_update__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).available_bytes_per_s__ as *const _
                as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(available_bytes_per_s__)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BANDWIDTH_Tracker>())).max_carry_s__ as *const _ as usize
        },
        60usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BANDWIDTH_Tracker),
            "::",
            stringify!(max_carry_s__)
        )
    );
}
extern "C" {
    #[doc = " Create a new bandwidth value."]
    #[doc = ""]
    #[doc = " @param bytes_per_second value to create"]
    #[doc = " @return the new bandwidth value"]
    pub fn GNUNET_BANDWIDTH_value_init(bytes_per_second: u32) -> GNUNET_BANDWIDTH_Value32NBO;
}
extern "C" {
    #[doc = " At the given bandwidth, calculate how much traffic will be"]
    #[doc = " available until the given deadline."]
    #[doc = ""]
    #[doc = " @param bps bandwidth"]
    #[doc = " @param deadline when is the deadline"]
    #[doc = " @return number of bytes available at bps until deadline"]
    pub fn GNUNET_BANDWIDTH_value_get_available_until(
        bps: GNUNET_BANDWIDTH_Value32NBO,
        deadline: GNUNET_TIME_Relative,
    ) -> u64;
}
extern "C" {
    #[doc = " At the given bandwidth, calculate how long it would take for"]
    #[doc = " 'size' bytes to be transmitted."]
    #[doc = ""]
    #[doc = " @param bps bandwidth"]
    #[doc = " @param size number of bytes we want to have available"]
    #[doc = " @return how long it would take"]
    pub fn GNUNET_BANDWIDTH_value_get_delay_for(
        bps: GNUNET_BANDWIDTH_Value32NBO,
        size: u64,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Compute the MIN of two bandwidth values."]
    #[doc = ""]
    #[doc = " @param b1 first value"]
    #[doc = " @param b2 second value"]
    #[doc = " @return the min of b1 and b2"]
    pub fn GNUNET_BANDWIDTH_value_min(
        b1: GNUNET_BANDWIDTH_Value32NBO,
        b2: GNUNET_BANDWIDTH_Value32NBO,
    ) -> GNUNET_BANDWIDTH_Value32NBO;
}
extern "C" {
    #[doc = " Compute the MAX of two bandwidth values."]
    #[doc = ""]
    #[doc = " @param b1 first value"]
    #[doc = " @param b2 second value"]
    #[doc = " @return the min of b1 and b2"]
    pub fn GNUNET_BANDWIDTH_value_max(
        b1: GNUNET_BANDWIDTH_Value32NBO,
        b2: GNUNET_BANDWIDTH_Value32NBO,
    ) -> GNUNET_BANDWIDTH_Value32NBO;
}
extern "C" {
    #[doc = " Compute the SUM of two bandwidth values."]
    #[doc = ""]
    #[doc = " @param b1 first value"]
    #[doc = " @param b2 second value"]
    #[doc = " @return the sum of b1 and b2"]
    pub fn GNUNET_BANDWIDTH_value_sum(
        b1: GNUNET_BANDWIDTH_Value32NBO,
        b2: GNUNET_BANDWIDTH_Value32NBO,
    ) -> GNUNET_BANDWIDTH_Value32NBO;
}
extern "C" {
    #[doc = " Initialize bandwidth tracker.  Note that in addition to the"]
    #[doc = " 'max_carry_s' limit, we also always allow at least"]
    #[doc = " #GNUNET_MAX_MESSAGE_SIZE to accumulate.  So if the"]
    #[doc = " bytes-per-second limit is so small that within 'max_carry_s' not"]
    #[doc = " even #GNUNET_MAX_MESSAGE_SIZE is allowed to accumulate, it is"]
    #[doc = " ignored and replaced by #GNUNET_MAX_MESSAGE_SIZE (which is in"]
    #[doc = " bytes)."]
    #[doc = ""]
    #[doc = " @param av tracker to initialize"]
    #[doc = " @param update_cb callback to notify a client about the tracker being updated"]
    #[doc = " @param update_cb_cls cls for the @a update_cb callback"]
    #[doc = " @param bytes_per_second_limit initial limit to assume"]
    #[doc = " @param max_carry_s maximum number of seconds unused bandwidth"]
    #[doc = "        may accumulate before it expires"]
    pub fn GNUNET_BANDWIDTH_tracker_init(
        av: *mut GNUNET_BANDWIDTH_Tracker,
        update_cb: GNUNET_BANDWIDTH_TrackerUpdateCallback,
        update_cb_cls: *mut ::std::os::raw::c_void,
        bytes_per_second_limit: GNUNET_BANDWIDTH_Value32NBO,
        max_carry_s: u32,
    );
}
extern "C" {
    #[doc = " Initialize bandwidth tracker.  Note that in addition to the"]
    #[doc = " 'max_carry_s' limit, we also always allow at least"]
    #[doc = " #GNUNET_MAX_MESSAGE_SIZE to accumulate.  So if the"]
    #[doc = " bytes-per-second limit is so small that within 'max_carry_s' not"]
    #[doc = " even #GNUNET_MAX_MESSAGE_SIZE is allowed to accumulate, it is"]
    #[doc = " ignored and replaced by #GNUNET_MAX_MESSAGE_SIZE (which is in"]
    #[doc = " bytes)."]
    #[doc = ""]
    #[doc = " @param av tracker to initialize"]
    #[doc = " @param update_cb callback to notify a client about the tracker being updated"]
    #[doc = " @param update_cb_cls cls for the @a update_cb callback"]
    #[doc = " @param bytes_per_second_limit initial limit to assume"]
    #[doc = " @param max_carry_s maximum number of seconds unused bandwidth"]
    #[doc = "        may accumulate before it expires"]
    #[doc = " @param excess_cb callback to notify if we have excess bandwidth"]
    #[doc = " @param excess_cb_cls closure for @a excess_cb"]
    pub fn GNUNET_BANDWIDTH_tracker_init2(
        av: *mut GNUNET_BANDWIDTH_Tracker,
        update_cb: GNUNET_BANDWIDTH_TrackerUpdateCallback,
        update_cb_cls: *mut ::std::os::raw::c_void,
        bytes_per_second_limit: GNUNET_BANDWIDTH_Value32NBO,
        max_carry_s: u32,
        excess_cb: GNUNET_BANDWIDTH_ExcessNotificationCallback,
        excess_cb_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Stop notifying about tracker updates and excess notifications"]
    #[doc = ""]
    #[doc = " @param av the respective trackers"]
    pub fn GNUNET_BANDWIDTH_tracker_notification_stop(av: *mut GNUNET_BANDWIDTH_Tracker);
}
extern "C" {
    #[doc = " Notify the tracker that a certain number of bytes of bandwidth have"]
    #[doc = " been consumed.  Note that it is legal to consume bytes even if not"]
    #[doc = " enough bandwidth is available (in that case,"]
    #[doc = " #GNUNET_BANDWIDTH_tracker_get_delay() may return non-zero delay values"]
    #[doc = " even for a size of zero for a while)."]
    #[doc = ""]
    #[doc = " @param av tracker to update"]
    #[doc = " @param size number of bytes consumed"]
    #[doc = " @return #GNUNET_YES if this consumption is above the limit"]
    pub fn GNUNET_BANDWIDTH_tracker_consume(
        av: *mut GNUNET_BANDWIDTH_Tracker,
        size: isize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Compute how long we should wait until consuming @a size"]
    #[doc = " bytes of bandwidth in order to stay within the given"]
    #[doc = " quota."]
    #[doc = ""]
    #[doc = " @param av tracker to query"]
    #[doc = " @param size number of bytes we would like to consume"]
    #[doc = " @return time to wait for consumption to be OK"]
    pub fn GNUNET_BANDWIDTH_tracker_get_delay(
        av: *mut GNUNET_BANDWIDTH_Tracker,
        size: usize,
    ) -> GNUNET_TIME_Relative;
}
extern "C" {
    #[doc = " Compute how many bytes are available for consumption right now."]
    #[doc = " quota."]
    #[doc = ""]
    #[doc = " @param av tracker to query"]
    #[doc = " @return number of bytes available for consumption right now"]
    pub fn GNUNET_BANDWIDTH_tracker_get_available(av: *mut GNUNET_BANDWIDTH_Tracker) -> i64;
}
extern "C" {
    #[doc = " Update quota of bandwidth tracker."]
    #[doc = ""]
    #[doc = " @param av tracker to initialize"]
    #[doc = " @param bytes_per_second_limit new limit to assume"]
    pub fn GNUNET_BANDWIDTH_tracker_update_quota(
        av: *mut GNUNET_BANDWIDTH_Tracker,
        bytes_per_second_limit: GNUNET_BANDWIDTH_Value32NBO,
    );
}
extern "C" {
    #[doc = " Try to compress the given block of data using libz.  Only returns"]
    #[doc = " the compressed block if compression worked and the new block is"]
    #[doc = " actually smaller.  Decompress using #GNUNET_decompress()."]
    #[doc = ""]
    #[doc = " @param data block to compress; if compression"]
    #[doc = "        resulted in a smaller block, the first"]
    #[doc = "        bytes of data are updated to the compressed"]
    #[doc = "        data"]
    #[doc = " @param old_size number of bytes in data"]
    #[doc = " @param[out] result set to the compressed data, if compression worked"]
    #[doc = " @param[out] new_size set to size of result, if compression worked"]
    #[doc = " @return #GNUNET_YES if compression reduce the size,"]
    #[doc = "         #GNUNET_NO if compression did not help"]
    pub fn GNUNET_try_compression(
        data: *const ::std::os::raw::c_char,
        old_size: usize,
        result: *mut *mut ::std::os::raw::c_char,
        new_size: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Decompress input, return the decompressed data as output.  Dual to"]
    #[doc = " #GNUNET_try_compression(). Caller must set @a output_size to the"]
    #[doc = " number of bytes that were originally compressed."]
    #[doc = ""]
    #[doc = " @param input compressed data"]
    #[doc = " @param input_size number of bytes in input"]
    #[doc = " @param output_size expected size of the output"]
    #[doc = " @return NULL on error, buffer of @a output_size decompressed bytes otherwise"]
    pub fn GNUNET_decompress(
        input: *const ::std::os::raw::c_char,
        input_size: usize,
        output_size: usize,
    ) -> *mut ::std::os::raw::c_char;
}
pub const EXTRACTOR_Options_EXTRACTOR_OPTION_DEFAULT_POLICY: EXTRACTOR_Options = 0;
pub const EXTRACTOR_Options_EXTRACTOR_OPTION_OUT_OF_PROCESS_NO_RESTART: EXTRACTOR_Options = 1;
pub const EXTRACTOR_Options_EXTRACTOR_OPTION_IN_PROCESS: EXTRACTOR_Options = 2;
pub const EXTRACTOR_Options_EXTRACTOR_OPTION_DISABLED: EXTRACTOR_Options = 3;
pub type EXTRACTOR_Options = ::std::os::raw::c_uint;
pub const EXTRACTOR_MetaFormat_EXTRACTOR_METAFORMAT_UNKNOWN: EXTRACTOR_MetaFormat = 0;
pub const EXTRACTOR_MetaFormat_EXTRACTOR_METAFORMAT_UTF8: EXTRACTOR_MetaFormat = 1;
pub const EXTRACTOR_MetaFormat_EXTRACTOR_METAFORMAT_BINARY: EXTRACTOR_MetaFormat = 2;
pub const EXTRACTOR_MetaFormat_EXTRACTOR_METAFORMAT_C_STRING: EXTRACTOR_MetaFormat = 3;
pub type EXTRACTOR_MetaFormat = ::std::os::raw::c_uint;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_RESERVED: EXTRACTOR_MetaType = 0;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MIMETYPE: EXTRACTOR_MetaType = 1;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FILENAME: EXTRACTOR_MetaType = 2;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_COMMENT: EXTRACTOR_MetaType = 3;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TITLE: EXTRACTOR_MetaType = 4;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BOOK_TITLE: EXTRACTOR_MetaType = 5;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BOOK_EDITION: EXTRACTOR_MetaType = 6;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER: EXTRACTOR_MetaType = 7;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_JOURNAL_NAME: EXTRACTOR_MetaType = 8;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_JOURNAL_VOLUME: EXTRACTOR_MetaType = 9;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_JOURNAL_NUMBER: EXTRACTOR_MetaType = 10;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PAGE_COUNT: EXTRACTOR_MetaType = 11;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PAGE_RANGE: EXTRACTOR_MetaType = 12;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUTHOR_NAME: EXTRACTOR_MetaType = 13;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUTHOR_EMAIL: EXTRACTOR_MetaType = 14;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUTHOR_INSTITUTION: EXTRACTOR_MetaType = 15;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLISHER: EXTRACTOR_MetaType = 16;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLISHER_ADDRESS: EXTRACTOR_MetaType = 17;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION: EXTRACTOR_MetaType = 18;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLISHER_SERIES: EXTRACTOR_MetaType = 19;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLICATION_TYPE: EXTRACTOR_MetaType = 20;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLICATION_YEAR: EXTRACTOR_MetaType = 21;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLICATION_MONTH: EXTRACTOR_MetaType = 22;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLICATION_DAY: EXTRACTOR_MetaType = 23;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PUBLICATION_DATE: EXTRACTOR_MetaType = 24;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BIBTEX_EPRINT: EXTRACTOR_MetaType = 25;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE: EXTRACTOR_MetaType = 26;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LANGUAGE: EXTRACTOR_MetaType = 27;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CREATION_TIME: EXTRACTOR_MetaType = 28;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_URL: EXTRACTOR_MetaType = 29;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_URI: EXTRACTOR_MetaType = 30;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ISRC: EXTRACTOR_MetaType = 31;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_HASH_MD4: EXTRACTOR_MetaType = 32;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_HASH_MD5: EXTRACTOR_MetaType = 33;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_HASH_SHA0: EXTRACTOR_MetaType = 34;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_HASH_SHA1: EXTRACTOR_MetaType = 35;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_HASH_RMD160: EXTRACTOR_MetaType = 36;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GPS_LATITUDE_REF: EXTRACTOR_MetaType = 37;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GPS_LATITUDE: EXTRACTOR_MetaType = 38;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GPS_LONGITUDE_REF: EXTRACTOR_MetaType = 39;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GPS_LONGITUDE: EXTRACTOR_MetaType = 40;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_CITY: EXTRACTOR_MetaType = 41;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_SUBLOCATION: EXTRACTOR_MetaType = 42;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_COUNTRY: EXTRACTOR_MetaType = 43;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE: EXTRACTOR_MetaType = 44;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_UNKNOWN: EXTRACTOR_MetaType = 45;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DESCRIPTION: EXTRACTOR_MetaType = 46;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_COPYRIGHT: EXTRACTOR_MetaType = 47;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_RIGHTS: EXTRACTOR_MetaType = 48;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_KEYWORDS: EXTRACTOR_MetaType = 49;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ABSTRACT: EXTRACTOR_MetaType = 50;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUMMARY: EXTRACTOR_MetaType = 51;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUBJECT: EXTRACTOR_MetaType = 52;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CREATOR: EXTRACTOR_MetaType = 53;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FORMAT: EXTRACTOR_MetaType = 54;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FORMAT_VERSION: EXTRACTOR_MetaType = 55;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE: EXTRACTOR_MetaType = 56;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_UNKNOWN_DATE: EXTRACTOR_MetaType = 57;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CREATION_DATE: EXTRACTOR_MetaType = 58;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MODIFICATION_DATE: EXTRACTOR_MetaType = 59;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LAST_PRINTED: EXTRACTOR_MetaType = 60;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LAST_SAVED_BY: EXTRACTOR_MetaType = 61;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TOTAL_EDITING_TIME: EXTRACTOR_MetaType = 62;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EDITING_CYCLES: EXTRACTOR_MetaType = 63;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE: EXTRACTOR_MetaType = 64;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_REVISION_HISTORY: EXTRACTOR_MetaType = 65;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE: EXTRACTOR_MetaType = 66;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FINDER_FILE_TYPE: EXTRACTOR_MetaType = 67;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FINDER_FILE_CREATOR: EXTRACTOR_MetaType = 68;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_NAME: EXTRACTOR_MetaType = 69;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_VERSION: EXTRACTOR_MetaType = 70;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SECTION: EXTRACTOR_MetaType = 71;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_UPLOAD_PRIORITY: EXTRACTOR_MetaType = 72;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY: EXTRACTOR_MetaType = 73;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_CONFLICTS: EXTRACTOR_MetaType = 74;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_REPLACES: EXTRACTOR_MetaType = 75;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_PROVIDES: EXTRACTOR_MetaType = 76;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS: EXTRACTOR_MetaType = 77;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_SUGGESTS: EXTRACTOR_MetaType = 78;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_MAINTAINER: EXTRACTOR_MetaType = 79;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE: EXTRACTOR_MetaType = 80;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_SOURCE: EXTRACTOR_MetaType = 81;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL: EXTRACTOR_MetaType = 82;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TARGET_ARCHITECTURE: EXTRACTOR_MetaType = 83;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY: EXTRACTOR_MetaType = 84;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LICENSE: EXTRACTOR_MetaType = 85;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION: EXTRACTOR_MetaType = 86;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BUILDHOST: EXTRACTOR_MetaType = 87;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VENDOR: EXTRACTOR_MetaType = 88;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TARGET_OS: EXTRACTOR_MetaType = 89;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SOFTWARE_VERSION: EXTRACTOR_MetaType = 90;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TARGET_PLATFORM: EXTRACTOR_MetaType = 91;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_RESOURCE_TYPE: EXTRACTOR_MetaType = 92;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH: EXTRACTOR_MetaType = 93;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY: EXTRACTOR_MetaType = 94;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CAMERA_MAKE: EXTRACTOR_MetaType = 95;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CAMERA_MODEL: EXTRACTOR_MetaType = 96;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EXPOSURE: EXTRACTOR_MetaType = 97;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_APERTURE: EXTRACTOR_MetaType = 98;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EXPOSURE_BIAS: EXTRACTOR_MetaType = 99;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FLASH: EXTRACTOR_MetaType = 100;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FLASH_BIAS: EXTRACTOR_MetaType = 101;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FOCAL_LENGTH: EXTRACTOR_MetaType = 102;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM: EXTRACTOR_MetaType = 103;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ISO_SPEED: EXTRACTOR_MetaType = 104;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EXPOSURE_MODE: EXTRACTOR_MetaType = 105;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_METERING_MODE: EXTRACTOR_MetaType = 106;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MACRO_MODE: EXTRACTOR_MetaType = 107;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_IMAGE_QUALITY: EXTRACTOR_MetaType = 108;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_WHITE_BALANCE: EXTRACTOR_MetaType = 109;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIENTATION: EXTRACTOR_MetaType = 110;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MAGNIFICATION: EXTRACTOR_MetaType = 111;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_IMAGE_DIMENSIONS: EXTRACTOR_MetaType = 112;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE: EXTRACTOR_MetaType = 113;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_THUMBNAIL: EXTRACTOR_MetaType = 114;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_IMAGE_RESOLUTION: EXTRACTOR_MetaType = 115;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SOURCE: EXTRACTOR_MetaType = 116;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CHARACTER_SET: EXTRACTOR_MetaType = 117;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LINE_COUNT: EXTRACTOR_MetaType = 118;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PARAGRAPH_COUNT: EXTRACTOR_MetaType = 119;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_WORD_COUNT: EXTRACTOR_MetaType = 120;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CHARACTER_COUNT: EXTRACTOR_MetaType = 121;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PAGE_ORIENTATION: EXTRACTOR_MetaType = 122;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PAPER_SIZE: EXTRACTOR_MetaType = 123;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TEMPLATE: EXTRACTOR_MetaType = 124;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_COMPANY: EXTRACTOR_MetaType = 125;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MANAGER: EXTRACTOR_MetaType = 126;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_REVISION_NUMBER: EXTRACTOR_MetaType = 127;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DURATION: EXTRACTOR_MetaType = 128;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ALBUM: EXTRACTOR_MetaType = 129;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ARTIST: EXTRACTOR_MetaType = 130;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GENRE: EXTRACTOR_MetaType = 131;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TRACK_NUMBER: EXTRACTOR_MetaType = 132;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DISC_NUMBER: EXTRACTOR_MetaType = 133;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PERFORMER: EXTRACTOR_MetaType = 134;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CONTACT_INFORMATION: EXTRACTOR_MetaType = 135;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SONG_VERSION: EXTRACTOR_MetaType = 136;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PICTURE: EXTRACTOR_MetaType = 137;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_COVER_PICTURE: EXTRACTOR_MetaType = 138;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE: EXTRACTOR_MetaType = 139;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_EVENT_PICTURE: EXTRACTOR_MetaType = 140;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOGO: EXTRACTOR_MetaType = 141;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM: EXTRACTOR_MetaType =
    142;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SOURCE_DEVICE: EXTRACTOR_MetaType = 143;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DISCLAIMER: EXTRACTOR_MetaType = 144;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_WARNING: EXTRACTOR_MetaType = 145;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PAGE_ORDER: EXTRACTOR_MetaType = 146;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_WRITER: EXTRACTOR_MetaType = 147;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PRODUCT_VERSION: EXTRACTOR_MetaType = 148;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CONTRIBUTOR_NAME: EXTRACTOR_MetaType = 149;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MOVIE_DIRECTOR: EXTRACTOR_MetaType = 150;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_NETWORK_NAME: EXTRACTOR_MetaType = 151;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SHOW_NAME: EXTRACTOR_MetaType = 152;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CHAPTER_NAME: EXTRACTOR_MetaType = 153;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SONG_COUNT: EXTRACTOR_MetaType = 154;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_STARTING_SONG: EXTRACTOR_MetaType = 155;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PLAY_COUNTER: EXTRACTOR_MetaType = 156;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CONDUCTOR: EXTRACTOR_MetaType = 157;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_INTERPRETATION: EXTRACTOR_MetaType = 158;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_COMPOSER: EXTRACTOR_MetaType = 159;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BEATS_PER_MINUTE: EXTRACTOR_MetaType = 160;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ENCODED_BY: EXTRACTOR_MetaType = 161;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIGINAL_TITLE: EXTRACTOR_MetaType = 162;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIGINAL_ARTIST: EXTRACTOR_MetaType = 163;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIGINAL_WRITER: EXTRACTOR_MetaType = 164;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR: EXTRACTOR_MetaType = 165;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORIGINAL_PERFORMER: EXTRACTOR_MetaType = 166;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LYRICS: EXTRACTOR_MetaType = 167;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_POPULARITY_METER: EXTRACTOR_MetaType = 168;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LICENSEE: EXTRACTOR_MetaType = 169;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST: EXTRACTOR_MetaType = 170;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MOOD: EXTRACTOR_MetaType = 171;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUBTITLE: EXTRACTOR_MetaType = 172;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE: EXTRACTOR_MetaType = 173;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GNUNET_FULL_DATA: EXTRACTOR_MetaType = 174;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_RATING: EXTRACTOR_MetaType = 175;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ORGANIZATION: EXTRACTOR_MetaType = 176;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_RIPPER: EXTRACTOR_MetaType = 177;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PRODUCER: EXTRACTOR_MetaType = 178;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GROUP: EXTRACTOR_MetaType = 179;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME: EXTRACTOR_MetaType = 180;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DISC_COUNT: EXTRACTOR_MetaType = 181;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CODEC: EXTRACTOR_MetaType = 182;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_CODEC: EXTRACTOR_MetaType = 183;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_CODEC: EXTRACTOR_MetaType = 184;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUBTITLE_CODEC: EXTRACTOR_MetaType = 185;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CONTAINER_FORMAT: EXTRACTOR_MetaType = 186;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_BITRATE: EXTRACTOR_MetaType = 187;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_NOMINAL_BITRATE: EXTRACTOR_MetaType = 188;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MINIMUM_BITRATE: EXTRACTOR_MetaType = 189;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MAXIMUM_BITRATE: EXTRACTOR_MetaType = 190;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SERIAL: EXTRACTOR_MetaType = 191;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ENCODER: EXTRACTOR_MetaType = 192;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ENCODER_VERSION: EXTRACTOR_MetaType = 193;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TRACK_GAIN: EXTRACTOR_MetaType = 194;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TRACK_PEAK: EXTRACTOR_MetaType = 195;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ALBUM_GAIN: EXTRACTOR_MetaType = 196;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_ALBUM_PEAK: EXTRACTOR_MetaType = 197;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_REFERENCE_LEVEL: EXTRACTOR_MetaType = 198;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_NAME: EXTRACTOR_MetaType = 199;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_ELEVATION: EXTRACTOR_MetaType = 200;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_HORIZONTAL_ERROR: EXTRACTOR_MetaType = 201;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_MOVEMENT_SPEED: EXTRACTOR_MetaType = 202;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_MOVEMENT_DIRECTION: EXTRACTOR_MetaType =
    203;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LOCATION_CAPTURE_DIRECTION: EXTRACTOR_MetaType =
    204;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SHOW_EPISODE_NUMBER: EXTRACTOR_MetaType = 205;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SHOW_SEASON_NUMBER: EXTRACTOR_MetaType = 206;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_GROUPING: EXTRACTOR_MetaType = 207;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DEVICE_MANUFACTURER: EXTRACTOR_MetaType = 208;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_DEVICE_MODEL: EXTRACTOR_MetaType = 209;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_LANGUAGE: EXTRACTOR_MetaType = 210;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_CHANNELS: EXTRACTOR_MetaType = 211;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SAMPLE_RATE: EXTRACTOR_MetaType = 212;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_DEPTH: EXTRACTOR_MetaType = 213;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_BITRATE: EXTRACTOR_MetaType = 214;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MAXIMUM_AUDIO_BITRATE: EXTRACTOR_MetaType = 215;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_DIMENSIONS: EXTRACTOR_MetaType = 216;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_DEPTH: EXTRACTOR_MetaType = 217;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_FRAME_RATE: EXTRACTOR_MetaType = 218;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_PIXEL_ASPECT_RATIO: EXTRACTOR_MetaType = 219;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_BITRATE: EXTRACTOR_MetaType = 220;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_MAXIMUM_VIDEO_BITRATE: EXTRACTOR_MetaType = 221;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUBTITLE_LANGUAGE: EXTRACTOR_MetaType = 222;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_LANGUAGE: EXTRACTOR_MetaType = 223;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_TOC: EXTRACTOR_MetaType = 224;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_VIDEO_DURATION: EXTRACTOR_MetaType = 225;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_DURATION: EXTRACTOR_MetaType = 226;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_SUBTITLE_DURATION: EXTRACTOR_MetaType = 227;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_AUDIO_PREVIEW: EXTRACTOR_MetaType = 228;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_NARINFO: EXTRACTOR_MetaType = 229;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_NAR: EXTRACTOR_MetaType = 230;
pub const EXTRACTOR_MetaType_EXTRACTOR_METATYPE_LAST: EXTRACTOR_MetaType = 231;
pub type EXTRACTOR_MetaType = ::std::os::raw::c_uint;
extern "C" {
    pub fn EXTRACTOR_metatype_to_string(type_: EXTRACTOR_MetaType)
        -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn EXTRACTOR_metatype_to_description(
        type_: EXTRACTOR_MetaType,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn EXTRACTOR_metatype_get_max() -> EXTRACTOR_MetaType;
}
pub type EXTRACTOR_MetaDataProcessor = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        plugin_name: *const ::std::os::raw::c_char,
        type_: EXTRACTOR_MetaType,
        format: EXTRACTOR_MetaFormat,
        data_mime_type: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_char,
        data_len: usize,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EXTRACTOR_ExtractContext {
    pub cls: *mut ::std::os::raw::c_void,
    pub config: *const ::std::os::raw::c_char,
    pub read: ::std::option::Option<
        unsafe extern "C" fn(
            cls: *mut ::std::os::raw::c_void,
            data: *mut *mut ::std::os::raw::c_void,
            size: usize,
        ) -> isize,
    >,
    pub seek: ::std::option::Option<
        unsafe extern "C" fn(
            cls: *mut ::std::os::raw::c_void,
            pos: i64,
            whence: ::std::os::raw::c_int,
        ) -> i64,
    >,
    pub get_size:
        ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void) -> u64>,
    pub proc_: EXTRACTOR_MetaDataProcessor,
}
#[test]
fn bindgen_test_layout_EXTRACTOR_ExtractContext() {
    assert_eq!(
        ::std::mem::size_of::<EXTRACTOR_ExtractContext>(),
        48usize,
        concat!("Size of: ", stringify!(EXTRACTOR_ExtractContext))
    );
    assert_eq!(
        ::std::mem::align_of::<EXTRACTOR_ExtractContext>(),
        8usize,
        concat!("Alignment of ", stringify!(EXTRACTOR_ExtractContext))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).cls as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(cls)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).config as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(config)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).read as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(read)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).seek as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(seek)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).get_size as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(get_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EXTRACTOR_ExtractContext>())).proc_ as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(EXTRACTOR_ExtractContext),
            "::",
            stringify!(proc_)
        )
    );
}
pub type EXTRACTOR_extract_method =
    ::std::option::Option<unsafe extern "C" fn(ec: *mut EXTRACTOR_ExtractContext)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EXTRACTOR_PluginList {
    _unused: [u8; 0],
}
extern "C" {
    pub fn EXTRACTOR_plugin_add_defaults(flags: EXTRACTOR_Options) -> *mut EXTRACTOR_PluginList;
}
extern "C" {
    pub fn EXTRACTOR_plugin_add(
        prev: *mut EXTRACTOR_PluginList,
        library: *const ::std::os::raw::c_char,
        options: *const ::std::os::raw::c_char,
        flags: EXTRACTOR_Options,
    ) -> *mut EXTRACTOR_PluginList;
}
extern "C" {
    pub fn EXTRACTOR_plugin_add_config(
        prev: *mut EXTRACTOR_PluginList,
        config: *const ::std::os::raw::c_char,
        flags: EXTRACTOR_Options,
    ) -> *mut EXTRACTOR_PluginList;
}
extern "C" {
    pub fn EXTRACTOR_plugin_remove(
        prev: *mut EXTRACTOR_PluginList,
        library: *const ::std::os::raw::c_char,
    ) -> *mut EXTRACTOR_PluginList;
}
extern "C" {
    pub fn EXTRACTOR_plugin_remove_all(plugins: *mut EXTRACTOR_PluginList);
}
extern "C" {
    pub fn EXTRACTOR_extract(
        plugins: *mut EXTRACTOR_PluginList,
        filename: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_void,
        size: usize,
        proc_: EXTRACTOR_MetaDataProcessor,
        proc_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn EXTRACTOR_meta_data_print(
        handle: *mut ::std::os::raw::c_void,
        plugin_name: *const ::std::os::raw::c_char,
        type_: EXTRACTOR_MetaType,
        format: EXTRACTOR_MetaFormat,
        data_mime_type: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_char,
        data_len: usize,
    ) -> ::std::os::raw::c_int;
}
#[doc = " @brief bloomfilter representation (opaque)"]
#[doc = " @ingroup bloomfilter"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_BloomFilter {
    _unused: [u8; 0],
}
#[doc = " @ingroup bloomfilter"]
#[doc = " Iterator over `struct GNUNET_HashCode`."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param next set to the next hash code"]
#[doc = " @return #GNUNET_YES if next was updated"]
#[doc = "         #GNUNET_NO if there are no more entries"]
pub type GNUNET_CONTAINER_HashCodeIterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        next: *mut GNUNET_HashCode,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Load a Bloom filter from a file."]
    #[doc = ""]
    #[doc = " @param filename the name of the file (or the prefix)"]
    #[doc = " @param size the size of the bloom-filter (number of"]
    #[doc = "        bytes of storage space to use); will be rounded up"]
    #[doc = "        to next power of 2"]
    #[doc = " @param k the number of #GNUNET_CRYPTO_hash-functions to apply per"]
    #[doc = "        element (number of bits set per element in the set)"]
    #[doc = " @return the bloomfilter"]
    pub fn GNUNET_CONTAINER_bloomfilter_load(
        filename: *const ::std::os::raw::c_char,
        size: usize,
        k: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_CONTAINER_BloomFilter;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Create a Bloom filter from raw bits."]
    #[doc = ""]
    #[doc = " @param data the raw bits in memory (maybe NULL,"]
    #[doc = "        in which case all bits should be considered"]
    #[doc = "        to be zero)."]
    #[doc = " @param size the size of the bloom-filter (number of"]
    #[doc = "        bytes of storage space to use); also size of @a data"]
    #[doc = "        -- unless data is NULL.  Must be a power of 2."]
    #[doc = " @param k the number of #GNUNET_CRYPTO_hash-functions to apply per"]
    #[doc = "        element (number of bits set per element in the set)"]
    #[doc = " @return the bloomfilter"]
    pub fn GNUNET_CONTAINER_bloomfilter_init(
        data: *const ::std::os::raw::c_char,
        size: usize,
        k: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_CONTAINER_BloomFilter;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Copy the raw data of this Bloom filter into"]
    #[doc = " the given data array."]
    #[doc = ""]
    #[doc = " @param data where to write the data"]
    #[doc = " @param size the size of the given @a data array"]
    #[doc = " @return #GNUNET_SYSERR if the data array of the wrong size"]
    pub fn GNUNET_CONTAINER_bloomfilter_get_raw_data(
        bf: *const GNUNET_CONTAINER_BloomFilter,
        data: *mut ::std::os::raw::c_char,
        size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Test if an element is in the filter."]
    #[doc = ""]
    #[doc = " @param e the element"]
    #[doc = " @param bf the filter"]
    #[doc = " @return #GNUNET_YES if the element is in the filter, #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_bloomfilter_test(
        bf: *const GNUNET_CONTAINER_BloomFilter,
        e: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Add an element to the filter."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @param e the element"]
    pub fn GNUNET_CONTAINER_bloomfilter_add(
        bf: *mut GNUNET_CONTAINER_BloomFilter,
        e: *const GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Remove an element from the filter."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @param e the element to remove"]
    pub fn GNUNET_CONTAINER_bloomfilter_remove(
        bf: *mut GNUNET_CONTAINER_BloomFilter,
        e: *const GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Create a copy of a bloomfilter."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @return copy of bf"]
    pub fn GNUNET_CONTAINER_bloomfilter_copy(
        bf: *const GNUNET_CONTAINER_BloomFilter,
    ) -> *mut GNUNET_CONTAINER_BloomFilter;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Free the space associated with a filter"]
    #[doc = " in memory, flush to drive if needed (do not"]
    #[doc = " free the space on the drive)."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    pub fn GNUNET_CONTAINER_bloomfilter_free(bf: *mut GNUNET_CONTAINER_BloomFilter);
}
extern "C" {
    #[doc = " Get the number of the addresses set per element in the bloom filter."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @return addresses set per element in the bf"]
    pub fn GNUNET_CONTAINER_bloomfilter_get_element_addresses(
        bf: *const GNUNET_CONTAINER_BloomFilter,
    ) -> usize;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Get size of the bloom filter."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @return number of bytes used for the data of the bloom filter"]
    pub fn GNUNET_CONTAINER_bloomfilter_get_size(bf: *const GNUNET_CONTAINER_BloomFilter) -> usize;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Reset a Bloom filter to empty."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    pub fn GNUNET_CONTAINER_bloomfilter_clear(bf: *mut GNUNET_CONTAINER_BloomFilter);
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " \"or\" the entries of the given raw data array with the"]
    #[doc = " data of the given Bloom filter.  Assumes that"]
    #[doc = " the @a size of the @a data array and the current filter"]
    #[doc = " match."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @param data data to OR-in"]
    #[doc = " @param size size of @a data"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_CONTAINER_bloomfilter_or(
        bf: *mut GNUNET_CONTAINER_BloomFilter,
        data: *const ::std::os::raw::c_char,
        size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " \"or\" the entries of the given raw data array with the"]
    #[doc = " data of the given Bloom filter.  Assumes that"]
    #[doc = " the size of the two filters matches."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @param to_or the bloomfilter to or-in"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_CONTAINER_bloomfilter_or2(
        bf: *mut GNUNET_CONTAINER_BloomFilter,
        to_or: *const GNUNET_CONTAINER_BloomFilter,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup bloomfilter"]
    #[doc = " Resize a bloom filter.  Note that this operation"]
    #[doc = " is pretty costly.  Essentially, the Bloom filter"]
    #[doc = " needs to be completely re-build."]
    #[doc = ""]
    #[doc = " @param bf the filter"]
    #[doc = " @param iterator an iterator over all elements stored in the BF"]
    #[doc = " @param iterator_cls closure for @a iterator"]
    #[doc = " @param size the new size for the filter"]
    #[doc = " @param k the new number of #GNUNET_CRYPTO_hash-function to apply per element"]
    pub fn GNUNET_CONTAINER_bloomfilter_resize(
        bf: *mut GNUNET_CONTAINER_BloomFilter,
        iterator: GNUNET_CONTAINER_HashCodeIterator,
        iterator_cls: *mut ::std::os::raw::c_void,
        size: usize,
        k: ::std::os::raw::c_uint,
    );
}
#[doc = " @ingroup metadata"]
#[doc = " Meta data to associate with a file, directory or namespace."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MetaData {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Create a fresh meta data container."]
    #[doc = ""]
    #[doc = " @return empty meta-data container"]
    pub fn GNUNET_CONTAINER_meta_data_create() -> *mut GNUNET_CONTAINER_MetaData;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Duplicate a MetaData token."]
    #[doc = ""]
    #[doc = " @param md what to duplicate"]
    #[doc = " @return duplicate meta-data container"]
    pub fn GNUNET_CONTAINER_meta_data_duplicate(
        md: *const GNUNET_CONTAINER_MetaData,
    ) -> *mut GNUNET_CONTAINER_MetaData;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Free meta data."]
    #[doc = ""]
    #[doc = " @param md what to free"]
    pub fn GNUNET_CONTAINER_meta_data_destroy(md: *mut GNUNET_CONTAINER_MetaData);
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Test if two MDs are equal. We consider them equal if"]
    #[doc = " the meta types, formats and content match (we do not"]
    #[doc = " include the mime types and plugins names in this"]
    #[doc = " consideration)."]
    #[doc = ""]
    #[doc = " @param md1 first value to check"]
    #[doc = " @param md2 other value to check"]
    #[doc = " @return #GNUNET_YES if they are equal"]
    pub fn GNUNET_CONTAINER_meta_data_test_equal(
        md1: *const GNUNET_CONTAINER_MetaData,
        md2: *const GNUNET_CONTAINER_MetaData,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Extend metadata."]
    #[doc = ""]
    #[doc = " @param md metadata to extend"]
    #[doc = " @param plugin_name name of the plugin that produced this value;"]
    #[doc = "        special values can be used (i.e. '&lt;zlib&gt;' for zlib being"]
    #[doc = "        used in the main libextractor library and yielding"]
    #[doc = "        meta data)."]
    #[doc = " @param type libextractor-type describing the meta data"]
    #[doc = " @param format basic format information about data"]
    #[doc = " @param data_mime_type mime-type of data (not of the original file);"]
    #[doc = "        can be NULL (if mime-type is not known)"]
    #[doc = " @param data actual meta-data found"]
    #[doc = " @param data_size number of bytes in data"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if this entry already exists"]
    #[doc = "         data_mime_type and plugin_name are not considered for \"exists\" checks"]
    pub fn GNUNET_CONTAINER_meta_data_insert(
        md: *mut GNUNET_CONTAINER_MetaData,
        plugin_name: *const ::std::os::raw::c_char,
        type_: EXTRACTOR_MetaType,
        format: EXTRACTOR_MetaFormat,
        data_mime_type: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_char,
        data_size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Extend metadata.  Merges the meta data from the second argument"]
    #[doc = " into the first, discarding duplicate key-value pairs."]
    #[doc = ""]
    #[doc = " @param md metadata to extend"]
    #[doc = " @param in metadata to merge"]
    pub fn GNUNET_CONTAINER_meta_data_merge(
        md: *mut GNUNET_CONTAINER_MetaData,
        in_: *const GNUNET_CONTAINER_MetaData,
    );
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Remove an item."]
    #[doc = ""]
    #[doc = " @param md metadata to manipulate"]
    #[doc = " @param type type of the item to remove"]
    #[doc = " @param data specific value to remove, NULL to remove all"]
    #[doc = "        entries of the given type"]
    #[doc = " @param data_size number of bytes in data"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if the item does not exist in md"]
    pub fn GNUNET_CONTAINER_meta_data_delete(
        md: *mut GNUNET_CONTAINER_MetaData,
        type_: EXTRACTOR_MetaType,
        data: *const ::std::os::raw::c_char,
        data_size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Remove all items in the container."]
    #[doc = ""]
    #[doc = " @param md metadata to manipulate"]
    pub fn GNUNET_CONTAINER_meta_data_clear(md: *mut GNUNET_CONTAINER_MetaData);
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Add the current time as the publication date"]
    #[doc = " to the meta-data."]
    #[doc = ""]
    #[doc = " @param md metadata to modify"]
    pub fn GNUNET_CONTAINER_meta_data_add_publication_date(md: *mut GNUNET_CONTAINER_MetaData);
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Iterate over MD entries."]
    #[doc = ""]
    #[doc = " @param md metadata to inspect"]
    #[doc = " @param iter function to call on each entry, return 0 to continue to iterate"]
    #[doc = "             and 1 to abort iteration in this function (GNU libextractor API!)"]
    #[doc = " @param iter_cls closure for @a iter"]
    #[doc = " @return number of entries"]
    pub fn GNUNET_CONTAINER_meta_data_iterate(
        md: *const GNUNET_CONTAINER_MetaData,
        iter: EXTRACTOR_MetaDataProcessor,
        iter_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Get the first MD entry of the given type.  Caller"]
    #[doc = " is responsible for freeing the return value."]
    #[doc = " Also, only meta data items that are strings (0-terminated)"]
    #[doc = " are returned by this function."]
    #[doc = ""]
    #[doc = " @param md metadata to inspect"]
    #[doc = " @param type type to look for"]
    #[doc = " @return NULL if no entry was found"]
    pub fn GNUNET_CONTAINER_meta_data_get_by_type(
        md: *const GNUNET_CONTAINER_MetaData,
        type_: EXTRACTOR_MetaType,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Get the first matching MD entry of the given types. Caller is"]
    #[doc = " responsible for freeing the return value.  Also, only meta data"]
    #[doc = " items that are strings (0-terminated) are returned by this"]
    #[doc = " function."]
    #[doc = ""]
    #[doc = " @param md metadata to inspect"]
    #[doc = " @param ... -1-terminated list of types"]
    #[doc = " @return NULL if we do not have any such entry,"]
    #[doc = "  otherwise client is responsible for freeing the value!"]
    pub fn GNUNET_CONTAINER_meta_data_get_first_by_types(
        md: *const GNUNET_CONTAINER_MetaData,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Get a thumbnail from the meta-data (if present).  Only matches meta"]
    #[doc = " data with mime type \"image\" and binary format."]
    #[doc = ""]
    #[doc = " @param md metadata to inspect"]
    #[doc = " @param thumb will be set to the thumbnail data.  Must be"]
    #[doc = "        freed by the caller!"]
    #[doc = " @return number of bytes in thumbnail, 0 if not available"]
    pub fn GNUNET_CONTAINER_meta_data_get_thumbnail(
        md: *const GNUNET_CONTAINER_MetaData,
        thumb: *mut *mut ::std::os::raw::c_uchar,
    ) -> usize;
}
#[doc = " @ingroup metadata"]
#[doc = " Serialize all of the data."]
pub const GNUNET_CONTAINER_MetaDataSerializationOptions_GNUNET_CONTAINER_META_DATA_SERIALIZE_FULL : GNUNET_CONTAINER_MetaDataSerializationOptions = 0 ;
#[doc = " @ingroup metadata"]
#[doc = " If not enough space is available, it is acceptable"]
#[doc = " to only serialize some of the metadata."]
pub const GNUNET_CONTAINER_MetaDataSerializationOptions_GNUNET_CONTAINER_META_DATA_SERIALIZE_PART : GNUNET_CONTAINER_MetaDataSerializationOptions = 1 ;
#[doc = " @ingroup metadata"]
#[doc = " Speed is of the essence, do not allow compression."]
pub const GNUNET_CONTAINER_MetaDataSerializationOptions_GNUNET_CONTAINER_META_DATA_SERIALIZE_NO_COMPRESS : GNUNET_CONTAINER_MetaDataSerializationOptions = 2 ;
#[doc = " @ingroup metadata"]
#[doc = " Options for metadata serialization."]
pub type GNUNET_CONTAINER_MetaDataSerializationOptions = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Serialize meta-data to target."]
    #[doc = ""]
    #[doc = " @param md metadata to serialize"]
    #[doc = " @param target where to write the serialized metadata;"]
    #[doc = "         *target can be NULL, in which case memory is allocated"]
    #[doc = " @param max maximum number of bytes available"]
    #[doc = " @param opt is it ok to just write SOME of the"]
    #[doc = "        meta-data to match the size constraint,"]
    #[doc = "        possibly discarding some data?"]
    #[doc = " @return number of bytes written on success,"]
    #[doc = "         -1 on error (typically: not enough"]
    #[doc = "         space)"]
    pub fn GNUNET_CONTAINER_meta_data_serialize(
        md: *const GNUNET_CONTAINER_MetaData,
        target: *mut *mut ::std::os::raw::c_char,
        max: usize,
        opt: GNUNET_CONTAINER_MetaDataSerializationOptions,
    ) -> isize;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Get the size of the full meta-data in serialized form."]
    #[doc = ""]
    #[doc = " @param md metadata to inspect"]
    #[doc = " @return number of bytes needed for serialization, -1 on error"]
    pub fn GNUNET_CONTAINER_meta_data_get_serialized_size(
        md: *const GNUNET_CONTAINER_MetaData,
    ) -> isize;
}
extern "C" {
    #[doc = " @ingroup metadata"]
    #[doc = " Deserialize meta-data.  Initializes md."]
    #[doc = ""]
    #[doc = " @param input serialized meta-data."]
    #[doc = " @param size number of bytes available"]
    #[doc = " @return MD on success, NULL on error (i.e."]
    #[doc = "         bad format)"]
    pub fn GNUNET_CONTAINER_meta_data_deserialize(
        input: *const ::std::os::raw::c_char,
        size: usize,
    ) -> *mut GNUNET_CONTAINER_MetaData;
}
#[doc = " @ingroup hashmap"]
#[doc = " Opaque handle for a HashMap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiHashMap {
    _unused: [u8; 0],
}
#[doc = " @ingroup hashmap"]
#[doc = " Opaque handle to an iterator over"]
#[doc = " a multihashmap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiHashMapIterator {
    _unused: [u8; 0],
}
#[doc = " @ingroup hashmap"]
#[doc = " If a value with the given key exists, replace it.  Note that the"]
#[doc = " old value would NOT be freed by replace (the application has to"]
#[doc = " make sure that this happens if required)."]
pub const GNUNET_CONTAINER_MultiHashMapOption_GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE:
    GNUNET_CONTAINER_MultiHashMapOption = 0;
#[doc = " @ingroup hashmap"]
#[doc = " Allow multiple values with the same key."]
pub const GNUNET_CONTAINER_MultiHashMapOption_GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE:
    GNUNET_CONTAINER_MultiHashMapOption = 1;
#[doc = " @ingroup hashmap"]
#[doc = " There must only be one value per key; storing a value should fail"]
#[doc = " if a value under the same key already exists."]
pub const GNUNET_CONTAINER_MultiHashMapOption_GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY:
    GNUNET_CONTAINER_MultiHashMapOption = 2;
#[doc = " @ingroup hashmap There must only be one value per key, but don't"]
#[doc = " bother checking if a value already exists (faster than"]
#[doc = " #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY; implemented"]
#[doc = " just like #GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE but this"]
#[doc = " option documents better what is intended if"]
#[doc = " #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY is what is"]
#[doc = " desired)."]
pub const GNUNET_CONTAINER_MultiHashMapOption_GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST:
    GNUNET_CONTAINER_MultiHashMapOption = 3;
#[doc = " @ingroup hashmap"]
#[doc = " Options for storing values in the HashMap."]
pub type GNUNET_CONTAINER_MultiHashMapOption = ::std::os::raw::c_uint;
#[doc = " @ingroup hashmap"]
#[doc = " Iterator over hash map entries."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param key current key code"]
#[doc = " @param value value in the hash map"]
#[doc = " @return #GNUNET_YES if we should continue to"]
#[doc = "         iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_MulitHashMapIteratorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        key: *const GNUNET_HashCode,
        value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create a multi hash map."]
    #[doc = ""]
    #[doc = " @param len initial size (map will grow as needed)"]
    #[doc = " @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default;"]
    #[doc = "                         #GNUNET_YES means that on 'put', the 'key' does not have"]
    #[doc = "                         to be copied as the destination of the pointer is"]
    #[doc = "                         guaranteed to be life as long as the value is stored in"]
    #[doc = "                         the hashmap.  This can significantly reduce memory"]
    #[doc = "                         consumption, but of course is also a recipe for"]
    #[doc = "                         heap corruption if the assumption is not true.  Only"]
    #[doc = "                         use this if (1) memory use is important in this case and"]
    #[doc = "                         (2) you have triple-checked that the invariant holds"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CONTAINER_multihashmap_create(
        len: ::std::os::raw::c_uint,
        do_not_copy_keys: ::std::os::raw::c_int,
    ) -> *mut GNUNET_CONTAINER_MultiHashMap;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a hash map.  Will not free any values"]
    #[doc = " stored in the hash map!"]
    #[doc = ""]
    #[doc = " @param map the map"]
    pub fn GNUNET_CONTAINER_multihashmap_destroy(map: *mut GNUNET_CONTAINER_MultiHashMap);
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Given a key find a value in the map matching the key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key what to look for"]
    #[doc = " @return NULL if no value was found; note that"]
    #[doc = "   this is indistinguishable from values that just"]
    #[doc = "   happen to be NULL; use \"contains\" to test for"]
    #[doc = "   key-value pairs with value NULL"]
    pub fn GNUNET_CONTAINER_multihashmap_get(
        map: *const GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove the given key-value pair from the map.  Note that if the"]
    #[doc = " key-value pair is in the map multiple times, only one of the pairs"]
    #[doc = " will be removed."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key of the key-value pair"]
    #[doc = " @param value value of the key-value pair"]
    #[doc = " @return #GNUNET_YES on success, #GNUNET_NO if the key-value pair"]
    #[doc = "  is not in the map"]
    pub fn GNUNET_CONTAINER_multihashmap_remove(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries for the given key from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key identifies values to be removed"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multihashmap_remove_all(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multihashmap_clear(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains any value under the given"]
    #[doc = " key (including values that are NULL)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multihashmap_contains(
        map: *const GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains the given value under the given"]
    #[doc = " key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @param value value to test for"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multihashmap_contains_value(
        map: *const GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Store a key-value pair in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key to use"]
    #[doc = " @param value value to use"]
    #[doc = " @param opt options for put"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a value was replaced (with REPLACE)"]
    #[doc = "         #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the"]
    #[doc = "                       value already exists"]
    pub fn GNUNET_CONTAINER_multihashmap_put(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
        value: *mut ::std::os::raw::c_void,
        opt: GNUNET_CONTAINER_MultiHashMapOption,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Get the number of key-value pairs in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return the number of key value pairs"]
    pub fn GNUNET_CONTAINER_multihashmap_size(
        map: *const GNUNET_CONTAINER_MultiHashMap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multihashmap_iterate(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
        it: GNUNET_CONTAINER_MulitHashMapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create an iterator for a multihashmap."]
    #[doc = " The iterator can be used to retrieve all the elements in the multihashmap"]
    #[doc = " one by one, without having to handle all elements at once (in contrast to"]
    #[doc = " #GNUNET_CONTAINER_multihashmap_iterate).  Note that the iterator can not be"]
    #[doc = " used anymore if elements have been removed from 'map' after the creation of"]
    #[doc = " the iterator, or 'map' has been destroyed.  Adding elements to 'map' may"]
    #[doc = " result in skipped or repeated elements."]
    #[doc = ""]
    #[doc = " @param map the map to create an iterator for"]
    #[doc = " @return an iterator over the given multihashmap @a map"]
    pub fn GNUNET_CONTAINER_multihashmap_iterator_create(
        map: *const GNUNET_CONTAINER_MultiHashMap,
    ) -> *mut GNUNET_CONTAINER_MultiHashMapIterator;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Retrieve the next element from the hash map at the iterator's"]
    #[doc = " position.  If there are no elements left, #GNUNET_NO is returned,"]
    #[doc = " and @a key and @a value are not modified.  This operation is only"]
    #[doc = " allowed if no elements have been removed from the multihashmap"]
    #[doc = " since the creation of @a iter, and the map has not been destroyed."]
    #[doc = " Adding elements may result in repeating or skipping elements."]
    #[doc = ""]
    #[doc = " @param iter the iterator to get the next element from"]
    #[doc = " @param key pointer to store the key in, can be NULL"]
    #[doc = " @param value pointer to store the value in, can be NULL"]
    #[doc = " @return #GNUNET_YES we returned an element,"]
    #[doc = "         #GNUNET_NO if we are out of elements"]
    pub fn GNUNET_CONTAINER_multihashmap_iterator_next(
        iter: *mut GNUNET_CONTAINER_MultiHashMapIterator,
        key: *mut GNUNET_HashCode,
        value: *mut *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a multihashmap iterator."]
    #[doc = ""]
    #[doc = " @param iter the iterator to destroy"]
    pub fn GNUNET_CONTAINER_multihashmap_iterator_destroy(
        iter: *mut GNUNET_CONTAINER_MultiHashMapIterator,
    );
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map that match a particular key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key that the entries must correspond to"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multihashmap_get_multiple(
        map: *mut GNUNET_CONTAINER_MultiHashMap,
        key: *const GNUNET_HashCode,
        it: GNUNET_CONTAINER_MulitHashMapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Call @a it on a random value from the map, or not at all"]
    #[doc = " if the map is empty.  Note that this function has linear"]
    #[doc = " complexity (in the size of the map)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on a random entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed, zero or one."]
    pub fn GNUNET_CONTAINER_multihashmap_get_random(
        map: *const GNUNET_CONTAINER_MultiHashMap,
        it: GNUNET_CONTAINER_MulitHashMapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " @ingroup hashmap"]
#[doc = " Iterator over hash map entries."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param key current public key"]
#[doc = " @param value value in the hash map"]
#[doc = " @return #GNUNET_YES if we should continue to"]
#[doc = "         iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_PeerMapIterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        key: *const GNUNET_PeerIdentity,
        value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Hash map from peer identities to values."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiPeerMap {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create a multi peer map (hash map for public keys of peers)."]
    #[doc = ""]
    #[doc = " @param len initial size (map will grow as needed)"]
    #[doc = " @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default;"]
    #[doc = "                         #GNUNET_YES means that on 'put', the 'key' does not have"]
    #[doc = "                         to be copied as the destination of the pointer is"]
    #[doc = "                         guaranteed to be life as long as the value is stored in"]
    #[doc = "                         the hashmap.  This can significantly reduce memory"]
    #[doc = "                         consumption, but of course is also a recipe for"]
    #[doc = "                         heap corruption if the assumption is not true.  Only"]
    #[doc = "                         use this if (1) memory use is important in this case and"]
    #[doc = "                         (2) you have triple-checked that the invariant holds"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CONTAINER_multipeermap_create(
        len: ::std::os::raw::c_uint,
        do_not_copy_keys: ::std::os::raw::c_int,
    ) -> *mut GNUNET_CONTAINER_MultiPeerMap;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a hash map.  Will not free any values"]
    #[doc = " stored in the hash map!"]
    #[doc = ""]
    #[doc = " @param map the map"]
    pub fn GNUNET_CONTAINER_multipeermap_destroy(map: *mut GNUNET_CONTAINER_MultiPeerMap);
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Given a key find a value in the map matching the key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key what to look for"]
    #[doc = " @return NULL if no value was found; note that"]
    #[doc = "   this is indistinguishable from values that just"]
    #[doc = "   happen to be NULL; use \"contains\" to test for"]
    #[doc = "   key-value pairs with value NULL"]
    pub fn GNUNET_CONTAINER_multipeermap_get(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove the given key-value pair from the map.  Note that if the"]
    #[doc = " key-value pair is in the map multiple times, only one of the pairs"]
    #[doc = " will be removed."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key of the key-value pair"]
    #[doc = " @param value value of the key-value pair"]
    #[doc = " @return #GNUNET_YES on success, #GNUNET_NO if the key-value pair"]
    #[doc = "  is not in the map"]
    pub fn GNUNET_CONTAINER_multipeermap_remove(
        map: *mut GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries for the given key from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key identifies values to be removed"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multipeermap_remove_all(
        map: *mut GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains any value under the given"]
    #[doc = " key (including values that are NULL)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multipeermap_contains(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains the given value under the given"]
    #[doc = " key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @param value value to test for"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multipeermap_contains_value(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Store a key-value pair in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key to use"]
    #[doc = " @param value value to use"]
    #[doc = " @param opt options for put"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a value was replaced (with REPLACE)"]
    #[doc = "         #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the"]
    #[doc = "                       value already exists"]
    pub fn GNUNET_CONTAINER_multipeermap_put(
        map: *mut GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
        value: *mut ::std::os::raw::c_void,
        opt: GNUNET_CONTAINER_MultiHashMapOption,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Get the number of key-value pairs in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return the number of key value pairs"]
    pub fn GNUNET_CONTAINER_multipeermap_size(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multipeermap_iterate(
        map: *mut GNUNET_CONTAINER_MultiPeerMap,
        it: GNUNET_CONTAINER_PeerMapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiPeerMapIterator {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create an iterator for a multihashmap."]
    #[doc = " The iterator can be used to retrieve all the elements in the multihashmap"]
    #[doc = " one by one, without having to handle all elements at once (in contrast to"]
    #[doc = " #GNUNET_CONTAINER_multipeermap_iterate).  Note that the iterator can not be"]
    #[doc = " used anymore if elements have been removed from @a map after the creation of"]
    #[doc = " the iterator, or 'map' has been destroyed.  Adding elements to @a map may"]
    #[doc = " result in skipped or repeated elements."]
    #[doc = ""]
    #[doc = " @param map the map to create an iterator for"]
    #[doc = " @return an iterator over the given multihashmap @a map"]
    pub fn GNUNET_CONTAINER_multipeermap_iterator_create(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
    ) -> *mut GNUNET_CONTAINER_MultiPeerMapIterator;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Retrieve the next element from the hash map at the iterator's"]
    #[doc = " position.  If there are no elements left, #GNUNET_NO is returned,"]
    #[doc = " and @a key and @a value are not modified.  This operation is only"]
    #[doc = " allowed if no elements have been removed from the multihashmap"]
    #[doc = " since the creation of @a iter, and the map has not been destroyed."]
    #[doc = " Adding elements may result in repeating or skipping elements."]
    #[doc = ""]
    #[doc = " @param iter the iterator to get the next element from"]
    #[doc = " @param key pointer to store the key in, can be NULL"]
    #[doc = " @param value pointer to store the value in, can be NULL"]
    #[doc = " @return #GNUNET_YES we returned an element,"]
    #[doc = "         #GNUNET_NO if we are out of elements"]
    pub fn GNUNET_CONTAINER_multipeermap_iterator_next(
        iter: *mut GNUNET_CONTAINER_MultiPeerMapIterator,
        key: *mut GNUNET_PeerIdentity,
        value: *mut *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a multipeermap iterator."]
    #[doc = ""]
    #[doc = " @param iter the iterator to destroy"]
    pub fn GNUNET_CONTAINER_multipeermap_iterator_destroy(
        iter: *mut GNUNET_CONTAINER_MultiPeerMapIterator,
    );
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map that match a particular key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key public key that the entries must correspond to"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multipeermap_get_multiple(
        map: *mut GNUNET_CONTAINER_MultiPeerMap,
        key: *const GNUNET_PeerIdentity,
        it: GNUNET_CONTAINER_PeerMapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Call @a it on a random value from the map, or not at all"]
    #[doc = " if the map is empty.  Note that this function has linear"]
    #[doc = " complexity (in the size of the map)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on a random entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed, zero or one."]
    pub fn GNUNET_CONTAINER_multipeermap_get_random(
        map: *const GNUNET_CONTAINER_MultiPeerMap,
        it: GNUNET_CONTAINER_PeerMapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " @ingroup hashmap"]
#[doc = " Iterator over hash map entries."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param key current public key"]
#[doc = " @param value value in the hash map"]
#[doc = " @return #GNUNET_YES if we should continue to"]
#[doc = "         iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_ShortmapIterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        key: *const GNUNET_ShortHashCode,
        value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Hash map from peer identities to values."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiShortmap {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create a multi peer map (hash map for public keys of peers)."]
    #[doc = ""]
    #[doc = " @param len initial size (map will grow as needed)"]
    #[doc = " @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default;"]
    #[doc = "                         #GNUNET_YES means that on 'put', the 'key' does not have"]
    #[doc = "                         to be copied as the destination of the pointer is"]
    #[doc = "                         guaranteed to be life as long as the value is stored in"]
    #[doc = "                         the hashmap.  This can significantly reduce memory"]
    #[doc = "                         consumption, but of course is also a recipe for"]
    #[doc = "                         heap corruption if the assumption is not true.  Only"]
    #[doc = "                         use this if (1) memory use is important in this case and"]
    #[doc = "                         (2) you have triple-checked that the invariant holds"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CONTAINER_multishortmap_create(
        len: ::std::os::raw::c_uint,
        do_not_copy_keys: ::std::os::raw::c_int,
    ) -> *mut GNUNET_CONTAINER_MultiShortmap;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a hash map.  Will not free any values"]
    #[doc = " stored in the hash map!"]
    #[doc = ""]
    #[doc = " @param map the map"]
    pub fn GNUNET_CONTAINER_multishortmap_destroy(map: *mut GNUNET_CONTAINER_MultiShortmap);
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Given a key find a value in the map matching the key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key what to look for"]
    #[doc = " @return NULL if no value was found; note that"]
    #[doc = "   this is indistinguishable from values that just"]
    #[doc = "   happen to be NULL; use \"contains\" to test for"]
    #[doc = "   key-value pairs with value NULL"]
    pub fn GNUNET_CONTAINER_multishortmap_get(
        map: *const GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove the given key-value pair from the map.  Note that if the"]
    #[doc = " key-value pair is in the map multiple times, only one of the pairs"]
    #[doc = " will be removed."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key of the key-value pair"]
    #[doc = " @param value value of the key-value pair"]
    #[doc = " @return #GNUNET_YES on success, #GNUNET_NO if the key-value pair"]
    #[doc = "  is not in the map"]
    pub fn GNUNET_CONTAINER_multishortmap_remove(
        map: *mut GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries for the given key from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key identifies values to be removed"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multishortmap_remove_all(
        map: *mut GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains any value under the given"]
    #[doc = " key (including values that are NULL)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multishortmap_contains(
        map: *const GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains the given value under the given"]
    #[doc = " key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @param value value to test for"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multishortmap_contains_value(
        map: *const GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Store a key-value pair in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key to use"]
    #[doc = " @param value value to use"]
    #[doc = " @param opt options for put"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a value was replaced (with REPLACE)"]
    #[doc = "         #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the"]
    #[doc = "                       value already exists"]
    pub fn GNUNET_CONTAINER_multishortmap_put(
        map: *mut GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
        value: *mut ::std::os::raw::c_void,
        opt: GNUNET_CONTAINER_MultiHashMapOption,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Get the number of key-value pairs in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return the number of key value pairs"]
    pub fn GNUNET_CONTAINER_multishortmap_size(
        map: *const GNUNET_CONTAINER_MultiShortmap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multishortmap_iterate(
        map: *mut GNUNET_CONTAINER_MultiShortmap,
        it: GNUNET_CONTAINER_ShortmapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiShortmapIterator {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create an iterator for a multihashmap."]
    #[doc = " The iterator can be used to retrieve all the elements in the multihashmap"]
    #[doc = " one by one, without having to handle all elements at once (in contrast to"]
    #[doc = " #GNUNET_CONTAINER_multishortmap_iterate).  Note that the iterator can not be"]
    #[doc = " used anymore if elements have been removed from @a map after the creation of"]
    #[doc = " the iterator, or 'map' has been destroyed.  Adding elements to @a map may"]
    #[doc = " result in skipped or repeated elements."]
    #[doc = ""]
    #[doc = " @param map the map to create an iterator for"]
    #[doc = " @return an iterator over the given multihashmap @a map"]
    pub fn GNUNET_CONTAINER_multishortmap_iterator_create(
        map: *const GNUNET_CONTAINER_MultiShortmap,
    ) -> *mut GNUNET_CONTAINER_MultiShortmapIterator;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Retrieve the next element from the hash map at the iterator's"]
    #[doc = " position.  If there are no elements left, #GNUNET_NO is returned,"]
    #[doc = " and @a key and @a value are not modified.  This operation is only"]
    #[doc = " allowed if no elements have been removed from the multihashmap"]
    #[doc = " since the creation of @a iter, and the map has not been destroyed."]
    #[doc = " Adding elements may result in repeating or skipping elements."]
    #[doc = ""]
    #[doc = " @param iter the iterator to get the next element from"]
    #[doc = " @param key pointer to store the key in, can be NULL"]
    #[doc = " @param value pointer to store the value in, can be NULL"]
    #[doc = " @return #GNUNET_YES we returned an element,"]
    #[doc = "         #GNUNET_NO if we are out of elements"]
    pub fn GNUNET_CONTAINER_multishortmap_iterator_next(
        iter: *mut GNUNET_CONTAINER_MultiShortmapIterator,
        key: *mut GNUNET_ShortHashCode,
        value: *mut *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a multishortmap iterator."]
    #[doc = ""]
    #[doc = " @param iter the iterator to destroy"]
    pub fn GNUNET_CONTAINER_multishortmap_iterator_destroy(
        iter: *mut GNUNET_CONTAINER_MultiShortmapIterator,
    );
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map that match a particular key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key public key that the entries must correspond to"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multishortmap_get_multiple(
        map: *mut GNUNET_CONTAINER_MultiShortmap,
        key: *const GNUNET_ShortHashCode,
        it: GNUNET_CONTAINER_ShortmapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Call @a it on a random value from the map, or not at all"]
    #[doc = " if the map is empty.  Note that this function has linear"]
    #[doc = " complexity (in the size of the map)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on a random entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed, zero or one."]
    pub fn GNUNET_CONTAINER_multishortmap_get_random(
        map: *const GNUNET_CONTAINER_MultiShortmap,
        it: GNUNET_CONTAINER_ShortmapIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " @ingroup hashmap"]
#[doc = " Iterator over uuid map entries."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param key current public key"]
#[doc = " @param value value in the hash map"]
#[doc = " @return #GNUNET_YES if we should continue to"]
#[doc = "         iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_MultiUuidmapIteratorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        key: *const GNUNET_Uuid,
        value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Hash map from peer identities to values."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiUuidmap {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create a multi peer map (hash map for public keys of peers)."]
    #[doc = ""]
    #[doc = " @param len initial size (map will grow as needed)"]
    #[doc = " @param do_not_copy_keys #GNUNET_NO is always safe and should be used by default;"]
    #[doc = "                         #GNUNET_YES means that on 'put', the 'key' does not have"]
    #[doc = "                         to be copied as the destination of the pointer is"]
    #[doc = "                         guaranteed to be life as long as the value is stored in"]
    #[doc = "                         the hashmap.  This can significantly reduce memory"]
    #[doc = "                         consumption, but of course is also a recipe for"]
    #[doc = "                         heap corruption if the assumption is not true.  Only"]
    #[doc = "                         use this if (1) memory use is important in this case and"]
    #[doc = "                         (2) you have triple-checked that the invariant holds"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CONTAINER_multiuuidmap_create(
        len: ::std::os::raw::c_uint,
        do_not_copy_keys: ::std::os::raw::c_int,
    ) -> *mut GNUNET_CONTAINER_MultiUuidmap;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a hash map.  Will not free any values"]
    #[doc = " stored in the hash map!"]
    #[doc = ""]
    #[doc = " @param map the map"]
    pub fn GNUNET_CONTAINER_multiuuidmap_destroy(map: *mut GNUNET_CONTAINER_MultiUuidmap);
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Given a key find a value in the map matching the key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key what to look for"]
    #[doc = " @return NULL if no value was found; note that"]
    #[doc = "   this is indistinguishable from values that just"]
    #[doc = "   happen to be NULL; use \"contains\" to test for"]
    #[doc = "   key-value pairs with value NULL"]
    pub fn GNUNET_CONTAINER_multiuuidmap_get(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove the given key-value pair from the map.  Note that if the"]
    #[doc = " key-value pair is in the map multiple times, only one of the pairs"]
    #[doc = " will be removed."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key of the key-value pair"]
    #[doc = " @param value value of the key-value pair"]
    #[doc = " @return #GNUNET_YES on success, #GNUNET_NO if the key-value pair"]
    #[doc = "  is not in the map"]
    pub fn GNUNET_CONTAINER_multiuuidmap_remove(
        map: *mut GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries for the given key from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key identifies values to be removed"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multiuuidmap_remove_all(
        map: *mut GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains any value under the given"]
    #[doc = " key (including values that are NULL)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multiuuidmap_contains(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains the given value under the given"]
    #[doc = " key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @param value value to test for"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multiuuidmap_contains_value(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Store a key-value pair in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key to use"]
    #[doc = " @param value value to use"]
    #[doc = " @param opt options for put"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a value was replaced (with REPLACE)"]
    #[doc = "         #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the"]
    #[doc = "                       value already exists"]
    pub fn GNUNET_CONTAINER_multiuuidmap_put(
        map: *mut GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
        value: *mut ::std::os::raw::c_void,
        opt: GNUNET_CONTAINER_MultiHashMapOption,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Get the number of key-value pairs in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return the number of key value pairs"]
    pub fn GNUNET_CONTAINER_multiuuidmap_size(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multiuuidmap_iterate(
        map: *mut GNUNET_CONTAINER_MultiUuidmap,
        it: GNUNET_CONTAINER_MultiUuidmapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiUuidmapIterator {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create an iterator for a multihashmap."]
    #[doc = " The iterator can be used to retrieve all the elements in the multihashmap"]
    #[doc = " one by one, without having to handle all elements at once (in contrast to"]
    #[doc = " #GNUNET_CONTAINER_multiuuidmap_iterate).  Note that the iterator can not be"]
    #[doc = " used anymore if elements have been removed from @a map after the creation of"]
    #[doc = " the iterator, or 'map' has been destroyed.  Adding elements to @a map may"]
    #[doc = " result in skipped or repeated elements."]
    #[doc = ""]
    #[doc = " @param map the map to create an iterator for"]
    #[doc = " @return an iterator over the given multihashmap @a map"]
    pub fn GNUNET_CONTAINER_multiuuidmap_iterator_create(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
    ) -> *mut GNUNET_CONTAINER_MultiUuidmapIterator;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Retrieve the next element from the hash map at the iterator's"]
    #[doc = " position.  If there are no elements left, #GNUNET_NO is returned,"]
    #[doc = " and @a key and @a value are not modified.  This operation is only"]
    #[doc = " allowed if no elements have been removed from the multihashmap"]
    #[doc = " since the creation of @a iter, and the map has not been destroyed."]
    #[doc = " Adding elements may result in repeating or skipping elements."]
    #[doc = ""]
    #[doc = " @param iter the iterator to get the next element from"]
    #[doc = " @param key pointer to store the key in, can be NULL"]
    #[doc = " @param value pointer to store the value in, can be NULL"]
    #[doc = " @return #GNUNET_YES we returned an element,"]
    #[doc = "         #GNUNET_NO if we are out of elements"]
    pub fn GNUNET_CONTAINER_multiuuidmap_iterator_next(
        iter: *mut GNUNET_CONTAINER_MultiUuidmapIterator,
        key: *mut GNUNET_Uuid,
        value: *mut *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a multiuuidmap iterator."]
    #[doc = ""]
    #[doc = " @param iter the iterator to destroy"]
    pub fn GNUNET_CONTAINER_multiuuidmap_iterator_destroy(
        iter: *mut GNUNET_CONTAINER_MultiUuidmapIterator,
    );
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map that match a particular key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key public key that the entries must correspond to"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multiuuidmap_get_multiple(
        map: *mut GNUNET_CONTAINER_MultiUuidmap,
        key: *const GNUNET_Uuid,
        it: GNUNET_CONTAINER_MultiUuidmapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Call @a it on a random value from the map, or not at all"]
    #[doc = " if the map is empty.  Note that this function has linear"]
    #[doc = " complexity (in the size of the map)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on a random entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed, zero or one."]
    pub fn GNUNET_CONTAINER_multiuuidmap_get_random(
        map: *const GNUNET_CONTAINER_MultiUuidmap,
        it: GNUNET_CONTAINER_MultiUuidmapIteratorCallback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " @ingroup hashmap"]
#[doc = " Opaque handle for the 32-bit key HashMap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiHashMap32 {
    _unused: [u8; 0],
}
#[doc = " @ingroup hashmap"]
#[doc = " Opaque handle to an iterator over"]
#[doc = " a 32-bit key multihashmap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_MultiHashMap32Iterator {
    _unused: [u8; 0],
}
#[doc = " @ingroup hashmap"]
#[doc = " Iterator over hash map entries."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param key current key code"]
#[doc = " @param value value in the hash map"]
#[doc = " @return #GNUNET_YES if we should continue to"]
#[doc = "         iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_MulitHashMapIterator32Callback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        key: u32,
        value: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Create a 32-bit key multi hash map."]
    #[doc = ""]
    #[doc = " @param len initial size (map will grow as needed)"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CONTAINER_multihashmap32_create(
        len: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_CONTAINER_MultiHashMap32;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Destroy a 32-bit key hash map.  Will not free any values"]
    #[doc = " stored in the hash map!"]
    #[doc = ""]
    #[doc = " @param map the map"]
    pub fn GNUNET_CONTAINER_multihashmap32_destroy(map: *mut GNUNET_CONTAINER_MultiHashMap32);
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Get the number of key-value pairs in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @return the number of key value pairs"]
    pub fn GNUNET_CONTAINER_multihashmap32_size(
        map: *const GNUNET_CONTAINER_MultiHashMap32,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Given a key find a value in the map matching the key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key what to look for"]
    #[doc = " @return NULL if no value was found; note that"]
    #[doc = "   this is indistinguishable from values that just"]
    #[doc = "   happen to be NULL; use \"contains\" to test for"]
    #[doc = "   key-value pairs with value NULL"]
    pub fn GNUNET_CONTAINER_multihashmap32_get(
        map: *const GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multihashmap32_iterate(
        map: *mut GNUNET_CONTAINER_MultiHashMap32,
        it: GNUNET_CONTAINER_MulitHashMapIterator32Callback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove the given key-value pair from the map.  Note that if the"]
    #[doc = " key-value pair is in the map multiple times, only one of the pairs"]
    #[doc = " will be removed."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key of the key-value pair"]
    #[doc = " @param value value of the key-value pair"]
    #[doc = " @return #GNUNET_YES on success, #GNUNET_NO if the key-value pair"]
    #[doc = "  is not in the map"]
    pub fn GNUNET_CONTAINER_multihashmap32_remove(
        map: *mut GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Remove all entries for the given key from the map."]
    #[doc = " Note that the values would not be \"freed\"."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key identifies values to be removed"]
    #[doc = " @return number of values removed"]
    pub fn GNUNET_CONTAINER_multihashmap32_remove_all(
        map: *mut GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains any value under the given"]
    #[doc = " key (including values that are NULL)."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multihashmap32_contains(
        map: *const GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Check if the map contains the given value under the given"]
    #[doc = " key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key the key to test if a value exists for it"]
    #[doc = " @param value value to test for"]
    #[doc = " @return #GNUNET_YES if such a value exists,"]
    #[doc = "         #GNUNET_NO if not"]
    pub fn GNUNET_CONTAINER_multihashmap32_contains_value(
        map: *const GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Store a key-value pair in the map."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key to use"]
    #[doc = " @param value value to use"]
    #[doc = " @param opt options for put"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a value was replaced (with REPLACE)"]
    #[doc = "         #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the"]
    #[doc = "                       value already exists"]
    pub fn GNUNET_CONTAINER_multihashmap32_put(
        map: *mut GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
        value: *mut ::std::os::raw::c_void,
        opt: GNUNET_CONTAINER_MultiHashMapOption,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup hashmap"]
    #[doc = " Iterate over all entries in the map that match a particular key."]
    #[doc = ""]
    #[doc = " @param map the map"]
    #[doc = " @param key key that the entries must correspond to"]
    #[doc = " @param it function to call on each entry"]
    #[doc = " @param it_cls extra argument to @a it"]
    #[doc = " @return the number of key value pairs processed,"]
    #[doc = "         #GNUNET_SYSERR if it aborted iteration"]
    pub fn GNUNET_CONTAINER_multihashmap32_get_multiple(
        map: *mut GNUNET_CONTAINER_MultiHashMap32,
        key: u32,
        it: GNUNET_CONTAINER_MulitHashMapIterator32Callback,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create an iterator for a 32-bit multihashmap."]
    #[doc = " The iterator can be used to retrieve all the elements in the multihashmap"]
    #[doc = " one by one, without having to handle all elements at once (in contrast to"]
    #[doc = " #GNUNET_CONTAINER_multihashmap32_iterate).  Note that the iterator can not be"]
    #[doc = " used anymore if elements have been removed from 'map' after the creation of"]
    #[doc = " the iterator, or 'map' has been destroyed.  Adding elements to 'map' may"]
    #[doc = " result in skipped or repeated elements."]
    #[doc = ""]
    #[doc = " @param map the map to create an iterator for"]
    #[doc = " @return an iterator over the given multihashmap map"]
    pub fn GNUNET_CONTAINER_multihashmap32_iterator_create(
        map: *const GNUNET_CONTAINER_MultiHashMap32,
    ) -> *mut GNUNET_CONTAINER_MultiHashMap32Iterator;
}
extern "C" {
    #[doc = " Retrieve the next element from the hash map at the iterator's position."]
    #[doc = " If there are no elements left, GNUNET_NO is returned, and 'key' and 'value'"]
    #[doc = " are not modified."]
    #[doc = " This operation is only allowed if no elements have been removed from the"]
    #[doc = " multihashmap since the creation of 'iter', and the map has not been destroyed."]
    #[doc = " Adding elements may result in repeating or skipping elements."]
    #[doc = ""]
    #[doc = " @param iter the iterator to get the next element from"]
    #[doc = " @param key pointer to store the key in, can be NULL"]
    #[doc = " @param value pointer to store the value in, can be NULL"]
    #[doc = " @return #GNUNET_YES we returned an element,"]
    #[doc = "         #GNUNET_NO if we are out of elements"]
    pub fn GNUNET_CONTAINER_multihashmap32_iterator_next(
        iter: *mut GNUNET_CONTAINER_MultiHashMap32Iterator,
        key: *mut u32,
        value: *mut *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Destroy a 32-bit multihashmap iterator."]
    #[doc = ""]
    #[doc = " @param iter the iterator to destroy"]
    pub fn GNUNET_CONTAINER_multihashmap32_iterator_destroy(
        iter: *mut GNUNET_CONTAINER_MultiHashMapIterator,
    );
}
#[doc = " @ingroup heap"]
#[doc = " Cost by which elements in a heap can be ordered."]
pub type GNUNET_CONTAINER_HeapCostType = u64;
#[doc = " @ingroup heap"]
#[doc = " Heap with the maximum cost at the root."]
pub const GNUNET_CONTAINER_HeapOrder_GNUNET_CONTAINER_HEAP_ORDER_MAX: GNUNET_CONTAINER_HeapOrder =
    0;
#[doc = " @ingroup heap"]
#[doc = " Heap with the minimum cost at the root."]
pub const GNUNET_CONTAINER_HeapOrder_GNUNET_CONTAINER_HEAP_ORDER_MIN: GNUNET_CONTAINER_HeapOrder =
    1;
#[doc = " @ingroup heap"]
#[doc = " Heap type, either max or min."]
pub type GNUNET_CONTAINER_HeapOrder = ::std::os::raw::c_uint;
#[doc = " @ingroup heap"]
#[doc = " Handle to a Heap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_Heap {
    _unused: [u8; 0],
}
#[doc = " @ingroup heap"]
#[doc = " Handle to a node in a heap."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CONTAINER_HeapNode {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Create a new heap."]
    #[doc = ""]
    #[doc = " @param order how should the heap be sorted?"]
    #[doc = " @return handle to the heap"]
    pub fn GNUNET_CONTAINER_heap_create(
        order: GNUNET_CONTAINER_HeapOrder,
    ) -> *mut GNUNET_CONTAINER_Heap;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Destroys the heap.  Only call on a heap that"]
    #[doc = " is already empty."]
    #[doc = ""]
    #[doc = " @param heap heap to destroy"]
    pub fn GNUNET_CONTAINER_heap_destroy(heap: *mut GNUNET_CONTAINER_Heap);
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Get element stored at the root of @a heap."]
    #[doc = ""]
    #[doc = " @param heap  Heap to inspect."]
    #[doc = " @return Element at the root, or NULL if heap is empty."]
    pub fn GNUNET_CONTAINER_heap_peek(
        heap: *const GNUNET_CONTAINER_Heap,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Get @a element and @a cost stored at the root of @a heap."]
    #[doc = ""]
    #[doc = " @param[in]  heap     Heap to inspect."]
    #[doc = " @param[out] element  Root element is returned here."]
    #[doc = " @param[out] cost     Cost of @a element is returned here."]
    #[doc = " @return #GNUNET_YES if an element is returned,"]
    #[doc = "         #GNUNET_NO  if the heap is empty."]
    pub fn GNUNET_CONTAINER_heap_peek2(
        heap: *const GNUNET_CONTAINER_Heap,
        element: *mut *mut ::std::os::raw::c_void,
        cost: *mut GNUNET_CONTAINER_HeapCostType,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Get the current size of the heap"]
    #[doc = ""]
    #[doc = " @param heap the heap to get the size of"]
    #[doc = " @return number of elements stored"]
    pub fn GNUNET_CONTAINER_heap_get_size(
        heap: *const GNUNET_CONTAINER_Heap,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Get the current cost of the node"]
    #[doc = ""]
    #[doc = " @param node the node to get the cost of"]
    #[doc = " @return cost of the node"]
    pub fn GNUNET_CONTAINER_heap_node_get_cost(
        node: *const GNUNET_CONTAINER_HeapNode,
    ) -> GNUNET_CONTAINER_HeapCostType;
}
#[doc = " @ingroup heap"]
#[doc = " Iterator for heap"]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param node internal node of the heap"]
#[doc = " @param element value stored at the node"]
#[doc = " @param cost cost associated with the node"]
#[doc = " @return #GNUNET_YES if we should continue to iterate,"]
#[doc = "         #GNUNET_NO if not."]
pub type GNUNET_CONTAINER_HeapIterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        node: *mut GNUNET_CONTAINER_HeapNode,
        element: *mut ::std::os::raw::c_void,
        cost: GNUNET_CONTAINER_HeapCostType,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Iterate over all entries in the heap."]
    #[doc = ""]
    #[doc = " @param heap the heap"]
    #[doc = " @param iterator function to call on each entry"]
    #[doc = " @param iterator_cls closure for @a iterator"]
    pub fn GNUNET_CONTAINER_heap_iterate(
        heap: *const GNUNET_CONTAINER_Heap,
        iterator: GNUNET_CONTAINER_HeapIterator,
        iterator_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Perform a random walk of the tree.  The walk is biased"]
    #[doc = " towards elements closer to the root of the tree (since"]
    #[doc = " each walk starts at the root and ends at a random leaf)."]
    #[doc = " The heap internally tracks the current position of the"]
    #[doc = " walk."]
    #[doc = ""]
    #[doc = " @param heap heap to walk"]
    #[doc = " @return data stored at the next random node in the walk;"]
    #[doc = "         NULL if the tree is empty."]
    pub fn GNUNET_CONTAINER_heap_walk_get_next(
        heap: *mut GNUNET_CONTAINER_Heap,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Inserts a new element into the heap."]
    #[doc = ""]
    #[doc = " @param heap heap to modify"]
    #[doc = " @param element element to insert"]
    #[doc = " @param cost cost for the element"]
    #[doc = " @return node for the new element"]
    pub fn GNUNET_CONTAINER_heap_insert(
        heap: *mut GNUNET_CONTAINER_Heap,
        element: *mut ::std::os::raw::c_void,
        cost: GNUNET_CONTAINER_HeapCostType,
    ) -> *mut GNUNET_CONTAINER_HeapNode;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Remove root of the heap."]
    #[doc = ""]
    #[doc = " @param heap heap to modify"]
    #[doc = " @return element data stored at the root node"]
    pub fn GNUNET_CONTAINER_heap_remove_root(
        heap: *mut GNUNET_CONTAINER_Heap,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Removes a node from the heap."]
    #[doc = ""]
    #[doc = " @param node node to remove"]
    #[doc = " @return element data stored at the node, NULL if heap is empty"]
    pub fn GNUNET_CONTAINER_heap_remove_node(
        node: *mut GNUNET_CONTAINER_HeapNode,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " @ingroup heap"]
    #[doc = " Updates the cost of any node in the tree"]
    #[doc = ""]
    #[doc = " @param node node for which the cost is to be changed"]
    #[doc = " @param new_cost new cost for the node"]
    pub fn GNUNET_CONTAINER_heap_update_cost(
        node: *mut GNUNET_CONTAINER_HeapNode,
        new_cost: GNUNET_CONTAINER_HeapCostType,
    );
}
#[doc = " Handle for buffered reading."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BIO_ReadHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Open a file for reading."]
    #[doc = ""]
    #[doc = " @param fn file name to be opened"]
    #[doc = " @return IO handle on success, NULL on error"]
    pub fn GNUNET_BIO_read_open_file(
        fn_: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_BIO_ReadHandle;
}
extern "C" {
    #[doc = " Create a handle from an existing allocated buffer."]
    #[doc = ""]
    #[doc = " @param buffer the buffer to use as source"]
    #[doc = " @param size the total size in bytes of the buffer"]
    #[doc = " @return IO handle on success, NULL on error"]
    pub fn GNUNET_BIO_read_open_buffer(
        buffer: *mut ::std::os::raw::c_void,
        size: usize,
    ) -> *mut GNUNET_BIO_ReadHandle;
}
extern "C" {
    #[doc = " Close an open handle.  Reports if any errors reading"]
    #[doc = " from the file were encountered."]
    #[doc = ""]
    #[doc = " @param h file handle"]
    #[doc = " @param emsg set to the error message"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_BIO_read_close(
        h: *mut GNUNET_BIO_ReadHandle,
        emsg: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read some contents into a buffer."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result the buffer to write the result to"]
    #[doc = " @param len the number of bytes to read"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_BIO_read(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        result: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read 0-terminated string."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result where to store the pointer to the (allocated) string"]
    #[doc = "        (note that *result could be set to NULL as well)"]
    #[doc = " @param max_length maximum allowed length for the string"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_BIO_read_string(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        result: *mut *mut ::std::os::raw::c_char,
        max_length: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read a metadata container."]
    #[doc = ""]
    #[doc = " @param h handle to an open file"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result the buffer to store a pointer to the (allocated) metadata"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_BIO_read_meta_data(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        result: *mut *mut GNUNET_CONTAINER_MetaData,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read a float."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param f address of float to read"]
    pub fn GNUNET_BIO_read_float(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        f: *mut f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read a double."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param f address of double to read"]
    pub fn GNUNET_BIO_read_double(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        f: *mut f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read an (u)int32_t."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param i where to store the data"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_read_int32(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        i: *mut i32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Read an (u)int64_t."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param i where to store the data"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_read_int64(
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        i: *mut i64,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Handle for buffered writing."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BIO_WriteHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Open a file for writing."]
    #[doc = ""]
    #[doc = " @param fn name of the file to be opened"]
    #[doc = " @return IO handle on success, NULL on error"]
    pub fn GNUNET_BIO_write_open_file(
        fn_: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_BIO_WriteHandle;
}
extern "C" {
    #[doc = " Create a handle backed by an in-memory buffer."]
    #[doc = ""]
    #[doc = " @return IO handle on success, NULL on error"]
    pub fn GNUNET_BIO_write_open_buffer() -> *mut GNUNET_BIO_WriteHandle;
}
extern "C" {
    #[doc = " Force a file-based buffered writer to flush its buffer."]
    #[doc = " If the handle does not use a file, this function returns #GNUNET_OK"]
    #[doc = " without doing anything."]
    #[doc = ""]
    #[doc = " @param h the IO handle"]
    #[doc = " @return #GNUNET_OK upon success.  Upon failure #GNUNET_SYSERR is returned"]
    #[doc = "         and the file is closed"]
    pub fn GNUNET_BIO_flush(h: *mut GNUNET_BIO_WriteHandle) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get the IO handle's contents."]
    #[doc = " If the handle doesn't use an in-memory buffer, this function returns"]
    #[doc = " #GNUNET_SYSERR."]
    #[doc = ""]
    #[doc = " @param h the IO handle"]
    #[doc = " @param emsg set to the (allocated) error message"]
    #[doc = "        if the handle has an error message the return value is #GNUNET_SYSERR"]
    #[doc = " @param contents where to store the pointer to the handle's contents"]
    #[doc = " @param size where to store the size of @e contents"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_BIO_get_buffer_contents(
        h: *mut GNUNET_BIO_WriteHandle,
        emsg: *mut *mut ::std::os::raw::c_char,
        contents: *mut *mut ::std::os::raw::c_void,
        size: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Close an IO handle."]
    #[doc = " If the handle was using a file, the file will be closed."]
    #[doc = ""]
    #[doc = " @param h file handle"]
    #[doc = " @param emsg set to the (allocated) error message"]
    #[doc = "        if the handle has an error message, the return value is #GNUNET_SYSERR"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_BIO_write_close(
        h: *mut GNUNET_BIO_WriteHandle,
        emsg: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write a buffer to a handle."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param buffer the data to write"]
    #[doc = " @param n number of bytes to write"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_write(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        buffer: *const ::std::os::raw::c_void,
        n: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write a 0-terminated string."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param s string to write (can be NULL)"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_write_string(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        s: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write a metadata container."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param m metadata to write"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_write_meta_data(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        m: *const GNUNET_CONTAINER_MetaData,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write a float."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param f float to write (must be a variable)"]
    pub fn GNUNET_BIO_write_float(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        f: f32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write a double."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param f double to write (must be a variable)"]
    pub fn GNUNET_BIO_write_double(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        f: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write an (u)int32_t."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param i 32-bit integer to write"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_write_int32(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        i: i32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Write an (u)int64_t."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param i 64-bit integer to write"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_BIO_write_int64(
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        i: i64,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Function used to deserialize data read from @a h and store it into @a"]
#[doc = " target."]
#[doc = ""]
#[doc = " @param cls closure (can be NULL)"]
#[doc = " @param h the IO handle to read from"]
#[doc = " @param what what is being read (for error message creation)"]
#[doc = " @param target where to store the data"]
#[doc = " @param target_size how many bytes can be written in @a target"]
#[doc = "        can be 0 if the size is unknown or is not fixed"]
#[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
pub type GNUNET_BIO_ReadHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        h: *mut GNUNET_BIO_ReadHandle,
        what: *const ::std::os::raw::c_char,
        target: *mut ::std::os::raw::c_void,
        target_size: usize,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Structure specifying a reading operation on an IO handle."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BIO_ReadSpec {
    #[doc = " Function performing data deserialization."]
    pub rh: GNUNET_BIO_ReadHandler,
    #[doc = " Closure for @e rh. Can be NULL."]
    pub cls: *mut ::std::os::raw::c_void,
    #[doc = " What is being read (for error message creation)"]
    pub what: *const ::std::os::raw::c_char,
    #[doc = " Destination buffer. Can also be a pointer to a pointer, especially for"]
    #[doc = " dynamically allocated structures."]
    pub target: *mut ::std::os::raw::c_void,
    #[doc = " Size of @e target. Can be 0 if unknown or not fixed."]
    pub size: usize,
}
#[test]
fn bindgen_test_layout_GNUNET_BIO_ReadSpec() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_BIO_ReadSpec>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_BIO_ReadSpec))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_BIO_ReadSpec>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_BIO_ReadSpec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_ReadSpec>())).rh as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_ReadSpec),
            "::",
            stringify!(rh)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_ReadSpec>())).cls as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_ReadSpec),
            "::",
            stringify!(cls)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_ReadSpec>())).what as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_ReadSpec),
            "::",
            stringify!(what)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_ReadSpec>())).target as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_ReadSpec),
            "::",
            stringify!(target)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_ReadSpec>())).size as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_ReadSpec),
            "::",
            stringify!(size)
        )
    );
}
extern "C" {
    #[doc = " Create the specification to read a certain amount of bytes."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result the buffer to write the result to"]
    #[doc = " @param len the number of bytes to read"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_read_spec_object(
        what: *const ::std::os::raw::c_char,
        result: *mut ::std::os::raw::c_void,
        size: usize,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read a 0-terminated string."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result where to store the pointer to the (allocated) string"]
    #[doc = "        (note that *result could be set to NULL as well)"]
    #[doc = " @param max_length maximum allowed length for the string"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_read_spec_string(
        what: *const ::std::os::raw::c_char,
        result: *mut *mut ::std::os::raw::c_char,
        max_length: usize,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read a metadata container."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param result the buffer to store a pointer to the (allocated) metadata"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_read_spec_meta_data(
        what: *const ::std::os::raw::c_char,
        result: *mut *mut GNUNET_CONTAINER_MetaData,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read an (u)int32_t."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param i where to store the data"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_read_spec_int32(
        what: *const ::std::os::raw::c_char,
        i: *mut i32,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read an (u)int64_t."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param i where to store the data"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_read_spec_int64(
        what: *const ::std::os::raw::c_char,
        i: *mut i64,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read a float."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param f address of float to read"]
    pub fn GNUNET_BIO_read_spec_float(
        what: *const ::std::os::raw::c_char,
        f: *mut f32,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Create the specification to read a double."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param f address of double to read"]
    pub fn GNUNET_BIO_read_spec_double(
        what: *const ::std::os::raw::c_char,
        f: *mut f64,
    ) -> GNUNET_BIO_ReadSpec;
}
extern "C" {
    #[doc = " Execute the read specifications in order."]
    #[doc = ""]
    #[doc = " @param h the IO handle to read from"]
    #[doc = " @param rs array of read specs"]
    #[doc = "        the last element must be #GNUNET_BIO_read_spec_end"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_BIO_read_spec_commit(
        h: *mut GNUNET_BIO_ReadHandle,
        rs: *mut GNUNET_BIO_ReadSpec,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Function used to serialize data from a buffer and write it to @a h."]
#[doc = ""]
#[doc = " @param cls closure (can be NULL)"]
#[doc = " @param h the IO handle to write to"]
#[doc = " @param what what is being written (for error message creation)"]
#[doc = " @param source the data to write"]
#[doc = " @param source_size how many bytes should be written"]
#[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
pub type GNUNET_BIO_WriteHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        h: *mut GNUNET_BIO_WriteHandle,
        what: *const ::std::os::raw::c_char,
        source: *mut ::std::os::raw::c_void,
        source_size: usize,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Structure specifying a writing operation on an IO handle."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_BIO_WriteSpec {
    #[doc = " Function performing data serialization."]
    pub wh: GNUNET_BIO_WriteHandler,
    #[doc = " Closure for @e rh. Can be NULL."]
    pub cls: *mut ::std::os::raw::c_void,
    #[doc = " What is being read (for error message creation)"]
    pub what: *const ::std::os::raw::c_char,
    #[doc = " Source buffer. The data in this buffer will be written to the handle."]
    pub source: *mut ::std::os::raw::c_void,
    #[doc = " Size of @e source. If it's smaller than the real size of @e source, only"]
    #[doc = " this many bytes will be written."]
    pub source_size: usize,
}
#[test]
fn bindgen_test_layout_GNUNET_BIO_WriteSpec() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_BIO_WriteSpec>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_BIO_WriteSpec))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_BIO_WriteSpec>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_BIO_WriteSpec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_WriteSpec>())).wh as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_WriteSpec),
            "::",
            stringify!(wh)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_WriteSpec>())).cls as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_WriteSpec),
            "::",
            stringify!(cls)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_WriteSpec>())).what as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_WriteSpec),
            "::",
            stringify!(what)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_BIO_WriteSpec>())).source as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_WriteSpec),
            "::",
            stringify!(source)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_BIO_WriteSpec>())).source_size as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_BIO_WriteSpec),
            "::",
            stringify!(source_size)
        )
    );
}
extern "C" {
    #[doc = " Create the specification to read some bytes."]
    #[doc = ""]
    #[doc = " @param what describes what is being written (for error message creation)"]
    #[doc = " @param source the data to write"]
    #[doc = " @param size how many bytes should be written"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_object(
        what: *const ::std::os::raw::c_char,
        source: *mut ::std::os::raw::c_void,
        size: usize,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write a 0-terminated string."]
    #[doc = ""]
    #[doc = " @param what describes what is being read (for error message creation)"]
    #[doc = " @param s string to write (can be NULL)"]
    #[doc = " @return the read spec"]
    pub fn GNUNET_BIO_write_spec_string(
        what: *const ::std::os::raw::c_char,
        s: *const ::std::os::raw::c_char,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write a metadata container."]
    #[doc = ""]
    #[doc = " @param what what is being written (for error message creation)"]
    #[doc = " @param m metadata to write"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_meta_data(
        what: *const ::std::os::raw::c_char,
        m: *const GNUNET_CONTAINER_MetaData,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write an (u)int32_t."]
    #[doc = ""]
    #[doc = " @param what describes what is being written (for error message creation)"]
    #[doc = " @param i pointer to a 32-bit integer"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_int32(
        what: *const ::std::os::raw::c_char,
        i: *mut i32,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write an (u)int64_t."]
    #[doc = ""]
    #[doc = " @param what describes what is being written (for error message creation)"]
    #[doc = " @param i pointer to a 64-bit integer"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_int64(
        what: *const ::std::os::raw::c_char,
        i: *mut i64,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write a float."]
    #[doc = ""]
    #[doc = " @param what describes what is being written (for error message creation)"]
    #[doc = " @param f pointer to a float"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_float(
        what: *const ::std::os::raw::c_char,
        f: *mut f32,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Create the specification to write an double."]
    #[doc = ""]
    #[doc = " @param what describes what is being written (for error message creation)"]
    #[doc = " @param f pointer to a double"]
    #[doc = " @return the write spec"]
    pub fn GNUNET_BIO_write_spec_double(
        what: *const ::std::os::raw::c_char,
        f: *mut f64,
    ) -> GNUNET_BIO_WriteSpec;
}
extern "C" {
    #[doc = " Execute the write specifications in order."]
    #[doc = ""]
    #[doc = " @param h the IO handle to write to"]
    #[doc = " @param ws array of write specs"]
    #[doc = "        the last element must be #GNUNET_BIO_write_spec_end"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_BIO_write_spec_commit(
        h: *mut GNUNET_BIO_WriteHandle,
        ws: *mut GNUNET_BIO_WriteSpec,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Dynamically growing buffer.  Can be used to construct"]
#[doc = " strings and other objects with dynamic size."]
#[doc = ""]
#[doc = " This structure should, in most cases, be stack-allocated and"]
#[doc = " zero-initialized, like:"]
#[doc = ""]
#[doc = "   struct GNUNET_Buffer my_buffer = { 0 };"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_Buffer {
    #[doc = " Capacity of the buffer."]
    pub capacity: usize,
    #[doc = " Current write position."]
    pub position: usize,
    #[doc = " Backing memory."]
    pub mem: *mut ::std::os::raw::c_char,
    #[doc = " Log a warning if the buffer is grown over its initially allocated capacity."]
    pub warn_grow: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_GNUNET_Buffer() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_Buffer>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_Buffer))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_Buffer>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_Buffer))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_Buffer>())).capacity as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_Buffer),
            "::",
            stringify!(capacity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_Buffer>())).position as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_Buffer),
            "::",
            stringify!(position)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_Buffer>())).mem as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_Buffer),
            "::",
            stringify!(mem)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_Buffer>())).warn_grow as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_Buffer),
            "::",
            stringify!(warn_grow)
        )
    );
}
extern "C" {
    #[doc = " Initialize a buffer with the given capacity."]
    #[doc = ""]
    #[doc = " When a buffer is allocated with this function, a warning is logged"]
    #[doc = " when the buffer exceeds the initial capacity."]
    #[doc = ""]
    #[doc = " @param buf the buffer to initialize"]
    #[doc = " @param capacity the capacity (in bytes) to allocate for @a buf"]
    pub fn GNUNET_buffer_prealloc(buf: *mut GNUNET_Buffer, capacity: usize);
}
extern "C" {
    #[doc = " Make sure that at least @a n bytes remaining in the buffer."]
    #[doc = ""]
    #[doc = " @param buf buffer to potentially grow"]
    #[doc = " @param n number of bytes that should be available to write"]
    pub fn GNUNET_buffer_ensure_remaining(buf: *mut GNUNET_Buffer, n: usize);
}
extern "C" {
    #[doc = " Write bytes to the buffer."]
    #[doc = ""]
    #[doc = " Grows the buffer if necessary."]
    #[doc = ""]
    #[doc = " @param buf buffer to write to"]
    #[doc = " @param data data to read from"]
    #[doc = " @param len number of bytes to copy from @a data to @a buf"]
    #[doc = ""]
    pub fn GNUNET_buffer_write(
        buf: *mut GNUNET_Buffer,
        data: *const ::std::os::raw::c_char,
        len: usize,
    );
}
extern "C" {
    #[doc = " Write a 0-terminated string to a buffer, excluding the 0-terminator."]
    #[doc = ""]
    #[doc = " Grows the buffer if necessary."]
    #[doc = ""]
    #[doc = " @param buf the buffer to write to"]
    #[doc = " @param str the string to write to @a buf"]
    pub fn GNUNET_buffer_write_str(buf: *mut GNUNET_Buffer, str_: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Write data encoded via #GNUNET_STRINGS_data_to_string to the buffer."]
    #[doc = ""]
    #[doc = " Grows the buffer if necessary."]
    #[doc = ""]
    #[doc = " @param buf buffer to write to"]
    #[doc = " @param data data to read from"]
    #[doc = " @param data_len number of bytes to copy from @a data to @a buf"]
    pub fn GNUNET_buffer_write_data_encoded(
        buf: *mut GNUNET_Buffer,
        data: *const ::std::os::raw::c_void,
        data_len: usize,
    );
}
extern "C" {
    #[doc = " Write a path component to a buffer, ensuring that"]
    #[doc = " there is exactly one slash between the previous contents"]
    #[doc = " of the buffer and the new string."]
    #[doc = ""]
    #[doc = " @param buf buffer to write to"]
    #[doc = " @param str string containing the new path component"]
    pub fn GNUNET_buffer_write_path(buf: *mut GNUNET_Buffer, str_: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Write a 0-terminated formatted string to a buffer, excluding the"]
    #[doc = " 0-terminator."]
    #[doc = ""]
    #[doc = " Grows the buffer if necessary."]
    #[doc = ""]
    #[doc = " @param buf the buffer to write to"]
    #[doc = " @param fmt format string"]
    #[doc = " @param ... format arguments"]
    pub fn GNUNET_buffer_write_fstr(
        buf: *mut GNUNET_Buffer,
        fmt: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    #[doc = " Write a 0-terminated formatted string to a buffer, excluding the"]
    #[doc = " 0-terminator."]
    #[doc = ""]
    #[doc = " Grows the buffer if necessary."]
    #[doc = ""]
    #[doc = " @param buf the buffer to write to"]
    #[doc = " @param fmt format string"]
    #[doc = " @param args format argument list"]
    pub fn GNUNET_buffer_write_vfstr(
        buf: *mut GNUNET_Buffer,
        fmt: *const ::std::os::raw::c_char,
        args: *mut __va_list_tag,
    );
}
extern "C" {
    #[doc = " Clear the buffer and return the string it contained."]
    #[doc = " The caller is responsible to eventually #GNUNET_free"]
    #[doc = " the returned string."]
    #[doc = ""]
    #[doc = " The returned string is always 0-terminated."]
    #[doc = ""]
    #[doc = " @param buf the buffer to reap the string from"]
    #[doc = " @returns the buffer contained in the string"]
    pub fn GNUNET_buffer_reap_str(buf: *mut GNUNET_Buffer) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Clear the buffer and return its contents."]
    #[doc = " The caller is responsible to eventually #GNUNET_free"]
    #[doc = " the returned data."]
    #[doc = ""]
    #[doc = " @param buf the buffer to reap the contents from"]
    #[doc = " @param size where to store the size of the returned data"]
    #[doc = " @returns the data contained in the string"]
    pub fn GNUNET_buffer_reap(
        buf: *mut GNUNET_Buffer,
        size: *mut usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Free the backing memory of the given buffer."]
    #[doc = " Does not free the memory of the buffer control structure,"]
    #[doc = " which is typically stack-allocated."]
    pub fn GNUNET_buffer_clear(buf: *mut GNUNET_Buffer);
}
#[doc = " Opaque reference to a task."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SCHEDULER_Task {
    _unused: [u8; 0],
}
#[doc = " This task is not ready."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_NONE: GNUNET_SCHEDULER_Reason = 0;
#[doc = " This is the very first task run during startup."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_STARTUP: GNUNET_SCHEDULER_Reason = 1;
#[doc = " We are shutting down and are running all shutdown-related tasks."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_SHUTDOWN: GNUNET_SCHEDULER_Reason = 2;
#[doc = " The specified timeout has expired."]
#[doc = " (also set if the delay given was 0)."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_TIMEOUT: GNUNET_SCHEDULER_Reason = 4;
#[doc = " The reading socket is ready."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_READ_READY: GNUNET_SCHEDULER_Reason = 8;
#[doc = " The writing socket is ready."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_WRITE_READY: GNUNET_SCHEDULER_Reason = 16;
#[doc = " The prerequisite task is done."]
pub const GNUNET_SCHEDULER_Reason_GNUNET_SCHEDULER_REASON_PREREQ_DONE: GNUNET_SCHEDULER_Reason = 32;
#[doc = " Reasons why the schedule may have triggered"]
#[doc = " the task now."]
pub type GNUNET_SCHEDULER_Reason = ::std::os::raw::c_uint;
#[doc = " @brief handle to a socket"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_NETWORK_Handle {
    _unused: [u8; 0],
}
#[doc = " @brief collection of IO descriptors"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_NETWORK_FDSet {
    #[doc = " Maximum number of any socket descriptor in the set (plus one)"]
    pub nsds: ::std::os::raw::c_int,
    #[doc = " Bitset with the descriptors."]
    pub sds: fd_set,
}
#[test]
fn bindgen_test_layout_GNUNET_NETWORK_FDSet() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_NETWORK_FDSet>(),
        136usize,
        concat!("Size of: ", stringify!(GNUNET_NETWORK_FDSet))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_NETWORK_FDSet>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_NETWORK_FDSet))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_NETWORK_FDSet>())).nsds as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_NETWORK_FDSet),
            "::",
            stringify!(nsds)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_NETWORK_FDSet>())).sds as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_NETWORK_FDSet),
            "::",
            stringify!(sds)
        )
    );
}
#[doc = " Handle used to manage a pipe."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DISK_PipeHandle {
    _unused: [u8; 0],
}
#[doc = " Handle represents an event."]
pub const GNUNET_FILE_Type_GNUNET_DISK_HANLDE_TYPE_EVENT: GNUNET_FILE_Type = 0;
#[doc = " Handle represents a file."]
pub const GNUNET_FILE_Type_GNUNET_DISK_HANLDE_TYPE_FILE: GNUNET_FILE_Type = 1;
#[doc = " Handle represents a pipe."]
pub const GNUNET_FILE_Type_GNUNET_DISK_HANLDE_TYPE_PIPE: GNUNET_FILE_Type = 2;
#[doc = " Type of a handle."]
pub type GNUNET_FILE_Type = ::std::os::raw::c_uint;
#[doc = " Handle used to access files (and pipes)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DISK_FileHandle {
    #[doc = " File handle on Unix-like systems."]
    pub fd: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_GNUNET_DISK_FileHandle() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DISK_FileHandle>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_DISK_FileHandle))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DISK_FileHandle>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_DISK_FileHandle))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DISK_FileHandle>())).fd as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DISK_FileHandle),
            "::",
            stringify!(fd)
        )
    );
}
extern "C" {
    #[doc = " Create a new configuration object."]
    #[doc = " @return fresh configuration object"]
    pub fn GNUNET_CONFIGURATION_create() -> *mut GNUNET_CONFIGURATION_Handle;
}
extern "C" {
    #[doc = " Duplicate an existing configuration object."]
    #[doc = ""]
    #[doc = " @param cfg configuration to duplicate"]
    #[doc = " @return duplicate configuration"]
    pub fn GNUNET_CONFIGURATION_dup(
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> *mut GNUNET_CONFIGURATION_Handle;
}
extern "C" {
    #[doc = " Destroy configuration object."]
    #[doc = ""]
    #[doc = " @param cfg configuration to destroy"]
    pub fn GNUNET_CONFIGURATION_destroy(cfg: *mut GNUNET_CONFIGURATION_Handle);
}
extern "C" {
    #[doc = " Load configuration.  This function will first parse the"]
    #[doc = " defaults and then parse the specific configuration file"]
    #[doc = " to overwrite the defaults."]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param filename name of the configuration file, NULL to load defaults"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_load(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Load default configuration.  This function will parse the"]
    #[doc = " defaults from the given @a defaults_d directory."]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param defaults_d directory with the defaults"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_load_from(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        defaults_d: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Return GNUnet's default configuration.  A new configuration is allocated"]
    #[doc = " each time and it's up to the caller to destroy it when done.  This function"]
    #[doc = " returns GNUnet's configuration even when #GNUNET_OS_init has been called"]
    #[doc = " with a value different from #GNUNET_OS_project_data_default."]
    #[doc = ""]
    #[doc = " @return a freshly allocated configuration"]
    pub fn GNUNET_CONFIGURATION_default() -> *mut GNUNET_CONFIGURATION_Handle;
}
extern "C" {
    #[doc = " Parse a configuration file, add all of the options in the"]
    #[doc = " file to the configuration environment."]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param filename name of the configuration file"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_parse(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Serializes the given configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration to serialize"]
    #[doc = " @param size will be set to the size of the serialized memory block"]
    #[doc = " @return the memory block where the serialized configuration is"]
    #[doc = "           present. This memory should be freed by the caller"]
    pub fn GNUNET_CONFIGURATION_serialize(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        size: *mut usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " De-serializes configuration"]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param mem the memory block of serialized configuration"]
    #[doc = " @param size the size of the memory block"]
    #[doc = " @param allow_inline set to the base directory if we recursively load configuration"]
    #[doc = "          from inlined configurations; NULL if not and raise warnings"]
    #[doc = "          when we come across them"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_deserialize(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        mem: *const ::std::os::raw::c_char,
        size: usize,
        basedir: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Write configuration file."]
    #[doc = ""]
    #[doc = " @param cfg configuration to write"]
    #[doc = " @param filename where to write the configuration"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_write(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Write only configuration entries that have been changed to configuration file"]
    #[doc = ""]
    #[doc = " @param cfg_default default configuration"]
    #[doc = " @param cfg_new new configuration"]
    #[doc = " @param filename where to write the configuration diff between default and new"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_write_diffs(
        cfg_default: *const GNUNET_CONFIGURATION_Handle,
        cfg_new: *const GNUNET_CONFIGURATION_Handle,
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Compute configuration with only entries that have been changed"]
    #[doc = ""]
    #[doc = " @param cfg_default original configuration"]
    #[doc = " @param cfg_new new configuration"]
    #[doc = " @return configuration with only the differences, never NULL"]
    pub fn GNUNET_CONFIGURATION_get_diff(
        cfg_default: *const GNUNET_CONFIGURATION_Handle,
        cfg_new: *const GNUNET_CONFIGURATION_Handle,
    ) -> *mut GNUNET_CONFIGURATION_Handle;
}
extern "C" {
    #[doc = " Test if there are configuration options that were"]
    #[doc = " changed since the last save."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @return #GNUNET_NO if clean, #GNUNET_YES if dirty, #GNUNET_SYSERR on error (i.e. last save failed)"]
    pub fn GNUNET_CONFIGURATION_is_dirty(
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Signature of a function to be run with a configuration."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param cfg the configuration"]
#[doc = " @return status code"]
pub type GNUNET_CONFIGURATION_Callback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> GNUNET_GenericReturnValue,
>;
extern "C" {
    #[doc = " Parse a configuration file @a filename and run the function"]
    #[doc = " @a cb with the resulting configuration object. Then free the"]
    #[doc = " configuration object and return the status value from @a cb."]
    #[doc = ""]
    #[doc = " @param filename configuration to parse, NULL for \"default\""]
    #[doc = " @param cb function to run"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return #GNUNET_SYSERR if parsing the configuration failed,"]
    #[doc = "   otherwise return value from @a cb."]
    pub fn GNUNET_CONFIGURATION_parse_and_run(
        filename: *const ::std::os::raw::c_char,
        cb: GNUNET_CONFIGURATION_Callback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Function to iterate over options."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param section name of the section"]
#[doc = " @param option name of the option"]
#[doc = " @param value value of the option"]
pub type GNUNET_CONFIGURATION_Iterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ),
>;
#[doc = " Function to iterate over section."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param section name of the section"]
pub type GNUNET_CONFIGURATION_Section_Iterator = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, section: *const ::std::os::raw::c_char),
>;
extern "C" {
    #[doc = " Iterate over all options in the configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param iter function to call on each option"]
    #[doc = " @param iter_cls closure for @a iter"]
    pub fn GNUNET_CONFIGURATION_iterate(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        iter: GNUNET_CONFIGURATION_Iterator,
        iter_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Iterate over all sections in the configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param iter function to call on each section"]
    #[doc = " @param iter_cls closure for @a iter"]
    pub fn GNUNET_CONFIGURATION_iterate_sections(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        iter: GNUNET_CONFIGURATION_Section_Iterator,
        iter_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Remove the given section and all options in it."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section name of the section to remove"]
    pub fn GNUNET_CONFIGURATION_remove_section(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Get a configuration value that should be a number."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param number where to store the numeric value of the option"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_number(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        number: *mut ::std::os::raw::c_ulonglong,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be a floating point number."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param number where to store the floating value of the option"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_float(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        number: *mut f32,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be a relative time."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param time set to the time value stored in the configuration"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_time(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        time: *mut GNUNET_TIME_Relative,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be a size in bytes."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param size set to the size in bytes as stored in the configuration"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_size(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        size: *mut ::std::os::raw::c_ulonglong,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Test if we have a value for a particular option"]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @return #GNUNET_YES if so, #GNUNET_NO if not."]
    pub fn GNUNET_CONFIGURATION_have_value(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be a string."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param value will be set to a freshly allocated configuration"]
    #[doc = "        value, or NULL if option is not specified"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_string(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be the name of a file"]
    #[doc = " or directory."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param value will be set to a freshly allocated configuration"]
    #[doc = "        value, or NULL if option is not specified"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_filename(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Iterate over the set of filenames stored in a configuration value."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param cb function to call on each filename"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return number of filenames iterated over, -1 on error"]
    pub fn GNUNET_CONFIGURATION_iterate_value_filenames(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        cb: GNUNET_FileNameCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Iterate over values of a section in the configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section the section"]
    #[doc = " @param iter function to call on each option"]
    #[doc = " @param iter_cls closure for @a iter"]
    pub fn GNUNET_CONFIGURATION_iterate_section_values(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        iter: GNUNET_CONFIGURATION_Iterator,
        iter_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Get a configuration value that should be in a set of"]
    #[doc = " predefined strings"]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param choices NULL-terminated list of legal values"]
    #[doc = " @param value will be set to an entry in the legal list,"]
    #[doc = "        or NULL if option is not specified and no default given"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_CONFIGURATION_get_value_choice(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        choices: *const *const ::std::os::raw::c_char,
        value: *mut *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get a configuration value that should be in a set of"]
    #[doc = " \"YES\" or \"NO\"."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @return #GNUNET_YES, #GNUNET_NO or if option has no valid value, #GNUNET_SYSERR"]
    pub fn GNUNET_CONFIGURATION_get_value_yesno(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get Crockford32-encoded fixed-size binary data from a configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration to access"]
    #[doc = " @param section section to access"]
    #[doc = " @param option option to access"]
    #[doc = " @param buf where to store the decoded binary result"]
    #[doc = " @param buf_size exact number of bytes to store in @a buf"]
    #[doc = " @return #GNUNET_OK on success"]
    #[doc = "         #GNUNET_NO is the value does not exist"]
    #[doc = "         #GNUNET_SYSERR on decoding error"]
    pub fn GNUNET_CONFIGURATION_get_data(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        buf: *mut ::std::os::raw::c_void,
        buf_size: usize,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Expand an expression of the form \"$FOO/BAR\" to \"DIRECTORY/BAR\""]
    #[doc = " where either in the \"PATHS\" section or the environment \"FOO\" is"]
    #[doc = " set to \"DIRECTORY\".  We also support default expansion,"]
    #[doc = " i.e. ${VARIABLE:-default} will expand to $VARIABLE if VARIABLE is"]
    #[doc = " set in PATHS or the environment, and otherwise to \"default\".  Note"]
    #[doc = " that \"default\" itself can also be a $-expression, thus"]
    #[doc = " \"${VAR1:-{$VAR2}}\" will expand to VAR1 and if that is not defined"]
    #[doc = " to VAR2."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use for path expansion"]
    #[doc = " @param orig string to $-expand (will be freed!)  Note that multiple"]
    #[doc = "          $-expressions can be present in this string.  They will all be"]
    #[doc = "          $-expanded."]
    #[doc = " @return $-expanded string"]
    pub fn GNUNET_CONFIGURATION_expand_dollar(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        orig: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Set a configuration value that should be a number."]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param number value to set"]
    pub fn GNUNET_CONFIGURATION_set_value_number(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        number: ::std::os::raw::c_ulonglong,
    );
}
extern "C" {
    #[doc = " Set a configuration value that should be a string."]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param value value to set"]
    pub fn GNUNET_CONFIGURATION_set_value_string(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Remove a filename from a configuration value that"]
    #[doc = " represents a list of filenames"]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param value filename to remove"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_SYSERR if the filename is not in the list"]
    pub fn GNUNET_CONFIGURATION_remove_value_filename(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Append a filename to a configuration value that"]
    #[doc = " represents a list of filenames"]
    #[doc = ""]
    #[doc = " @param cfg configuration to update"]
    #[doc = " @param section section of interest"]
    #[doc = " @param option option of interest"]
    #[doc = " @param value filename to append"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_SYSERR if the filename already in the list"]
    pub fn GNUNET_CONFIGURATION_append_value_filename(
        cfg: *mut GNUNET_CONFIGURATION_Handle,
        section: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Open the file for reading"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_READ: GNUNET_DISK_OpenFlags = 1;
#[doc = " Open the file for writing"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_WRITE: GNUNET_DISK_OpenFlags = 2;
#[doc = " Open the file for both reading and writing"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_READWRITE: GNUNET_DISK_OpenFlags = 3;
#[doc = " Fail if file already exists"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_FAILIFEXISTS: GNUNET_DISK_OpenFlags = 4;
#[doc = " Truncate file if it exists"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_TRUNCATE: GNUNET_DISK_OpenFlags = 8;
#[doc = " Create file if it doesn't exist"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_CREATE: GNUNET_DISK_OpenFlags = 16;
#[doc = " Append to the file"]
pub const GNUNET_DISK_OpenFlags_GNUNET_DISK_OPEN_APPEND: GNUNET_DISK_OpenFlags = 32;
#[doc = " Specifies how a file should be opened."]
pub type GNUNET_DISK_OpenFlags = ::std::os::raw::c_uint;
#[doc = " Read-only memory map."]
pub const GNUNET_DISK_MapType_GNUNET_DISK_MAP_TYPE_READ: GNUNET_DISK_MapType = 1;
#[doc = " Write-able memory map."]
pub const GNUNET_DISK_MapType_GNUNET_DISK_MAP_TYPE_WRITE: GNUNET_DISK_MapType = 2;
#[doc = " Read-write memory map."]
pub const GNUNET_DISK_MapType_GNUNET_DISK_MAP_TYPE_READWRITE: GNUNET_DISK_MapType = 3;
#[doc = " Specifies what type of memory map is desired."]
pub type GNUNET_DISK_MapType = ::std::os::raw::c_uint;
#[doc = " Nobody is allowed to do anything to the file."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_NONE: GNUNET_DISK_AccessPermissions = 0;
#[doc = " Owner can read."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_USER_READ: GNUNET_DISK_AccessPermissions =
    1;
#[doc = " Owner can write."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_USER_WRITE: GNUNET_DISK_AccessPermissions =
    2;
#[doc = " Owner can execute."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_USER_EXEC: GNUNET_DISK_AccessPermissions =
    4;
#[doc = " Group can read."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_GROUP_READ: GNUNET_DISK_AccessPermissions =
    8;
#[doc = " Group can write."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_GROUP_WRITE:
    GNUNET_DISK_AccessPermissions = 16;
#[doc = " Group can execute."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_GROUP_EXEC: GNUNET_DISK_AccessPermissions =
    32;
#[doc = " Everybody can read."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_OTHER_READ: GNUNET_DISK_AccessPermissions =
    64;
#[doc = " Everybody can write."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_OTHER_WRITE:
    GNUNET_DISK_AccessPermissions = 128;
#[doc = " Everybody can execute."]
pub const GNUNET_DISK_AccessPermissions_GNUNET_DISK_PERM_OTHER_EXEC: GNUNET_DISK_AccessPermissions =
    256;
#[doc = " File access permissions, UNIX-style."]
pub type GNUNET_DISK_AccessPermissions = ::std::os::raw::c_uint;
#[doc = " Seek an absolute position (from the start of the file)."]
pub const GNUNET_DISK_Seek_GNUNET_DISK_SEEK_SET: GNUNET_DISK_Seek = 0;
#[doc = " Seek a relative position (from the current offset)."]
pub const GNUNET_DISK_Seek_GNUNET_DISK_SEEK_CUR: GNUNET_DISK_Seek = 1;
#[doc = " Seek an absolute position from the end of the file."]
pub const GNUNET_DISK_Seek_GNUNET_DISK_SEEK_END: GNUNET_DISK_Seek = 2;
#[doc = " Constants for specifying how to seek.  Do not change values or order,"]
#[doc = " some of the code depends on the specific numeric values!"]
pub type GNUNET_DISK_Seek = ::std::os::raw::c_uint;
#[doc = " The reading-end of a pipe."]
pub const GNUNET_DISK_PipeEnd_GNUNET_DISK_PIPE_END_READ: GNUNET_DISK_PipeEnd = 0;
#[doc = " The writing-end of a pipe."]
pub const GNUNET_DISK_PipeEnd_GNUNET_DISK_PIPE_END_WRITE: GNUNET_DISK_PipeEnd = 1;
#[doc = " Enumeration identifying the two ends of a pipe."]
pub type GNUNET_DISK_PipeEnd = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Checks whether a handle is invalid"]
    #[doc = ""]
    #[doc = " @param h handle to check"]
    #[doc = " @return #GNUNET_YES if invalid, #GNUNET_NO if valid"]
    pub fn GNUNET_DISK_handle_invalid(
        h: *const GNUNET_DISK_FileHandle,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Check that fil corresponds to a filename"]
    #[doc = " (of a file that exists and that is not a directory)."]
    #[doc = ""]
    #[doc = " @param fil filename to check"]
    #[doc = " @return #GNUNET_YES if yes, #GNUNET_NO if not a file, #GNUNET_SYSERR if something"]
    #[doc = " else (will print an error message in that case, too)."]
    pub fn GNUNET_DISK_file_test(fil: *const ::std::os::raw::c_char) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Move a file out of the way (create a backup) by renaming it to \"orig.NUM~\""]
    #[doc = " where NUM is the smallest number that is not used yet."]
    #[doc = ""]
    #[doc = " @param fil name of the file to back up"]
    pub fn GNUNET_DISK_file_backup(fil: *const ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " Move the read/write pointer in a file"]
    #[doc = " @param h handle of an open file"]
    #[doc = " @param offset position to move to"]
    #[doc = " @param whence specification to which position the offset parameter relates to"]
    #[doc = " @return the new position on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_file_seek(
        h: *const GNUNET_DISK_FileHandle,
        offset: off_t,
        whence: GNUNET_DISK_Seek,
    ) -> off_t;
}
extern "C" {
    #[doc = " Get the size of the file (or directory) of the given file (in"]
    #[doc = " bytes)."]
    #[doc = ""]
    #[doc = " @param filename name of the file or directory"]
    #[doc = " @param size set to the size of the file (or,"]
    #[doc = "             in the case of directories, the sum"]
    #[doc = "             of all sizes of files in the directory)"]
    #[doc = " @param include_symbolic_links should symbolic links be"]
    #[doc = "        included?"]
    #[doc = " @param single_file_mode #GNUNET_YES to only get size of one file"]
    #[doc = "        and return #GNUNET_SYSERR for directories."]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_DISK_file_size(
        filename: *const ::std::os::raw::c_char,
        size: *mut u64,
        include_symbolic_links: ::std::os::raw::c_int,
        single_file_mode: ::std::os::raw::c_int,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Obtain some unique identifiers for the given file"]
    #[doc = " that can be used to identify it in the local system."]
    #[doc = " This function is used between GNUnet processes to"]
    #[doc = " quickly check if two files with the same absolute path"]
    #[doc = " are actually identical.  The two processes represent"]
    #[doc = " the same peer but may communicate over the network"]
    #[doc = " (and the file may be on an NFS volume).  This function"]
    #[doc = " may not be supported on all operating systems."]
    #[doc = ""]
    #[doc = " @param filename name of the file"]
    #[doc = " @param dev set to the device ID"]
    #[doc = " @param ino set to the inode ID"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_DISK_file_get_identifiers(
        filename: *const ::std::os::raw::c_char,
        dev: *mut u64,
        ino: *mut u64,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Create an (empty) temporary file on disk.  If the given name is not"]
    #[doc = " an absolute path, the current 'TMPDIR' will be prepended.  In any case,"]
    #[doc = " 6 random characters will be appended to the name to create a unique"]
    #[doc = " filename."]
    #[doc = ""]
    #[doc = " @param t component to use for the name;"]
    #[doc = "        does NOT contain \"XXXXXX\" or \"/tmp/\"."]
    #[doc = " @return NULL on error, otherwise name of fresh"]
    #[doc = "         file on disk in directory for temporary files"]
    pub fn GNUNET_DISK_mktemp(t: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Create an (empty) temporary directory on disk.  If the given name is not an"]
    #[doc = " absolute path, the current 'TMPDIR' will be prepended.  In any case, 6"]
    #[doc = " random characters will be appended to the name to create a unique name."]
    #[doc = ""]
    #[doc = " @param t component to use for the name;"]
    #[doc = "        does NOT contain \"XXXXXX\" or \"/tmp/\"."]
    #[doc = " @return NULL on error, otherwise name of freshly created directory"]
    pub fn GNUNET_DISK_mkdtemp(t: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Open a file.  Note that the access permissions will only be"]
    #[doc = " used if a new file is created and if the underlying operating"]
    #[doc = " system supports the given permissions."]
    #[doc = ""]
    #[doc = " @param fn file name to be opened"]
    #[doc = " @param flags opening flags, a combination of GNUNET_DISK_OPEN_xxx bit flags"]
    #[doc = " @param perm permissions for the newly created file, use"]
    #[doc = "             #GNUNET_DISK_PERM_NONE if a file could not be created by this"]
    #[doc = "             call (because of flags)"]
    #[doc = " @return IO handle on success, NULL on error"]
    pub fn GNUNET_DISK_file_open(
        fn_: *const ::std::os::raw::c_char,
        flags: GNUNET_DISK_OpenFlags,
        perm: GNUNET_DISK_AccessPermissions,
    ) -> *mut GNUNET_DISK_FileHandle;
}
extern "C" {
    #[doc = " Get the size of an open file."]
    #[doc = ""]
    #[doc = " @param fh open file handle"]
    #[doc = " @param size where to write size of the file"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_DISK_file_handle_size(
        fh: *mut GNUNET_DISK_FileHandle,
        size: *mut off_t,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " No special options, use non-blocking read/write operations."]
pub const GNUNET_DISK_PipeFlags_GNUNET_DISK_PF_NONE: GNUNET_DISK_PipeFlags = 0;
#[doc = " Configure read end to block when reading if set."]
pub const GNUNET_DISK_PipeFlags_GNUNET_DISK_PF_BLOCKING_READ: GNUNET_DISK_PipeFlags = 1;
#[doc = " Configure write end to block when writing if set."]
pub const GNUNET_DISK_PipeFlags_GNUNET_DISK_PF_BLOCKING_WRITE: GNUNET_DISK_PipeFlags = 2;
#[doc = " Configure both pipe ends for blocking operations if set."]
pub const GNUNET_DISK_PipeFlags_GNUNET_DISK_PF_BLOCKING_RW: GNUNET_DISK_PipeFlags = 3;
#[doc = " Flags for #GNUNET_DISK_pipe()."]
pub type GNUNET_DISK_PipeFlags = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Creates an interprocess channel"]
    #[doc = ""]
    #[doc = " @param pf how to configure the pipe"]
    #[doc = " @return handle to the new pipe, NULL on error"]
    pub fn GNUNET_DISK_pipe(pf: GNUNET_DISK_PipeFlags) -> *mut GNUNET_DISK_PipeHandle;
}
extern "C" {
    #[doc = " Creates a pipe object from a couple of file descriptors."]
    #[doc = " Useful for wrapping existing pipe FDs."]
    #[doc = ""]
    #[doc = " @param pf how to configure the pipe"]
    #[doc = " @param fd an array of two fd values. One of them may be -1 for read-only or write-only pipes"]
    #[doc = " @return handle to the new pipe, NULL on error"]
    pub fn GNUNET_DISK_pipe_from_fd(
        pf: GNUNET_DISK_PipeFlags,
        fd: *mut ::std::os::raw::c_int,
    ) -> *mut GNUNET_DISK_PipeHandle;
}
extern "C" {
    #[doc = " Closes an interprocess channel"]
    #[doc = " @param p pipe"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_pipe_close(p: *mut GNUNET_DISK_PipeHandle) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Closes one half of an interprocess channel"]
    #[doc = ""]
    #[doc = " @param p pipe to close end of"]
    #[doc = " @param end which end of the pipe to close"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_pipe_close_end(
        p: *mut GNUNET_DISK_PipeHandle,
        end: GNUNET_DISK_PipeEnd,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Detaches one of the ends from the pipe."]
    #[doc = " Detached end is a fully-functional FileHandle, it will"]
    #[doc = " not be affected by anything you do with the pipe afterwards."]
    #[doc = " Each end of a pipe can only be detched from it once (i.e."]
    #[doc = " it is not duplicated)."]
    #[doc = ""]
    #[doc = " @param p pipe to detach an end from"]
    #[doc = " @param end which end of the pipe to detach"]
    #[doc = " @return Detached end on success, NULL on failure"]
    #[doc = " (or if that end is not present or is closed)."]
    pub fn GNUNET_DISK_pipe_detach_end(
        p: *mut GNUNET_DISK_PipeHandle,
        end: GNUNET_DISK_PipeEnd,
    ) -> *mut GNUNET_DISK_FileHandle;
}
extern "C" {
    #[doc = " Close an open file."]
    #[doc = ""]
    #[doc = " @param h file handle"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_file_close(h: *mut GNUNET_DISK_FileHandle) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Get the handle to a particular pipe end"]
    #[doc = ""]
    #[doc = " @param p pipe"]
    #[doc = " @param n end to access"]
    #[doc = " @return handle for the respective end"]
    pub fn GNUNET_DISK_pipe_handle(
        p: *const GNUNET_DISK_PipeHandle,
        n: GNUNET_DISK_PipeEnd,
    ) -> *const GNUNET_DISK_FileHandle;
}
extern "C" {
    #[doc = " Update POSIX permissions mask of a file on disk.  If both argumets"]
    #[doc = " are #GNUNET_NO, the file is made world-read-write-executable (777)."]
    #[doc = " Does nothing on W32."]
    #[doc = ""]
    #[doc = " @param fn name of the file to update"]
    #[doc = " @param require_uid_match #GNUNET_YES means 700"]
    #[doc = " @param require_gid_match #GNUNET_YES means 770 unless @a require_uid_match is set"]
    pub fn GNUNET_DISK_fix_permissions(
        fn_: *const ::std::os::raw::c_char,
        require_uid_match: ::std::os::raw::c_int,
        require_gid_match: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Get a handle from a native integer FD."]
    #[doc = ""]
    #[doc = " @param fno native integer file descriptor"]
    #[doc = " @return file handle corresponding to the descriptor"]
    pub fn GNUNET_DISK_get_handle_from_int_fd(
        fno: ::std::os::raw::c_int,
    ) -> *mut GNUNET_DISK_FileHandle;
}
extern "C" {
    #[doc = " Get a handle from a native FD."]
    #[doc = ""]
    #[doc = " @param fd native file descriptor"]
    #[doc = " @return file handle corresponding to the descriptor"]
    pub fn GNUNET_DISK_get_handle_from_native(fd: *mut FILE) -> *mut GNUNET_DISK_FileHandle;
}
extern "C" {
    #[doc = " Read the contents of a binary file into a buffer."]
    #[doc = ""]
    #[doc = " @param h handle to an open file"]
    #[doc = " @param result the buffer to write the result to"]
    #[doc = " @param len the maximum number of bytes to read"]
    #[doc = " @return the number of bytes read on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_DISK_file_read(
        h: *const GNUNET_DISK_FileHandle,
        result: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Read the contents of a binary file into a buffer."]
    #[doc = " Guarantees not to block (returns GNUNET_SYSERR and sets errno to EAGAIN"]
    #[doc = " when no data can be read)."]
    #[doc = ""]
    #[doc = " @param h handle to an open file"]
    #[doc = " @param result the buffer to write the result to"]
    #[doc = " @param len the maximum number of bytes to read"]
    #[doc = " @return the number of bytes read on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_DISK_file_read_non_blocking(
        h: *const GNUNET_DISK_FileHandle,
        result: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Read the contents of a binary file into a buffer."]
    #[doc = ""]
    #[doc = " @param fn file name"]
    #[doc = " @param result the buffer to write the result to"]
    #[doc = " @param len the maximum number of bytes to read"]
    #[doc = " @return number of bytes read, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_DISK_fn_read(
        fn_: *const ::std::os::raw::c_char,
        result: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Write a buffer to a file."]
    #[doc = ""]
    #[doc = " @param h handle to open file"]
    #[doc = " @param buffer the data to write"]
    #[doc = " @param n number of bytes to write"]
    #[doc = " @return number of bytes written on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_DISK_file_write(
        h: *const GNUNET_DISK_FileHandle,
        buffer: *const ::std::os::raw::c_void,
        n: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Write a buffer to a file, blocking, if necessary."]
    #[doc = ""]
    #[doc = " @param h handle to open file"]
    #[doc = " @param buffer the data to write"]
    #[doc = " @param n number of bytes to write"]
    #[doc = " @return number of bytes written on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_DISK_file_write_blocking(
        h: *const GNUNET_DISK_FileHandle,
        buffer: *const ::std::os::raw::c_void,
        n: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Write a buffer to a file atomically.  The directory is created if"]
    #[doc = " necessary.  Fail if @a filename already exists or if not exactly @a buf"]
    #[doc = " with @a buf_size bytes could be written to @a filename."]
    #[doc = ""]
    #[doc = " @param fn file name"]
    #[doc = " @param buf the data to write"]
    #[doc = " @param buf_size number of bytes to write from @a buf"]
    #[doc = " @param mode file permissions"]
    #[doc = " @return #GNUNET_OK on success,"]
    #[doc = "         #GNUNET_NO if a file existed under @a filename"]
    #[doc = "         #GNUNET_SYSERR on failure"]
    pub fn GNUNET_DISK_fn_write(
        fn_: *const ::std::os::raw::c_char,
        buf: *const ::std::os::raw::c_void,
        buf_size: usize,
        mode: GNUNET_DISK_AccessPermissions,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Copy a file."]
    #[doc = ""]
    #[doc = " @param src file to copy"]
    #[doc = " @param dst destination file name"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_DISK_file_copy(
        src: *const ::std::os::raw::c_char,
        dst: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Scan a directory for files."]
    #[doc = ""]
    #[doc = " @param dir_name the name of the directory"]
    #[doc = " @param callback the method to call for each file"]
    #[doc = " @param callback_cls closure for @a callback"]
    #[doc = " @return the number of files found, -1 on error"]
    pub fn GNUNET_DISK_directory_scan(
        dir_name: *const ::std::os::raw::c_char,
        callback: GNUNET_FileNameCallback,
        callback_cls: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create the directory structure for storing"]
    #[doc = " a file."]
    #[doc = ""]
    #[doc = " @param filename name of a file in the directory"]
    #[doc = " @returns #GNUNET_OK on success, #GNUNET_SYSERR on failure,"]
    #[doc = "          #GNUNET_NO if directory exists but is not writeable"]
    pub fn GNUNET_DISK_directory_create_for_file(
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Test if @a fil is a directory and listable. Optionally, also check if the"]
    #[doc = " directory is readable.  Will not print an error message if the directory does"]
    #[doc = " not exist.  Will log errors if #GNUNET_SYSERR is returned (i.e., a file exists"]
    #[doc = " with the same name)."]
    #[doc = ""]
    #[doc = " @param fil filename to test"]
    #[doc = " @param is_readable #GNUNET_YES to additionally check if @a fil is readable;"]
    #[doc = "          #GNUNET_NO to disable this check"]
    #[doc = " @return #GNUNET_YES if yes, #GNUNET_NO if not; #GNUNET_SYSERR if it"]
    #[doc = "           does not exist or `stat`ed"]
    pub fn GNUNET_DISK_directory_test(
        fil: *const ::std::os::raw::c_char,
        is_readable: ::std::os::raw::c_int,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Remove all files in a directory (rm -rf). Call with caution."]
    #[doc = ""]
    #[doc = " @param filename the file to remove"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_DISK_directory_remove(
        filename: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Remove the directory given under @a option in"]
    #[doc = " section [PATHS] in configuration under @a cfg_filename"]
    #[doc = ""]
    #[doc = " @param cfg_filename configuration file to parse"]
    #[doc = " @param option option with the dir name to purge"]
    pub fn GNUNET_DISK_purge_cfg_dir(
        cfg_filename: *const ::std::os::raw::c_char,
        option: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Implementation of \"mkdir -p\""]
    #[doc = ""]
    #[doc = " @param dir the directory to create"]
    #[doc = " @returns #GNUNET_SYSERR on failure, #GNUNET_OK otherwise"]
    pub fn GNUNET_DISK_directory_create(
        dir: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " @brief Removes special characters as ':' from a filename."]
    #[doc = " @param fn the filename to canonicalize"]
    pub fn GNUNET_DISK_filename_canonicalize(fn_: *mut ::std::os::raw::c_char);
}
extern "C" {
    #[doc = " @brief Change owner of a file"]
    #[doc = " @param filename file to change"]
    #[doc = " @param user new owner of the file"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_DISK_file_change_owner(
        filename: *const ::std::os::raw::c_char,
        user: *const ::std::os::raw::c_char,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Opaque handle for a memory-mapping operation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DISK_MapHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Map a file into memory."]
    #[doc = ""]
    #[doc = " @param h open file handle"]
    #[doc = " @param m handle to the new mapping (will be set)"]
    #[doc = " @param access access specification, GNUNET_DISK_MAP_TYPE_xxx"]
    #[doc = " @param len size of the mapping"]
    #[doc = " @return pointer to the mapped memory region, NULL on failure"]
    pub fn GNUNET_DISK_file_map(
        h: *const GNUNET_DISK_FileHandle,
        m: *mut *mut GNUNET_DISK_MapHandle,
        access: GNUNET_DISK_MapType,
        len: usize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Unmap a file"]
    #[doc = ""]
    #[doc = " @param h mapping handle"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_file_unmap(h: *mut GNUNET_DISK_MapHandle) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Write file changes to disk"]
    #[doc = ""]
    #[doc = " @param h handle to an open file"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_DISK_file_sync(h: *const GNUNET_DISK_FileHandle) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Test if the given protocol family is supported by this system."]
    #[doc = ""]
    #[doc = " @param pf protocol family to test (PF_INET, PF_INET6, PF_UNIX)"]
    #[doc = " @return #GNUNET_OK if the PF is supported"]
    pub fn GNUNET_NETWORK_test_pf(pf: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Given a unixpath that is too long (larger than UNIX_PATH_MAX),"]
    #[doc = " shorten it to an acceptable length while keeping it unique"]
    #[doc = " and making sure it remains a valid filename (if possible)."]
    #[doc = ""]
    #[doc = " @param unixpath long path, will be freed (or same pointer returned"]
    #[doc = "        with moved 0-termination)."]
    #[doc = " @return shortened unixpath, NULL on error"]
    pub fn GNUNET_NETWORK_shorten_unixpath(
        unixpath: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " If services crash, they can leave a unix domain socket file on the"]
    #[doc = " disk. This needs to be manually removed, because otherwise both"]
    #[doc = " bind() and connect() for the respective address will fail.  In this"]
    #[doc = " function, we test if such a left-over file exists, and if so,"]
    #[doc = " remove it (unless there is a listening service at the address)."]
    #[doc = ""]
    #[doc = " @param un unix domain socket address to check"]
    pub fn GNUNET_NETWORK_unix_precheck(un: *const sockaddr_un);
}
extern "C" {
    #[doc = " Accept a new connection on a socket.  Configure it for non-blocking"]
    #[doc = " IO and mark it as non-inheritable to child processes (set the"]
    #[doc = " close-on-exec flag)."]
    #[doc = ""]
    #[doc = " @param desc bound socket"]
    #[doc = " @param address address of the connecting peer, may be NULL"]
    #[doc = " @param address_len length of address"]
    #[doc = " @return client socket"]
    pub fn GNUNET_NETWORK_socket_accept(
        desc: *const GNUNET_NETWORK_Handle,
        address: *mut sockaddr,
        address_len: *mut socklen_t,
    ) -> *mut GNUNET_NETWORK_Handle;
}
extern "C" {
    #[doc = " Box a native socket (and check that it is a socket)."]
    #[doc = ""]
    #[doc = " @param fd socket to box"]
    #[doc = " @return NULL on error (including not supported on target platform)"]
    pub fn GNUNET_NETWORK_socket_box_native(
        fd: ::std::os::raw::c_int,
    ) -> *mut GNUNET_NETWORK_Handle;
}
extern "C" {
    #[doc = " Set if a socket should use blocking or non-blocking IO."]
    #[doc = ""]
    #[doc = " @param fd socket"]
    #[doc = " @param doBlock blocking mode"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_NETWORK_socket_set_blocking(
        fd: *mut GNUNET_NETWORK_Handle,
        doBlock: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Bind a socket to a particular address."]
    #[doc = ""]
    #[doc = " @param desc socket to bind"]
    #[doc = " @param address address to be bound"]
    #[doc = " @param address_len length of @a address"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_bind(
        desc: *mut GNUNET_NETWORK_Handle,
        address: *const sockaddr,
        address_len: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Close a socket."]
    #[doc = ""]
    #[doc = " @param desc socket to close"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_close(desc: *mut GNUNET_NETWORK_Handle) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Only free memory of a socket, keep the file descriptor untouched."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    pub fn GNUNET_NETWORK_socket_free_memory_only_(desc: *mut GNUNET_NETWORK_Handle);
}
extern "C" {
    #[doc = " Connect a socket to some remote address."]
    #[doc = ""]
    #[doc = " @param desc socket to connect"]
    #[doc = " @param address peer address"]
    #[doc = " @param address_len of @a address"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_connect(
        desc: *const GNUNET_NETWORK_Handle,
        address: *const sockaddr,
        address_len: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get socket options"]
    #[doc = ""]
    #[doc = " @param desc socket to inspect"]
    #[doc = " @param level protocol level of the option"]
    #[doc = " @param optname identifier of the option"]
    #[doc = " @param optval options"]
    #[doc = " @param optlen length of optval"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_getsockopt(
        desc: *const GNUNET_NETWORK_Handle,
        level: ::std::os::raw::c_int,
        optname: ::std::os::raw::c_int,
        optval: *mut ::std::os::raw::c_void,
        optlen: *mut socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Listen on a socket"]
    #[doc = ""]
    #[doc = " @param desc socket to start listening on"]
    #[doc = " @param backlog length of the listen queue"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_listen(
        desc: *const GNUNET_NETWORK_Handle,
        backlog: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " How much data is available to be read on this descriptor?"]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @returns #GNUNET_SYSERR if no data is available, or on error!"]
    pub fn GNUNET_NETWORK_socket_recvfrom_amount(desc: *const GNUNET_NETWORK_Handle) -> isize;
}
extern "C" {
    #[doc = " Read data from a socket (always non-blocking)."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @param buffer buffer"]
    #[doc = " @param length length of buffer"]
    #[doc = " @param src_addr either the source to recv from, or all zeroes"]
    #[doc = "        to be filled in by recvfrom"]
    #[doc = " @param addrlen length of the addr"]
    pub fn GNUNET_NETWORK_socket_recvfrom(
        desc: *const GNUNET_NETWORK_Handle,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
        src_addr: *mut sockaddr,
        addrlen: *mut socklen_t,
    ) -> isize;
}
extern "C" {
    #[doc = " Read data from a connected socket (always non-blocking)."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @param buffer buffer"]
    #[doc = " @param length length of buffer"]
    #[doc = " @return number of bytes read"]
    pub fn GNUNET_NETWORK_socket_recv(
        desc: *const GNUNET_NETWORK_Handle,
        buffer: *mut ::std::os::raw::c_void,
        length: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Check if sockets meet certain conditions."]
    #[doc = ""]
    #[doc = " @param rfds set of sockets to be checked for readability"]
    #[doc = " @param wfds set of sockets to be checked for writability"]
    #[doc = " @param efds set of sockets to be checked for exceptions"]
    #[doc = " @param timeout relative value when to return"]
    #[doc = " @return number of selected sockets, #GNUNET_SYSERR on error"]
    pub fn GNUNET_NETWORK_socket_select(
        rfds: *mut GNUNET_NETWORK_FDSet,
        wfds: *mut GNUNET_NETWORK_FDSet,
        efds: *mut GNUNET_NETWORK_FDSet,
        timeout: GNUNET_TIME_Relative,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Send data (always non-blocking)."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @param buffer data to send"]
    #[doc = " @param length size of the buffer"]
    #[doc = " @return number of bytes sent, #GNUNET_SYSERR on error"]
    pub fn GNUNET_NETWORK_socket_send(
        desc: *const GNUNET_NETWORK_Handle,
        buffer: *const ::std::os::raw::c_void,
        length: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Send data to a particular destination (always non-blocking)."]
    #[doc = " This function only works for UDP sockets."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @param message data to send"]
    #[doc = " @param length size of the data in @a message"]
    #[doc = " @param dest_addr destination address"]
    #[doc = " @param dest_len length of @a dest_addr"]
    #[doc = " @return number of bytes sent, #GNUNET_SYSERR on error"]
    pub fn GNUNET_NETWORK_socket_sendto(
        desc: *const GNUNET_NETWORK_Handle,
        message: *const ::std::os::raw::c_void,
        length: usize,
        dest_addr: *const sockaddr,
        dest_len: socklen_t,
    ) -> isize;
}
extern "C" {
    #[doc = " Set socket option"]
    #[doc = ""]
    #[doc = " @param fd socket"]
    #[doc = " @param level protocol level of the option"]
    #[doc = " @param option_name option identifier"]
    #[doc = " @param option_value value to set"]
    #[doc = " @param option_len size of @a option_value"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_setsockopt(
        fd: *mut GNUNET_NETWORK_Handle,
        level: ::std::os::raw::c_int,
        option_name: ::std::os::raw::c_int,
        option_value: *const ::std::os::raw::c_void,
        option_len: socklen_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Shut down socket operations"]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @param how type of shutdown"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_shutdown(
        desc: *mut GNUNET_NETWORK_Handle,
        how: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Disable the \"CORK\" feature for communication with the given socket,"]
    #[doc = " forcing the OS to immediately flush the buffer on transmission"]
    #[doc = " instead of potentially buffering multiple messages.  Essentially"]
    #[doc = " reduces the OS send buffers to zero."]
    #[doc = ""]
    #[doc = " @param desc socket"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_NETWORK_socket_disable_corking(
        desc: *mut GNUNET_NETWORK_Handle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a new socket.   Configure it for non-blocking IO and"]
    #[doc = " mark it as non-inheritable to child processes (set the"]
    #[doc = " close-on-exec flag)."]
    #[doc = ""]
    #[doc = " @param domain domain of the socket"]
    #[doc = " @param type socket type"]
    #[doc = " @param protocol network protocol"]
    #[doc = " @return new socket, NULL on error"]
    pub fn GNUNET_NETWORK_socket_create(
        domain: ::std::os::raw::c_int,
        type_: ::std::os::raw::c_int,
        protocol: ::std::os::raw::c_int,
    ) -> *mut GNUNET_NETWORK_Handle;
}
extern "C" {
    #[doc = " Reset FD set (clears all file descriptors)."]
    #[doc = ""]
    #[doc = " @param fds fd set to clear"]
    pub fn GNUNET_NETWORK_fdset_zero(fds: *mut GNUNET_NETWORK_FDSet);
}
extern "C" {
    #[doc = " Add a socket to the FD set"]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    #[doc = " @param desc socket to add"]
    pub fn GNUNET_NETWORK_fdset_set(
        fds: *mut GNUNET_NETWORK_FDSet,
        desc: *const GNUNET_NETWORK_Handle,
    );
}
extern "C" {
    #[doc = " Check whether a socket is part of the fd set"]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    #[doc = " @param desc socket"]
    #[doc = " @return #GNUNET_YES if the socket is in the set"]
    pub fn GNUNET_NETWORK_fdset_isset(
        fds: *const GNUNET_NETWORK_FDSet,
        desc: *const GNUNET_NETWORK_Handle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add one fd set to another (computes the union)."]
    #[doc = ""]
    #[doc = " @param dst the fd set to add to"]
    #[doc = " @param src the fd set to add from"]
    pub fn GNUNET_NETWORK_fdset_add(
        dst: *mut GNUNET_NETWORK_FDSet,
        src: *const GNUNET_NETWORK_FDSet,
    );
}
extern "C" {
    #[doc = " Copy one fd set to another"]
    #[doc = ""]
    #[doc = " @param to destination"]
    #[doc = " @param from source"]
    pub fn GNUNET_NETWORK_fdset_copy(
        to: *mut GNUNET_NETWORK_FDSet,
        from: *const GNUNET_NETWORK_FDSet,
    );
}
extern "C" {
    #[doc = " Return file descriptor for this network handle"]
    #[doc = ""]
    #[doc = " @param desc wrapper to process"]
    #[doc = " @return POSIX file descriptor"]
    pub fn GNUNET_NETWORK_get_fd(desc: *const GNUNET_NETWORK_Handle) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Return the sockaddr for this network handle"]
    #[doc = ""]
    #[doc = " @param desc wrapper to process"]
    #[doc = " @return POSIX file descriptor"]
    pub fn GNUNET_NETWORK_get_addr(desc: *const GNUNET_NETWORK_Handle) -> *mut sockaddr;
}
extern "C" {
    #[doc = " Return sockaddr length for this network handle"]
    #[doc = ""]
    #[doc = " @param desc wrapper to process"]
    #[doc = " @return socklen_t for sockaddr"]
    pub fn GNUNET_NETWORK_get_addrlen(desc: *const GNUNET_NETWORK_Handle) -> socklen_t;
}
extern "C" {
    #[doc = " Copy a native fd set into the GNUnet representation."]
    #[doc = ""]
    #[doc = " @param to destination"]
    #[doc = " @param from native source set"]
    #[doc = " @param nfds the biggest socket number in from + 1"]
    pub fn GNUNET_NETWORK_fdset_copy_native(
        to: *mut GNUNET_NETWORK_FDSet,
        from: *const fd_set,
        nfds: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Set a native fd in a set"]
    #[doc = ""]
    #[doc = " @param to destination"]
    #[doc = " @param nfd native FD to set"]
    pub fn GNUNET_NETWORK_fdset_set_native(
        to: *mut GNUNET_NETWORK_FDSet,
        nfd: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Test native fd in a set"]
    #[doc = ""]
    #[doc = " @param to set to test, NULL for empty set"]
    #[doc = " @param nfd native FD to test, -1 for none"]
    #[doc = " @return #GNUNET_YES if to contains nfd"]
    pub fn GNUNET_NETWORK_fdset_test_native(
        to: *const GNUNET_NETWORK_FDSet,
        nfd: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add a file handle to the fd set"]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    #[doc = " @param h the file handle to add"]
    pub fn GNUNET_NETWORK_fdset_handle_set(
        fds: *mut GNUNET_NETWORK_FDSet,
        h: *const GNUNET_DISK_FileHandle,
    );
}
extern "C" {
    #[doc = " Add a file handle to the fd set"]
    #[doc = " On W32: ensure that the handle is first in the array."]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    #[doc = " @param h the file handle to add"]
    pub fn GNUNET_NETWORK_fdset_handle_set_first(
        fds: *mut GNUNET_NETWORK_FDSet,
        h: *const GNUNET_DISK_FileHandle,
    );
}
extern "C" {
    #[doc = " Check if a file handle is part of an fd set"]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    #[doc = " @param h file handle"]
    #[doc = " @return #GNUNET_YES if the file handle is part of the set"]
    pub fn GNUNET_NETWORK_fdset_handle_isset(
        fds: *const GNUNET_NETWORK_FDSet,
        h: *const GNUNET_DISK_FileHandle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Checks if two fd sets overlap"]
    #[doc = ""]
    #[doc = " @param fds1 first fd set"]
    #[doc = " @param fds2 second fd set"]
    #[doc = " @return #GNUNET_YES if they do overlap, #GNUNET_NO otherwise"]
    pub fn GNUNET_NETWORK_fdset_overlap(
        fds1: *const GNUNET_NETWORK_FDSet,
        fds2: *const GNUNET_NETWORK_FDSet,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Creates an fd set"]
    #[doc = ""]
    #[doc = " @return a new fd set"]
    pub fn GNUNET_NETWORK_fdset_create() -> *mut GNUNET_NETWORK_FDSet;
}
extern "C" {
    #[doc = " Releases the associated memory of an fd set"]
    #[doc = ""]
    #[doc = " @param fds fd set"]
    pub fn GNUNET_NETWORK_fdset_destroy(fds: *mut GNUNET_NETWORK_FDSet);
}
extern "C" {
    #[doc = " Test if the given @a port is available."]
    #[doc = ""]
    #[doc = " @param ipproto transport protocol to test (i.e. IPPROTO_TCP)"]
    #[doc = " @param port port number to test"]
    #[doc = " @return #GNUNET_OK if the port is available, #GNUNET_NO if not"]
    pub fn GNUNET_NETWORK_test_port_free(
        ipproto: ::std::os::raw::c_int,
        port: u16,
    ) -> ::std::os::raw::c_int;
}
#[doc = " No event (useful for timeout)."]
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_NONE: GNUNET_SCHEDULER_EventType = 0;
#[doc = " Data available for reading."]
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_IN: GNUNET_SCHEDULER_EventType = 1;
#[doc = " Buffer available for writing."]
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_OUT: GNUNET_SCHEDULER_EventType = 2;
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_HUP: GNUNET_SCHEDULER_EventType = 4;
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_ERR: GNUNET_SCHEDULER_EventType = 8;
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_PRI: GNUNET_SCHEDULER_EventType = 16;
pub const GNUNET_SCHEDULER_EventType_GNUNET_SCHEDULER_ET_NVAL: GNUNET_SCHEDULER_EventType = 32;
#[doc = " Possible events on FDs, used as a bitmask."]
#[doc = " Modelled after GPollFD."]
pub type GNUNET_SCHEDULER_EventType = ::std::os::raw::c_uint;
#[doc = " Information about an event relating to a file descriptor/socket."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SCHEDULER_FdInfo {
    #[doc = " GNUnet network socket the event is about, matches @a sock,"]
    #[doc = " NULL if this is about a file handle or if no network"]
    #[doc = " handle was given to the scheduler originally."]
    pub fd: *const GNUNET_NETWORK_Handle,
    #[doc = " GNUnet file handle the event is about, matches @a sock,"]
    #[doc = " NULL if this is about a network socket or if no network"]
    #[doc = " handle was given to the scheduler originally."]
    pub fh: *const GNUNET_DISK_FileHandle,
    #[doc = " Type of the event that was generated related to @e sock."]
    pub et: GNUNET_SCHEDULER_EventType,
    #[doc = " Underlying OS handle the event was about."]
    pub sock: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_GNUNET_SCHEDULER_FdInfo() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_SCHEDULER_FdInfo>(),
        24usize,
        concat!("Size of: ", stringify!(GNUNET_SCHEDULER_FdInfo))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_SCHEDULER_FdInfo>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_SCHEDULER_FdInfo))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_FdInfo>())).fd as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_FdInfo),
            "::",
            stringify!(fd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_FdInfo>())).fh as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_FdInfo),
            "::",
            stringify!(fh)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_FdInfo>())).et as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_FdInfo),
            "::",
            stringify!(et)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_FdInfo>())).sock as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_FdInfo),
            "::",
            stringify!(sock)
        )
    );
}
#[doc = " Context information passed to each scheduler task."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SCHEDULER_TaskContext {
    #[doc = " Reason why the task is run now"]
    pub reason: GNUNET_SCHEDULER_Reason,
    #[doc = " Length of the following array."]
    pub fds_len: ::std::os::raw::c_uint,
    #[doc = " Array of length @e fds_len with information about ready FDs."]
    #[doc = " Note that we use the same format regardless of the internal"]
    #[doc = " event loop that was used.  The given array should only contain"]
    #[doc = " information about file descriptors relevant to the current task."]
    pub fds: *const GNUNET_SCHEDULER_FdInfo,
    #[doc = " Set of file descriptors ready for reading; note that additional"]
    #[doc = " bits may be set that were not in the original request."]
    #[doc = " @deprecated"]
    pub read_ready: *const GNUNET_NETWORK_FDSet,
    #[doc = " Set of file descriptors ready for writing; note that additional"]
    #[doc = " bits may be set that were not in the original request."]
    #[doc = " @deprecated"]
    pub write_ready: *const GNUNET_NETWORK_FDSet,
}
#[test]
fn bindgen_test_layout_GNUNET_SCHEDULER_TaskContext() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_SCHEDULER_TaskContext>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_SCHEDULER_TaskContext))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_SCHEDULER_TaskContext>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_SCHEDULER_TaskContext))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_TaskContext>())).reason as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_TaskContext),
            "::",
            stringify!(reason)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_TaskContext>())).fds_len as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_TaskContext),
            "::",
            stringify!(fds_len)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_TaskContext>())).fds as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_TaskContext),
            "::",
            stringify!(fds)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_TaskContext>())).read_ready as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_TaskContext),
            "::",
            stringify!(read_ready)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_TaskContext>())).write_ready as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_TaskContext),
            "::",
            stringify!(write_ready)
        )
    );
}
extern "C" {
    #[doc = " Function used by event-loop implementations to signal the scheduler"]
    #[doc = " that a particular @a task is ready due to an event specified in the"]
    #[doc = " et field of @a fdi."]
    #[doc = ""]
    #[doc = " This function will then queue the task to notify the application"]
    #[doc = " that the task is ready (with the respective priority)."]
    #[doc = ""]
    #[doc = " @param task the task that is ready"]
    #[doc = " @param fdi information about the related FD"]
    pub fn GNUNET_SCHEDULER_task_ready(
        task: *mut GNUNET_SCHEDULER_Task,
        fdi: *mut GNUNET_SCHEDULER_FdInfo,
    );
}
#[doc = " Handle to the scheduler's state to be used by the driver."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SCHEDULER_Handle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Function called by external event loop implementations to tell the"]
    #[doc = " scheduler to run some of the tasks that are ready. Must be called"]
    #[doc = " only after #GNUNET_SCHEDULER_driver_init has been called and before"]
    #[doc = " #GNUNET_SCHEDULER_driver_done is called."]
    #[doc = " This function may return even though there are tasks left to run"]
    #[doc = " just to give other tasks a chance as well.  If we return #GNUNET_YES,"]
    #[doc = " the event loop implementation should call this function again as"]
    #[doc = " soon as possible, while if we return #GNUNET_NO it must block until"]
    #[doc = " either the operating system has more work (the scheduler has no more"]
    #[doc = " work to do right now) or the timeout set by the scheduler (using the"]
    #[doc = " set_wakeup callback) is reached."]
    #[doc = ""]
    #[doc = " @param sh scheduler handle that was returned by"]
    #[doc = "        #GNUNET_SCHEDULER_driver_init"]
    #[doc = " @return #GNUNET_YES if there are more tasks that are ready,"]
    #[doc = "         and thus we would like to run more (yield to avoid"]
    #[doc = "         blocking other activities for too long) #GNUNET_NO"]
    #[doc = "         if we are done running tasks (yield to block)"]
    pub fn GNUNET_SCHEDULER_do_work(sh: *mut GNUNET_SCHEDULER_Handle) -> ::std::os::raw::c_int;
}
#[doc = " API an external event loop has to implement for"]
#[doc = " #GNUNET_SCHEDULER_driver_init."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SCHEDULER_Driver {
    #[doc = " Closure to pass to the functions in this struct."]
    pub cls: *mut ::std::os::raw::c_void,
    #[doc = " Add a @a task to be run if the conditions specified in the"]
    #[doc = " et field of the given @a fdi are satisfied. The et field will"]
    #[doc = " be cleared after this call and the driver is expected to set"]
    #[doc = " the type of the actual event before passing @a fdi to"]
    #[doc = " #GNUNET_SCHEDULER_task_ready."]
    #[doc = ""]
    #[doc = " @param cls closure"]
    #[doc = " @param task task to add"]
    #[doc = " @param fdi conditions to watch for"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    #[doc = "   (i.e. @a fdi too high or invalid)"]
    pub add: ::std::option::Option<
        unsafe extern "C" fn(
            cls: *mut ::std::os::raw::c_void,
            task: *mut GNUNET_SCHEDULER_Task,
            fdi: *mut GNUNET_SCHEDULER_FdInfo,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Delete a @a task from the set of tasks to be run. A task may"]
    #[doc = " comprise multiple FdInfo entries previously added with the add"]
    #[doc = " function. The driver is expected to delete them all."]
    #[doc = ""]
    #[doc = " @param cls closure"]
    #[doc = " @param task task to delete"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    #[doc = "   (i.e. @a task does not match prior @e add call)"]
    pub del: ::std::option::Option<
        unsafe extern "C" fn(
            cls: *mut ::std::os::raw::c_void,
            task: *mut GNUNET_SCHEDULER_Task,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Set time at which we definitively want to get a wakeup call."]
    #[doc = ""]
    #[doc = " @param cls closure"]
    #[doc = " @param dt time when we want to wake up next"]
    pub set_wakeup: ::std::option::Option<
        unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, dt: GNUNET_TIME_Absolute),
    >,
}
#[test]
fn bindgen_test_layout_GNUNET_SCHEDULER_Driver() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_SCHEDULER_Driver>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_SCHEDULER_Driver))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_SCHEDULER_Driver>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_SCHEDULER_Driver))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_Driver>())).cls as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_Driver),
            "::",
            stringify!(cls)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_Driver>())).add as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_Driver),
            "::",
            stringify!(add)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_SCHEDULER_Driver>())).del as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_Driver),
            "::",
            stringify!(del)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_SCHEDULER_Driver>())).set_wakeup as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_SCHEDULER_Driver),
            "::",
            stringify!(set_wakeup)
        )
    );
}
#[doc = " Signature of the main function of a task."]
#[doc = ""]
#[doc = " @param cls closure"]
pub type GNUNET_SCHEDULER_TaskCallback =
    ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>;
extern "C" {
    #[doc = " Function called by external event loop implementations to initialize"]
    #[doc = " the scheduler. An external implementation has to provide @a driver"]
    #[doc = " which contains callbacks for the scheduler (see definition of struct"]
    #[doc = " #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the"]
    #[doc = " external implementation to watch for events. If it detects any of"]
    #[doc = " those events it is expected to call #GNUNET_SCHEDULER_do_work to let"]
    #[doc = " the scheduler handle it. If an event is related to a specific task"]
    #[doc = " (e.g. the scheduler gave instructions to watch a file descriptor),"]
    #[doc = " the external implementation is expected to mark that task ready"]
    #[doc = " before by calling #GNUNET_SCHEDULER_task_ready."]
    #[doc = ""]
    #[doc = " This function has to be called before any tasks are scheduled and"]
    #[doc = " before GNUNET_SCHEDULER_do_work is called for the first time. It"]
    #[doc = " allocates resources that have to be freed again by calling"]
    #[doc = " #GNUNET_SCHEDULER_driver_done."]
    #[doc = ""]
    #[doc = " This function installs the same signal handlers as"]
    #[doc = " #GNUNET_SCHEDULER_run. This means SIGTERM (and other similar signals)"]
    #[doc = " will induce a call to #GNUNET_SCHEDULER_shutdown during the next"]
    #[doc = " call to #GNUNET_SCHEDULER_do_work. As a result, SIGTERM causes all"]
    #[doc = " active tasks to be scheduled with reason"]
    #[doc = " #GNUNET_SCHEDULER_REASON_SHUTDOWN. (However, tasks added afterwards"]
    #[doc = " will execute normally!). Note that any particular signal will only"]
    #[doc = " shut down one scheduler; applications should always only create a"]
    #[doc = " single scheduler."]
    #[doc = ""]
    #[doc = " @param driver to use for the event loop"]
    #[doc = " @return handle to be passed to #GNUNET_SCHEDULER_do_work and"]
    #[doc = "         #GNUNET_SCHEDULER_driver_done"]
    pub fn GNUNET_SCHEDULER_driver_init(
        driver: *const GNUNET_SCHEDULER_Driver,
    ) -> *mut GNUNET_SCHEDULER_Handle;
}
extern "C" {
    #[doc = " Counter-part of #GNUNET_SCHEDULER_driver_init. Has to be called"]
    #[doc = " by external event loop implementations after the scheduler has"]
    #[doc = " shut down. This is the case if both of the following conditions"]
    #[doc = " are met:"]
    #[doc = ""]
    #[doc = " - all tasks the scheduler has added through the driver's add"]
    #[doc = "   callback have been removed again through the driver's del"]
    #[doc = "   callback"]
    #[doc = " - the timeout the scheduler has set through the driver's"]
    #[doc = "   add_wakeup callback is FOREVER"]
    #[doc = ""]
    #[doc = " @param sh the handle returned by #GNUNET_SCHEDULER_driver_init"]
    pub fn GNUNET_SCHEDULER_driver_done(sh: *mut GNUNET_SCHEDULER_Handle);
}
extern "C" {
    #[doc = " Obtain the driver for using select() as the event loop."]
    #[doc = ""]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_SCHEDULER_driver_select() -> *mut GNUNET_SCHEDULER_Driver;
}
#[doc = " Signature of the select function used by the scheduler."]
#[doc = " #GNUNET_NETWORK_socket_select matches it."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param rfds set of sockets to be checked for readability"]
#[doc = " @param wfds set of sockets to be checked for writability"]
#[doc = " @param efds set of sockets to be checked for exceptions"]
#[doc = " @param timeout relative value when to return"]
#[doc = " @return number of selected sockets, #GNUNET_SYSERR on error"]
pub type GNUNET_SCHEDULER_select = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        rfds: *mut GNUNET_NETWORK_FDSet,
        wfds: *mut GNUNET_NETWORK_FDSet,
        efds: *mut GNUNET_NETWORK_FDSet,
        timeout: GNUNET_TIME_Relative,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " Initialize and run scheduler.  This function will return when all"]
    #[doc = " tasks have completed.  On systems with signals, receiving a SIGTERM"]
    #[doc = " (and other similar signals) will cause #GNUNET_SCHEDULER_shutdown"]
    #[doc = " to be run after the active task is complete.  As a result, SIGTERM"]
    #[doc = " causes all shutdown tasks to be scheduled with reason"]
    #[doc = " #GNUNET_SCHEDULER_REASON_SHUTDOWN.  (However, tasks added"]
    #[doc = " afterwards will execute normally!).  Note that any particular"]
    #[doc = " signal will only shut down one scheduler; applications should"]
    #[doc = " always only create a single scheduler."]
    #[doc = ""]
    #[doc = " @param task task to run first (and immediately)"]
    #[doc = " @param task_cls closure of @a task"]
    pub fn GNUNET_SCHEDULER_run(
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Initialize and run scheduler.  This function will return when all"]
    #[doc = " tasks have completed.  When @ install_signals is GNUNET_YES, then"]
    #[doc = " this function behaves in the same was as GNUNET_SCHEDULER_run does."]
    #[doc = " If @ install_signals is GNUNET_NO then no signal handlers are"]
    #[doc = " installed."]
    #[doc = ""]
    #[doc = " @param install_signals whether to install signals (GNUNET_YES/NO)"]
    #[doc = " @param task task to run first (and immediately)"]
    #[doc = " @param task_cls closure of @a task"]
    pub fn GNUNET_SCHEDULER_run_with_optional_signals(
        install_signals: ::std::os::raw::c_int,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Request the shutdown of a scheduler.  Marks all tasks"]
    #[doc = " awaiting shutdown as ready. Note that tasks"]
    #[doc = " scheduled with #GNUNET_SCHEDULER_add_shutdown() AFTER this call"]
    #[doc = " will be delayed until the next shutdown signal."]
    pub fn GNUNET_SCHEDULER_shutdown();
}
extern "C" {
    #[doc = " Get information about the current load of this scheduler.  Use this"]
    #[doc = " function to determine if an elective task should be added or simply"]
    #[doc = " dropped (if the decision should be made based on the number of"]
    #[doc = " tasks ready to run)."]
    #[doc = ""]
    #[doc = " @param p priority-level to query, use KEEP to query the level"]
    #[doc = "          of the current task, use COUNT to get the sum over"]
    #[doc = "          all priority levels"]
    #[doc = " @return number of tasks pending right now"]
    pub fn GNUNET_SCHEDULER_get_load(p: GNUNET_SCHEDULER_Priority) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Obtain the reasoning why the current task was"]
    #[doc = " started."]
    #[doc = ""]
    #[doc = " @return task context with information why the current task is run"]
    pub fn GNUNET_SCHEDULER_get_task_context() -> *const GNUNET_SCHEDULER_TaskContext;
}
extern "C" {
    #[doc = " Cancel the task with the specified identifier."]
    #[doc = " The task must not yet have run. Only allowed to be called as long as the"]
    #[doc = " scheduler is running, that is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param task id of the task to cancel"]
    #[doc = " @return original closure of the task"]
    pub fn GNUNET_SCHEDULER_cancel(task: *mut GNUNET_SCHEDULER_Task)
        -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Continue the current execution with the given function.  This is"]
    #[doc = " similar to the other \"add\" functions except that there is no delay"]
    #[doc = " and the reason code can be specified."]
    #[doc = ""]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure for @a task"]
    #[doc = " @param reason reason for task invocation"]
    #[doc = " @param priority priority to use for the task"]
    pub fn GNUNET_SCHEDULER_add_with_reason_and_priority(
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
        reason: GNUNET_SCHEDULER_Reason,
        priority: GNUNET_SCHEDULER_Priority,
    );
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified priority."]
    #[doc = ""]
    #[doc = " @param prio how important is the new task?"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_with_priority(
        prio: GNUNET_SCHEDULER_Priority,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run as soon as possible. Note that this"]
    #[doc = " does not guarantee that this will be the next task that is being"]
    #[doc = " run, as other tasks with higher priority (or that are already ready"]
    #[doc = " to run) might get to run first.  Just as with delays, clients must"]
    #[doc = " not rely on any particular order of execution between tasks"]
    #[doc = " scheduled concurrently."]
    #[doc = ""]
    #[doc = " The task will be run with the DEFAULT priority."]
    #[doc = ""]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_now(
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run on shutdown, that is when a CTRL-C"]
    #[doc = " signal is received, or when #GNUNET_SCHEDULER_shutdown() is being"]
    #[doc = " invoked."]
    #[doc = ""]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_shutdown(
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run as soon as possible with the"]
    #[doc = " (transitive) ignore-shutdown flag either explicitly set or"]
    #[doc = " explicitly enabled.  This task (and all tasks created from it,"]
    #[doc = " other than by another call to this function) will either count or"]
    #[doc = " not count for the 'lifeness' of the process.  This API is only"]
    #[doc = " useful in a few special cases."]
    #[doc = ""]
    #[doc = " @param lifeness #GNUNET_YES if the task counts for lifeness, #GNUNET_NO if not."]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_now_with_lifeness(
        lifeness: ::std::os::raw::c_int,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay.  The task"]
    #[doc = " will be scheduled for execution once the delay has expired. It"]
    #[doc = " will be run with the DEFAULT priority."]
    #[doc = ""]
    #[doc = " @param delay with which the operation should be run"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_delayed(
        delay: GNUNET_TIME_Relative,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run at the specified time.  The task"]
    #[doc = " will be scheduled for execution once specified time has been"]
    #[doc = " reached. It will be run with the DEFAULT priority."]
    #[doc = ""]
    #[doc = " @param at time at which this operation should run"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_at(
        at: GNUNET_TIME_Absolute,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay.  The task"]
    #[doc = " will be scheduled for execution once the delay has expired."]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param priority priority to use for the task"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_delayed_with_priority(
        delay: GNUNET_TIME_Relative,
        priority: GNUNET_SCHEDULER_Priority,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run at the specified time.  The task"]
    #[doc = " will be scheduled for execution at time @a at."]
    #[doc = ""]
    #[doc = " @param at time when the operation should run"]
    #[doc = " @param priority priority to use for the task"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_at_with_priority(
        at: GNUNET_TIME_Absolute,
        priority: GNUNET_SCHEDULER_Priority,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready for reading.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready.  It will be run with the DEFAULT priority."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param rfd read file-descriptor"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_read_net(
        delay: GNUNET_TIME_Relative,
        rfd: *mut GNUNET_NETWORK_Handle,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified priority and to be"]
    #[doc = " run after the specified delay or when the specified file descriptor"]
    #[doc = " is ready for reading.  The delay can be used as a timeout on the"]
    #[doc = " socket being ready.  The task will be scheduled for execution once"]
    #[doc = " either the delay has expired or the socket operation is ready.  It"]
    #[doc = " will be run with the DEFAULT priority."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param priority priority to use for the task"]
    #[doc = " @param rfd read file-descriptor"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_read_net_with_priority(
        delay: GNUNET_TIME_Relative,
        priority: GNUNET_SCHEDULER_Priority,
        rfd: *mut GNUNET_NETWORK_Handle,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready for writing.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready.  It will be run with the priority of"]
    #[doc = " the calling task."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param wfd write file-descriptor"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_write_net(
        delay: GNUNET_TIME_Relative,
        wfd: *mut GNUNET_NETWORK_Handle,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param priority priority of the task"]
    #[doc = " @param fd file-descriptor"]
    #[doc = " @param on_read whether to poll the file-descriptor for readability"]
    #[doc = " @param on_write whether to poll the file-descriptor for writability"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until \"task\" is started!"]
    pub fn GNUNET_SCHEDULER_add_net_with_priority(
        delay: GNUNET_TIME_Relative,
        priority: GNUNET_SCHEDULER_Priority,
        fd: *mut GNUNET_NETWORK_Handle,
        on_read: ::std::os::raw::c_int,
        on_write: ::std::os::raw::c_int,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready for reading.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready. It will be run with the DEFAULT priority."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param rfd read file-descriptor"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_read_file(
        delay: GNUNET_TIME_Relative,
        rfd: *const GNUNET_DISK_FileHandle,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready for writing.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready. It will be run with the DEFAULT priority."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param wfd write file-descriptor"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_write_file(
        delay: GNUNET_TIME_Relative,
        wfd: *const GNUNET_DISK_FileHandle,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when the"]
    #[doc = " specified file descriptor is ready.  The delay can be"]
    #[doc = " used as a timeout on the socket being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or the"]
    #[doc = " socket operation is ready."]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param delay when should this operation time out?"]
    #[doc = " @param priority priority of the task"]
    #[doc = " @param fd file-descriptor"]
    #[doc = " @param on_read whether to poll the file-descriptor for readability"]
    #[doc = " @param on_write whether to poll the file-descriptor for writability"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_file_with_priority(
        delay: GNUNET_TIME_Relative,
        priority: GNUNET_SCHEDULER_Priority,
        fd: *const GNUNET_DISK_FileHandle,
        on_read: ::std::os::raw::c_int,
        on_write: ::std::os::raw::c_int,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Schedule a new task to be run with a specified delay or when any of"]
    #[doc = " the specified file descriptor sets is ready.  The delay can be used"]
    #[doc = " as a timeout on the socket(s) being ready.  The task will be"]
    #[doc = " scheduled for execution once either the delay has expired or any of"]
    #[doc = " the socket operations is ready.  This is the most general"]
    #[doc = " function of the \"add\" family.  Note that the \"prerequisite_task\""]
    #[doc = " must be satisfied in addition to any of the other conditions.  In"]
    #[doc = " other words, the task will be started when"]
    #[doc = " <code>"]
    #[doc = " (prerequisite-run)"]
    #[doc = " && (delay-ready"]
    #[doc = "     || any-rs-ready"]
    #[doc = "     || any-ws-ready) )"]
    #[doc = " </code>"]
    #[doc = " Only allowed to be called as long as the scheduler is running, that"]
    #[doc = " is one of the following conditions is met:"]
    #[doc = ""]
    #[doc = " - #GNUNET_SCHEDULER_run has been called and has not returned yet"]
    #[doc = " - #GNUNET_SCHEDULER_driver_init has been run and"]
    #[doc = "   #GNUNET_SCHEDULER_driver_done has not been called yet"]
    #[doc = ""]
    #[doc = " @param prio how important is this task?"]
    #[doc = " @param delay how long should we wait?"]
    #[doc = " @param rs set of file descriptors we want to read (can be NULL)"]
    #[doc = " @param ws set of file descriptors we want to write (can be NULL)"]
    #[doc = " @param task main function of the task"]
    #[doc = " @param task_cls closure of @a task"]
    #[doc = " @return unique task identifier for the job"]
    #[doc = "         only valid until @a task is started!"]
    pub fn GNUNET_SCHEDULER_add_select(
        prio: GNUNET_SCHEDULER_Priority,
        delay: GNUNET_TIME_Relative,
        rs: *const GNUNET_NETWORK_FDSet,
        ws: *const GNUNET_NETWORK_FDSet,
        task: GNUNET_SCHEDULER_TaskCallback,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_SCHEDULER_Task;
}
extern "C" {
    #[doc = " Sets the select function to use in the scheduler (scheduler_select)."]
    #[doc = ""]
    #[doc = " @param new_select new select function to use (NULL to reset to default)"]
    #[doc = " @param new_select_cls closure for @a new_select"]
    pub fn GNUNET_SCHEDULER_set_select(
        new_select: GNUNET_SCHEDULER_select,
        new_select_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Change the async scope for the currently executing task and (transitively)"]
    #[doc = " for all tasks scheduled by the current task after calling this function."]
    #[doc = " Nested tasks can begin their own nested async scope."]
    #[doc = ""]
    #[doc = " Once the current task is finished, the async scope ID is reset to"]
    #[doc = " its previous value."]
    #[doc = ""]
    #[doc = " Must only be called from a running task."]
    #[doc = ""]
    #[doc = " @param aid the asynchronous scope id to enter"]
    pub fn GNUNET_SCHEDULER_begin_async_scope(aid: *mut GNUNET_AsyncScopeId);
}
extern "C" {
    #[doc = " Implementation of the #GNUNET_MQ_extract_nexted_mh macro."]
    #[doc = ""]
    #[doc = " @param mh message header to extract nested message header from"]
    #[doc = " @param base_size size of the message before the nested message's header appears"]
    #[doc = " @return pointer to the nested message, does not copy the message"]
    #[doc = "         OR NULL in case of a malformed message."]
    pub fn GNUNET_MQ_extract_nested_mh_(
        mh: *const GNUNET_MessageHeader,
        base_size: u16,
    ) -> *const GNUNET_MessageHeader;
}
#[doc = " Opaque handle to an envelope."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MQ_Envelope {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Obtain message contained in envelope."]
    #[doc = ""]
    #[doc = " @param env the envelope"]
    #[doc = " @return message contained in the envelope"]
    pub fn GNUNET_MQ_env_get_msg(env: *const GNUNET_MQ_Envelope) -> *const GNUNET_MessageHeader;
}
extern "C" {
    #[doc = " Return next envelope in queue."]
    #[doc = ""]
    #[doc = " @param env a queued envelope"]
    #[doc = " @return next one, or NULL"]
    pub fn GNUNET_MQ_env_next(env: *const GNUNET_MQ_Envelope) -> *const GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Implementation of the #GNUNET_MQ_msg_nested_mh macro."]
    #[doc = ""]
    #[doc = " @param mhp pointer to the message header pointer that will be changed to allocate at"]
    #[doc = "        the newly allocated space for the message."]
    #[doc = " @param base_size size of the data before the nested message"]
    #[doc = " @param type type of the message in the envelope"]
    #[doc = " @param nested_mh the message to append to the message after base_size"]
    pub fn GNUNET_MQ_msg_nested_mh_(
        mhp: *mut *mut GNUNET_MessageHeader,
        base_size: u16,
        type_: u16,
        nested_mh: *const GNUNET_MessageHeader,
    ) -> *mut GNUNET_MQ_Envelope;
}
#[doc = " Opaque handle to a message queue."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MQ_Handle {
    _unused: [u8; 0],
}
#[doc = " Failed to read message from the network."]
#[doc = " FIXME: Likely not properly distinguished"]
#[doc = " from TIMEOUT case in the code!"]
pub const GNUNET_MQ_Error_GNUNET_MQ_ERROR_READ: GNUNET_MQ_Error = 1;
#[doc = " FIXME: document!"]
pub const GNUNET_MQ_Error_GNUNET_MQ_ERROR_WRITE: GNUNET_MQ_Error = 2;
#[doc = " FIXME: document!"]
pub const GNUNET_MQ_Error_GNUNET_MQ_ERROR_TIMEOUT: GNUNET_MQ_Error = 4;
#[doc = " We received a message that was malformed and thus"]
#[doc = " could not be passed to its handler."]
pub const GNUNET_MQ_Error_GNUNET_MQ_ERROR_MALFORMED: GNUNET_MQ_Error = 8;
#[doc = " We received a message for which we have no matching"]
#[doc = " handler."]
pub const GNUNET_MQ_Error_GNUNET_MQ_ERROR_NO_MATCH: GNUNET_MQ_Error = 16;
#[doc = " Error codes for the queue."]
pub type GNUNET_MQ_Error = ::std::os::raw::c_uint;
#[doc = " Lowest priority, i.e. background traffic (i.e. NSE, FS)."]
#[doc = " This is the default!"]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PRIO_BACKGROUND: GNUNET_MQ_PriorityPreferences =
    0;
#[doc = " Best-effort traffic (i.e. CADET relay, DHT)"]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PRIO_BEST_EFFORT: GNUNET_MQ_PriorityPreferences =
    1;
#[doc = " Urgent traffic (local peer, i.e. Conversation)."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PRIO_URGENT: GNUNET_MQ_PriorityPreferences = 2;
#[doc = " Highest priority, control traffic (i.e. CORE/CADET KX)."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PRIO_CRITICAL_CONTROL:
    GNUNET_MQ_PriorityPreferences = 3;
#[doc = " Bit mask to apply to extract the priority bits."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PRIORITY_MASK: GNUNET_MQ_PriorityPreferences = 3;
#[doc = " Flag to indicate that unreliable delivery is acceptable.  This"]
#[doc = " means TRANSPORT will not attempt to receive an"]
#[doc = " acknowledgment. CORE will just pass this flag through.  CADET"]
#[doc = " will use unreliable delivery if this flag is set."]
#[doc = ""]
#[doc = " Note that even without this flag, messages may be lost by"]
#[doc = " TRANSPORT and CORE."]
#[doc = ""]
#[doc = " Thus, how \"strong\" the semantics of reliable delivery are depends"]
#[doc = " on the layer!"]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PREF_UNRELIABLE: GNUNET_MQ_PriorityPreferences =
    16;
#[doc = " Flag to indicate that low latency is important.  This flag must"]
#[doc = " generally not be used in combination with"]
#[doc = " #GNUNET_MQ_PREF_CORKING_ALLOWED as it would be a contradiction."]
#[doc = " When this flags is set, the envelope may skip forward in the"]
#[doc = " queue (depending on priority) and also TRANSPORT should attempt"]
#[doc = " to pick a communicator with particularly low latency."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PREF_LOW_LATENCY: GNUNET_MQ_PriorityPreferences =
    32;
#[doc = " Flag to indicate that CORKing is acceptable. This allows the"]
#[doc = " receiver to delay transmission in hope of combining this message"]
#[doc = " with other messages into a larger transmission with less"]
#[doc = " per-message overhead."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PREF_CORK_ALLOWED: GNUNET_MQ_PriorityPreferences =
    64;
#[doc = " Flag to indicate that high bandwidth is desired. This flag"]
#[doc = " indicates that the method chosen for transmission should focus on"]
#[doc = " overall goodput.  It rarely makes sense to combine this flag with"]
#[doc = " #GNUNET_MQ_PREF_LOW_LATENCY."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PREF_GOODPUT: GNUNET_MQ_PriorityPreferences = 128;
#[doc = " Flag to indicate that out-of-order delivery is OK."]
pub const GNUNET_MQ_PriorityPreferences_GNUNET_MQ_PREF_OUT_OF_ORDER: GNUNET_MQ_PriorityPreferences =
    256;
#[doc = " Per envelope preferences and priorities."]
pub type GNUNET_MQ_PriorityPreferences = ::std::os::raw::c_uint;
#[doc = " Called when a message has been received."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param msg the received message"]
pub type GNUNET_MQ_MessageCallback = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, msg: *const GNUNET_MessageHeader),
>;
#[doc = " Called when a message needs to be validated."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param msg the received message"]
#[doc = " @return #GNUNET_OK if the message is well-formed,"]
#[doc = "         #GNUNET_SYSERR if not"]
pub type GNUNET_MQ_MessageValidationCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        msg: *const GNUNET_MessageHeader,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " Signature of functions implementing the"]
#[doc = " sending functionality of a message queue."]
#[doc = ""]
#[doc = " @param mq the message queue"]
#[doc = " @param msg the message to send"]
#[doc = " @param impl_state state of the implementation"]
pub type GNUNET_MQ_SendImpl = ::std::option::Option<
    unsafe extern "C" fn(
        mq: *mut GNUNET_MQ_Handle,
        msg: *const GNUNET_MessageHeader,
        impl_state: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " Signature of functions implementing the"]
#[doc = " destruction of a message queue."]
#[doc = " Implementations must not free @a mq, but should"]
#[doc = " take care of @a impl_state."]
#[doc = ""]
#[doc = " @param mq the message queue to destroy"]
#[doc = " @param impl_state state of the implementation"]
pub type GNUNET_MQ_DestroyImpl = ::std::option::Option<
    unsafe extern "C" fn(mq: *mut GNUNET_MQ_Handle, impl_state: *mut ::std::os::raw::c_void),
>;
#[doc = " Implementation function that cancels the currently sent message."]
#[doc = ""]
#[doc = " @param mq message queue"]
#[doc = " @param impl_state state specific to the implementation"]
pub type GNUNET_MQ_CancelImpl = ::std::option::Option<
    unsafe extern "C" fn(mq: *mut GNUNET_MQ_Handle, impl_state: *mut ::std::os::raw::c_void),
>;
#[doc = " Generic error handler, called with the appropriate"]
#[doc = " error code and the same closure specified at the creation of"]
#[doc = " the message queue."]
#[doc = " Not every message queue implementation supports an error handler."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param error error code"]
pub type GNUNET_MQ_ErrorHandler = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, error: GNUNET_MQ_Error),
>;
extern "C" {
    #[doc = " Insert @a env into the envelope DLL starting at @a env_head"]
    #[doc = " Note that @a env must not be in any MQ while this function"]
    #[doc = " is used with DLLs defined outside of the MQ module.  This"]
    #[doc = " is just in case some application needs to also manage a"]
    #[doc = " FIFO of envelopes independent of MQ itself and wants to"]
    #[doc = " re-use the pointers internal to @a env.  Use with caution."]
    #[doc = ""]
    #[doc = " @param[in|out] env_head of envelope DLL"]
    #[doc = " @param[in|out] env_tail tail of envelope DLL"]
    #[doc = " @param[in|out] env element to insert at the tail"]
    pub fn GNUNET_MQ_dll_insert_head(
        env_head: *mut *mut GNUNET_MQ_Envelope,
        env_tail: *mut *mut GNUNET_MQ_Envelope,
        env: *mut GNUNET_MQ_Envelope,
    );
}
extern "C" {
    #[doc = " Insert @a env into the envelope DLL starting at @a env_head"]
    #[doc = " Note that @a env must not be in any MQ while this function"]
    #[doc = " is used with DLLs defined outside of the MQ module.  This"]
    #[doc = " is just in case some application needs to also manage a"]
    #[doc = " FIFO of envelopes independent of MQ itself and wants to"]
    #[doc = " re-use the pointers internal to @a env.  Use with caution."]
    #[doc = ""]
    #[doc = " @param[in|out] env_head of envelope DLL"]
    #[doc = " @param[in|out] env_tail tail of envelope DLL"]
    #[doc = " @param[in|out] env element to insert at the tail"]
    pub fn GNUNET_MQ_dll_insert_tail(
        env_head: *mut *mut GNUNET_MQ_Envelope,
        env_tail: *mut *mut GNUNET_MQ_Envelope,
        env: *mut GNUNET_MQ_Envelope,
    );
}
extern "C" {
    #[doc = " Remove @a env from the envelope DLL starting at @a env_head."]
    #[doc = " Note that @a env must not be in any MQ while this function"]
    #[doc = " is used with DLLs defined outside of the MQ module. This"]
    #[doc = " is just in case some application needs to also manage a"]
    #[doc = " FIFO of envelopes independent of MQ itself and wants to"]
    #[doc = " re-use the pointers internal to @a env.  Use with caution."]
    #[doc = ""]
    #[doc = " @param[in|out] env_head of envelope DLL"]
    #[doc = " @param[in|out] env_tail tail of envelope DLL"]
    #[doc = " @param[in|out] env element to remove from the DLL"]
    pub fn GNUNET_MQ_dll_remove(
        env_head: *mut *mut GNUNET_MQ_Envelope,
        env_tail: *mut *mut GNUNET_MQ_Envelope,
        env: *mut GNUNET_MQ_Envelope,
    );
}
extern "C" {
    #[doc = " Copy an array of handlers."]
    #[doc = ""]
    #[doc = " Useful if the array has been declared in local memory and needs to be"]
    #[doc = " persisted for future use."]
    #[doc = ""]
    #[doc = " @param handlers Array of handlers to be copied."]
    #[doc = " @return A newly allocated array of handlers."]
    #[doc = "         Needs to be freed with #GNUNET_free."]
    pub fn GNUNET_MQ_copy_handlers(
        handlers: *const GNUNET_MQ_MessageHandler,
    ) -> *mut GNUNET_MQ_MessageHandler;
}
extern "C" {
    #[doc = " Copy an array of handlers, appending AGPL handler."]
    #[doc = ""]
    #[doc = " Useful if the array has been declared in local memory and needs to be"]
    #[doc = " persisted for future use."]
    #[doc = ""]
    #[doc = " @param handlers Array of handlers to be copied. Can be NULL (nothing done)."]
    #[doc = " @param agpl_handler function to call for AGPL handling"]
    #[doc = " @param agpl_cls closure for @a agpl_handler"]
    #[doc = " @return A newly allocated array of handlers."]
    #[doc = "         Needs to be freed with #GNUNET_free."]
    pub fn GNUNET_MQ_copy_handlers2(
        handlers: *const GNUNET_MQ_MessageHandler,
        agpl_handler: GNUNET_MQ_MessageCallback,
        agpl_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_MQ_MessageHandler;
}
extern "C" {
    #[doc = " Count the handlers in a handler array."]
    #[doc = ""]
    #[doc = " @param handlers Array of handlers to be counted."]
    #[doc = " @return The number of handlers in the array."]
    pub fn GNUNET_MQ_count_handlers(
        handlers: *const GNUNET_MQ_MessageHandler,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " Message handler for a specific message type."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MQ_MessageHandler {
    #[doc = " Callback to validate a message of the specified @e type."]
    #[doc = " The closure given to @e mv will be this struct (not @e ctx)."]
    #[doc = " Using NULL means only size-validation using"]
    #[doc = " @e expected_size.  In this case, @e expected_size must"]
    #[doc = " be non-zero."]
    pub mv: GNUNET_MQ_MessageValidationCallback,
    #[doc = " Callback, called every time a new message of"]
    #[doc = " the specified @e type has been received."]
    #[doc = " The closure given to @e mv will be this struct (not @e ctx)."]
    pub cb: GNUNET_MQ_MessageCallback,
    #[doc = " Closure for @e mv and @e cb."]
    pub cls: *mut ::std::os::raw::c_void,
    #[doc = " Type of the message this handler covers, in host byte order."]
    pub type_: u16,
    #[doc = " Expected size of messages of this type.  Minimum size of the"]
    #[doc = " message if @e mv is non-NULL.  Messages of the given type will be"]
    #[doc = " discarded (and the connection closed with an error reported to"]
    #[doc = " the application) if they do not have the right size."]
    pub expected_size: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_MQ_MessageHandler() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_MQ_MessageHandler>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_MQ_MessageHandler))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_MQ_MessageHandler>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_MQ_MessageHandler))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MQ_MessageHandler>())).mv as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MQ_MessageHandler),
            "::",
            stringify!(mv)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MQ_MessageHandler>())).cb as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MQ_MessageHandler),
            "::",
            stringify!(cb)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MQ_MessageHandler>())).cls as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MQ_MessageHandler),
            "::",
            stringify!(cls)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_MQ_MessageHandler>())).type_ as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MQ_MessageHandler),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_MQ_MessageHandler>())).expected_size as *const _ as usize
        },
        26usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_MQ_MessageHandler),
            "::",
            stringify!(expected_size)
        )
    );
}
extern "C" {
    #[doc = " Call the message message handler that was registered"]
    #[doc = " for the type of the given message in the given @a handlers list."]
    #[doc = ""]
    #[doc = " This function is indented to be used for the implementation"]
    #[doc = " of message queues."]
    #[doc = ""]
    #[doc = " @param handlers a set of handlers"]
    #[doc = " @param mh message to dispatch"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_NO if no handler matched,"]
    #[doc = "         #GNUNET_SYSERR if message was rejected by check function"]
    pub fn GNUNET_MQ_handle_message(
        handlers: *const GNUNET_MQ_MessageHandler,
        mh: *const GNUNET_MessageHeader,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a new envelope."]
    #[doc = ""]
    #[doc = " @param mhp message header to store the allocated message header in, can be NULL"]
    #[doc = " @param size size of the message to allocate"]
    #[doc = " @param type type of the message, will be set in the allocated message"]
    #[doc = " @return the allocated MQ message"]
    pub fn GNUNET_MQ_msg_(
        mhp: *mut *mut GNUNET_MessageHeader,
        size: u16,
        type_: u16,
    ) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Create a new envelope by copying an existing message."]
    #[doc = ""]
    #[doc = " @param hdr header of the message to copy"]
    #[doc = " @return envelope containing @a hdr"]
    pub fn GNUNET_MQ_msg_copy(hdr: *const GNUNET_MessageHeader) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Discard the message queue message, free all"]
    #[doc = " allocated resources. Must be called in the event"]
    #[doc = " that a message is created but should not actually be sent."]
    #[doc = ""]
    #[doc = " @param mqm the message to discard"]
    pub fn GNUNET_MQ_discard(mqm: *mut GNUNET_MQ_Envelope);
}
extern "C" {
    #[doc = " Function to obtain the current envelope"]
    #[doc = " from within #GNUNET_MQ_SendImpl implementations."]
    #[doc = ""]
    #[doc = " @param mq message queue to interrogate"]
    #[doc = " @return the current envelope"]
    pub fn GNUNET_MQ_get_current_envelope(mq: *mut GNUNET_MQ_Handle) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Function to copy an envelope.  The envelope must not yet"]
    #[doc = " be in any queue or have any options or callbacks set."]
    #[doc = ""]
    #[doc = " @param env envelope to copy"]
    #[doc = " @return copy of @a env"]
    pub fn GNUNET_MQ_env_copy(env: *mut GNUNET_MQ_Envelope) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Function to obtain the last envelope in the queue."]
    #[doc = ""]
    #[doc = " @param mq message queue to interrogate"]
    #[doc = " @return the last envelope in the queue"]
    pub fn GNUNET_MQ_get_last_envelope(mq: *mut GNUNET_MQ_Handle) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Set application-specific options for this envelope."]
    #[doc = " Overrides the options set for the queue with"]
    #[doc = " #GNUNET_MQ_set_options() for this message only."]
    #[doc = ""]
    #[doc = " @param env message to set options for"]
    #[doc = " @param pp priority and preferences to set for @a env"]
    pub fn GNUNET_MQ_env_set_options(
        env: *mut GNUNET_MQ_Envelope,
        pp: GNUNET_MQ_PriorityPreferences,
    );
}
extern "C" {
    #[doc = " Get performance preferences set for this envelope."]
    #[doc = ""]
    #[doc = " @param env message to set options for"]
    #[doc = " @return priority and preferences to use"]
    pub fn GNUNET_MQ_env_get_options(env: *mut GNUNET_MQ_Envelope)
        -> GNUNET_MQ_PriorityPreferences;
}
extern "C" {
    #[doc = " Combine performance preferences set for different"]
    #[doc = " envelopes that are being combined into one larger envelope."]
    #[doc = ""]
    #[doc = " @param p1 one set of preferences"]
    #[doc = " @param p2 second set of preferences"]
    #[doc = " @return combined priority and preferences to use"]
    pub fn GNUNET_MQ_env_combine_options(
        p1: GNUNET_MQ_PriorityPreferences,
        p2: GNUNET_MQ_PriorityPreferences,
    ) -> GNUNET_MQ_PriorityPreferences;
}
extern "C" {
    #[doc = " Remove the first envelope that has not yet been sent from the message"]
    #[doc = " queue and return it."]
    #[doc = ""]
    #[doc = " @param mq queue to remove envelope from"]
    #[doc = " @return NULL if queue is empty (or has no envelope that is not under transmission)"]
    pub fn GNUNET_MQ_unsent_head(mq: *mut GNUNET_MQ_Handle) -> *mut GNUNET_MQ_Envelope;
}
extern "C" {
    #[doc = " Set application-specific options for this queue."]
    #[doc = ""]
    #[doc = " @param mq message queue to set options for"]
    #[doc = " @param pp priority and preferences to use by default"]
    pub fn GNUNET_MQ_set_options(mq: *mut GNUNET_MQ_Handle, pp: GNUNET_MQ_PriorityPreferences);
}
extern "C" {
    #[doc = " Obtain the current length of the message queue."]
    #[doc = ""]
    #[doc = " @param mq queue to inspect"]
    #[doc = " @return number of queued, non-transmitted messages"]
    pub fn GNUNET_MQ_get_length(mq: *mut GNUNET_MQ_Handle) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Send a message with the given message queue."]
    #[doc = " May only be called once per message."]
    #[doc = ""]
    #[doc = " @param mq message queue"]
    #[doc = " @param ev the envelope with the message to send."]
    pub fn GNUNET_MQ_send(mq: *mut GNUNET_MQ_Handle, ev: *mut GNUNET_MQ_Envelope);
}
extern "C" {
    #[doc = " Send a copy of a message with the given message queue."]
    #[doc = " Can be called repeatedly on the same envelope."]
    #[doc = ""]
    #[doc = " @param mq message queue"]
    #[doc = " @param ev the envelope with the message to send."]
    pub fn GNUNET_MQ_send_copy(mq: *mut GNUNET_MQ_Handle, ev: *const GNUNET_MQ_Envelope);
}
extern "C" {
    #[doc = " Cancel sending the message. Message must have been sent with"]
    #[doc = " #GNUNET_MQ_send before.  May not be called after the notify sent"]
    #[doc = " callback has been called"]
    #[doc = ""]
    #[doc = " @param ev queued envelope to cancel"]
    pub fn GNUNET_MQ_send_cancel(ev: *mut GNUNET_MQ_Envelope);
}
extern "C" {
    #[doc = " Associate the assoc_data in @a mq with a unique request id."]
    #[doc = ""]
    #[doc = " @param mq message queue, id will be unique for the queue"]
    #[doc = " @param assoc_data to associate"]
    pub fn GNUNET_MQ_assoc_add(
        mq: *mut GNUNET_MQ_Handle,
        assoc_data: *mut ::std::os::raw::c_void,
    ) -> u32;
}
extern "C" {
    #[doc = " Get the data associated with a @a request_id in a queue"]
    #[doc = ""]
    #[doc = " @param mq the message queue with the association"]
    #[doc = " @param request_id the request id we are interested in"]
    #[doc = " @return the associated data"]
    pub fn GNUNET_MQ_assoc_get(
        mq: *mut GNUNET_MQ_Handle,
        request_id: u32,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Remove the association for a @a request_id"]
    #[doc = ""]
    #[doc = " @param mq the message queue with the association"]
    #[doc = " @param request_id the request id we want to remove"]
    #[doc = " @return the associated data"]
    pub fn GNUNET_MQ_assoc_remove(
        mq: *mut GNUNET_MQ_Handle,
        request_id: u32,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Create a message queue for the specified handlers."]
    #[doc = ""]
    #[doc = " @param send function the implements sending messages"]
    #[doc = " @param destroy function that implements destroying the queue"]
    #[doc = " @param cancel function that implements canceling a message"]
    #[doc = " @param impl_state for the queue, passed to @a send, @a destroy and @a cancel"]
    #[doc = " @param handlers array of message handlers"]
    #[doc = " @param error_handler handler for read and write errors"]
    #[doc = " @param cls closure for message handlers and error handler"]
    #[doc = " @return a new message queue"]
    pub fn GNUNET_MQ_queue_for_callbacks(
        send: GNUNET_MQ_SendImpl,
        destroy: GNUNET_MQ_DestroyImpl,
        cancel: GNUNET_MQ_CancelImpl,
        impl_state: *mut ::std::os::raw::c_void,
        handlers: *const GNUNET_MQ_MessageHandler,
        error_handler: GNUNET_MQ_ErrorHandler,
        cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_MQ_Handle;
}
extern "C" {
    #[doc = " Change the closure argument in all of the `handlers` of the"]
    #[doc = " @a mq."]
    #[doc = ""]
    #[doc = " @param mq to modify"]
    #[doc = " @param handlers_cls new closure to use"]
    pub fn GNUNET_MQ_set_handlers_closure(
        mq: *mut GNUNET_MQ_Handle,
        handlers_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Call a callback once the envelope has been sent, that is,"]
    #[doc = " sending it can not be canceled anymore."]
    #[doc = " There can be only one notify sent callback per envelope."]
    #[doc = ""]
    #[doc = " @param ev message to call the notify callback for"]
    #[doc = " @param cb the notify callback"]
    #[doc = " @param cb_cls closure for the callback"]
    pub fn GNUNET_MQ_notify_sent(
        ev: *mut GNUNET_MQ_Envelope,
        cb: GNUNET_SCHEDULER_TaskCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Destroy the message queue."]
    #[doc = ""]
    #[doc = " @param mq message queue to destroy"]
    pub fn GNUNET_MQ_destroy(mq: *mut GNUNET_MQ_Handle);
}
#[doc = " Handle we return for callbacks registered to be"]
#[doc = " notified when #GNUNET_MQ_destroy() is called on a queue."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MQ_DestroyNotificationHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Register function to be called whenever @a mq is being"]
    #[doc = " destroyed."]
    #[doc = ""]
    #[doc = " @param mq message queue to watch"]
    #[doc = " @param cb function to call on @a mq destruction"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle for #GNUNET_MQ_destroy_notify_cancel()."]
    pub fn GNUNET_MQ_destroy_notify(
        mq: *mut GNUNET_MQ_Handle,
        cb: GNUNET_SCHEDULER_TaskCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_MQ_DestroyNotificationHandle;
}
extern "C" {
    #[doc = " Cancel registration from #GNUNET_MQ_destroy_notify()."]
    #[doc = ""]
    #[doc = " @param dnh handle for registration to cancel"]
    pub fn GNUNET_MQ_destroy_notify_cancel(dnh: *mut GNUNET_MQ_DestroyNotificationHandle);
}
extern "C" {
    #[doc = " Call the message message handler that was registered"]
    #[doc = " for the type of the given message in the given message queue."]
    #[doc = ""]
    #[doc = " This function is indented to be used for the implementation"]
    #[doc = " of message queues."]
    #[doc = ""]
    #[doc = " @param mq message queue with the handlers"]
    #[doc = " @param mh message to dispatch"]
    pub fn GNUNET_MQ_inject_message(mq: *mut GNUNET_MQ_Handle, mh: *const GNUNET_MessageHeader);
}
extern "C" {
    #[doc = " Call the error handler of a message queue with the given"]
    #[doc = " error code.  If there is no error handler, log a warning."]
    #[doc = ""]
    #[doc = " This function is intended to be used for the implementation"]
    #[doc = " of message queues."]
    #[doc = ""]
    #[doc = " @param mq message queue"]
    #[doc = " @param error the error type"]
    pub fn GNUNET_MQ_inject_error(mq: *mut GNUNET_MQ_Handle, error: GNUNET_MQ_Error);
}
extern "C" {
    #[doc = " Call the send implementation for the next queued message, if any."]
    #[doc = " Calls the send notification for the current message unless"]
    #[doc = " #GNUNET_MQ_impl_send_in_flight was called for this envelope."]
    #[doc = ""]
    #[doc = " Only useful for implementing message queues, results in undefined"]
    #[doc = " behavior if not used carefully."]
    #[doc = ""]
    #[doc = " @param mq message queue to send the next message with"]
    pub fn GNUNET_MQ_impl_send_continue(mq: *mut GNUNET_MQ_Handle);
}
extern "C" {
    #[doc = " Call the send notification for the current message, but do not"]
    #[doc = " try to send the next message until #gnunet_mq_impl_send_continue"]
    #[doc = " is called."]
    #[doc = ""]
    #[doc = " Only useful for implementing message queues, results in undefined"]
    #[doc = " behavior if not used carefully."]
    #[doc = ""]
    #[doc = " @param mq message queue to send the next message with"]
    pub fn GNUNET_MQ_impl_send_in_flight(mq: *mut GNUNET_MQ_Handle);
}
extern "C" {
    #[doc = " Get the implementation state associated with the"]
    #[doc = " message queue."]
    #[doc = ""]
    #[doc = " While the GNUNET_MQ_Impl* callbacks receive the"]
    #[doc = " implementation state, continuations that are scheduled"]
    #[doc = " by the implementation function often only have one closure"]
    #[doc = " argument, with this function it is possible to get at the"]
    #[doc = " implementation state when only passing the `struct GNUNET_MQ_Handle`"]
    #[doc = " as closure."]
    #[doc = ""]
    #[doc = " @param mq message queue with the current message"]
    #[doc = " @return message to send, never NULL"]
    pub fn GNUNET_MQ_impl_state(mq: *mut GNUNET_MQ_Handle) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Get the message that should currently be sent."]
    #[doc = " Fails if there is no current message."]
    #[doc = " Only useful for implementing message queues,"]
    #[doc = " results in undefined behavior if not used carefully."]
    #[doc = ""]
    #[doc = " @param mq message queue with the current message"]
    #[doc = " @return message to send, never NULL"]
    pub fn GNUNET_MQ_impl_current(mq: *mut GNUNET_MQ_Handle) -> *const GNUNET_MessageHeader;
}
#[doc = " No preference was expressed."]
pub const GNUNET_MQ_PreferenceKind_GNUNET_MQ_PREFERENCE_NONE: GNUNET_MQ_PreferenceKind = 0;
#[doc = " The preferred transmission for this envelope focuses on"]
#[doc = " maximizing bandwidth."]
pub const GNUNET_MQ_PreferenceKind_GNUNET_MQ_PREFERENCE_BANDWIDTH: GNUNET_MQ_PreferenceKind = 1;
#[doc = " The preferred transmission for this envelope foces on"]
#[doc = " minimizing latency."]
pub const GNUNET_MQ_PreferenceKind_GNUNET_MQ_PREFERENCE_LATENCY: GNUNET_MQ_PreferenceKind = 2;
#[doc = " The preferred transmission for this envelope foces on"]
#[doc = " reliability."]
pub const GNUNET_MQ_PreferenceKind_GNUNET_MQ_PREFERENCE_RELIABILITY: GNUNET_MQ_PreferenceKind = 3;
#[doc = " Enum defining all known preference categories."]
#[doc = ""]
#[doc = " @deprecated will be replaced by `enum GNUNET_MQ_PriorityPreference`"]
pub type GNUNET_MQ_PreferenceKind = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Convert an `enum GNUNET_MQ_PreferenceType` to a string"]
    #[doc = ""]
    #[doc = " @param type the preference type"]
    #[doc = " @return a string or NULL if invalid"]
    #[doc = ""]
    #[doc = " @deprecated will be replaced by `enum GNUNET_MQ_PriorityPreference`"]
    pub fn GNUNET_MQ_preference_to_string(
        type_: GNUNET_MQ_PreferenceKind,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Test if the port or UNIXPATH of the given @a service_name"]
    #[doc = " is in use and thus (most likely) the respective service is up."]
    #[doc = ""]
    #[doc = " @param cfg our configuration"]
    #[doc = " @param service_name name of the service to connect to"]
    #[doc = " @return #GNUNET_YES if the service is (likely) up (or running remotely),"]
    #[doc = "         #GNUNET_NO if the service is (definitively) down,"]
    #[doc = "         #GNUNET_SYSERR if the configuration does not give us"]
    #[doc = "          the necessary information about the service, or if"]
    #[doc = "          we could not check (i.e. socket() failed)"]
    pub fn GNUNET_CLIENT_test(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        service_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a message queue to connect to a GNUnet service."]
    #[doc = " If handlers are specified, receive messages from the connection."]
    #[doc = ""]
    #[doc = " @param connection the client connection"]
    #[doc = " @param handlers handlers for receiving messages, can be NULL"]
    #[doc = " @param error_handler error handler"]
    #[doc = " @param error_handler_cls closure for the @a error_handler"]
    #[doc = " @return the message queue, NULL on error"]
    pub fn GNUNET_CLIENT_connect(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        service_name: *const ::std::os::raw::c_char,
        handlers: *const GNUNET_MQ_MessageHandler,
        error_handler: GNUNET_MQ_ErrorHandler,
        error_handler_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_MQ_Handle;
}
#[doc = " @brief General context for command line processors."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_GETOPT_CommandLineProcessorContext {
    #[doc = " Name of the application"]
    pub binaryName: *const ::std::os::raw::c_char,
    #[doc = " Name of application with option summary"]
    pub binaryOptions: *const ::std::os::raw::c_char,
    #[doc = " Array with all command line options."]
    pub allOptions: *const GNUNET_GETOPT_CommandLineOption,
    #[doc = " Original command line"]
    pub argv: *const *mut ::std::os::raw::c_char,
    #[doc = " Total number of argv's."]
    pub argc: ::std::os::raw::c_uint,
    #[doc = " Current argument."]
    pub currentArgument: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_GNUNET_GETOPT_CommandLineProcessorContext() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_GETOPT_CommandLineProcessorContext>(),
        40usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_GETOPT_CommandLineProcessorContext>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).binaryName
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(binaryName)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).binaryOptions
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(binaryOptions)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).allOptions
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(allOptions)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).argv as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(argv)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).argc as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(argc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineProcessorContext>())).currentArgument
                as *const _ as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineProcessorContext),
            "::",
            stringify!(currentArgument)
        )
    );
}
#[doc = " @brief Process a command line option"]
#[doc = ""]
#[doc = " @param ctx context for all options"]
#[doc = " @param scls specific closure (for this processor)"]
#[doc = " @param option long name of the option (i.e. \"config\" for --config)"]
#[doc = " @param value argument, NULL if none was given"]
#[doc = " @return #GNUNET_OK to continue processing other options, #GNUNET_SYSERR to abort"]
pub type GNUNET_GETOPT_CommandLineOptionProcessor = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut GNUNET_GETOPT_CommandLineProcessorContext,
        scls: *mut ::std::os::raw::c_void,
        option: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Definition of a command line option."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_GETOPT_CommandLineOption {
    #[doc = " Short name of the option."]
    pub shortName: ::std::os::raw::c_char,
    #[doc = " Long name of the option (may not be NULL)"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = " Name of the argument for the user in help text"]
    pub argumentHelp: *const ::std::os::raw::c_char,
    #[doc = " Help text for the option (description)"]
    pub description: *const ::std::os::raw::c_char,
    #[doc = " Is an argument required?  #GNUNET_NO (includes optional) or"]
    #[doc = " #GNUNET_YES (required)"]
    pub require_argument: ::std::os::raw::c_int,
    #[doc = " Is the presence of this option mandatory?"]
    pub option_mandatory: ::std::os::raw::c_int,
    #[doc = " Is the option exclusive?"]
    pub option_exclusive: ::std::os::raw::c_int,
    #[doc = " Handler for the option."]
    pub processor: GNUNET_GETOPT_CommandLineOptionProcessor,
    #[doc = " Function to call on @e scls to clean up after processing all"]
    #[doc = " the arguments. Can be NULL."]
    pub cleaner: ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>,
    #[doc = " Specific closure to pass to the processor."]
    pub scls: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_GNUNET_GETOPT_CommandLineOption() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_GETOPT_CommandLineOption>(),
        72usize,
        concat!("Size of: ", stringify!(GNUNET_GETOPT_CommandLineOption))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_GETOPT_CommandLineOption>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_GETOPT_CommandLineOption))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).shortName as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(shortName)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).name as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).argumentHelp as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(argumentHelp)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).description as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(description)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).require_argument as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(require_argument)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).option_mandatory as *const _
                as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(option_mandatory)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).option_exclusive as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(option_exclusive)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).processor as *const _
                as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(processor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).cleaner as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(cleaner)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_GETOPT_CommandLineOption>())).scls as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_GETOPT_CommandLineOption),
            "::",
            stringify!(scls)
        )
    );
}
extern "C" {
    #[doc = " Defining the option to print the command line"]
    #[doc = " help text (-h option)."]
    #[doc = ""]
    #[doc = " @param about string with brief description of the application"]
    pub fn GNUNET_GETOPT_option_help(
        about: *const ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a `long long` with an offset to add to the current"]
    #[doc = " system time to construct the time seen by the application. Used for"]
    #[doc = " debugging / testing."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param[out] val set to the time specified at the command line"]
    pub fn GNUNET_GETOPT_option_timetravel(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Define the option to print the version of"]
    #[doc = " the application (-v option)"]
    #[doc = ""]
    #[doc = " @param version string with the version number"]
    pub fn GNUNET_GETOPT_option_version(
        version: *const ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify log file name (-l option)"]
    #[doc = ""]
    #[doc = " @param[out] logfn set to the name of the logfile"]
    pub fn GNUNET_GETOPT_option_logfile(
        logfn: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a string."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] str set to the string"]
    pub fn GNUNET_GETOPT_option_string(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        str_: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a filename (automatically path expanded)."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] str set to the string"]
    pub fn GNUNET_GETOPT_option_filename(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        str_: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a binary value using Crockford"]
    #[doc = " Base32 encoding."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val binary value decoded from Crockford Base32-encoded argument"]
    #[doc = " @param val_size size of @a val in bytes"]
    pub fn GNUNET_GETOPT_option_base32_fixed_size(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut ::std::os::raw::c_void,
        val_size: usize,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a flag (which internally means setting"]
    #[doc = " an integer to 1/#GNUNET_YES/#GNUNET_OK."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to 1 if the option is present"]
    pub fn GNUNET_GETOPT_option_flag(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut ::std::os::raw::c_int,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify an `unsigned int`."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to the value specified at the command line"]
    pub fn GNUNET_GETOPT_option_uint(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut ::std::os::raw::c_uint,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify an uint16_t."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to the value specified at the command line"]
    pub fn GNUNET_GETOPT_option_uint16(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut u16,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify an `unsigned long long`."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to the value specified at the command line"]
    pub fn GNUNET_GETOPT_option_ulong(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut ::std::os::raw::c_ulonglong,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a `struct GNUNET_TIME_Relative`"]
    #[doc = " (using human-readable \"fancy\" time)."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to the time specified at the command line"]
    pub fn GNUNET_GETOPT_option_relative_time(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut GNUNET_TIME_Relative,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify a `struct GNUNET_TIME_Absolute`"]
    #[doc = " (using human-readable \"fancy\" time)."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to the time specified at the command line"]
    pub fn GNUNET_GETOPT_option_absolute_time(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        argumentHelp: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut GNUNET_TIME_Absolute,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Increment @a val each time the option flag is given by one."]
    #[doc = ""]
    #[doc = " @param shortName short name of the option"]
    #[doc = " @param name long name of the option"]
    #[doc = " @param argumentHelp help text for the option argument"]
    #[doc = " @param description long help text for the option"]
    #[doc = " @param[out] val set to 1 if the option is present"]
    pub fn GNUNET_GETOPT_option_increment_uint(
        shortName: ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        description: *const ::std::os::raw::c_char,
        val: *mut ::std::os::raw::c_uint,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Define the '-L' log level option.  Note that we do not check"]
    #[doc = " that the log level is valid here."]
    #[doc = ""]
    #[doc = " @param[out] level set to the log level"]
    pub fn GNUNET_GETOPT_option_loglevel(
        level: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Define the '-V' verbosity option.  Using the option more"]
    #[doc = " than once increments @a level each time."]
    #[doc = ""]
    #[doc = " @param[out] level set to the verbosity level"]
    pub fn GNUNET_GETOPT_option_verbose(
        level: *mut ::std::os::raw::c_uint,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Allow user to specify configuration file name (-c option)"]
    #[doc = ""]
    #[doc = " @param[out] fn set to the name of the configuration file"]
    pub fn GNUNET_GETOPT_option_cfgfile(
        fn_: *mut *mut ::std::os::raw::c_char,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Make the given option mandatory."]
    #[doc = ""]
    #[doc = " @param opt option to modify"]
    #[doc = " @return @a opt with the mandatory flag set."]
    pub fn GNUNET_GETOPT_option_mandatory(
        opt: GNUNET_GETOPT_CommandLineOption,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Make the given option mutually exclusive with other options."]
    #[doc = ""]
    #[doc = " @param opt option to modify"]
    #[doc = " @return @a opt with the exclusive flag set."]
    pub fn GNUNET_GETOPT_option_exclusive(
        opt: GNUNET_GETOPT_CommandLineOption,
    ) -> GNUNET_GETOPT_CommandLineOption;
}
extern "C" {
    #[doc = " Parse the command line."]
    #[doc = ""]
    #[doc = " @param binaryOptions Name of application with option summary"]
    #[doc = " @param allOptions defined options and handlers"]
    #[doc = " @param argc number of arguments in @a argv"]
    #[doc = " @param argv actual arguments"]
    #[doc = " @return index into argv with first non-option"]
    #[doc = "   argument, or #GNUNET_SYSERR on error"]
    pub fn GNUNET_GETOPT_run(
        binaryOptions: *const ::std::os::raw::c_char,
        allOptions: *const GNUNET_GETOPT_CommandLineOption,
        argc: ::std::os::raw::c_uint,
        argv: *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Handle to a message stream tokenizer."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_MessageStreamTokenizer {
    _unused: [u8; 0],
}
#[doc = " Functions with this signature are called whenever a"]
#[doc = " complete message is received by the tokenizer."]
#[doc = ""]
#[doc = " Do not call #GNUNET_mst_destroy from within"]
#[doc = " the scope of this callback."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param message the actual message"]
#[doc = " @return #GNUNET_OK on success,"]
#[doc = "     #GNUNET_NO to stop further processing due to disconnect (no error)"]
#[doc = "     #GNUNET_SYSERR to stop further processing due to error"]
pub type GNUNET_MessageTokenizerCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        message: *const GNUNET_MessageHeader,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " Create a message stream tokenizer."]
    #[doc = ""]
    #[doc = " @param cb function to call on completed messages"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to tokenizer"]
    pub fn GNUNET_MST_create(
        cb: GNUNET_MessageTokenizerCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_MessageStreamTokenizer;
}
extern "C" {
    #[doc = " Add incoming data to the receive buffer and call the"]
    #[doc = " callback for all complete messages."]
    #[doc = ""]
    #[doc = " @param mst tokenizer to use"]
    #[doc = " @param buf input data to add"]
    #[doc = " @param size number of bytes in @a buf"]
    #[doc = " @param purge should any excess bytes in the buffer be discarded"]
    #[doc = "       (i.e. for packet-based services like UDP)"]
    #[doc = " @param one_shot only call callback once, keep rest of message in buffer"]
    #[doc = " @return #GNUNET_OK if we are done processing (need more data)"]
    #[doc = "         #GNUNET_NO if one_shot was set and we have another message ready"]
    #[doc = "         #GNUNET_SYSERR if the data stream is corrupt"]
    pub fn GNUNET_MST_from_buffer(
        mst: *mut GNUNET_MessageStreamTokenizer,
        buf: *const ::std::os::raw::c_char,
        size: usize,
        purge: ::std::os::raw::c_int,
        one_shot: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add incoming data to the receive buffer and call the"]
    #[doc = " callback for all complete messages."]
    #[doc = ""]
    #[doc = " @param mst tokenizer to use"]
    #[doc = " @param buf input data to add"]
    #[doc = " @param size number of bytes in @a buf"]
    #[doc = " @param purge should any excess bytes in the buffer be discarded"]
    #[doc = "       (i.e. for packet-based services like UDP)"]
    #[doc = " @param one_shot only call callback once, keep rest of message in buffer"]
    #[doc = " @return #GNUNET_OK if we are done processing (need more data)"]
    #[doc = "         #GNUNET_NO if one_shot was set and we have another message ready"]
    #[doc = "         #GNUNET_SYSERR if the data stream is corrupt"]
    pub fn GNUNET_MST_read(
        mst: *mut GNUNET_MessageStreamTokenizer,
        sock: *mut GNUNET_NETWORK_Handle,
        purge: ::std::os::raw::c_int,
        one_shot: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Obtain the next message from the @a mst, assuming that"]
    #[doc = " there are more unprocessed messages in the internal buffer"]
    #[doc = " of the @a mst."]
    #[doc = ""]
    #[doc = " @param mst tokenizer to use"]
    #[doc = " @param one_shot only call callback once, keep rest of message in buffer"]
    #[doc = " @return #GNUNET_OK if we are done processing (need more data)"]
    #[doc = "         #GNUNET_NO if one_shot was set and we have another message ready"]
    #[doc = "         #GNUNET_SYSERR if the data stream is corrupt"]
    pub fn GNUNET_MST_next(
        mst: *mut GNUNET_MessageStreamTokenizer,
        one_shot: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Destroys a tokenizer."]
    #[doc = ""]
    #[doc = " @param mst tokenizer to destroy"]
    pub fn GNUNET_MST_destroy(mst: *mut GNUNET_MessageStreamTokenizer);
}
#[doc = " The handle to a helper process."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HELPER_Handle {
    _unused: [u8; 0],
}
#[doc = " Callback that will be called when the helper process dies. This is not called"]
#[doc = " when the helper process is stopped using GNUNET_HELPER_stop()"]
#[doc = ""]
#[doc = " @param cls the closure from GNUNET_HELPER_start()"]
pub type GNUNET_HELPER_ExceptionCallback =
    ::std::option::Option<unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void)>;
extern "C" {
    #[doc = " Starts a helper and begins reading from it. The helper process is"]
    #[doc = " restarted when it dies except when it is stopped using GNUNET_HELPER_stop()"]
    #[doc = " or when the exp_cb callback is not NULL."]
    #[doc = ""]
    #[doc = " @param with_control_pipe does the helper support the use of a control pipe for signalling?"]
    #[doc = " @param binary_name name of the binary to run"]
    #[doc = " @param binary_argv NULL-terminated list of arguments to give when starting the binary (this"]
    #[doc = "                    argument must not be modified by the client for"]
    #[doc = "                     the lifetime of the helper handle)"]
    #[doc = " @param cb function to call if we get messages from the helper"]
    #[doc = " @param exp_cb the exception callback to call. Set this to NULL if the helper"]
    #[doc = "          process has to be restarted automatically when it dies/crashes"]
    #[doc = " @param cb_cls closure for the above callbacks"]
    #[doc = " @return the new Handle, NULL on error"]
    pub fn GNUNET_HELPER_start(
        with_control_pipe: ::std::os::raw::c_int,
        binary_name: *const ::std::os::raw::c_char,
        binary_argv: *const *mut ::std::os::raw::c_char,
        cb: GNUNET_MessageTokenizerCallback,
        exp_cb: GNUNET_HELPER_ExceptionCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_HELPER_Handle;
}
extern "C" {
    #[doc = " Sends termination signal to the helper process.  The helper process is not"]
    #[doc = " reaped; call GNUNET_HELPER_wait() for reaping the dead helper process."]
    #[doc = ""]
    #[doc = " @param h the helper handle"]
    #[doc = " @param soft_kill if #GNUNET_YES, signals termination by closing the helper's"]
    #[doc = "          stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper"]
    #[doc = " @return #GNUNET_OK on success; #GNUNET_SYSERR on error"]
    pub fn GNUNET_HELPER_kill(
        h: *mut GNUNET_HELPER_Handle,
        soft_kill: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Reap the helper process.  This call is blocking (!).  The helper process"]
    #[doc = " should either be sent a termination signal before or should be dead before"]
    #[doc = " calling this function"]
    #[doc = ""]
    #[doc = " @param h the helper handle"]
    #[doc = " @return #GNUNET_OK on success; #GNUNET_SYSERR on error"]
    pub fn GNUNET_HELPER_wait(h: *mut GNUNET_HELPER_Handle) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Free's the resources occupied by the helper handle"]
    #[doc = ""]
    #[doc = " @param h the helper handle to free"]
    pub fn GNUNET_HELPER_destroy(h: *mut GNUNET_HELPER_Handle);
}
extern "C" {
    #[doc = " Kills the helper, closes the pipe, frees the handle and calls wait() on the"]
    #[doc = " helper process"]
    #[doc = ""]
    #[doc = " @param h handle to helper to stop"]
    #[doc = " @param soft_kill if #GNUNET_YES, signals termination by closing the helper's"]
    #[doc = "          stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper"]
    pub fn GNUNET_HELPER_stop(h: *mut GNUNET_HELPER_Handle, soft_kill: ::std::os::raw::c_int);
}
#[doc = " Continuation function."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param result #GNUNET_OK on success,"]
#[doc = "               #GNUNET_NO if helper process died"]
#[doc = "               #GNUNET_SYSERR during GNUNET_HELPER_destroy"]
pub type GNUNET_HELPER_Continuation = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, result: ::std::os::raw::c_int),
>;
#[doc = " Handle to cancel 'send'"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HELPER_SendHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Send an message to the helper."]
    #[doc = ""]
    #[doc = " @param h helper to send message to"]
    #[doc = " @param msg message to send"]
    #[doc = " @param can_drop can the message be dropped if there is already one in the queue?"]
    #[doc = " @param cont continuation to run once the message is out (#GNUNET_OK on success, #GNUNET_NO"]
    #[doc = "             if the helper process died, #GNUNET_SYSERR during #GNUNET_HELPER_destroy)."]
    #[doc = " @param cont_cls closure for @a cont"]
    #[doc = " @return NULL if the message was dropped,"]
    #[doc = "         otherwise handle to cancel @a cont (actual transmission may"]
    #[doc = "         not be abortable)"]
    pub fn GNUNET_HELPER_send(
        h: *mut GNUNET_HELPER_Handle,
        msg: *const GNUNET_MessageHeader,
        can_drop: ::std::os::raw::c_int,
        cont: GNUNET_HELPER_Continuation,
        cont_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_HELPER_SendHandle;
}
extern "C" {
    #[doc = " Cancel a #GNUNET_HELPER_send operation.  If possible, transmitting"]
    #[doc = " the message is also aborted, but at least 'cont' won't be called."]
    #[doc = ""]
    #[doc = " @param sh operation to cancel"]
    pub fn GNUNET_HELPER_send_cancel(sh: *mut GNUNET_HELPER_SendHandle);
}
#[doc = " The notification context is the key datastructure for a convenience"]
#[doc = " API used for transmission of notifications to the subscriber until the"]
#[doc = " subscriber disconnects (or the notification context is destroyed, in"]
#[doc = " which case we disconnect these subscribers).  Essentially, all"]
#[doc = " (notification) messages are queued up until the subscriber is able to"]
#[doc = " read them."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_NotificationContext {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Create a new notification context."]
    #[doc = ""]
    #[doc = " @param queue_length maximum number of messages to keep in"]
    #[doc = "        the notification queue; optional messages are dropped"]
    #[doc = "        if the queue gets longer than this number of messages"]
    #[doc = " @return handle to the notification context"]
    pub fn GNUNET_notification_context_create(
        queue_length: ::std::os::raw::c_uint,
    ) -> *mut GNUNET_NotificationContext;
}
extern "C" {
    #[doc = " Destroy the context, force disconnect for all subscribers."]
    #[doc = ""]
    #[doc = " @param nc context to destroy."]
    pub fn GNUNET_notification_context_destroy(nc: *mut GNUNET_NotificationContext);
}
extern "C" {
    #[doc = " Add a subscriber to the notification context."]
    #[doc = ""]
    #[doc = " @param nc context to modify"]
    #[doc = " @param mq message queue add"]
    pub fn GNUNET_notification_context_add(
        nc: *mut GNUNET_NotificationContext,
        mq: *mut GNUNET_MQ_Handle,
    );
}
extern "C" {
    #[doc = " Send a message to all subscribers of this context."]
    #[doc = ""]
    #[doc = " @param nc context to modify"]
    #[doc = " @param msg message to send"]
    #[doc = " @param can_drop can this message be dropped due to queue length limitations"]
    pub fn GNUNET_notification_context_broadcast(
        nc: *mut GNUNET_NotificationContext,
        msg: *const GNUNET_MessageHeader,
        can_drop: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Return active number of subscribers in this context."]
    #[doc = ""]
    #[doc = " @param nc context to query"]
    #[doc = " @return number of current subscribers"]
    pub fn GNUNET_notification_context_get_size(
        nc: *mut GNUNET_NotificationContext,
    ) -> ::std::os::raw::c_uint;
}
#[doc = " Operations handle."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_OP_Handle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Create new operations handle."]
    pub fn GNUNET_OP_create() -> *mut GNUNET_OP_Handle;
}
extern "C" {
    #[doc = " Destroy operations handle."]
    pub fn GNUNET_OP_destroy(h: *mut GNUNET_OP_Handle);
}
extern "C" {
    #[doc = " Get a unique operation ID to distinguish between asynchronous requests."]
    #[doc = ""]
    #[doc = " @param h"]
    #[doc = "        Operations handle."]
    #[doc = ""]
    #[doc = " @return Operation ID to use."]
    pub fn GNUNET_OP_get_next_id(h: *mut GNUNET_OP_Handle) -> u64;
}
extern "C" {
    #[doc = " Find operation by ID."]
    #[doc = ""]
    #[doc = " @param h"]
    #[doc = "        Operations handle."]
    #[doc = " @param op_id"]
    #[doc = "        Operation ID to look up."]
    #[doc = " @param[out] result_cb"]
    #[doc = "        If an operation was found, its result callback is returned here."]
    #[doc = " @param[out] cls"]
    #[doc = "        If an operation was found, its closure is returned here."]
    #[doc = " @param[out] ctx"]
    #[doc = "        User context."]
    #[doc = ""]
    #[doc = " @return #GNUNET_YES if an operation was found,"]
    #[doc = "         #GNUNET_NO  if not found."]
    pub fn GNUNET_OP_get(
        h: *mut GNUNET_OP_Handle,
        op_id: u64,
        result_cb: *mut GNUNET_ResultCallback,
        cls: *mut *mut ::std::os::raw::c_void,
        ctx: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add a new operation."]
    #[doc = ""]
    #[doc = " @param h"]
    #[doc = "        Operations handle."]
    #[doc = " @param result_cb"]
    #[doc = "        Function to call with the result of the operation."]
    #[doc = " @param cls"]
    #[doc = "        Closure for @a result_cb."]
    #[doc = " @param ctx"]
    #[doc = "        User context."]
    #[doc = ""]
    #[doc = " @return ID of the new operation."]
    pub fn GNUNET_OP_add(
        h: *mut GNUNET_OP_Handle,
        result_cb: GNUNET_ResultCallback,
        cls: *mut ::std::os::raw::c_void,
        ctx: *mut ::std::os::raw::c_void,
    ) -> u64;
}
extern "C" {
    #[doc = " Call the result callback of an operation and remove it."]
    #[doc = ""]
    #[doc = " @param h"]
    #[doc = "        Operations handle."]
    #[doc = " @param op_id"]
    #[doc = "        Operation ID."]
    #[doc = " @param result_code"]
    #[doc = "        Result of the operation."]
    #[doc = " @param data"]
    #[doc = "        Data result of the operation."]
    #[doc = " @param data_size"]
    #[doc = "        Size of @a data."]
    #[doc = " @param[out] ctx"]
    #[doc = "        User context."]
    #[doc = ""]
    #[doc = " @return #GNUNET_YES if the operation was found and removed,"]
    #[doc = "         #GNUNET_NO  if the operation was not found."]
    pub fn GNUNET_OP_result(
        h: *mut GNUNET_OP_Handle,
        op_id: u64,
        result_code: i64,
        data: *const ::std::os::raw::c_void,
        data_size: u16,
        ctx: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Remove / cancel an operation."]
    #[doc = ""]
    #[doc = " @param h"]
    #[doc = "        Operations handle."]
    #[doc = " @param op_id"]
    #[doc = "        Operation ID."]
    #[doc = ""]
    #[doc = " @return #GNUNET_YES if the operation was found and removed,"]
    #[doc = "         #GNUNET_NO  if the operation was not found."]
    pub fn GNUNET_OP_remove(h: *mut GNUNET_OP_Handle, op_id: u64) -> ::std::os::raw::c_int;
}
#[doc = " No standard streams should be inherited."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_NONE: GNUNET_OS_InheritStdioFlags = 0;
#[doc = " When this flag is set, the child process will"]
#[doc = " inherit stdin of the parent."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_IN: GNUNET_OS_InheritStdioFlags = 1;
#[doc = " When this flag is set, the child process will"]
#[doc = " inherit stdout of the parent."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_OUT: GNUNET_OS_InheritStdioFlags = 2;
#[doc = " When this flag is set, the child process will"]
#[doc = " inherit stderr of the parent."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_ERR: GNUNET_OS_InheritStdioFlags = 4;
#[doc = " When these flags are set, the child process will"]
#[doc = " inherit stdout and stderr of the parent."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_OUT_AND_ERR:
    GNUNET_OS_InheritStdioFlags = 6;
#[doc = " Use this option to have all of the standard streams"]
#[doc = " (stdin, stdout and stderror) be inherited."]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_INHERIT_STD_ALL: GNUNET_OS_InheritStdioFlags = 7;
#[doc = " Should a pipe be used to send signals to the child?"]
pub const GNUNET_OS_InheritStdioFlags_GNUNET_OS_USE_PIPE_CONTROL: GNUNET_OS_InheritStdioFlags = 8;
#[doc = " Flags that determine which of the standard streams"]
#[doc = " should be inherited by the child process."]
pub type GNUNET_OS_InheritStdioFlags = ::std::os::raw::c_uint;
#[doc = " Process information (OS-dependent)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_OS_Process {
    _unused: [u8; 0],
}
#[doc = " Return the \"PREFIX\" directory given to configure."]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_PREFIX: GNUNET_OS_InstallationPathKind = 0;
#[doc = " Return the directory where the program binaries are installed. (bin/)"]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_BINDIR: GNUNET_OS_InstallationPathKind = 1;
#[doc = " Return the directory where libraries are installed. (lib/gnunet/)"]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_LIBDIR: GNUNET_OS_InstallationPathKind = 2;
#[doc = " Return the directory where data is installed (share/gnunet/)"]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_DATADIR: GNUNET_OS_InstallationPathKind = 3;
#[doc = " Return the directory where translations are installed (share/locale/)"]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_LOCALEDIR: GNUNET_OS_InstallationPathKind =
    4;
#[doc = " Return the installation directory of this application, not"]
#[doc = " the one of the overall GNUnet installation (in case they"]
#[doc = " are different)."]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_SELF_PREFIX: GNUNET_OS_InstallationPathKind =
    5;
#[doc = " Return the prefix of the path with application icons (share/icons/)."]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_ICONDIR: GNUNET_OS_InstallationPathKind = 6;
#[doc = " Return the prefix of the path with documentation files, including the"]
#[doc = " license (share/doc/gnunet/)."]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_DOCDIR: GNUNET_OS_InstallationPathKind = 7;
#[doc = " Return the directory where helper binaries are installed (lib/gnunet/libexec/)"]
pub const GNUNET_OS_InstallationPathKind_GNUNET_OS_IPK_LIBEXECDIR: GNUNET_OS_InstallationPathKind =
    8;
#[doc = " Possible installation paths to request"]
pub type GNUNET_OS_InstallationPathKind = ::std::os::raw::c_uint;
#[doc = " The process is not known to the OS (or at"]
#[doc = " least not one of our children)."]
pub const GNUNET_OS_ProcessStatusType_GNUNET_OS_PROCESS_UNKNOWN: GNUNET_OS_ProcessStatusType = 0;
#[doc = " The process is still running."]
pub const GNUNET_OS_ProcessStatusType_GNUNET_OS_PROCESS_RUNNING: GNUNET_OS_ProcessStatusType = 1;
#[doc = " The process is paused (but could be resumed)."]
pub const GNUNET_OS_ProcessStatusType_GNUNET_OS_PROCESS_STOPPED: GNUNET_OS_ProcessStatusType = 2;
#[doc = " The process exited with a return code."]
pub const GNUNET_OS_ProcessStatusType_GNUNET_OS_PROCESS_EXITED: GNUNET_OS_ProcessStatusType = 3;
#[doc = " The process was killed by a signal."]
pub const GNUNET_OS_ProcessStatusType_GNUNET_OS_PROCESS_SIGNALED: GNUNET_OS_ProcessStatusType = 4;
#[doc = " Process status types"]
pub type GNUNET_OS_ProcessStatusType = ::std::os::raw::c_uint;
#[doc = " Project-specific data used to help the OS subsystem"]
#[doc = " find installation paths."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_OS_ProjectData {
    #[doc = " Name of a library that is installed in the \"lib/\" directory of"]
    #[doc = " the project, such as \"libgnunetutil\".  Used to locate the"]
    #[doc = " installation by scanning dependencies of the current process."]
    pub libname: *const ::std::os::raw::c_char,
    #[doc = " Name of the project that is used in the \"libexec\" prefix, For"]
    #[doc = " example, \"gnunet\".  Certain helper binaries are then expected to"]
    #[doc = " be installed in \"$PREFIX/libexec/gnunet/\" and resources in"]
    #[doc = " \"$PREFIX/share/gnunet/\"."]
    pub project_dirname: *const ::std::os::raw::c_char,
    #[doc = " Name of a project-specific binary that should be in \"$PREFIX/bin/\"."]
    #[doc = " Used to determine installation path from $PATH variable."]
    #[doc = " For example \"gnunet-arm\".  On W32, \".exe\" should be omitted."]
    pub binary_name: *const ::std::os::raw::c_char,
    #[doc = " Name of an environment variable that can be used to override"]
    #[doc = " installation path detection, for example \"GNUNET_PREFIX\"."]
    pub env_varname: *const ::std::os::raw::c_char,
    #[doc = " Alternative name of an environment variable that can be used to"]
    #[doc = " override installation path detection, if \"env_varname\" is not"]
    #[doc = " set. Again, for example, \"GNUNET_PREFIX\"."]
    pub env_varname_alt: *const ::std::os::raw::c_char,
    #[doc = " Name of an environment variable that can be used to override"]
    #[doc = " the location from which default configuration files are loaded"]
    #[doc = " from, for example \"GNUNET_BASE_CONFIG\"."]
    pub base_config_varname: *const ::std::os::raw::c_char,
    #[doc = " E-mail address for reporting bugs."]
    pub bug_email: *const ::std::os::raw::c_char,
    #[doc = " Project homepage."]
    pub homepage: *const ::std::os::raw::c_char,
    #[doc = " Configuration file name (in $XDG_CONFIG_HOME) to use."]
    pub config_file: *const ::std::os::raw::c_char,
    #[doc = " Configuration file name to use (if $XDG_CONFIG_HOME is not set)."]
    pub user_config_file: *const ::std::os::raw::c_char,
    #[doc = " String identifying the current project version."]
    pub version: *const ::std::os::raw::c_char,
    #[doc = " Non-zero means this project is part of GNU."]
    pub is_gnu: ::std::os::raw::c_int,
    #[doc = " Gettext domain for localisation, e.g. the PACKAGE macro."]
    #[doc = " Setting this field to NULL disables gettext."]
    pub gettext_domain: *mut ::std::os::raw::c_char,
    #[doc = " Gettext directory, e.g. the LOCALEDIR macro."]
    #[doc = " If this field is NULL, the path is automatically inferred."]
    pub gettext_path: *mut ::std::os::raw::c_char,
    #[doc = " URL pointing to the source code of the application.  Required for AGPL."]
    #[doc = " Setting this to NULL disables the built-in mechanism, but you must"]
    #[doc = " provide it in some other way.  If non-NULL, message type 1 and 2 are"]
    #[doc = " reserved."]
    pub agpl_url: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_GNUNET_OS_ProjectData() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_OS_ProjectData>(),
        120usize,
        concat!("Size of: ", stringify!(GNUNET_OS_ProjectData))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_OS_ProjectData>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_OS_ProjectData))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).libname as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(libname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).project_dirname as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(project_dirname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).binary_name as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(binary_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).env_varname as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(env_varname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).env_varname_alt as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(env_varname_alt)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).base_config_varname as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(base_config_varname)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).bug_email as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(bug_email)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).homepage as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(homepage)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).config_file as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(config_file)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).user_config_file as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(user_config_file)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).version as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).is_gnu as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(is_gnu)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).gettext_domain as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(gettext_domain)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).gettext_path as *const _ as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(gettext_path)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_OS_ProjectData>())).agpl_url as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_OS_ProjectData),
            "::",
            stringify!(agpl_url)
        )
    );
}
extern "C" {
    #[doc = " Return default project data used by 'libgnunetutil' for GNUnet."]
    pub fn GNUNET_OS_project_data_default() -> *const GNUNET_OS_ProjectData;
}
extern "C" {
    #[doc = " @return current (actual) project data."]
    pub fn GNUNET_OS_project_data_get() -> *const GNUNET_OS_ProjectData;
}
extern "C" {
    #[doc = " Setup OS subsystem with project data."]
    #[doc = ""]
    #[doc = " @param pd project data used to determine paths."]
    pub fn GNUNET_OS_init(pd: *const GNUNET_OS_ProjectData);
}
extern "C" {
    #[doc = " Get the path to a specific GNUnet installation directory or, with"]
    #[doc = " #GNUNET_OS_IPK_SELF_PREFIX, the current running apps installation"]
    #[doc = " directory."]
    #[doc = ""]
    #[doc = " @param dirkind what kind of directory is desired?"]
    #[doc = " @return a pointer to the dir path (to be freed by the caller)"]
    pub fn GNUNET_OS_installation_get_path(
        dirkind: GNUNET_OS_InstallationPathKind,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Given the name of a gnunet-helper, gnunet-service or gnunet-daemon"]
    #[doc = " binary, try to prefix it with the libexec/-directory to get the"]
    #[doc = " full path."]
    #[doc = ""]
    #[doc = " @param progname name of the binary"]
    #[doc = " @return full path to the binary, if possible, otherwise copy of 'progname'"]
    pub fn GNUNET_OS_get_libexec_binary_path(
        progname: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Given the name of a helper, service or daemon binary construct the full"]
    #[doc = " path to the binary using the SUID_BINARY_PATH in the PATHS section of the"]
    #[doc = " configuration. If that option is not present, fall back to"]
    #[doc = " GNUNET_OS_get_libexec_binary_path. If @a progname is an absolute path, a"]
    #[doc = " copy of this path is returned."]
    #[doc = ""]
    #[doc = " @param cfg configuration to inspect"]
    #[doc = " @param progname name of the binary"]
    #[doc = " @return full path to the binary, if possible, a copy of @a progname"]
    #[doc = "         otherwise"]
    pub fn GNUNET_OS_get_suid_binary_path(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        progname: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
#[doc = " Callback function invoked for each interface found."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param name name of the interface (can be NULL for unknown)"]
#[doc = " @param isDefault is this presumably the default interface"]
#[doc = " @param addr address of this interface (can be NULL for unknown or unassigned)"]
#[doc = " @param broadcast_addr the broadcast address (can be NULL for unknown or unassigned)"]
#[doc = " @param netmask the network mask (can be NULL for unknown or unassigned)"]
#[doc = " @param addrlen length of the address"]
#[doc = " @return #GNUNET_OK to continue iteration, #GNUNET_SYSERR to abort"]
pub type GNUNET_OS_NetworkInterfaceProcessor = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        name: *const ::std::os::raw::c_char,
        isDefault: ::std::os::raw::c_int,
        addr: *const sockaddr,
        broadcast_addr: *const sockaddr,
        netmask: *const sockaddr,
        addrlen: socklen_t,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " @brief Enumerate all network interfaces"]
    #[doc = ""]
    #[doc = " @param proc the callback function"]
    #[doc = " @param proc_cls closure for @a proc"]
    pub fn GNUNET_OS_network_interfaces_list(
        proc_: GNUNET_OS_NetworkInterfaceProcessor,
        proc_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Get process structure for current process"]
    #[doc = ""]
    #[doc = " The pointer it returns points to static memory location and must not be"]
    #[doc = " deallocated/closed"]
    #[doc = ""]
    #[doc = " @return pointer to the process sturcutre for this process"]
    pub fn GNUNET_OS_process_current() -> *mut GNUNET_OS_Process;
}
extern "C" {
    #[doc = " Sends a signal to the process"]
    #[doc = ""]
    #[doc = " @param proc pointer to process structure"]
    #[doc = " @param sig signal"]
    #[doc = " @return 0 on success, -1 on error"]
    pub fn GNUNET_OS_process_kill(
        proc_: *mut GNUNET_OS_Process,
        sig: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Cleans up process structure contents (OS-dependent) and deallocates it"]
    #[doc = ""]
    #[doc = " @param proc pointer to process structure"]
    pub fn GNUNET_OS_process_destroy(proc_: *mut GNUNET_OS_Process);
}
extern "C" {
    #[doc = " Get the pid of the process in question"]
    #[doc = ""]
    #[doc = " @param proc the process to get the pid of"]
    #[doc = ""]
    #[doc = " @return the current process id"]
    pub fn GNUNET_OS_process_get_pid(proc_: *mut GNUNET_OS_Process) -> pid_t;
}
extern "C" {
    #[doc = " Start a process."]
    #[doc = ""]
    #[doc = " @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags"]
    #[doc = " @param pipe_stdin pipe to use to send input to child process (or NULL)"]
    #[doc = " @param pipe_stdout pipe to use to get output from child process (or NULL)"]
    #[doc = " @param pipe_stderr pipe to use to get error output from child process (or NULL)"]
    #[doc = " @param filename name of the binary"]
    #[doc = " @param argv NULL-terminated array of arguments to the process"]
    #[doc = " @return pointer to process structure of the new process, NULL on error"]
    pub fn GNUNET_OS_start_process_vap(
        std_inheritance: GNUNET_OS_InheritStdioFlags,
        pipe_stdin: *mut GNUNET_DISK_PipeHandle,
        pipe_stdout: *mut GNUNET_DISK_PipeHandle,
        pipe_stderr: *mut GNUNET_DISK_PipeHandle,
        filename: *const ::std::os::raw::c_char,
        argv: *const *mut ::std::os::raw::c_char,
    ) -> *mut GNUNET_OS_Process;
}
extern "C" {
    #[doc = " Start a process."]
    #[doc = ""]
    #[doc = " @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags"]
    #[doc = " @param pipe_stdin pipe to use to send input to child process (or NULL)"]
    #[doc = " @param pipe_stdout pipe to use to get output from child process (or NULL)"]
    #[doc = " @param pipe_stderr pipe to use to get error output from child process (or NULL)"]
    #[doc = " @param filename name of the binary"]
    #[doc = " @param ... NULL-terminated list of arguments to the process"]
    #[doc = " @return pointer to process structure of the new process, NULL on error"]
    pub fn GNUNET_OS_start_process(
        std_inheritance: GNUNET_OS_InheritStdioFlags,
        pipe_stdin: *mut GNUNET_DISK_PipeHandle,
        pipe_stdout: *mut GNUNET_DISK_PipeHandle,
        pipe_stderr: *mut GNUNET_DISK_PipeHandle,
        filename: *const ::std::os::raw::c_char,
        ...
    ) -> *mut GNUNET_OS_Process;
}
extern "C" {
    #[doc = " Start a process."]
    #[doc = ""]
    #[doc = " @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags"]
    #[doc = " @param pipe_stdin pipe to use to send input to child process (or NULL)"]
    #[doc = " @param pipe_stdout pipe to use to get output from child process (or NULL)"]
    #[doc = " @param pipe_stderr pipe to use to get error output from child process (or NULL)"]
    #[doc = " @param filename name of the binary"]
    #[doc = " @param va NULL-terminated list of arguments to the process"]
    #[doc = " @return pointer to process structure of the new process, NULL on error"]
    pub fn GNUNET_OS_start_process_va(
        std_inheritance: GNUNET_OS_InheritStdioFlags,
        pipe_stdin: *mut GNUNET_DISK_PipeHandle,
        pipe_stdout: *mut GNUNET_DISK_PipeHandle,
        pipe_stderr: *mut GNUNET_DISK_PipeHandle,
        filename: *const ::std::os::raw::c_char,
        va: *mut __va_list_tag,
    ) -> *mut GNUNET_OS_Process;
}
extern "C" {
    #[doc = " Start a process."]
    #[doc = ""]
    #[doc = " @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags"]
    #[doc = " @param lsocks array of listen sockets to dup systemd-style (or NULL);"]
    #[doc = "         must be NULL on platforms where dup is not supported"]
    #[doc = " @param filename name of the binary"]
    #[doc = " @param argv NULL-terminated list of arguments to the process,"]
    #[doc = "             including the process name as the first argument"]
    #[doc = " @return pointer to process structure of the new process, NULL on error"]
    pub fn GNUNET_OS_start_process_v(
        std_inheritance: GNUNET_OS_InheritStdioFlags,
        lsocks: *const ::std::os::raw::c_int,
        filename: *const ::std::os::raw::c_char,
        argv: *const *mut ::std::os::raw::c_char,
    ) -> *mut GNUNET_OS_Process;
}
extern "C" {
    #[doc = " Start a process.  This function is similar to the GNUNET_OS_start_process_*"]
    #[doc = " except that the filename and arguments can have whole strings which contain"]
    #[doc = " the arguments.  These arguments are to be separated by spaces and are parsed"]
    #[doc = " in the order they appear.  Arguments containing spaces can be used by"]
    #[doc = " quoting them with @em \"."]
    #[doc = ""]
    #[doc = " @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags"]
    #[doc = " @param lsocks array of listen sockets to dup systemd-style (or NULL);"]
    #[doc = "         must be NULL on platforms where dup is not supported"]
    #[doc = " @param filename name of the binary.  It is valid to have the arguments"]
    #[doc = "         in this string when they are separated by spaces."]
    #[doc = " @param ... more arguments.  Should be of type `char *`.  It is valid"]
    #[doc = "         to have the arguments in these strings when they are separated by"]
    #[doc = "         spaces.  The last argument MUST be NULL."]
    #[doc = " @return pointer to process structure of the new process, NULL on error"]
    pub fn GNUNET_OS_start_process_s(
        std_inheritance: GNUNET_OS_InheritStdioFlags,
        lsocks: *const ::std::os::raw::c_int,
        filename: *const ::std::os::raw::c_char,
        ...
    ) -> *mut GNUNET_OS_Process;
}
#[doc = " Handle to a command action."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_OS_CommandHandle {
    _unused: [u8; 0],
}
#[doc = " Type of a function to process a line of output."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param line line of output from a command, NULL for the end"]
pub type GNUNET_OS_LineProcessor = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, line: *const ::std::os::raw::c_char),
>;
extern "C" {
    #[doc = " Stop/kill a command."]
    #[doc = ""]
    #[doc = " @param cmd handle to the process"]
    pub fn GNUNET_OS_command_stop(cmd: *mut GNUNET_OS_CommandHandle);
}
extern "C" {
    #[doc = " Run the given command line and call the given function"]
    #[doc = " for each line of the output."]
    #[doc = ""]
    #[doc = " @param proc function to call for each line of the output"]
    #[doc = " @param proc_cls closure for proc"]
    #[doc = " @param timeout when to time out"]
    #[doc = " @param binary command to run"]
    #[doc = " @param ... arguments to command"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_OS_command_run(
        proc_: GNUNET_OS_LineProcessor,
        proc_cls: *mut ::std::os::raw::c_void,
        timeout: GNUNET_TIME_Relative,
        binary: *const ::std::os::raw::c_char,
        ...
    ) -> *mut GNUNET_OS_CommandHandle;
}
extern "C" {
    #[doc = " Retrieve the status of a process."]
    #[doc = " Nonblocking version."]
    #[doc = ""]
    #[doc = " @param proc pointer to process structure"]
    #[doc = " @param type status type"]
    #[doc = " @param code return code/signal number"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_NO if the process is still running, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_OS_process_status(
        proc_: *mut GNUNET_OS_Process,
        type_: *mut GNUNET_OS_ProcessStatusType,
        code: *mut ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Wait for a process to terminate.  The return code is discarded."]
    #[doc = " You must not use #GNUNET_OS_process_status() on the same process"]
    #[doc = " after calling this function!  This function is blocking and should"]
    #[doc = " thus only be used if the child process is known to have terminated"]
    #[doc = " or to terminate very soon."]
    #[doc = ""]
    #[doc = " @param proc pointer to process structure of the process to wait for"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_OS_process_wait(proc_: *mut GNUNET_OS_Process) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Retrieve the status of a process, waiting on it if dead."]
    #[doc = " Blocking version."]
    #[doc = ""]
    #[doc = " @param proc pointer to process structure"]
    #[doc = " @param type status type"]
    #[doc = " @param code return code/signal number"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_NO if the process is still running, #GNUNET_SYSERR otherwise"]
    pub fn GNUNET_OS_process_wait_status(
        proc_: *mut GNUNET_OS_Process,
        type_: *mut GNUNET_OS_ProcessStatusType,
        code: *mut ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Connects this process to its parent via pipe;"]
    #[doc = " essentially, the parent control handler will read signal numbers"]
    #[doc = " from the #GNUNET_OS_CONTROL_PIPE (as given in an environment"]
    #[doc = " variable) and raise those signals."]
    #[doc = ""]
    #[doc = " @param cls closure (unused)"]
    pub fn GNUNET_OS_install_parent_control_handler(cls: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " Check whether an executable exists and possibly"]
    #[doc = " if the suid bit is set on the file."]
    #[doc = " Attempts to find the file using the current"]
    #[doc = " PATH environment variable as a search path."]
    #[doc = ""]
    #[doc = " @param binary the name of the file to check."]
    #[doc = "        W32: must not have an .exe suffix."]
    #[doc = " @param check_suid input true if the binary should be checked for SUID (*nix)"]
    #[doc = "        W32: checks if the program has sufficient privileges by executing this"]
    #[doc = "             binary with the -d flag. -d omits a programs main loop and only"]
    #[doc = "             executes all privileged operations in an binary."]
    #[doc = " @param params parameters used for w32 privilege checking (can be NULL for != w32, or when not checking for suid/permissions )"]
    #[doc = " @return #GNUNET_YES if the file is SUID (*nix) or can be executed with current privileges (W32),"]
    #[doc = "         #GNUNET_NO if not SUID (but binary exists),"]
    #[doc = "         #GNUNET_SYSERR on error (no such binary or not executable)"]
    pub fn GNUNET_OS_check_helper_binary(
        binary: *const ::std::os::raw::c_char,
        check_suid: ::std::os::raw::c_int,
        params: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
#[doc = " A GNUNET_PEER_Id is simply a shorter version of a \"struct"]
#[doc = " GNUNET_PeerIdentifier\" that can be used inside of a GNUnet peer to"]
#[doc = " save memory when the same identifier needs to be used over and over"]
#[doc = " again."]
pub type GNUNET_PEER_Id = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Search for a peer identity. The reference counter is not changed."]
    #[doc = ""]
    #[doc = " @param pid identity to find"]
    #[doc = " @return the interned identity or 0."]
    pub fn GNUNET_PEER_search(pid: *const GNUNET_PeerIdentity) -> GNUNET_PEER_Id;
}
extern "C" {
    #[doc = " Intern an peer identity.  If the identity is already known, its"]
    #[doc = " reference counter will be increased by one."]
    #[doc = ""]
    #[doc = " @param pid identity to intern"]
    #[doc = " @return the interned identity."]
    pub fn GNUNET_PEER_intern(pid: *const GNUNET_PeerIdentity) -> GNUNET_PEER_Id;
}
extern "C" {
    #[doc = " Change the reference counter of an interned PID."]
    #[doc = ""]
    #[doc = " @param id identity to change the RC of"]
    #[doc = " @param delta how much to change the RC"]
    pub fn GNUNET_PEER_change_rc(id: GNUNET_PEER_Id, delta: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " Decrement multiple RCs of peer identities by one."]
    #[doc = ""]
    #[doc = " @param ids array of PIDs to decrement the RCs of"]
    #[doc = " @param count size of the @a ids array"]
    pub fn GNUNET_PEER_decrement_rcs(ids: *const GNUNET_PEER_Id, count: ::std::os::raw::c_uint);
}
extern "C" {
    #[doc = " Convert an interned PID to a normal peer identity."]
    #[doc = ""]
    #[doc = " @param id interned PID to convert"]
    #[doc = " @param pid where to write the normal peer identity"]
    pub fn GNUNET_PEER_resolve(id: GNUNET_PEER_Id, pid: *mut GNUNET_PeerIdentity);
}
extern "C" {
    #[doc = " Convert an interned PID to a normal peer identity."]
    #[doc = ""]
    #[doc = " @param id interned PID to convert"]
    #[doc = " @return pointer to peer identity, valid as long @a id is valid"]
    pub fn GNUNET_PEER_resolve2(id: GNUNET_PEER_Id) -> *const GNUNET_PeerIdentity;
}
#[doc = " Signature of any function exported by a plugin."]
#[doc = ""]
#[doc = " @param arg argument to the function (context)"]
#[doc = " @return some pointer, NULL if the plugin was"]
#[doc = "         shutdown or if there was an error, otherwise"]
#[doc = "         the plugin's API on success"]
pub type GNUNET_PLUGIN_Callback = ::std::option::Option<
    unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
    #[doc = " Test if a plugin exists."]
    #[doc = ""]
    #[doc = " Note that the library must export a symbol called"]
    #[doc = " \"library_name_init\" for the test to succeed."]
    #[doc = ""]
    #[doc = " @param library_name name of the plugin to test if it is installed"]
    #[doc = " @return #GNUNET_YES if the plugin exists, #GNUNET_NO if not"]
    pub fn GNUNET_PLUGIN_test(library_name: *const ::std::os::raw::c_char)
        -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Setup plugin (runs the \"init\" callback and returns whatever \"init\""]
    #[doc = " returned).  If \"init\" returns NULL, the plugin is unloaded."]
    #[doc = ""]
    #[doc = " Note that the library must export symbols called"]
    #[doc = " \"library_name_init\" and \"library_name_done\".  These will be called"]
    #[doc = " when the library is loaded and unloaded respectively."]
    #[doc = ""]
    #[doc = " @param library_name name of the plugin to load"]
    #[doc = " @param arg argument to the plugin initialization function"]
    #[doc = " @return whatever the initialization function returned, NULL on error"]
    pub fn GNUNET_PLUGIN_load(
        library_name: *const ::std::os::raw::c_char,
        arg: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
#[doc = " Signature of a function called by #GNUNET_PLUGIN_load_all()."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param library_name full name of the library (to be used with"]
#[doc = "        #GNUNET_PLUGIN_unload)"]
#[doc = " @param lib_ret return value from the initialization function"]
#[doc = "        of the library (same as what #GNUNET_PLUGIN_load would"]
#[doc = "        have returned for the given library name)"]
pub type GNUNET_PLUGIN_LoaderCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        library_name: *const ::std::os::raw::c_char,
        lib_ret: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Load all compatible plugins with the given base name."]
    #[doc = ""]
    #[doc = " Note that the library must export symbols called"]
    #[doc = " \"basename_ANYTHING_init\" and \"basename_ANYTHING__done\".  These will"]
    #[doc = " be called when the library is loaded and unloaded respectively."]
    #[doc = ""]
    #[doc = " @param basename basename of the plugins to load"]
    #[doc = " @param arg argument to the plugin initialization function"]
    #[doc = " @param cb function to call for each plugin found"]
    #[doc = " @param cb_cls closure for @a cb"]
    pub fn GNUNET_PLUGIN_load_all(
        basename: *const ::std::os::raw::c_char,
        arg: *mut ::std::os::raw::c_void,
        cb: GNUNET_PLUGIN_LoaderCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Unload plugin (runs the \"done\" callback and returns whatever \"done\""]
    #[doc = " returned).  The plugin is then unloaded."]
    #[doc = ""]
    #[doc = " @param library_name name of the plugin to unload"]
    #[doc = " @param arg argument to the plugin shutdown function"]
    #[doc = " @return whatever the shutdown function returned, typically NULL"]
    #[doc = "         or a \"char *\" representing the error message"]
    pub fn GNUNET_PLUGIN_unload(
        library_name: *const ::std::os::raw::c_char,
        arg: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
#[doc = " Main function that will be run."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param args remaining command-line arguments"]
#[doc = " @param cfgfile name of the configuration file used (for saving, can be NULL!)"]
#[doc = " @param cfg configuration"]
pub type GNUNET_PROGRAM_Main = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        args: *const *mut ::std::os::raw::c_char,
        cfgfile: *const ::std::os::raw::c_char,
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ),
>;
extern "C" {
    #[doc = " Run a standard GNUnet command startup sequence (initialize loggers"]
    #[doc = " and configuration, parse options)."]
    #[doc = ""]
    #[doc = " @param argc number of command line arguments in @a argv"]
    #[doc = " @param argv command line arguments"]
    #[doc = " @param binaryName our expected name"]
    #[doc = " @param binaryHelp help text for the program"]
    #[doc = " @param options command line options"]
    #[doc = " @param task main function to run"]
    #[doc = " @param task_cls closure for @a task"]
    #[doc = " @param run_without_scheduler #GNUNET_NO start the scheduler,"]
    #[doc = "        #GNUNET_YES do not start the scheduler just run the main task"]
    #[doc = " @return #GNUNET_SYSERR on error,"]
    #[doc = "         #GNUNET_NO if successful option processing called"]
    #[doc = "                    for the program to terminate,"]
    #[doc = "         #GNUNET_OK on success (#a task was invoked)"]
    pub fn GNUNET_PROGRAM_run2(
        argc: ::std::os::raw::c_int,
        argv: *const *mut ::std::os::raw::c_char,
        binaryName: *const ::std::os::raw::c_char,
        binaryHelp: *const ::std::os::raw::c_char,
        options: *const GNUNET_GETOPT_CommandLineOption,
        task: GNUNET_PROGRAM_Main,
        task_cls: *mut ::std::os::raw::c_void,
        run_without_scheduler: ::std::os::raw::c_int,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Run a standard GNUnet command startup sequence (initialize loggers"]
    #[doc = " and configuration, parse options)."]
    #[doc = ""]
    #[doc = " @param argc number of command line arguments"]
    #[doc = " @param argv command line arguments"]
    #[doc = " @param binaryName our expected name"]
    #[doc = " @param binaryHelp helptext for \"-h\" option (about the app)"]
    #[doc = " @param options command line options"]
    #[doc = " @param task main function to run"]
    #[doc = " @param task_cls closure for @a task"]
    #[doc = " @return #GNUNET_SYSERR on error,"]
    #[doc = "         #GNUNET_NO if successful option processing called"]
    #[doc = "                    for the program to terminate,"]
    #[doc = "         #GNUNET_OK on success (#a task was invoked)"]
    pub fn GNUNET_PROGRAM_run(
        argc: ::std::os::raw::c_int,
        argv: *const *mut ::std::os::raw::c_char,
        binaryName: *const ::std::os::raw::c_char,
        binaryHelp: *const ::std::os::raw::c_char,
        options: *const GNUNET_GETOPT_CommandLineOption,
        task: GNUNET_PROGRAM_Main,
        task_cls: *mut ::std::os::raw::c_void,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Use defaults.  Terminates all client connections and the listen"]
#[doc = " sockets immediately upon receiving the shutdown signal."]
pub const GNUNET_SERVICE_Options_GNUNET_SERVICE_OPTION_NONE: GNUNET_SERVICE_Options = 0;
#[doc = " Do not trigger server shutdown on signal at all; instead, allow"]
#[doc = " for the user to terminate the server explicitly when needed"]
#[doc = " by calling #GNUNET_SERVICE_shutdown()."]
pub const GNUNET_SERVICE_Options_GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN: GNUNET_SERVICE_Options = 1;
#[doc = " Trigger a SOFT server shutdown on signals, allowing active"]
#[doc = " non-monitor clients to complete their transactions."]
pub const GNUNET_SERVICE_Options_GNUNET_SERVICE_OPTION_SOFT_SHUTDOWN: GNUNET_SERVICE_Options = 2;
#[doc = " Bitmask over the shutdown options."]
pub const GNUNET_SERVICE_Options_GNUNET_SERVICE_OPTION_SHUTDOWN_BITMASK: GNUNET_SERVICE_Options = 3;
#[doc = " Instead of listening on lsocks passed by the parent,"]
#[doc = " close them *after* opening our own listen socket(s)."]
pub const GNUNET_SERVICE_Options_GNUNET_SERVICE_OPTION_CLOSE_LSOCKS: GNUNET_SERVICE_Options = 4;
#[doc = " Options for the service (bitmask)."]
pub type GNUNET_SERVICE_Options = ::std::os::raw::c_uint;
#[doc = " Handle to a service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SERVICE_Handle {
    _unused: [u8; 0],
}
#[doc = " Handle to a client that is connected to a service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SERVICE_Client {
    _unused: [u8; 0],
}
#[doc = " Callback to initialize a service, called exactly once when the service is run."]
#[doc = ""]
#[doc = " @param cls closure passed to #GNUNET_SERVICE_MAIN"]
#[doc = " @param cfg configuration to use for this service"]
#[doc = " @param sh handle to the newly create service"]
pub type GNUNET_SERVICE_InitCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        cfg: *const GNUNET_CONFIGURATION_Handle,
        sh: *mut GNUNET_SERVICE_Handle,
    ),
>;
#[doc = " Callback to be called when a client connects to the service."]
#[doc = ""]
#[doc = " @param cls closure for the service"]
#[doc = " @param c the new client that connected to the service"]
#[doc = " @param mq the message queue used to send messages to the client"]
#[doc = " @return the client-specific (`internal') closure"]
pub type GNUNET_SERVICE_ConnectHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        c: *mut GNUNET_SERVICE_Client,
        mq: *mut GNUNET_MQ_Handle,
    ) -> *mut ::std::os::raw::c_void,
>;
#[doc = " Callback to be called when a client disconnected from the service"]
#[doc = ""]
#[doc = " @param cls closure for the service"]
#[doc = " @param c the client that disconnected"]
#[doc = " @param internal_cls the client-specific (`internal') closure"]
pub type GNUNET_SERVICE_DisconnectHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        c: *mut GNUNET_SERVICE_Client,
        internal_cls: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Low-level function to start a service if the scheduler"]
    #[doc = " is already running.  Should only be used directly in"]
    #[doc = " special cases."]
    #[doc = ""]
    #[doc = " The function will launch the service with the name @a service_name"]
    #[doc = " using the @a service_options to configure its shutdown"]
    #[doc = " behavior. When clients connect or disconnect, the respective"]
    #[doc = " @a connect_cb or @a disconnect_cb functions will be called. For"]
    #[doc = " messages received from the clients, the respective @a handlers will"]
    #[doc = " be invoked; for the closure of the handlers we use the return value"]
    #[doc = " from the @a connect_cb invocation of the respective client."]
    #[doc = ""]
    #[doc = " Each handler MUST call #GNUNET_SERVICE_client_continue() after each"]
    #[doc = " message to receive further messages from this client.  If"]
    #[doc = " #GNUNET_SERVICE_client_continue() is not called within a short"]
    #[doc = " time, a warning will be logged. If delays are expected, services"]
    #[doc = " should call #GNUNET_SERVICE_client_disable_continue_warning() to"]
    #[doc = " disable the warning."]
    #[doc = ""]
    #[doc = " Clients sending invalid messages (based on @a handlers) will be"]
    #[doc = " dropped. Additionally, clients can be dropped at any time using"]
    #[doc = " #GNUNET_SERVICE_client_drop()."]
    #[doc = ""]
    #[doc = " The service must be stopped using #GNUNET_SERVICE_stop()."]
    #[doc = ""]
    #[doc = " @param service_name name of the service to run"]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param connect_cb function to call whenever a client connects"]
    #[doc = " @param disconnect_cb function to call whenever a client disconnects"]
    #[doc = " @param cls closure argument for @a connect_cb and @a disconnect_cb"]
    #[doc = " @param handlers NULL-terminated array of message handlers for the service,"]
    #[doc = "                 the closure will be set to the value returned by"]
    #[doc = "                 the @a connect_cb for the respective connection"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_SERVICE_start(
        service_name: *const ::std::os::raw::c_char,
        cfg: *const GNUNET_CONFIGURATION_Handle,
        connect_cb: GNUNET_SERVICE_ConnectHandler,
        disconnect_cb: GNUNET_SERVICE_DisconnectHandler,
        cls: *mut ::std::os::raw::c_void,
        handlers: *const GNUNET_MQ_MessageHandler,
    ) -> *mut GNUNET_SERVICE_Handle;
}
extern "C" {
    #[doc = " Stops a service that was started with #GNUNET_SERVICE_start()."]
    #[doc = ""]
    #[doc = " @param srv service to stop"]
    pub fn GNUNET_SERVICE_stop(srv: *mut GNUNET_SERVICE_Handle);
}
extern "C" {
    #[doc = " Creates the \"main\" function for a GNUnet service.  You"]
    #[doc = " should almost always use the #GNUNET_SERVICE_MAIN macro"]
    #[doc = " instead of calling this function directly (except"]
    #[doc = " for ARM, which should call this function directly)."]
    #[doc = ""]
    #[doc = " The function will launch the service with the name @a service_name"]
    #[doc = " using the @a service_options to configure its shutdown"]
    #[doc = " behavior. Once the service is ready, the @a init_cb will be called"]
    #[doc = " for service-specific initialization.  @a init_cb will be given the"]
    #[doc = " service handler which can be used to control the service's"]
    #[doc = " availability.  When clients connect or disconnect, the respective"]
    #[doc = " @a connect_cb or @a disconnect_cb functions will be called. For"]
    #[doc = " messages received from the clients, the respective @a handlers will"]
    #[doc = " be invoked; for the closure of the handlers we use the return value"]
    #[doc = " from the @a connect_cb invocation of the respective client."]
    #[doc = ""]
    #[doc = " Each handler MUST call #GNUNET_SERVICE_client_continue() after each"]
    #[doc = " message to receive further messages from this client.  If"]
    #[doc = " #GNUNET_SERVICE_client_continue() is not called within a short"]
    #[doc = " time, a warning will be logged. If delays are expected, services"]
    #[doc = " should call #GNUNET_SERVICE_client_disable_continue_warning() to"]
    #[doc = " disable the warning."]
    #[doc = ""]
    #[doc = " Clients sending invalid messages (based on @a handlers) will be"]
    #[doc = " dropped. Additionally, clients can be dropped at any time using"]
    #[doc = " #GNUNET_SERVICE_client_drop()."]
    #[doc = ""]
    #[doc = " @param argc number of command-line arguments in @a argv"]
    #[doc = " @param argv array of command-line arguments"]
    #[doc = " @param service_name name of the service to run"]
    #[doc = " @param options options controlling shutdown of the service"]
    #[doc = " @param service_init_cb function to call once the service is ready"]
    #[doc = " @param connect_cb function to call whenever a client connects"]
    #[doc = " @param disconnect_cb function to call whenever a client disconnects"]
    #[doc = " @param cls closure argument for @a service_init_cb, @a connect_cb and @a disconnect_cb"]
    #[doc = " @param handlers NULL-terminated array of message handlers for the service,"]
    #[doc = "                 the closure will be set to the value returned by"]
    #[doc = "                 the @a connect_cb for the respective connection"]
    #[doc = " @return 0 on success, non-zero on error"]
    pub fn GNUNET_SERVICE_run_(
        argc: ::std::os::raw::c_int,
        argv: *const *mut ::std::os::raw::c_char,
        service_name: *const ::std::os::raw::c_char,
        options: GNUNET_SERVICE_Options,
        service_init_cb: GNUNET_SERVICE_InitCallback,
        connect_cb: GNUNET_SERVICE_ConnectHandler,
        disconnect_cb: GNUNET_SERVICE_DisconnectHandler,
        cls: *mut ::std::os::raw::c_void,
        handlers: *const GNUNET_MQ_MessageHandler,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Suspend accepting connections from the listen socket temporarily."]
    #[doc = " Resume activity using #GNUNET_SERVICE_resume."]
    #[doc = ""]
    #[doc = " @param sh service to stop accepting connections."]
    pub fn GNUNET_SERVICE_suspend(sh: *mut GNUNET_SERVICE_Handle);
}
extern "C" {
    #[doc = " Resume accepting connections from the listen socket."]
    #[doc = ""]
    #[doc = " @param sh service to resume accepting connections."]
    pub fn GNUNET_SERVICE_resume(sh: *mut GNUNET_SERVICE_Handle);
}
extern "C" {
    #[doc = " Continue receiving further messages from the given client."]
    #[doc = " Must be called after each message received."]
    #[doc = ""]
    #[doc = " @param c the client to continue receiving from"]
    pub fn GNUNET_SERVICE_client_continue(c: *mut GNUNET_SERVICE_Client);
}
extern "C" {
    #[doc = " Obtain the message queue of @a c.  Convenience function."]
    #[doc = ""]
    #[doc = " @param c the client to continue receiving from"]
    #[doc = " @return the message queue of @a c"]
    pub fn GNUNET_SERVICE_client_get_mq(c: *mut GNUNET_SERVICE_Client) -> *mut GNUNET_MQ_Handle;
}
extern "C" {
    #[doc = " Disable the warning the server issues if a message is not"]
    #[doc = " acknowledged in a timely fashion.  Use this call if a client is"]
    #[doc = " intentionally delayed for a while.  Only applies to the current"]
    #[doc = " message."]
    #[doc = ""]
    #[doc = " @param c client for which to disable the warning"]
    pub fn GNUNET_SERVICE_client_disable_continue_warning(c: *mut GNUNET_SERVICE_Client);
}
extern "C" {
    #[doc = " Ask the server to disconnect from the given client.  This is the"]
    #[doc = " same as returning #GNUNET_SYSERR within the check procedure when"]
    #[doc = " handling a message, except that it allows dropping of a client even"]
    #[doc = " when not handling a message from that client.  The `disconnect_cb`"]
    #[doc = " will be called on @a c even if the application closes the connection"]
    #[doc = " using this function."]
    #[doc = ""]
    #[doc = " This function should be called (outside of util's internal logic)"]
    #[doc = " if (and usually only if) the client has violated the"]
    #[doc = " protocol. Otherwise, we should leave it to the client to disconnect"]
    #[doc = " from the service."]
    #[doc = ""]
    #[doc = " @param c client to disconnect now"]
    pub fn GNUNET_SERVICE_client_drop(c: *mut GNUNET_SERVICE_Client);
}
extern "C" {
    #[doc = " Explicitly stops the service."]
    #[doc = ""]
    #[doc = " @param sh server to shutdown"]
    pub fn GNUNET_SERVICE_shutdown(sh: *mut GNUNET_SERVICE_Handle);
}
extern "C" {
    #[doc = " Set the 'monitor' flag on this client.  Clients which have been"]
    #[doc = " marked as 'monitors' won't prevent the server from shutting down"]
    #[doc = " once #GNUNET_SERVICE_stop_listening() has been invoked.  The idea is"]
    #[doc = " that for \"normal\" clients we likely want to allow them to process"]
    #[doc = " their requests; however, monitor-clients are likely to 'never'"]
    #[doc = " disconnect during shutdown and thus will not be considered when"]
    #[doc = " determining if the server should continue to exist after"]
    #[doc = " shutdown has been triggered."]
    #[doc = ""]
    #[doc = " @param c client to mark as a monitor"]
    pub fn GNUNET_SERVICE_client_mark_monitor(c: *mut GNUNET_SERVICE_Client);
}
extern "C" {
    #[doc = " Set the persist option on this client.  Indicates that the"]
    #[doc = " underlying socket or fd should never really be closed.  Used for"]
    #[doc = " indicating process death."]
    #[doc = ""]
    #[doc = " @param c client to persist the socket (never to be closed)"]
    pub fn GNUNET_SERVICE_client_persist(c: *mut GNUNET_SERVICE_Client);
}
#[doc = " Context created when a signal handler is installed;"]
#[doc = " can be used to restore it to the previous state later."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_SIGNAL_Context {
    _unused: [u8; 0],
}
#[doc = " A signal handler.  Since different OSes have different signatures"]
#[doc = " for their handlers, the API only gives the most restrictive"]
#[doc = " signature -- no arguments, no return value.  Note that this will"]
#[doc = " work even if the OS expects a function with arguments.  However,"]
#[doc = " the implementation must guarantee that this handler is not called"]
#[doc = " for signals other than the one that it has been registered for."]
pub type GNUNET_SIGNAL_Handler = ::std::option::Option<unsafe extern "C" fn()>;
extern "C" {
    #[doc = " Install a signal handler that will be run if the"]
    #[doc = " given signal is received."]
    #[doc = ""]
    #[doc = " @param signal the number of the signal"]
    #[doc = " @param handler the function to call"]
    #[doc = " @return context that can be used to restore, NULL on error"]
    pub fn GNUNET_SIGNAL_handler_install(
        signal: ::std::os::raw::c_int,
        handler: GNUNET_SIGNAL_Handler,
    ) -> *mut GNUNET_SIGNAL_Context;
}
extern "C" {
    #[doc = " Uninstall a previously installed signal handler."]
    #[doc = ""]
    #[doc = " @param ctx context that was returned when the"]
    #[doc = "            signal handler was installed"]
    pub fn GNUNET_SIGNAL_handler_uninstall(ctx: *mut GNUNET_SIGNAL_Context);
}
extern "C" {
    #[doc = " Raise the given signal by calling the installed signal handlers.  This will"]
    #[doc = " not use the @em raise() system call but only calls the handlers registered"]
    #[doc = " through GNUNET_SIGNAL_handler_install()."]
    #[doc = ""]
    #[doc = " @param sig the signal to raise"]
    pub fn GNUNET_SIGNAL_raise(sig: ::std::os::raw::c_int);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timestamp {
    pub len: u8,
    pub ptr: u8,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub data: [u32; 9usize],
}
#[test]
fn bindgen_test_layout_timestamp() {
    assert_eq!(
        ::std::mem::size_of::<timestamp>(),
        40usize,
        concat!("Size of: ", stringify!(timestamp))
    );
    assert_eq!(
        ::std::mem::align_of::<timestamp>(),
        4usize,
        concat!("Alignment of ", stringify!(timestamp))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timestamp>())).len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timestamp),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timestamp>())).ptr as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(timestamp),
            "::",
            stringify!(ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timestamp>())).data as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(timestamp),
            "::",
            stringify!(data)
        )
    );
}
impl timestamp {
    #[inline]
    pub fn flags(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_flags(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn overflow(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_overflow(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        flags: ::std::os::raw::c_uint,
        overflow: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let flags: u32 = unsafe { ::std::mem::transmute(flags) };
            flags as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let overflow: u32 = unsafe { ::std::mem::transmute(overflow) };
            overflow as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct iphdr {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub tos: u8,
    pub tot_len: u16,
    pub id: u16,
    pub frag_off: u16,
    pub ttl: u8,
    pub protocol: u8,
    pub check: u16,
    pub saddr: u32,
    pub daddr: u32,
}
#[test]
fn bindgen_test_layout_iphdr() {
    assert_eq!(
        ::std::mem::size_of::<iphdr>(),
        20usize,
        concat!("Size of: ", stringify!(iphdr))
    );
    assert_eq!(
        ::std::mem::align_of::<iphdr>(),
        4usize,
        concat!("Alignment of ", stringify!(iphdr))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).tos as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(tos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).tot_len as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(tot_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).id as *const _ as usize },
        4usize,
        concat!("Offset of field: ", stringify!(iphdr), "::", stringify!(id))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).frag_off as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(frag_off)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).ttl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(ttl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).protocol as *const _ as usize },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(protocol)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).check as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(check)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).saddr as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(saddr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<iphdr>())).daddr as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(iphdr),
            "::",
            stringify!(daddr)
        )
    );
}
impl iphdr {
    #[inline]
    pub fn ihl(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_ihl(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn version(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_version(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        ihl: ::std::os::raw::c_uint,
        version: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let ihl: u32 = unsafe { ::std::mem::transmute(ihl) };
            ihl as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let version: u32 = unsafe { ::std::mem::transmute(version) };
            version as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub ip_tos: u8,
    pub ip_len: ::std::os::raw::c_ushort,
    pub ip_id: ::std::os::raw::c_ushort,
    pub ip_off: ::std::os::raw::c_ushort,
    pub ip_ttl: u8,
    pub ip_p: u8,
    pub ip_sum: ::std::os::raw::c_ushort,
    pub ip_src: in_addr,
    pub ip_dst: in_addr,
}
#[test]
fn bindgen_test_layout_ip() {
    assert_eq!(
        ::std::mem::size_of::<ip>(),
        20usize,
        concat!("Size of: ", stringify!(ip))
    );
    assert_eq!(
        ::std::mem::align_of::<ip>(),
        4usize,
        concat!("Alignment of ", stringify!(ip))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_tos as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_tos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_len as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_id as *const _ as usize },
        4usize,
        concat!("Offset of field: ", stringify!(ip), "::", stringify!(ip_id))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_off as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_off)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_ttl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_ttl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_p as *const _ as usize },
        9usize,
        concat!("Offset of field: ", stringify!(ip), "::", stringify!(ip_p))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_sum as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_sum)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_src as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_src)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip>())).ip_dst as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(ip),
            "::",
            stringify!(ip_dst)
        )
    );
}
impl ip {
    #[inline]
    pub fn ip_hl(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_ip_hl(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn ip_v(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_ip_v(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        ip_hl: ::std::os::raw::c_uint,
        ip_v: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let ip_hl: u32 = unsafe { ::std::mem::transmute(ip_hl) };
            ip_hl as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let ip_v: u32 = unsafe { ::std::mem::transmute(ip_v) };
            ip_v as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ip_timestamp {
    pub ipt_code: u8,
    pub ipt_len: u8,
    pub ipt_ptr: u8,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub data: [u32; 9usize],
}
#[test]
fn bindgen_test_layout_ip_timestamp() {
    assert_eq!(
        ::std::mem::size_of::<ip_timestamp>(),
        40usize,
        concat!("Size of: ", stringify!(ip_timestamp))
    );
    assert_eq!(
        ::std::mem::align_of::<ip_timestamp>(),
        4usize,
        concat!("Alignment of ", stringify!(ip_timestamp))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_timestamp>())).ipt_code as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_timestamp),
            "::",
            stringify!(ipt_code)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_timestamp>())).ipt_len as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_timestamp),
            "::",
            stringify!(ipt_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_timestamp>())).ipt_ptr as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_timestamp),
            "::",
            stringify!(ipt_ptr)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<ip_timestamp>())).data as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(ip_timestamp),
            "::",
            stringify!(data)
        )
    );
}
impl ip_timestamp {
    #[inline]
    pub fn ipt_flg(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_ipt_flg(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn ipt_oflw(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_ipt_oflw(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        ipt_flg: ::std::os::raw::c_uint,
        ipt_oflw: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let ipt_flg: u32 = unsafe { ::std::mem::transmute(ipt_flg) };
            ipt_flg as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let ipt_oflw: u32 = unsafe { ::std::mem::transmute(ipt_oflw) };
            ipt_oflw as u64
        });
        __bindgen_bitfield_unit
    }
}
extern "C" {
    #[doc = " Convert a given fancy human-readable size to bytes."]
    #[doc = ""]
    #[doc = " @param fancy_size human readable string (i.e. 1 MB)"]
    #[doc = " @param size set to the size in bytes"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_STRINGS_fancy_size_to_bytes(
        fancy_size: *const ::std::os::raw::c_char,
        size: *mut ::std::os::raw::c_ulonglong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Convert a given fancy human-readable time to our internal"]
    #[doc = " representation."]
    #[doc = ""]
    #[doc = " @param fancy_time human readable string (i.e. 1 minute)"]
    #[doc = " @param rtime set to the relative time"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_STRINGS_fancy_time_to_relative(
        fancy_time: *const ::std::os::raw::c_char,
        rtime: *mut GNUNET_TIME_Relative,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @ingroup time"]
    #[doc = " Convert a given fancy human-readable time to our internal"]
    #[doc = " representation.  The human-readable time is expected to be"]
    #[doc = " in local time, whereas the returned value will be in UTC."]
    #[doc = ""]
    #[doc = " @param fancy_time human readable string (i.e. %Y-%m-%d %H:%M:%S)"]
    #[doc = " @param atime set to the absolute time"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on error"]
    pub fn GNUNET_STRINGS_fancy_time_to_absolute(
        fancy_time: *const ::std::os::raw::c_char,
        atime: *mut GNUNET_TIME_Absolute,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Convert a given filesize into a fancy human-readable format."]
    #[doc = ""]
    #[doc = " @param size number of bytes"]
    #[doc = " @return fancy representation of the size (possibly rounded) for humans"]
    pub fn GNUNET_STRINGS_byte_size_fancy(
        size: ::std::os::raw::c_ulonglong,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert the len characters long character sequence"]
    #[doc = " given in input that is in the given input charset"]
    #[doc = " to a string in given output charset."]
    #[doc = ""]
    #[doc = " @param input input string"]
    #[doc = " @param len number of bytes in @a input"]
    #[doc = " @param input_charset character set used for @a input"]
    #[doc = " @param output_charset desired character set for the return value"]
    #[doc = " @return the converted string (0-terminated),"]
    #[doc = "  if conversion fails, a copy of the original"]
    #[doc = "  string is returned."]
    pub fn GNUNET_STRINGS_conv(
        input: *const ::std::os::raw::c_char,
        len: usize,
        input_charset: *const ::std::os::raw::c_char,
        output_charset: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert the len characters long character sequence"]
    #[doc = " given in input that is in the given charset"]
    #[doc = " to UTF-8."]
    #[doc = ""]
    #[doc = " @param input the input string (not necessarily 0-terminated)"]
    #[doc = " @param len the number of bytes in the @a input"]
    #[doc = " @param charset character set to convert from"]
    #[doc = " @return the converted string (0-terminated)"]
    pub fn GNUNET_STRINGS_to_utf8(
        input: *const ::std::os::raw::c_char,
        len: usize,
        charset: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert the len bytes-long UTF-8 string"]
    #[doc = " given in input to the given charset."]
    #[doc = ""]
    #[doc = " @param input the input string (not necessarily 0-terminated)"]
    #[doc = " @param len the number of bytes in the @a input"]
    #[doc = " @param charset character set to convert to"]
    #[doc = " @return the converted string (0-terminated),"]
    #[doc = "  if conversion fails, a copy of the original"]
    #[doc = "  string is returned."]
    pub fn GNUNET_STRINGS_from_utf8(
        input: *const ::std::os::raw::c_char,
        len: usize,
        charset: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert the utf-8 input string to lower case."]
    #[doc = " Output needs to be allocated appropriately."]
    #[doc = ""]
    #[doc = " @param input input string"]
    #[doc = " @param output output buffer"]
    pub fn GNUNET_STRINGS_utf8_tolower(
        input: *const ::std::os::raw::c_char,
        output: *mut ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Convert the utf-8 input string to upper case."]
    #[doc = " Output needs to be allocated appropriately."]
    #[doc = ""]
    #[doc = " @param input input string"]
    #[doc = " @param output output buffer"]
    pub fn GNUNET_STRINGS_utf8_toupper(
        input: *const ::std::os::raw::c_char,
        output: *mut ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Complete filename (a la shell) from abbrevition."]
    #[doc = ""]
    #[doc = " @param fil the name of the file, may contain ~/ or"]
    #[doc = "        be relative to the current directory"]
    #[doc = " @return the full file name,"]
    #[doc = "          NULL is returned on error"]
    pub fn GNUNET_STRINGS_filename_expand(
        fil: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Fill a buffer of the given size with count 0-terminated strings"]
    #[doc = " (given as varargs).  If \"buffer\" is NULL, only compute the amount"]
    #[doc = " of space required (sum of \"strlen(arg)+1\")."]
    #[doc = ""]
    #[doc = " Unlike using \"snprintf\" with \"%s\", this function will add"]
    #[doc = " 0-terminators after each string.  The"]
    #[doc = " \"GNUNET_string_buffer_tokenize\" function can be used to parse the"]
    #[doc = " buffer back into individual strings."]
    #[doc = ""]
    #[doc = " @param buffer the buffer to fill with strings, can"]
    #[doc = "               be NULL in which case only the necessary"]
    #[doc = "               amount of space will be calculated"]
    #[doc = " @param size number of bytes available in buffer"]
    #[doc = " @param count number of strings that follow"]
    #[doc = " @param ... count 0-terminated strings to copy to buffer"]
    #[doc = " @return number of bytes written to the buffer"]
    #[doc = "         (or number of bytes that would have been written)"]
    pub fn GNUNET_STRINGS_buffer_fill(
        buffer: *mut ::std::os::raw::c_char,
        size: usize,
        count: ::std::os::raw::c_uint,
        ...
    ) -> usize;
}
extern "C" {
    #[doc = " Given a buffer of a given size, find \"count\" 0-terminated strings"]
    #[doc = " in the buffer and assign the count (varargs) of type \"const char**\""]
    #[doc = " to the locations of the respective strings in the buffer."]
    #[doc = ""]
    #[doc = " @param buffer the buffer to parse"]
    #[doc = " @param size size of the @a buffer"]
    #[doc = " @param count number of strings to locate"]
    #[doc = " @param ... pointers to where to store the strings"]
    #[doc = " @return offset of the character after the last 0-termination"]
    #[doc = "         in the buffer, or 0 on error."]
    pub fn GNUNET_STRINGS_buffer_tokenize(
        buffer: *const ::std::os::raw::c_char,
        size: usize,
        count: ::std::os::raw::c_uint,
        ...
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @ingroup time"]
    #[doc = " Like `asctime`, except for GNUnet time.  Converts a GNUnet internal"]
    #[doc = " absolute time (which is in UTC) to a string in local time."]
    #[doc = " Note that the returned value will be overwritten if this function"]
    #[doc = " is called again."]
    #[doc = ""]
    #[doc = " @param t the absolute time to convert"]
    #[doc = " @return timestamp in human-readable form in local time"]
    pub fn GNUNET_STRINGS_absolute_time_to_string(
        t: GNUNET_TIME_Absolute,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " @ingroup time"]
    #[doc = " Give relative time in human-readable fancy format."]
    #[doc = " This is one of the very few calls in the entire API that is"]
    #[doc = " NOT reentrant!"]
    #[doc = ""]
    #[doc = " @param delta time in milli seconds"]
    #[doc = " @param do_round are we allowed to round a bit?"]
    #[doc = " @return string in human-readable form"]
    pub fn GNUNET_STRINGS_relative_time_to_string(
        delta: GNUNET_TIME_Relative,
        do_round: ::std::os::raw::c_int,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " \"man basename\""]
    #[doc = " Returns a pointer to a part of filename (allocates nothing)!"]
    #[doc = ""]
    #[doc = " @param filename filename to extract basename from"]
    #[doc = " @return short (base) name of the file (that is, everything following the"]
    #[doc = "         last directory separator in filename. If filename ends with a"]
    #[doc = "         directory separator, the result will be a zero-length string."]
    #[doc = "         If filename has no directory separators, the result is filename"]
    #[doc = "         itself."]
    pub fn GNUNET_STRINGS_get_short_name(
        filename: *const ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert binary data to ASCII encoding using CrockfordBase32."]
    #[doc = " Does not append 0-terminator, but returns a pointer to the place where"]
    #[doc = " it should be placed, if needed."]
    #[doc = ""]
    #[doc = " @param data data to encode"]
    #[doc = " @param size size of data (in bytes)"]
    #[doc = " @param out buffer to fill"]
    #[doc = " @param out_size size of the buffer. Must be large enough to hold"]
    #[doc = " ((size*8) + (((size*8) % 5) > 0 ? 5 - ((size*8) % 5) : 0)) / 5"]
    #[doc = " @return pointer to the next byte in 'out' or NULL on error."]
    pub fn GNUNET_STRINGS_data_to_string(
        data: *const ::std::os::raw::c_void,
        size: usize,
        out: *mut ::std::os::raw::c_char,
        out_size: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Return the base32crockford encoding of the given buffer."]
    #[doc = ""]
    #[doc = " The returned string will be freshly allocated, and must be free'd"]
    #[doc = " with #GNUNET_free()."]
    #[doc = ""]
    #[doc = " @param buf buffer with data"]
    #[doc = " @param size size of the buffer @a buf"]
    #[doc = " @return freshly allocated, null-terminated string"]
    pub fn GNUNET_STRINGS_data_to_string_alloc(
        buf: *const ::std::os::raw::c_void,
        size: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert CrockfordBase32 encoding back to data."]
    #[doc = " @a out_size must match exactly the size of the data before it was encoded."]
    #[doc = ""]
    #[doc = " @param enc the encoding"]
    #[doc = " @param enclen number of characters in @a enc (without 0-terminator, which can be missing)"]
    #[doc = " @param out location where to store the decoded data"]
    #[doc = " @param out_size size of the output buffer @a out"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if result has the wrong encoding"]
    pub fn GNUNET_STRINGS_string_to_data(
        enc: *const ::std::os::raw::c_char,
        enclen: usize,
        out: *mut ::std::os::raw::c_void,
        out_size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Encode into Base64."]
    #[doc = ""]
    #[doc = " @param data the data to encode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_base64_encode(
        in_: *const ::std::os::raw::c_void,
        len: usize,
        output: *mut *mut ::std::os::raw::c_char,
    ) -> usize;
}
extern "C" {
    #[doc = " url/percent encode (RFC3986)."]
    #[doc = ""]
    #[doc = " @param data the data to decode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_urlencode(
        data: *const ::std::os::raw::c_char,
        len: usize,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> usize;
}
extern "C" {
    #[doc = " Encode into Base64url. RFC7515"]
    #[doc = ""]
    #[doc = " @param in the data to encode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_base64url_encode(
        in_: *const ::std::os::raw::c_void,
        len: usize,
        output: *mut *mut ::std::os::raw::c_char,
    ) -> usize;
}
extern "C" {
    #[doc = " Decode from Base64."]
    #[doc = ""]
    #[doc = " @param data the data to encode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param[out] output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_base64_decode(
        data: *const ::std::os::raw::c_char,
        len: usize,
        output: *mut *mut ::std::os::raw::c_void,
    ) -> usize;
}
extern "C" {
    #[doc = " Decode from Base64url. RFC7515"]
    #[doc = ""]
    #[doc = " @param data the data to decode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_base64url_decode(
        data: *const ::std::os::raw::c_char,
        len: usize,
        out: *mut *mut ::std::os::raw::c_void,
    ) -> usize;
}
extern "C" {
    #[doc = " url/percent encode (RFC3986)."]
    #[doc = ""]
    #[doc = " @param data the data to encode"]
    #[doc = " @param len the length of the input"]
    #[doc = " @param output where to write the output (*output should be NULL,"]
    #[doc = "   is allocated)"]
    #[doc = " @return the size of the output"]
    pub fn GNUNET_STRINGS_urldecode(
        data: *const ::std::os::raw::c_char,
        len: usize,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> usize;
}
extern "C" {
    #[doc = " Convert a peer path to a human-readable string."]
    #[doc = ""]
    #[doc = " @param pids array of PIDs to convert to a string"]
    #[doc = " @param num_pids length of the @a pids array"]
    #[doc = " @return string representing the array of @a pids"]
    pub fn GNUNET_STRINGS_pp2s(
        pids: *const GNUNET_PeerIdentity,
        num_pids: ::std::os::raw::c_uint,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Parse a path that might be an URI."]
    #[doc = ""]
    #[doc = " @param path path to parse. Must be NULL-terminated."]
    #[doc = " @param[out] scheme_part pointer to a string that"]
    #[doc = "        represents the URI scheme will be stored. Can be NULL. The string is"]
    #[doc = "        allocated by the function, and should be freed by GNUNET_free() when"]
    #[doc = "        it is no longer needed."]
    #[doc = " @param path_part a pointer to 'const char *' where a pointer to the path"]
    #[doc = "        part of the URI will be stored. Can be NULL. Points to the same block"]
    #[doc = "        of memory as @a path, and thus must not be freed. Might point to '\\0',"]
    #[doc = "        if path part is zero-length."]
    #[doc = " @return #GNUNET_YES if it's an URI, #GNUNET_NO otherwise. If 'path' is not"]
    #[doc = "         an URI, '* scheme_part' and '*path_part' will remain unchanged"]
    #[doc = "         (if they weren't NULL)."]
    pub fn GNUNET_STRINGS_parse_uri(
        path: *const ::std::os::raw::c_char,
        scheme_part: *mut *mut ::std::os::raw::c_char,
        path_part: *mut *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check whether filename is absolute or not, and if it's an URI"]
    #[doc = ""]
    #[doc = " @param filename filename to check"]
    #[doc = " @param can_be_uri #GNUNET_YES to check for being URI, #GNUNET_NO - to"]
    #[doc = "        assume it's not URI"]
    #[doc = " @param r_is_uri a pointer to an int that is set to #GNUNET_YES if 'filename'"]
    #[doc = "        is URI and to GNUNET_NO otherwise. Can be NULL. If 'can_be_uri' is"]
    #[doc = "        not #GNUNET_YES, *r_is_uri is set to #GNUNET_NO."]
    #[doc = " @param r_uri_scheme a pointer to a char * that is set to a pointer to URI scheme."]
    #[doc = "        The string is allocated by the function, and should be freed with"]
    #[doc = "        GNUNET_free (). Can be NULL."]
    #[doc = " @return #GNUNET_YES if 'filename' is absolute, #GNUNET_NO otherwise."]
    pub fn GNUNET_STRINGS_path_is_absolute(
        filename: *const ::std::os::raw::c_char,
        can_be_uri: ::std::os::raw::c_int,
        r_is_uri: *mut ::std::os::raw::c_int,
        r_uri_scheme: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Check that it exists."]
pub const GNUNET_STRINGS_FilenameCheck_GNUNET_STRINGS_CHECK_EXISTS: GNUNET_STRINGS_FilenameCheck =
    1;
#[doc = " Check that it is a directory."]
pub const GNUNET_STRINGS_FilenameCheck_GNUNET_STRINGS_CHECK_IS_DIRECTORY:
    GNUNET_STRINGS_FilenameCheck = 2;
#[doc = " Check that it is a link."]
pub const GNUNET_STRINGS_FilenameCheck_GNUNET_STRINGS_CHECK_IS_LINK: GNUNET_STRINGS_FilenameCheck =
    4;
#[doc = " Check that the path is an absolute path."]
pub const GNUNET_STRINGS_FilenameCheck_GNUNET_STRINGS_CHECK_IS_ABSOLUTE:
    GNUNET_STRINGS_FilenameCheck = 8;
#[doc = " Flags for what we should check a file for."]
pub type GNUNET_STRINGS_FilenameCheck = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Perform checks on @a filename.  FIXME: some duplication with"]
    #[doc = " \"GNUNET_DISK_\"-APIs.  We should unify those."]
    #[doc = ""]
    #[doc = " @param filename file to check"]
    #[doc = " @param checks checks to perform"]
    #[doc = " @return #GNUNET_YES if all checks pass, #GNUNET_NO if at least one of them"]
    #[doc = "         fails, #GNUNET_SYSERR when a check can't be performed"]
    pub fn GNUNET_STRINGS_check_filename(
        filename: *const ::std::os::raw::c_char,
        checks: GNUNET_STRINGS_FilenameCheck,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Tries to convert @a zt_addr string to an IPv6 address."]
    #[doc = " The string is expected to have the format \"[ABCD::01]:80\"."]
    #[doc = ""]
    #[doc = " @param zt_addr 0-terminated string. May be mangled by the function."]
    #[doc = " @param addrlen length of zt_addr (not counting 0-terminator)."]
    #[doc = " @param r_buf a buffer to fill. Initially gets filled with zeroes,"]
    #[doc = "        then its sin6_port, sin6_family and sin6_addr are set appropriately."]
    #[doc = " @return #GNUNET_OK if conversion succeeded. #GNUNET_SYSERR otherwise, in which"]
    #[doc = "         case the contents of r_buf are undefined."]
    pub fn GNUNET_STRINGS_to_address_ipv6(
        zt_addr: *const ::std::os::raw::c_char,
        addrlen: u16,
        r_buf: *mut sockaddr_in6,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Tries to convert @a zt_addr string to an IPv4 address."]
    #[doc = " The string is expected to have the format \"1.2.3.4:80\"."]
    #[doc = ""]
    #[doc = " @param zt_addr 0-terminated string. May be mangled by the function."]
    #[doc = " @param addrlen length of zt_addr (not counting 0-terminator)."]
    #[doc = " @param r_buf a buffer to fill."]
    #[doc = " @return #GNUNET_OK if conversion succeeded. #GNUNET_SYSERR otherwise, in which case"]
    #[doc = "         the contents of r_buf are undefined."]
    pub fn GNUNET_STRINGS_to_address_ipv4(
        zt_addr: *const ::std::os::raw::c_char,
        addrlen: u16,
        r_buf: *mut sockaddr_in,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parse an address given as a string into a"]
    #[doc = " `struct sockaddr`."]
    #[doc = ""]
    #[doc = " @param addr the address"]
    #[doc = " @param[out] af set to the parsed address family (i.e. AF_INET)"]
    #[doc = " @param[out] sa set to the parsed address"]
    #[doc = " @return 0 on error, otherwise number of bytes in @a sa"]
    pub fn GNUNET_STRINGS_parse_socket_addr(
        addr: *const ::std::os::raw::c_char,
        af: *mut u8,
        sa: *mut *mut sockaddr,
    ) -> usize;
}
extern "C" {
    #[doc = " Tries to convert @a addr string to an IP (v4 or v6) address."]
    #[doc = " Will automatically decide whether to treat 'addr' as v4 or v6 address."]
    #[doc = ""]
    #[doc = " @param addr a string, may not be 0-terminated."]
    #[doc = " @param addrlen number of bytes in @a addr (if addr is 0-terminated,"]
    #[doc = "        0-terminator should not be counted towards addrlen)."]
    #[doc = " @param r_buf a buffer to fill."]
    #[doc = " @return #GNUNET_OK if conversion succeeded. #GNUNET_SYSERR otherwise, in which"]
    #[doc = "         case the contents of r_buf are undefined."]
    pub fn GNUNET_STRINGS_to_address_ip(
        addr: *const ::std::os::raw::c_char,
        addrlen: u16,
        r_buf: *mut sockaddr_storage,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns utf-8 encoded arguments.  Does nothing (returns a copy of"]
    #[doc = " @a argc and @a argv) on any platform other than W32.  Returned @a"]
    #[doc = " argv has `u8argv[u8argc] == NULL`.  Returned @a argv is a single"]
    #[doc = " memory block, and can be freed with a single GNUNET_free() call."]
    #[doc = ""]
    #[doc = " @param argc argc (as given by main())"]
    #[doc = " @param argv argv (as given by main())"]
    #[doc = " @param u8argc a location to store new argc in (though it's th same as argc)"]
    #[doc = " @param u8argv a location to store new argv in"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR on failure"]
    pub fn GNUNET_STRINGS_get_utf8_args(
        argc: ::std::os::raw::c_int,
        argv: *const *mut ::std::os::raw::c_char,
        u8argc: *mut ::std::os::raw::c_int,
        u8argv: *mut *const *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Like strlcpy but portable. The given string @a src is copied in full length"]
    #[doc = " (until its null byte). The destination buffer is guaranteed to be"]
    #[doc = " null-terminated."]
    #[doc = ""]
    #[doc = " to a destination buffer"]
    #[doc = " and ensures that the destination string is null-terminated."]
    #[doc = ""]
    #[doc = " @param dst destination of the copy"]
    #[doc = " @param src source of the copy, must be null-terminated"]
    #[doc = " @param n the length of the string to copy, including its terminating null"]
    #[doc = "          byte"]
    #[doc = " @return the length of the string that was copied, excluding the terminating"]
    #[doc = "         null byte"]
    pub fn GNUNET_strlcpy(
        dst: *mut ::std::os::raw::c_char,
        src: *const ::std::os::raw::c_char,
        n: usize,
    ) -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_STRINGS_PortPolicy {
    #[doc = " Starting port range (0 if none given)."]
    pub start_port: u16,
    #[doc = " End of port range (0 if none given)."]
    pub end_port: u16,
    #[doc = " #GNUNET_YES if the port range should be negated"]
    #[doc = " (\"!\" in policy)."]
    pub negate_portrange: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_GNUNET_STRINGS_PortPolicy() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_STRINGS_PortPolicy>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_STRINGS_PortPolicy))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_STRINGS_PortPolicy>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_STRINGS_PortPolicy))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_PortPolicy>())).start_port as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_PortPolicy),
            "::",
            stringify!(start_port)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_PortPolicy>())).end_port as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_PortPolicy),
            "::",
            stringify!(end_port)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_PortPolicy>())).negate_portrange as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_PortPolicy),
            "::",
            stringify!(negate_portrange)
        )
    );
}
#[doc = " @brief IPV4 network in CIDR notation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_STRINGS_IPv4NetworkPolicy {
    #[doc = " IPv4 address."]
    pub network: in_addr,
    #[doc = " IPv4 netmask."]
    pub netmask: in_addr,
    #[doc = " Policy for port access."]
    pub pp: GNUNET_STRINGS_PortPolicy,
}
#[test]
fn bindgen_test_layout_GNUNET_STRINGS_IPv4NetworkPolicy() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_STRINGS_IPv4NetworkPolicy>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_STRINGS_IPv4NetworkPolicy))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_STRINGS_IPv4NetworkPolicy>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_STRINGS_IPv4NetworkPolicy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv4NetworkPolicy>())).network as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv4NetworkPolicy),
            "::",
            stringify!(network)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv4NetworkPolicy>())).netmask as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv4NetworkPolicy),
            "::",
            stringify!(netmask)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv4NetworkPolicy>())).pp as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv4NetworkPolicy),
            "::",
            stringify!(pp)
        )
    );
}
#[doc = " @brief network in CIDR notation for IPV6."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_STRINGS_IPv6NetworkPolicy {
    #[doc = " IPv6 address."]
    pub network: in6_addr,
    #[doc = " IPv6 netmask."]
    pub netmask: in6_addr,
    #[doc = " Policy for port access."]
    pub pp: GNUNET_STRINGS_PortPolicy,
}
#[test]
fn bindgen_test_layout_GNUNET_STRINGS_IPv6NetworkPolicy() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_STRINGS_IPv6NetworkPolicy>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_STRINGS_IPv6NetworkPolicy))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_STRINGS_IPv6NetworkPolicy>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_STRINGS_IPv6NetworkPolicy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv6NetworkPolicy>())).network as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv6NetworkPolicy),
            "::",
            stringify!(network)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv6NetworkPolicy>())).netmask as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv6NetworkPolicy),
            "::",
            stringify!(netmask)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_STRINGS_IPv6NetworkPolicy>())).pp as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_STRINGS_IPv6NetworkPolicy),
            "::",
            stringify!(pp)
        )
    );
}
extern "C" {
    #[doc = " Parse an IPv4 network policy. The argument specifies a list of"]
    #[doc = " subnets. The format is <tt>(network[/netmask][:[!]SPORT-DPORT];)*</tt>"]
    #[doc = " (no whitespace, must be terminated with a semicolon). The network"]
    #[doc = " must be given in dotted-decimal notation. The netmask can be given"]
    #[doc = " in CIDR notation (/16) or in dotted-decimal (/255.255.0.0)."]
    #[doc = ""]
    #[doc = " @param routeListX a string specifying the IPv4 subnets"]
    #[doc = " @return the converted list, terminated with all zeros;"]
    #[doc = "         NULL if the synatx is flawed"]
    pub fn GNUNET_STRINGS_parse_ipv4_policy(
        routeListX: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_STRINGS_IPv4NetworkPolicy;
}
extern "C" {
    #[doc = " Parse an IPv6 network policy. The argument specifies a list of"]
    #[doc = " subnets. The format is <tt>(network[/netmask[:[!]SPORT[-DPORT]]];)*</tt>"]
    #[doc = " (no whitespace, must be terminated with a semicolon). The network"]
    #[doc = " must be given in colon-hex notation.  The netmask must be given in"]
    #[doc = " CIDR notation (/16) or can be omitted to specify a single host."]
    #[doc = " Note that the netmask is mandatory if ports are specified."]
    #[doc = ""]
    #[doc = " @param routeListX a string specifying the policy"]
    #[doc = " @return the converted list, 0-terminated, NULL if the synatx is flawed"]
    pub fn GNUNET_STRINGS_parse_ipv6_policy(
        routeListX: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_STRINGS_IPv6NetworkPolicy;
}
#[doc = " Header from Linux TUN interface."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_Layer2PacketHeader {
    #[doc = " Some flags (unused)."]
    pub flags: u16,
    #[doc = " Here we get an ETH_P_-number."]
    pub proto: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_Layer2PacketHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_Layer2PacketHeader>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_Layer2PacketHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_Layer2PacketHeader>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_Layer2PacketHeader))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_Layer2PacketHeader>())).flags as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_Layer2PacketHeader),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_Layer2PacketHeader>())).proto as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_Layer2PacketHeader),
            "::",
            stringify!(proto)
        )
    );
}
#[doc = " Standard IPv4 header."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_IPv4Header {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    pub diff_serv: u8,
    #[doc = " Length of the packet, including this header."]
    pub total_length: u16,
    #[doc = " Unique random ID for matching up fragments."]
    pub identification: u16,
    pub _bitfield_2: __BindgenBitfieldUnit<[u8; 2usize], u16>,
    #[doc = " How many more hops can this packet be forwarded?"]
    pub ttl: u8,
    #[doc = " L4-protocol, for example, IPPROTO_UDP or IPPROTO_TCP."]
    pub protocol: u8,
    #[doc = " Checksum."]
    pub checksum: u16,
    #[doc = " Origin of the packet."]
    pub source_address: in_addr,
    #[doc = " Destination of the packet."]
    pub destination_address: in_addr,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IPv4Header() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IPv4Header>(),
        20usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_IPv4Header))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IPv4Header>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_IPv4Header))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).diff_serv as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(diff_serv)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).total_length as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(total_length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).identification as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(identification)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).ttl as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(ttl)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).protocol as *const _ as usize },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(protocol)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).checksum as *const _ as usize },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(checksum)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).source_address as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(source_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv4Header>())).destination_address as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv4Header),
            "::",
            stringify!(destination_address)
        )
    );
}
impl GNUNET_TUN_IPv4Header {
    #[inline]
    pub fn header_length(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_header_length(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn version(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_version(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        header_length: ::std::os::raw::c_uint,
        version: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let header_length: u32 = unsafe { ::std::mem::transmute(header_length) };
            header_length as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let version: u32 = unsafe { ::std::mem::transmute(version) };
            version as u64
        });
        __bindgen_bitfield_unit
    }
    #[inline]
    pub fn flags(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 3u8) as u32) }
    }
    #[inline]
    pub fn set_flags(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_2.set(0usize, 3u8, val as u64)
        }
    }
    #[inline]
    pub fn fragmentation_offset(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_2.get(3usize, 13u8) as u32) }
    }
    #[inline]
    pub fn set_fragmentation_offset(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_2.set(3usize, 13u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_2(
        flags: ::std::os::raw::c_uint,
        fragmentation_offset: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 2usize], u16> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u16> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 3u8, {
            let flags: u32 = unsafe { ::std::mem::transmute(flags) };
            flags as u64
        });
        __bindgen_bitfield_unit.set(3usize, 13u8, {
            let fragmentation_offset: u32 = unsafe { ::std::mem::transmute(fragmentation_offset) };
            fragmentation_offset as u64
        });
        __bindgen_bitfield_unit
    }
}
#[doc = " Standard IPv6 header."]
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct GNUNET_TUN_IPv6Header {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
    #[doc = " Length of the payload, excluding this header."]
    pub payload_length: u16,
    #[doc = " For example, IPPROTO_UDP or IPPROTO_TCP."]
    pub next_header: u8,
    #[doc = " How many more hops can this packet be forwarded?"]
    pub hop_limit: u8,
    #[doc = " Origin of the packet."]
    pub source_address: in6_addr,
    #[doc = " Destination of the packet."]
    pub destination_address: in6_addr,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IPv6Header() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IPv6Header>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_IPv6Header))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IPv6Header>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_IPv6Header))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv6Header>())).payload_length as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv6Header),
            "::",
            stringify!(payload_length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv6Header>())).next_header as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv6Header),
            "::",
            stringify!(next_header)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IPv6Header>())).hop_limit as *const _ as usize },
        7usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv6Header),
            "::",
            stringify!(hop_limit)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv6Header>())).source_address as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv6Header),
            "::",
            stringify!(source_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IPv6Header>())).destination_address as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IPv6Header),
            "::",
            stringify!(destination_address)
        )
    );
}
impl GNUNET_TUN_IPv6Header {
    #[inline]
    pub fn traffic_class_h(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_traffic_class_h(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn version(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_version(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn traffic_class_l(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_traffic_class_l(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(8usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn flow_label(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) }
    }
    #[inline]
    pub fn set_flow_label(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(12usize, 20u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        traffic_class_h: ::std::os::raw::c_uint,
        version: ::std::os::raw::c_uint,
        traffic_class_l: ::std::os::raw::c_uint,
        flow_label: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let traffic_class_h: u32 = unsafe { ::std::mem::transmute(traffic_class_h) };
            traffic_class_h as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let version: u32 = unsafe { ::std::mem::transmute(version) };
            version as u64
        });
        __bindgen_bitfield_unit.set(8usize, 4u8, {
            let traffic_class_l: u32 = unsafe { ::std::mem::transmute(traffic_class_l) };
            traffic_class_l as u64
        });
        __bindgen_bitfield_unit.set(12usize, 20u8, {
            let flow_label: u32 = unsafe { ::std::mem::transmute(flow_label) };
            flow_label as u64
        });
        __bindgen_bitfield_unit
    }
}
#[doc = " TCP packet header."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_TcpHeader {
    #[doc = " Source port (in NBO)."]
    pub source_port: u16,
    #[doc = " Destination port (in NBO)."]
    pub destination_port: u16,
    #[doc = " Sequence number."]
    pub seq: u32,
    #[doc = " Acknowledgement number."]
    pub ack: u32,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
    #[doc = " Flags (SYN, FIN, ACK, etc.)"]
    pub flags: u8,
    #[doc = " Window size."]
    pub window_size: u16,
    #[doc = " Checksum."]
    pub crc: u16,
    #[doc = " Urgent pointer."]
    pub urgent_pointer: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_TcpHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_TcpHeader>(),
        20usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_TcpHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_TcpHeader>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_TcpHeader))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).source_port as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(source_port)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).destination_port as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(destination_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).seq as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(seq)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).ack as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(ack)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).flags as *const _ as usize },
        13usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).window_size as *const _ as usize
        },
        14usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(window_size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).crc as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(crc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_TcpHeader>())).urgent_pointer as *const _ as usize
        },
        18usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_TcpHeader),
            "::",
            stringify!(urgent_pointer)
        )
    );
}
impl GNUNET_TUN_TcpHeader {
    #[inline]
    pub fn reserved(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_reserved(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn off(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_off(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        reserved: ::std::os::raw::c_uint,
        off: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 4u8, {
            let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
            reserved as u64
        });
        __bindgen_bitfield_unit.set(4usize, 4u8, {
            let off: u32 = unsafe { ::std::mem::transmute(off) };
            off as u64
        });
        __bindgen_bitfield_unit
    }
}
#[doc = " UDP packet header."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_UdpHeader {
    #[doc = " Source port (in NBO)."]
    pub source_port: u16,
    #[doc = " Destination port (in NBO)."]
    pub destination_port: u16,
    #[doc = " Number of bytes of payload."]
    pub len: u16,
    #[doc = " Checksum."]
    pub crc: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_UdpHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_UdpHeader>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_UdpHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_UdpHeader>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_UdpHeader))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_UdpHeader>())).source_port as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_UdpHeader),
            "::",
            stringify!(source_port)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_UdpHeader>())).destination_port as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_UdpHeader),
            "::",
            stringify!(destination_port)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_UdpHeader>())).len as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_UdpHeader),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_UdpHeader>())).crc as *const _ as usize },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_UdpHeader),
            "::",
            stringify!(crc)
        )
    );
}
#[doc = " DNS flags (largely RFC 1035 / RFC 2136)."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsFlags {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsFlags() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsFlags>(),
        2usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsFlags))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsFlags>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsFlags))
    );
}
impl GNUNET_TUN_DnsFlags {
    #[inline]
    pub fn recursion_desired(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_recursion_desired(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn message_truncated(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_message_truncated(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn authoritative_answer(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_authoritative_answer(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn opcode(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_opcode(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn query_or_response(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_query_or_response(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(7usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn return_code(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) }
    }
    #[inline]
    pub fn set_return_code(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(8usize, 4u8, val as u64)
        }
    }
    #[inline]
    pub fn checking_disabled(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_checking_disabled(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(12usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn authenticated_data(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_authenticated_data(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(13usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn zero(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_zero(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(14usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn recursion_available(&self) -> ::std::os::raw::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_recursion_available(&mut self, val: ::std::os::raw::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(15usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        recursion_desired: ::std::os::raw::c_uint,
        message_truncated: ::std::os::raw::c_uint,
        authoritative_answer: ::std::os::raw::c_uint,
        opcode: ::std::os::raw::c_uint,
        query_or_response: ::std::os::raw::c_uint,
        return_code: ::std::os::raw::c_uint,
        checking_disabled: ::std::os::raw::c_uint,
        authenticated_data: ::std::os::raw::c_uint,
        zero: ::std::os::raw::c_uint,
        recursion_available: ::std::os::raw::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 2usize], u8> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize], u8> =
            Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let recursion_desired: u32 = unsafe { ::std::mem::transmute(recursion_desired) };
            recursion_desired as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let message_truncated: u32 = unsafe { ::std::mem::transmute(message_truncated) };
            message_truncated as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let authoritative_answer: u32 = unsafe { ::std::mem::transmute(authoritative_answer) };
            authoritative_answer as u64
        });
        __bindgen_bitfield_unit.set(3usize, 4u8, {
            let opcode: u32 = unsafe { ::std::mem::transmute(opcode) };
            opcode as u64
        });
        __bindgen_bitfield_unit.set(7usize, 1u8, {
            let query_or_response: u32 = unsafe { ::std::mem::transmute(query_or_response) };
            query_or_response as u64
        });
        __bindgen_bitfield_unit.set(8usize, 4u8, {
            let return_code: u32 = unsafe { ::std::mem::transmute(return_code) };
            return_code as u64
        });
        __bindgen_bitfield_unit.set(12usize, 1u8, {
            let checking_disabled: u32 = unsafe { ::std::mem::transmute(checking_disabled) };
            checking_disabled as u64
        });
        __bindgen_bitfield_unit.set(13usize, 1u8, {
            let authenticated_data: u32 = unsafe { ::std::mem::transmute(authenticated_data) };
            authenticated_data as u64
        });
        __bindgen_bitfield_unit.set(14usize, 1u8, {
            let zero: u32 = unsafe { ::std::mem::transmute(zero) };
            zero as u64
        });
        __bindgen_bitfield_unit.set(15usize, 1u8, {
            let recursion_available: u32 = unsafe { ::std::mem::transmute(recursion_available) };
            recursion_available as u64
        });
        __bindgen_bitfield_unit
    }
}
#[doc = " DNS header."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsHeader {
    #[doc = " Unique identifier for the request/response."]
    pub id: u16,
    #[doc = " Flags."]
    pub flags: GNUNET_TUN_DnsFlags,
    #[doc = " Number of queries."]
    pub query_count: u16,
    #[doc = " Number of answers."]
    pub answer_rcount: u16,
    #[doc = " Number of authoritative answers."]
    pub authority_rcount: u16,
    #[doc = " Number of additional records."]
    pub additional_rcount: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsHeader>(),
        12usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsHeader>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsHeader))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).flags as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).query_count as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(query_count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).answer_rcount as *const _ as usize
        },
        6usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(answer_rcount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).authority_rcount as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(authority_rcount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsHeader>())).additional_rcount as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsHeader),
            "::",
            stringify!(additional_rcount)
        )
    );
}
#[doc = " Payload of DNS SOA record (header)."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsSoaRecord {
    #[doc = " The version number of the original copy of the zone.   (NBO)"]
    pub serial: u32,
    #[doc = " Time interval before the zone should be refreshed. (NBO)"]
    pub refresh: u32,
    #[doc = " Time interval that should elapse before a failed refresh should"]
    #[doc = " be retried. (NBO)"]
    pub retry: u32,
    #[doc = " Time value that specifies the upper limit on the time interval"]
    #[doc = " that can elapse before the zone is no longer authoritative. (NBO)"]
    pub expire: u32,
    #[doc = " The bit minimum TTL field that should be exported with any RR"]
    #[doc = " from this zone. (NBO)"]
    pub minimum: u32,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsSoaRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsSoaRecord>(),
        20usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsSoaRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsSoaRecord>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsSoaRecord))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSoaRecord>())).serial as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSoaRecord),
            "::",
            stringify!(serial)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSoaRecord>())).refresh as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSoaRecord),
            "::",
            stringify!(refresh)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSoaRecord>())).retry as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSoaRecord),
            "::",
            stringify!(retry)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSoaRecord>())).expire as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSoaRecord),
            "::",
            stringify!(expire)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSoaRecord>())).minimum as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSoaRecord),
            "::",
            stringify!(minimum)
        )
    );
}
#[doc = " Payload of DNS SRV record (header)."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsSrvRecord {
    #[doc = " Preference for this entry (lower value is higher preference).  Clients"]
    #[doc = " will contact hosts from the lowest-priority group first and fall back"]
    #[doc = " to higher priorities if the low-priority entries are unavailable. (NBO)"]
    pub prio: u16,
    #[doc = " Relative weight for records with the same priority.  Clients will use"]
    #[doc = " the hosts of the same (lowest) priority with a probability proportional"]
    #[doc = " to the weight given. (NBO)"]
    pub weight: u16,
    #[doc = " TCP or UDP port of the service. (NBO)"]
    pub port: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsSrvRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsSrvRecord>(),
        6usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsSrvRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsSrvRecord>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsSrvRecord))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSrvRecord>())).prio as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSrvRecord),
            "::",
            stringify!(prio)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSrvRecord>())).weight as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSrvRecord),
            "::",
            stringify!(weight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsSrvRecord>())).port as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsSrvRecord),
            "::",
            stringify!(port)
        )
    );
}
#[doc = " Payload of DNS CERT record."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsCertRecord {
    #[doc = " Certificate type"]
    pub cert_type: u16,
    #[doc = " Certificate KeyTag"]
    pub cert_tag: u16,
    #[doc = " Algorithm"]
    pub algorithm: u8,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsCertRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsCertRecord>(),
        6usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsCertRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsCertRecord>(),
        2usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsCertRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsCertRecord>())).cert_type as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsCertRecord),
            "::",
            stringify!(cert_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsCertRecord>())).cert_tag as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsCertRecord),
            "::",
            stringify!(cert_tag)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsCertRecord>())).algorithm as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsCertRecord),
            "::",
            stringify!(algorithm)
        )
    );
}
#[doc = " Payload of DNSSEC TLSA record."]
#[doc = " http://datatracker.ietf.org/doc/draft-ietf-dane-protocol/"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsTlsaRecord {
    #[doc = " Certificate usage"]
    #[doc = " 0: CA cert"]
    #[doc = " 1: Entity cert"]
    #[doc = " 2: Trust anchor"]
    #[doc = " 3: domain-issued cert"]
    pub usage: u8,
    #[doc = " Selector"]
    #[doc = " What part will be matched against the cert"]
    #[doc = " presented by server"]
    #[doc = " 0: Full cert (in binary)"]
    #[doc = " 1: Full cert (in DER)"]
    pub selector: u8,
    #[doc = " Matching type (of selected content)"]
    #[doc = " 0: exact match"]
    #[doc = " 1: SHA-256 hash"]
    #[doc = " 2: SHA-512 hash"]
    pub matching_type: u8,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsTlsaRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsTlsaRecord>(),
        3usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsTlsaRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsTlsaRecord>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsTlsaRecord))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsTlsaRecord>())).usage as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsTlsaRecord),
            "::",
            stringify!(usage)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsTlsaRecord>())).selector as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsTlsaRecord),
            "::",
            stringify!(selector)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsTlsaRecord>())).matching_type as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsTlsaRecord),
            "::",
            stringify!(matching_type)
        )
    );
}
#[doc = " Payload of GNS VPN record"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_GnsVpnRecord {
    #[doc = " The peer to contact"]
    pub peer: GNUNET_PeerIdentity,
    #[doc = " The protocol to use"]
    pub proto: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_GnsVpnRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_GnsVpnRecord>(),
        34usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_GnsVpnRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_GnsVpnRecord>(),
        2usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_GnsVpnRecord))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_GnsVpnRecord>())).peer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_GnsVpnRecord),
            "::",
            stringify!(peer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_GnsVpnRecord>())).proto as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_GnsVpnRecord),
            "::",
            stringify!(proto)
        )
    );
}
#[doc = " DNS query prefix."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsQueryLine {
    #[doc = " Desired type (GNUNET_DNSPARSER_TYPE_XXX). (NBO)"]
    pub type_: u16,
    #[doc = " Desired class (usually GNUNET_TUN_DNS_CLASS_INTERNET). (NBO)"]
    pub dns_traffic_class: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsQueryLine() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsQueryLine>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsQueryLine))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsQueryLine>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsQueryLine))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsQueryLine>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsQueryLine),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsQueryLine>())).dns_traffic_class as *const _
                as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsQueryLine),
            "::",
            stringify!(dns_traffic_class)
        )
    );
}
#[doc = " General DNS record prefix."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_DnsRecordLine {
    #[doc = " Record type (GNUNET_DNSPARSER_TYPE_XXX). (NBO)"]
    pub type_: u16,
    #[doc = " Record class (usually GNUNET_TUN_DNS_CLASS_INTERNET). (NBO)"]
    pub dns_traffic_class: u16,
    #[doc = " Expiration for the record (in seconds). (NBO)"]
    pub ttl: u32,
    #[doc = " Number of bytes of data that follow. (NBO)"]
    pub data_len: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_DnsRecordLine() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_DnsRecordLine>(),
        10usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_DnsRecordLine))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_DnsRecordLine>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_DnsRecordLine))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsRecordLine>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsRecordLine),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsRecordLine>())).dns_traffic_class as *const _
                as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsRecordLine),
            "::",
            stringify!(dns_traffic_class)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_DnsRecordLine>())).ttl as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsRecordLine),
            "::",
            stringify!(ttl)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_DnsRecordLine>())).data_len as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_DnsRecordLine),
            "::",
            stringify!(data_len)
        )
    );
}
#[doc = " ICMP header."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_TUN_IcmpHeader {
    pub type_: u8,
    pub code: u8,
    pub crc: u16,
    pub quench: GNUNET_TUN_IcmpHeader__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GNUNET_TUN_IcmpHeader__bindgen_ty_1 {
    pub echo: GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1,
    pub destination_unreachable: GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu,
    #[doc = " ICMP Redirect"]
    pub redirect_gateway_address: in_addr,
    #[doc = " MTU for packets that are too big (IPv6)."]
    pub packet_too_big_mtu: u32,
    _bindgen_union_align: u32,
}
#[doc = " ICMP Echo (request/reply)"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1 {
    pub identifier: u16,
    pub sequence_number: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1>(),
        4usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1>())).identifier
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(identifier)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1>()))
                .sequence_number as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(sequence_number)
        )
    );
}
#[doc = " ICMP Destination Unreachable (RFC 1191)"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu {
    pub empty: u16,
    pub next_hop_mtu: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu>(),
        4usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu>())).empty
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu),
            "::",
            stringify!(empty)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu>())).next_hop_mtu
                as *const _ as usize
        },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1_ih_pmtu),
            "::",
            stringify!(next_hop_mtu)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IcmpHeader__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>(),
        4usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>())).echo as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1),
            "::",
            stringify!(echo)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>())).destination_unreachable
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1),
            "::",
            stringify!(destination_unreachable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>())).redirect_gateway_address
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1),
            "::",
            stringify!(redirect_gateway_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader__bindgen_ty_1>())).packet_too_big_mtu
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader__bindgen_ty_1),
            "::",
            stringify!(packet_too_big_mtu)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_TUN_IcmpHeader() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TUN_IcmpHeader>(),
        8usize,
        concat!("Size of: ", stringify!(GNUNET_TUN_IcmpHeader))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TUN_IcmpHeader>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_TUN_IcmpHeader))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader>())).code as *const _ as usize },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader),
            "::",
            stringify!(code)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader>())).crc as *const _ as usize },
        2usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader),
            "::",
            stringify!(crc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_TUN_IcmpHeader>())).quench as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TUN_IcmpHeader),
            "::",
            stringify!(quench)
        )
    );
}
extern "C" {
    #[doc = " Initialize an IPv4 header."]
    #[doc = ""]
    #[doc = " @param ip header to initialize"]
    #[doc = " @param protocol protocol to use (i.e. IPPROTO_UDP)"]
    #[doc = " @param payload_length number of bytes of payload that follow (excluding IPv4"]
    #[doc = " header)"]
    #[doc = " @param src source IP address to use"]
    #[doc = " @param dst destination IP address to use"]
    pub fn GNUNET_TUN_initialize_ipv4_header(
        ip: *mut GNUNET_TUN_IPv4Header,
        protocol: u8,
        payload_length: u16,
        src: *const in_addr,
        dst: *const in_addr,
    );
}
extern "C" {
    #[doc = " Initialize an IPv6 header."]
    #[doc = ""]
    #[doc = " @param ip header to initialize"]
    #[doc = " @param protocol protocol to use (i.e. IPPROTO_UDP)"]
    #[doc = " @param payload_length number of bytes of payload that follow (excluding IPv4"]
    #[doc = " header)"]
    #[doc = " @param src source IP address to use"]
    #[doc = " @param dst destination IP address to use"]
    pub fn GNUNET_TUN_initialize_ipv6_header(
        ip: *mut GNUNET_TUN_IPv6Header,
        protocol: u8,
        payload_length: u16,
        src: *const in6_addr,
        dst: *const in6_addr,
    );
}
extern "C" {
    #[doc = " Calculate IPv4 TCP checksum."]
    #[doc = ""]
    #[doc = " @param ip ipv4 header fully initialized"]
    #[doc = " @param tcp TCP header (initialized except for CRC)"]
    #[doc = " @param payload the TCP payload"]
    #[doc = " @param payload_length number of bytes of TCP @a payload"]
    pub fn GNUNET_TUN_calculate_tcp4_checksum(
        ip: *const GNUNET_TUN_IPv4Header,
        tcp: *mut GNUNET_TUN_TcpHeader,
        payload: *const ::std::os::raw::c_void,
        payload_length: u16,
    );
}
extern "C" {
    #[doc = " Calculate IPv6 TCP checksum."]
    #[doc = ""]
    #[doc = " @param ip ipv6 header fully initialized"]
    #[doc = " @param tcp TCP header (initialized except for CRC)"]
    #[doc = " @param payload the TCP payload"]
    #[doc = " @param payload_length number of bytes of TCP payload"]
    pub fn GNUNET_TUN_calculate_tcp6_checksum(
        ip: *const GNUNET_TUN_IPv6Header,
        tcp: *mut GNUNET_TUN_TcpHeader,
        payload: *const ::std::os::raw::c_void,
        payload_length: u16,
    );
}
extern "C" {
    #[doc = " Calculate IPv4 UDP checksum."]
    #[doc = ""]
    #[doc = " @param ip ipv4 header fully initialized"]
    #[doc = " @param udp UDP header (initialized except for CRC)"]
    #[doc = " @param payload the UDP payload"]
    #[doc = " @param payload_length number of bytes of UDP @a payload"]
    pub fn GNUNET_TUN_calculate_udp4_checksum(
        ip: *const GNUNET_TUN_IPv4Header,
        udp: *mut GNUNET_TUN_UdpHeader,
        payload: *const ::std::os::raw::c_void,
        payload_length: u16,
    );
}
extern "C" {
    #[doc = " Calculate IPv6 UDP checksum."]
    #[doc = ""]
    #[doc = " @param ip ipv6 header fully initialized"]
    #[doc = " @param udp UDP header (initialized except for CRC)"]
    #[doc = " @param payload the UDP payload"]
    #[doc = " @param payload_length number of bytes of @a payload"]
    pub fn GNUNET_TUN_calculate_udp6_checksum(
        ip: *const GNUNET_TUN_IPv6Header,
        udp: *mut GNUNET_TUN_UdpHeader,
        payload: *const ::std::os::raw::c_void,
        payload_length: u16,
    );
}
extern "C" {
    #[doc = " Calculate ICMP checksum."]
    #[doc = ""]
    #[doc = " @param icmp IMCP header (initialized except for CRC)"]
    #[doc = " @param payload the ICMP payload"]
    #[doc = " @param payload_length number of bytes of @a payload"]
    pub fn GNUNET_TUN_calculate_icmp_checksum(
        icmp: *mut GNUNET_TUN_IcmpHeader,
        payload: *const ::std::os::raw::c_void,
        payload_length: u16,
    );
}
extern "C" {
    #[doc = " Create a regex in @a rxstr from the given @a ip and @a port."]
    #[doc = ""]
    #[doc = " @param ip IPv4 representation."]
    #[doc = " @param port destination port"]
    #[doc = " @param rxstr generated regex, must be at least #GNUNET_TUN_IPV4_REGEXLEN"]
    #[doc = "              bytes long."]
    pub fn GNUNET_TUN_ipv4toregexsearch(
        ip: *const in_addr,
        port: u16,
        rxstr: *mut ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Create a regex in @a rxstr from the given @a ipv6 and @a port."]
    #[doc = ""]
    #[doc = " @param ipv6 IPv6 representation."]
    #[doc = " @param port destination port"]
    #[doc = " @param rxstr generated regex, must be at least #GNUNET_TUN_IPV6_REGEXLEN"]
    #[doc = "              bytes long."]
    pub fn GNUNET_TUN_ipv6toregexsearch(
        ipv6: *const in6_addr,
        port: u16,
        rxstr: *mut ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Convert an exit policy to a regular expression.  The exit policy"]
    #[doc = " specifies a set of subnets this peer is willing to serve as an"]
    #[doc = " exit for; the resulting regular expression will match the"]
    #[doc = " IPv6 address strings as returned by #GNUNET_TUN_ipv6toregexsearch."]
    #[doc = ""]
    #[doc = " @param policy exit policy specification"]
    #[doc = " @return regular expression, NULL on error"]
    pub fn GNUNET_TUN_ipv6policy2regex(
        policy: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert an exit policy to a regular expression.  The exit policy"]
    #[doc = " specifies a set of subnets this peer is willing to serve as an"]
    #[doc = " exit for; the resulting regular expression will match the"]
    #[doc = " IPv4 address strings as returned by #GNUNET_TUN_ipv4toregexsearch."]
    #[doc = ""]
    #[doc = " @param policy exit policy specification"]
    #[doc = " @return regular expression, NULL on error"]
    pub fn GNUNET_TUN_ipv4policy2regex(
        policy: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Hash the service name of a hosted service to the"]
    #[doc = " hash code that is used to identify the service on"]
    #[doc = " the network."]
    #[doc = ""]
    #[doc = " @param service_name a string"]
    #[doc = " @param[out] hc corresponding hash"]
    pub fn GNUNET_TUN_service_name_to_hash(
        service_name: *const ::std::os::raw::c_char,
        hc: *mut GNUNET_HashCode,
    );
}
extern "C" {
    #[doc = " Check if two sockaddrs are equal."]
    #[doc = ""]
    #[doc = " @param sa one address"]
    #[doc = " @param sb another address"]
    #[doc = " @param include_port also check ports"]
    #[doc = " @return #GNUNET_YES if they are equal"]
    pub fn GNUNET_TUN_sockaddr_cmp(
        sa: *const sockaddr,
        sb: *const sockaddr,
        include_port: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Compute the CADET port given a service descriptor"]
    #[doc = " (returned from #GNUNET_TUN_service_name_to_hash) and"]
    #[doc = " a TCP/UDP port @a ip_port."]
    #[doc = ""]
    #[doc = " @param desc service shared secret"]
    #[doc = " @param ip_port TCP/UDP port, use 0 for ICMP"]
    #[doc = " @param[out] cadet_port CADET port to use"]
    pub fn GNUNET_TUN_compute_service_cadet_port(
        desc: *const GNUNET_HashCode,
        ip_port: u16,
        cadet_port: *mut GNUNET_HashCode,
    );
}
#[doc = " Opaque handle to the stub resolver."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSSTUB_Context {
    _unused: [u8; 0],
}
#[doc = " Opaque handle to a socket doing UDP requests."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSSTUB_RequestSocket {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Start a DNS stub resolver."]
    #[doc = ""]
    #[doc = " @param num_sockets how many sockets should we open"]
    #[doc = "        in parallel for DNS queries for this stub?"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_DNSSTUB_start(num_sockets: ::std::os::raw::c_uint)
        -> *mut GNUNET_DNSSTUB_Context;
}
extern "C" {
    #[doc = " Add nameserver for use by the DNSSTUB.  We will use"]
    #[doc = " all provided nameservers for resolution (round-robin)."]
    #[doc = ""]
    #[doc = " @param ctx resolver context to modify"]
    #[doc = " @param dns_ip target IP address to use (as string)"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_DNSSTUB_add_dns_ip(
        ctx: *mut GNUNET_DNSSTUB_Context,
        dns_ip: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add nameserver for use by the DNSSTUB.  We will use"]
    #[doc = " all provided nameservers for resolution (round-robin)."]
    #[doc = ""]
    #[doc = " @param ctx resolver context to modify"]
    #[doc = " @param sa socket address of DNS resolver to use"]
    #[doc = " @return #GNUNET_OK on success"]
    pub fn GNUNET_DNSSTUB_add_dns_sa(
        ctx: *mut GNUNET_DNSSTUB_Context,
        sa: *const sockaddr,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " How long should we try requests before timing out?"]
    #[doc = " Only effective for requests issued after this call."]
    #[doc = ""]
    #[doc = " @param ctx resolver context to modify"]
    #[doc = " @param retry_frequ how long to wait between retries"]
    pub fn GNUNET_DNSSTUB_set_retry(
        ctx: *mut GNUNET_DNSSTUB_Context,
        retry_freq: GNUNET_TIME_Relative,
    );
}
extern "C" {
    #[doc = " Cleanup DNSSTUB resolver."]
    #[doc = ""]
    #[doc = " @param ctx stub resolver to clean up"]
    pub fn GNUNET_DNSSTUB_stop(ctx: *mut GNUNET_DNSSTUB_Context);
}
#[doc = " Function called with the result of a DNS resolution."]
#[doc = " Once this function is called, the resolution request"]
#[doc = " is automatically cancelled / cleaned up.  In particular,"]
#[doc = " the function will only be called once."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param dns dns response, NULL on hard error (i.e. timeout)"]
#[doc = " @param dns_len number of bytes in @a dns"]
pub type GNUNET_DNSSTUB_ResultCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        dns: *const GNUNET_TUN_DnsHeader,
        dns_len: usize,
    ),
>;
extern "C" {
    #[doc = " Perform DNS resolution using our default IP from init."]
    #[doc = ""]
    #[doc = " @param ctx stub resolver to use"]
    #[doc = " @param request DNS request to transmit"]
    #[doc = " @param request_len number of bytes in msg"]
    #[doc = " @param rc function to call with result (once)"]
    #[doc = " @param rc_cls closure for @a rc"]
    #[doc = " @return socket used for the request, NULL on error"]
    pub fn GNUNET_DNSSTUB_resolve(
        ctx: *mut GNUNET_DNSSTUB_Context,
        request: *const ::std::os::raw::c_void,
        request_len: usize,
        rc: GNUNET_DNSSTUB_ResultCallback,
        rc_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_DNSSTUB_RequestSocket;
}
extern "C" {
    #[doc = " Cancel DNS resolution."]
    #[doc = ""]
    #[doc = " @param rs resolution to cancel"]
    pub fn GNUNET_DNSSTUB_resolve_cancel(rs: *mut GNUNET_DNSSTUB_RequestSocket);
}
#[doc = " A DNS query."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_Query {
    #[doc = " Name of the record that the query is for (0-terminated)."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = " See GNUNET_DNSPARSER_TYPE_*."]
    pub type_: u16,
    #[doc = " See GNUNET_TUN_DNS_CLASS_*."]
    pub dns_traffic_class: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_Query() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_Query>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_Query))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_Query>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_Query))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Query>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Query),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Query>())).type_ as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Query),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Query>())).dns_traffic_class as *const _
                as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Query),
            "::",
            stringify!(dns_traffic_class)
        )
    );
}
#[doc = " Information from MX records (RFC 1035)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_MxRecord {
    #[doc = " Preference for this entry (lower value is higher preference)."]
    pub preference: u16,
    #[doc = " Name of the mail server."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub mxhost: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_MxRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_MxRecord>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_MxRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_MxRecord>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_MxRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_MxRecord>())).preference as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_MxRecord),
            "::",
            stringify!(preference)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_MxRecord>())).mxhost as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_MxRecord),
            "::",
            stringify!(mxhost)
        )
    );
}
#[doc = " Information from SRV records (RFC 2782)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_SrvRecord {
    #[doc = " Hostname offering the service."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub target: *mut ::std::os::raw::c_char,
    #[doc = " Preference for this entry (lower value is higher preference).  Clients"]
    #[doc = " will contact hosts from the lowest-priority group first and fall back"]
    #[doc = " to higher priorities if the low-priority entries are unavailable."]
    pub priority: u16,
    #[doc = " Relative weight for records with the same priority.  Clients will use"]
    #[doc = " the hosts of the same (lowest) priority with a probability proportional"]
    #[doc = " to the weight given."]
    pub weight: u16,
    #[doc = " TCP or UDP port of the service."]
    pub port: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_SrvRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_SrvRecord>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_SrvRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_SrvRecord>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_SrvRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SrvRecord>())).target as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SrvRecord),
            "::",
            stringify!(target)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SrvRecord>())).priority as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SrvRecord),
            "::",
            stringify!(priority)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SrvRecord>())).weight as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SrvRecord),
            "::",
            stringify!(weight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_SrvRecord>())).port as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SrvRecord),
            "::",
            stringify!(port)
        )
    );
}
#[doc = "  Reserved value"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_RESERVED: GNUNET_DNSPARSER_CertType =
    0;
#[doc = " An x509 PKIX certificate"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_PKIX: GNUNET_DNSPARSER_CertType = 1;
#[doc = " A SKPI certificate"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_SKPI: GNUNET_DNSPARSER_CertType = 2;
#[doc = " A PGP certificate"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_PGP: GNUNET_DNSPARSER_CertType = 3;
#[doc = " An x509 PKIX cert URL"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_IPKIX: GNUNET_DNSPARSER_CertType = 4;
#[doc = " A SKPI cert URL"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_ISKPI: GNUNET_DNSPARSER_CertType = 5;
#[doc = " A PGP cert fingerprint and URL"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_IPGP: GNUNET_DNSPARSER_CertType = 6;
#[doc = " An attribute Certificate"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_ACPKIX: GNUNET_DNSPARSER_CertType = 7;
#[doc = " An attribute cert URL"]
pub const GNUNET_DNSPARSER_CertType_GNUNET_DNSPARSER_CERTTYPE_IACKPIX: GNUNET_DNSPARSER_CertType =
    8;
#[doc = " DNS CERT types as defined in RFC 4398."]
pub type GNUNET_DNSPARSER_CertType = ::std::os::raw::c_uint;
#[doc = " No defined"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_UNDEFINED:
    GNUNET_DNSPARSER_CertAlgorithm = 0;
#[doc = " RSA/MD5"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSAMD5:
    GNUNET_DNSPARSER_CertAlgorithm = 1;
#[doc = " Diffie-Hellman"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_DH:
    GNUNET_DNSPARSER_CertAlgorithm = 2;
#[doc = " DSA/SHA1"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_DSASHA:
    GNUNET_DNSPARSER_CertAlgorithm = 3;
#[doc = " Reserved"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSRVD4:
    GNUNET_DNSPARSER_CertAlgorithm = 4;
#[doc = " RSA/SHA1"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSASHA:
    GNUNET_DNSPARSER_CertAlgorithm = 5;
#[doc = " DSA/NSEC3/SHA"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_DSANSEC3:
    GNUNET_DNSPARSER_CertAlgorithm = 6;
#[doc = " RSA/NSEC3/SHA"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSANSEC3:
    GNUNET_DNSPARSER_CertAlgorithm = 7;
#[doc = " RSA/SHA256"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSASHA256:
    GNUNET_DNSPARSER_CertAlgorithm = 8;
#[doc = " Reserved"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSRVD9:
    GNUNET_DNSPARSER_CertAlgorithm = 9;
#[doc = " RSA/SHA512"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_RSASHA512:
    GNUNET_DNSPARSER_CertAlgorithm = 10;
#[doc = " GHOST R 34.10-2001"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_GOST_R34:
    GNUNET_DNSPARSER_CertAlgorithm = 12;
#[doc = " ECDSA Curve P-256/SHA256"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_ECDSA_P256SHA256:
    GNUNET_DNSPARSER_CertAlgorithm = 13;
#[doc = " ECDSA Curve P-384/SHA384"]
pub const GNUNET_DNSPARSER_CertAlgorithm_GNUNET_DNSPARSER_CERTALGO_ECDSA_P384SHA384:
    GNUNET_DNSPARSER_CertAlgorithm = 14;
#[doc = " DNSCERT algorithms as defined in http://www.iana.org/assignments/"]
#[doc = "  dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml, under dns-sec-alg-numbers-1"]
pub type GNUNET_DNSPARSER_CertAlgorithm = ::std::os::raw::c_uint;
#[doc = " Information from CERT records (RFC 4034)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_CertRecord {
    #[doc = " Certificate type"]
    pub cert_type: GNUNET_DNSPARSER_CertType,
    #[doc = " Certificate KeyTag"]
    pub cert_tag: u16,
    #[doc = " Algorithm"]
    pub algorithm: GNUNET_DNSPARSER_CertAlgorithm,
    #[doc = " Number of bytes in @e certificate_data"]
    pub certificate_size: usize,
    #[doc = " Data of the certificate."]
    pub certificate_data: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_CertRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_CertRecord>(),
        32usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_CertRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_CertRecord>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_CertRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CertRecord>())).cert_type as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CertRecord),
            "::",
            stringify!(cert_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CertRecord>())).cert_tag as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CertRecord),
            "::",
            stringify!(cert_tag)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CertRecord>())).algorithm as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CertRecord),
            "::",
            stringify!(algorithm)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CertRecord>())).certificate_size as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CertRecord),
            "::",
            stringify!(certificate_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CertRecord>())).certificate_data as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CertRecord),
            "::",
            stringify!(certificate_data)
        )
    );
}
#[doc = " Information from SOA records (RFC 1035)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_SoaRecord {
    #[doc = " The domainname of the name server that was the"]
    #[doc = " original or primary source of data for this zone."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub mname: *mut ::std::os::raw::c_char,
    #[doc = " A domainname which specifies the mailbox of the"]
    #[doc = " person responsible for this zone."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub rname: *mut ::std::os::raw::c_char,
    #[doc = " The version number of the original copy of the zone."]
    pub serial: u32,
    #[doc = " Time interval before the zone should be refreshed."]
    pub refresh: u32,
    #[doc = " Time interval that should elapse before a failed refresh should"]
    #[doc = " be retried."]
    pub retry: u32,
    #[doc = " Time value that specifies the upper limit on the time interval"]
    #[doc = " that can elapse before the zone is no longer authoritative."]
    pub expire: u32,
    #[doc = " The bit minimum TTL field that should be exported with any RR"]
    #[doc = " from this zone."]
    pub minimum_ttl: u32,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_SoaRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_SoaRecord>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_SoaRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_SoaRecord>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_SoaRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).mname as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(mname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).rname as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(rname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).serial as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(serial)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).refresh as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(refresh)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).retry as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(retry)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).expire as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(expire)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_SoaRecord>())).minimum_ttl as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_SoaRecord),
            "::",
            stringify!(minimum_ttl)
        )
    );
}
#[doc = " Information from CAA records (RFC 6844)."]
#[doc = " The tag is followed by the tag_len."]
#[doc = " The value is followed by the tag for (d - tag_len - 2) bytes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_CaaRecord {
    #[doc = " The flags of the CAA record."]
    pub flags: u8,
    #[doc = " The length of the tag."]
    pub tag_len: u8,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_CaaRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_CaaRecord>(),
        2usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_CaaRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_CaaRecord>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_CaaRecord))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CaaRecord>())).flags as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CaaRecord),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_CaaRecord>())).tag_len as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_CaaRecord),
            "::",
            stringify!(tag_len)
        )
    );
}
#[doc = " Binary record information (unparsed)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_RawRecord {
    #[doc = " Binary record data."]
    pub data: *mut ::std::os::raw::c_void,
    #[doc = " Number of bytes in data."]
    pub data_len: usize,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_RawRecord() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_RawRecord>(),
        16usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_RawRecord))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_RawRecord>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_RawRecord))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_RawRecord>())).data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_RawRecord),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_RawRecord>())).data_len as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_RawRecord),
            "::",
            stringify!(data_len)
        )
    );
}
#[doc = " A DNS response record."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_DNSPARSER_Record {
    #[doc = " Name of the record that the query is for (0-terminated)."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub name: *mut ::std::os::raw::c_char,
    pub data: GNUNET_DNSPARSER_Record__bindgen_ty_1,
    #[doc = " When does the record expire?"]
    pub expiration_time: GNUNET_TIME_Absolute,
    #[doc = " See GNUNET_DNSPARSER_TYPE_*."]
    pub type_: u16,
    #[doc = " See GNUNET_TUN_DNS_CLASS_*."]
    pub dns_traffic_class: u16,
}
#[doc = " Payload of the record (which one of these is valid depends on the 'type')."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union GNUNET_DNSPARSER_Record__bindgen_ty_1 {
    #[doc = " For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname."]
    #[doc = " In UTF-8 format.  The library will convert from and to DNS-IDNA"]
    #[doc = " as necessary.  Use #GNUNET_DNSPARSER_check_label() to test if an"]
    #[doc = " individual label is well-formed.  If a given name is not well-formed,"]
    #[doc = " creating the DNS packet will fail."]
    pub hostname: *mut ::std::os::raw::c_char,
    #[doc = " SOA data for SOA records."]
    pub soa: *mut GNUNET_DNSPARSER_SoaRecord,
    #[doc = " CERT data for CERT records."]
    pub cert: *mut GNUNET_DNSPARSER_CertRecord,
    #[doc = " MX data for MX records."]
    pub mx: *mut GNUNET_DNSPARSER_MxRecord,
    #[doc = " SRV data for SRV records."]
    pub srv: *mut GNUNET_DNSPARSER_SrvRecord,
    #[doc = " Raw data for all other types."]
    pub raw: GNUNET_DNSPARSER_RawRecord,
    _bindgen_union_align: [u64; 2usize],
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_Record__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_Record__bindgen_ty_1>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_Record__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).hostname as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(hostname)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).soa as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(soa)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).cert as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(cert)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).mx as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(mx)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).srv as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(srv)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record__bindgen_ty_1>())).raw as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record__bindgen_ty_1),
            "::",
            stringify!(raw)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_Record() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_Record>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_Record))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_Record>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_Record))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record>())).data as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record>())).expiration_time as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record),
            "::",
            stringify!(expiration_time)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record>())).type_ as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Record>())).dns_traffic_class as *const _
                as usize
        },
        34usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Record),
            "::",
            stringify!(dns_traffic_class)
        )
    );
}
#[doc = " Easy-to-process, parsed version of a DNS packet."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_DNSPARSER_Packet {
    #[doc = " Array of all queries in the packet, must contain \"num_queries\" entries."]
    pub queries: *mut GNUNET_DNSPARSER_Query,
    #[doc = " Array of all answers in the packet, must contain \"num_answers\" entries."]
    pub answers: *mut GNUNET_DNSPARSER_Record,
    #[doc = " Array of all authority records in the packet, must contain \"num_authority_records\" entries."]
    pub authority_records: *mut GNUNET_DNSPARSER_Record,
    #[doc = " Array of all additional answers in the packet, must contain \"num_additional_records\" entries."]
    pub additional_records: *mut GNUNET_DNSPARSER_Record,
    #[doc = " Number of queries in the packet."]
    pub num_queries: ::std::os::raw::c_uint,
    #[doc = " Number of answers in the packet, should be 0 for queries."]
    pub num_answers: ::std::os::raw::c_uint,
    #[doc = " Number of authoritative answers in the packet, should be 0 for queries."]
    pub num_authority_records: ::std::os::raw::c_uint,
    #[doc = " Number of additional records in the packet, should be 0 for queries."]
    pub num_additional_records: ::std::os::raw::c_uint,
    #[doc = " Bitfield of DNS flags."]
    pub flags: GNUNET_TUN_DnsFlags,
    #[doc = " DNS ID (to match replies to requests)."]
    pub id: u16,
}
#[test]
fn bindgen_test_layout_GNUNET_DNSPARSER_Packet() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_DNSPARSER_Packet>(),
        56usize,
        concat!("Size of: ", stringify!(GNUNET_DNSPARSER_Packet))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_DNSPARSER_Packet>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_DNSPARSER_Packet))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).queries as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(queries)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).answers as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(answers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).authority_records as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(authority_records)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).additional_records as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(additional_records)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).num_queries as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(num_queries)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).num_answers as *const _ as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(num_answers)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).num_authority_records as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(num_authority_records)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).num_additional_records as *const _
                as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(num_additional_records)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).flags as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_DNSPARSER_Packet>())).id as *const _ as usize },
        50usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_DNSPARSER_Packet),
            "::",
            stringify!(id)
        )
    );
}
extern "C" {
    #[doc = " Check if a label in UTF-8 format can be coded into valid IDNA."]
    #[doc = " This can fail if the ASCII-conversion becomes longer than 63 characters."]
    #[doc = ""]
    #[doc = " @param label label to check (UTF-8 string)"]
    #[doc = " @return #GNUNET_OK if the label can be converted to IDNA,"]
    #[doc = "         #GNUNET_SYSERR if the label is not valid for DNS names"]
    pub fn GNUNET_DNSPARSER_check_label(
        label: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check if a hostname in UTF-8 format can be coded into valid IDNA."]
    #[doc = " This can fail if a label becomes longer than 63 characters or if"]
    #[doc = " the entire name exceeds 253 characters."]
    #[doc = ""]
    #[doc = " @param name name to check (UTF-8 string)"]
    #[doc = " @return #GNUNET_OK if the label can be converted to IDNA,"]
    #[doc = "         #GNUNET_SYSERR if the label is not valid for DNS names"]
    pub fn GNUNET_DNSPARSER_check_name(
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parse a UDP payload of a DNS packet in to a nice struct for further"]
    #[doc = " processing and manipulation."]
    #[doc = ""]
    #[doc = " @param udp_payload wire-format of the DNS packet"]
    #[doc = " @param udp_payload_length number of bytes in @a udp_payload"]
    #[doc = " @return NULL on error, otherwise the parsed packet"]
    pub fn GNUNET_DNSPARSER_parse(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
    ) -> *mut GNUNET_DNSPARSER_Packet;
}
extern "C" {
    #[doc = " Free memory taken by a packet."]
    #[doc = ""]
    #[doc = " @param p packet to free"]
    pub fn GNUNET_DNSPARSER_free_packet(p: *mut GNUNET_DNSPARSER_Packet);
}
extern "C" {
    #[doc = " Given a DNS packet @a p, generate the corresponding UDP payload."]
    #[doc = " Note that we do not attempt to pack the strings with pointers"]
    #[doc = " as this would complicate the code and this is about being"]
    #[doc = " simple and secure, not fast, fancy and broken like bind."]
    #[doc = ""]
    #[doc = " @param p packet to pack"]
    #[doc = " @param max maximum allowed size for the resulting UDP payload"]
    #[doc = " @param buf set to a buffer with the packed message"]
    #[doc = " @param buf_length set to the length of @a buf"]
    #[doc = " @return #GNUNET_SYSERR if @a p is invalid"]
    #[doc = "         #GNUNET_NO if @a p was truncated (but there is still a result in @a buf)"]
    #[doc = "         #GNUNET_OK if @a p was packed completely into @a buf"]
    pub fn GNUNET_DNSPARSER_pack(
        p: *const GNUNET_DNSPARSER_Packet,
        max: u16,
        buf: *mut *mut ::std::os::raw::c_char,
        buf_length: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add a DNS name to the UDP packet at the given location, converting"]
    #[doc = " the name to IDNA notation as necessary."]
    #[doc = ""]
    #[doc = " @param dst where to write the name (UDP packet)"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the name (increment by bytes used)"]
    #[doc = "            must not be changed if there is an error"]
    #[doc = " @param name name to write"]
    #[doc = " @return #GNUNET_SYSERR if @a name is invalid"]
    #[doc = "         #GNUNET_NO if @a name did not fit"]
    #[doc = "         #GNUNET_OK if @a name was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_name(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add a DNS query to the UDP packet at the given location."]
    #[doc = ""]
    #[doc = " @param dst where to write the query"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the query (increment by bytes used)"]
    #[doc = "            must not be changed if there is an error"]
    #[doc = " @param query query to write"]
    #[doc = " @return #GNUNET_SYSERR if @a query is invalid"]
    #[doc = "         #GNUNET_NO if @a query did not fit"]
    #[doc = "         #GNUNET_OK if @a query was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_query(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        query: *const GNUNET_DNSPARSER_Query,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add an MX record to the UDP packet at the given location."]
    #[doc = ""]
    #[doc = " @param dst where to write the mx record"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the mx information (increment by bytes used);"]
    #[doc = "            can also change if there was an error"]
    #[doc = " @param mx mx information to write"]
    #[doc = " @return #GNUNET_SYSERR if @a mx is invalid"]
    #[doc = "         #GNUNET_NO if @a mx did not fit"]
    #[doc = "         #GNUNET_OK if @a mx was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_mx(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        mx: *const GNUNET_DNSPARSER_MxRecord,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add an SOA record to the UDP packet at the given location."]
    #[doc = ""]
    #[doc = " @param dst where to write the SOA record"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the SOA information (increment by bytes used)"]
    #[doc = "            can also change if there was an error"]
    #[doc = " @param soa SOA information to write"]
    #[doc = " @return #GNUNET_SYSERR if @a soa is invalid"]
    #[doc = "         #GNUNET_NO if @a soa did not fit"]
    #[doc = "         #GNUNET_OK if @a soa was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_soa(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        soa: *const GNUNET_DNSPARSER_SoaRecord,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add CERT record to the UDP packet at the given location."]
    #[doc = ""]
    #[doc = " @param dst where to write the CERT record"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the CERT information (increment by bytes used)"]
    #[doc = "            can also change if there was an error"]
    #[doc = " @param cert CERT information to write"]
    #[doc = " @return #GNUNET_SYSERR if @a soa is invalid"]
    #[doc = "         #GNUNET_NO if @a soa did not fit"]
    #[doc = "         #GNUNET_OK if @a soa was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_cert(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        cert: *const GNUNET_DNSPARSER_CertRecord,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add an SRV record to the UDP packet at the given location."]
    #[doc = ""]
    #[doc = " @param dst where to write the SRV record"]
    #[doc = " @param dst_len number of bytes in @a dst"]
    #[doc = " @param off pointer to offset where to write the SRV information (increment by bytes used)"]
    #[doc = "            can also change if there was an error"]
    #[doc = " @param srv SRV information to write"]
    #[doc = " @return #GNUNET_SYSERR if @a srv is invalid"]
    #[doc = "         #GNUNET_NO if @a srv did not fit"]
    #[doc = "         #GNUNET_OK if @a srv was added to @a dst"]
    pub fn GNUNET_DNSPARSER_builder_add_srv(
        dst: *mut ::std::os::raw::c_char,
        dst_len: usize,
        off: *mut usize,
        srv: *const GNUNET_DNSPARSER_SrvRecord,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parse a DNS record entry."]
    #[doc = ""]
    #[doc = " @param udp_payload entire UDP payload"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the record to parse in the udp_payload (to be"]
    #[doc = "                    incremented by the size of the record)"]
    #[doc = " @param r where to write the record information"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if the record is malformed"]
    pub fn GNUNET_DNSPARSER_parse_record(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
        r: *mut GNUNET_DNSPARSER_Record,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parse name inside of a DNS query or record."]
    #[doc = ""]
    #[doc = " @param udp_payload entire UDP payload"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the name to parse in the udp_payload (to be"]
    #[doc = "                    incremented by the size of the name)"]
    #[doc = " @return name as 0-terminated C string on success, NULL if the payload is malformed"]
    pub fn GNUNET_DNSPARSER_parse_name(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Parse a DNS query entry."]
    #[doc = ""]
    #[doc = " @param udp_payload entire UDP payload"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the query to parse in the udp_payload (to be"]
    #[doc = "                    incremented by the size of the query)"]
    #[doc = " @param q where to write the query information"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if the query is malformed"]
    pub fn GNUNET_DNSPARSER_parse_query(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
        q: *mut GNUNET_DNSPARSER_Query,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parse a DNS SOA record."]
    #[doc = ""]
    #[doc = " @param udp_payload reference to UDP packet"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the query to parse in the SOA record (to be"]
    #[doc = "                    incremented by the size of the record), unchanged on error"]
    #[doc = " @return the parsed SOA record, NULL on error"]
    pub fn GNUNET_DNSPARSER_parse_soa(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
    ) -> *mut GNUNET_DNSPARSER_SoaRecord;
}
extern "C" {
    #[doc = " Parse a DNS CERT record."]
    #[doc = ""]
    #[doc = " @param udp_payload reference to UDP packet"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the query to parse in the CERT record (to be"]
    #[doc = "                    incremented by the size of the record), unchanged on error"]
    #[doc = " @return the parsed CERT record, NULL on error"]
    pub fn GNUNET_DNSPARSER_parse_cert(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
    ) -> *mut GNUNET_DNSPARSER_CertRecord;
}
extern "C" {
    #[doc = " Parse a DNS MX record."]
    #[doc = ""]
    #[doc = " @param udp_payload reference to UDP packet"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the query to parse in the MX record (to be"]
    #[doc = "                    incremented by the size of the record), unchanged on error"]
    #[doc = " @return the parsed MX record, NULL on error"]
    pub fn GNUNET_DNSPARSER_parse_mx(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
    ) -> *mut GNUNET_DNSPARSER_MxRecord;
}
extern "C" {
    #[doc = " Parse a DNS SRV record."]
    #[doc = ""]
    #[doc = " @param udp_payload reference to UDP packet"]
    #[doc = " @param udp_payload_length length of @a udp_payload"]
    #[doc = " @param off pointer to the offset of the query to parse in the SRV record (to be"]
    #[doc = "                    incremented by the size of the record), unchanged on error"]
    #[doc = " @return the parsed SRV record, NULL on error"]
    pub fn GNUNET_DNSPARSER_parse_srv(
        udp_payload: *const ::std::os::raw::c_char,
        udp_payload_length: usize,
        off: *mut usize,
    ) -> *mut GNUNET_DNSPARSER_SrvRecord;
}
extern "C" {
    #[doc = " Duplicate (deep-copy) the given DNS record"]
    #[doc = ""]
    #[doc = " @param r the record"]
    #[doc = " @return the newly allocated record"]
    pub fn GNUNET_DNSPARSER_duplicate_record(
        r: *const GNUNET_DNSPARSER_Record,
    ) -> *mut GNUNET_DNSPARSER_Record;
}
extern "C" {
    #[doc = " Duplicate (deep-copy) the given DNS record"]
    #[doc = ""]
    #[doc = " @param r the record"]
    #[doc = " @return the newly allocated record"]
    pub fn GNUNET_DNSPARSER_duplicate_soa_record(
        r: *const GNUNET_DNSPARSER_SoaRecord,
    ) -> *mut GNUNET_DNSPARSER_SoaRecord;
}
extern "C" {
    #[doc = " Duplicate (deep-copy) the given DNS record"]
    #[doc = ""]
    #[doc = " @param r the record"]
    #[doc = " @return the newly allocated record"]
    pub fn GNUNET_DNSPARSER_duplicate_cert_record(
        r: *const GNUNET_DNSPARSER_CertRecord,
    ) -> *mut GNUNET_DNSPARSER_CertRecord;
}
extern "C" {
    #[doc = " Duplicate (deep-copy) the given DNS record"]
    #[doc = ""]
    #[doc = " @param r the record"]
    #[doc = " @return the newly allocated record"]
    pub fn GNUNET_DNSPARSER_duplicate_mx_record(
        r: *const GNUNET_DNSPARSER_MxRecord,
    ) -> *mut GNUNET_DNSPARSER_MxRecord;
}
extern "C" {
    #[doc = " Duplicate (deep-copy) the given DNS record"]
    #[doc = ""]
    #[doc = " @param r the record"]
    #[doc = " @return the newly allocated record"]
    pub fn GNUNET_DNSPARSER_duplicate_srv_record(
        r: *const GNUNET_DNSPARSER_SrvRecord,
    ) -> *mut GNUNET_DNSPARSER_SrvRecord;
}
extern "C" {
    #[doc = " Free the given DNS record."]
    #[doc = ""]
    #[doc = " @param r record to free"]
    pub fn GNUNET_DNSPARSER_free_record(r: *mut GNUNET_DNSPARSER_Record);
}
extern "C" {
    #[doc = " Free MX information record."]
    #[doc = ""]
    #[doc = " @param mx record to free"]
    pub fn GNUNET_DNSPARSER_free_mx(mx: *mut GNUNET_DNSPARSER_MxRecord);
}
extern "C" {
    #[doc = " Free SRV information record."]
    #[doc = ""]
    #[doc = " @param srv record to free"]
    pub fn GNUNET_DNSPARSER_free_srv(srv: *mut GNUNET_DNSPARSER_SrvRecord);
}
extern "C" {
    #[doc = " Free SOA information record."]
    #[doc = ""]
    #[doc = " @param soa record to free"]
    pub fn GNUNET_DNSPARSER_free_soa(soa: *mut GNUNET_DNSPARSER_SoaRecord);
}
extern "C" {
    #[doc = " Free CERT information record."]
    #[doc = ""]
    #[doc = " @param cert record to free"]
    pub fn GNUNET_DNSPARSER_free_cert(cert: *mut GNUNET_DNSPARSER_CertRecord);
}
extern "C" {
    #[doc = " Convert a block of binary data to HEX."]
    #[doc = ""]
    #[doc = " @param data binary data to convert"]
    #[doc = " @param data_size number of bytes in @a data"]
    #[doc = " @return HEX string (lower case)"]
    pub fn GNUNET_DNSPARSER_bin_to_hex(
        data: *const ::std::os::raw::c_void,
        data_size: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Convert a HEX string to block of binary data."]
    #[doc = ""]
    #[doc = " @param hex HEX string to convert (may contain mixed case)"]
    #[doc = " @param data where to write result, must be"]
    #[doc = "             at least `strlen(hex)/2` bytes long"]
    #[doc = " @return number of bytes written to data"]
    pub fn GNUNET_DNSPARSER_hex_to_bin(
        hex: *const ::std::os::raw::c_char,
        data: *mut ::std::os::raw::c_void,
    ) -> usize;
}
#[doc = " No additional information"]
pub const GNUNET_HELLO_AddressInfo_GNUNET_HELLO_ADDRESS_INFO_NONE: GNUNET_HELLO_AddressInfo = 0;
#[doc = " This is an inbound address and cannot be used to initiate an outbound"]
#[doc = " connection to another peer"]
pub const GNUNET_HELLO_AddressInfo_GNUNET_HELLO_ADDRESS_INFO_INBOUND: GNUNET_HELLO_AddressInfo = 1;
#[doc = " Additional local information about an address"]
#[doc = ""]
#[doc = " These information are only valid for the local peer and are not serialized"]
#[doc = " when a #GNUNET_HELLO_Message is created"]
pub type GNUNET_HELLO_AddressInfo = ::std::os::raw::c_uint;
#[doc = " An address for communicating with a peer.  We frequently"]
#[doc = " need this tuple and the components cannot really be"]
#[doc = " separated.  This is NOT the format that would be used"]
#[doc = " on the wire."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HELLO_Address {
    #[doc = " For which peer is this an address?"]
    pub peer: GNUNET_PeerIdentity,
    #[doc = " Name of the transport plugin enabling the communication using"]
    #[doc = " this address."]
    pub transport_name: *const ::std::os::raw::c_char,
    #[doc = " Binary representation of the address (plugin-specific)."]
    pub address: *const ::std::os::raw::c_void,
    #[doc = " Number of bytes in @e address."]
    pub address_length: usize,
    #[doc = " Extended information about address"]
    #[doc = ""]
    #[doc = " This field contains additional #GNUNET_HELLO_AddressInfo flags e.g."]
    #[doc = " to indicate an address is inbound and cannot be used to initiate an"]
    #[doc = " outbound connection."]
    #[doc = ""]
    #[doc = " These information are only valid for the local peer and are not serialized"]
    #[doc = " when a #GNUNET_HELLO_Message is created"]
    pub local_info: GNUNET_HELLO_AddressInfo,
}
#[test]
fn bindgen_test_layout_GNUNET_HELLO_Address() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_HELLO_Address>(),
        64usize,
        concat!("Size of: ", stringify!(GNUNET_HELLO_Address))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_HELLO_Address>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_HELLO_Address))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HELLO_Address>())).peer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Address),
            "::",
            stringify!(peer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_HELLO_Address>())).transport_name as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Address),
            "::",
            stringify!(transport_name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HELLO_Address>())).address as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Address),
            "::",
            stringify!(address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_HELLO_Address>())).address_length as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Address),
            "::",
            stringify!(address_length)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HELLO_Address>())).local_info as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Address),
            "::",
            stringify!(local_info)
        )
    );
}
extern "C" {
    #[doc = " Allocate an address struct."]
    #[doc = ""]
    #[doc = " @param peer the peer"]
    #[doc = " @param transport_name plugin name"]
    #[doc = " @param address binary address"]
    #[doc = " @param address_length number of bytes in @a address"]
    #[doc = " @param local_info additional local information for the address"]
    #[doc = " @return the address struct"]
    pub fn GNUNET_HELLO_address_allocate(
        peer: *const GNUNET_PeerIdentity,
        transport_name: *const ::std::os::raw::c_char,
        address: *const ::std::os::raw::c_void,
        address_length: usize,
        local_info: GNUNET_HELLO_AddressInfo,
    ) -> *mut GNUNET_HELLO_Address;
}
extern "C" {
    #[doc = " Copy an address struct."]
    #[doc = ""]
    #[doc = " @param address address to copy"]
    #[doc = " @return a copy of the address struct"]
    pub fn GNUNET_HELLO_address_copy(
        address: *const GNUNET_HELLO_Address,
    ) -> *mut GNUNET_HELLO_Address;
}
extern "C" {
    #[doc = " Compare two addresses.  Does NOT compare the peer identity,"]
    #[doc = " that is assumed already to match!"]
    #[doc = ""]
    #[doc = " @param a1 first address"]
    #[doc = " @param a2 second address"]
    #[doc = " @return 0 if the addresses are equal, -1 if @a a1< @a a2, 1 if @a a1> @a a2."]
    pub fn GNUNET_HELLO_address_cmp(
        a1: *const GNUNET_HELLO_Address,
        a2: *const GNUNET_HELLO_Address,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get the size of an address struct."]
    #[doc = ""]
    #[doc = " @param address address"]
    #[doc = " @return the size"]
    pub fn GNUNET_HELLO_address_get_size(address: *const GNUNET_HELLO_Address) -> usize;
}
extern "C" {
    #[doc = " Check if an address has a local option set"]
    #[doc = ""]
    #[doc = " @param address the address to check"]
    #[doc = " @param option the respective option to check for"]
    #[doc = " @return #GNUNET_YES or #GNUNET_NO"]
    pub fn GNUNET_HELLO_address_check_option(
        address: *const GNUNET_HELLO_Address,
        option: GNUNET_HELLO_AddressInfo,
    ) -> ::std::os::raw::c_int;
}
#[doc = " A HELLO message is used to exchange information about"]
#[doc = " transports with other peers.  This struct is always"]
#[doc = " followed by the actual network addresses which have"]
#[doc = " the format:"]
#[doc = ""]
#[doc = " 1) transport-name (0-terminated)"]
#[doc = " 2) address-length (uint16_t, network byte order; possibly"]
#[doc = "    unaligned!)"]
#[doc = " 3) address expiration (`struct GNUNET_TIME_AbsoluteNBO`); possibly"]
#[doc = "    unaligned!)"]
#[doc = " 4) address (address-length bytes; possibly unaligned!)"]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_HELLO_Message {
    #[doc = " Type will be #GNUNET_MESSAGE_TYPE_HELLO."]
    pub header: GNUNET_MessageHeader,
    #[doc = " Use in F2F mode: Do not gossip this HELLO message"]
    pub friend_only: u32,
    #[doc = " The public key of the peer."]
    pub publicKey: GNUNET_CRYPTO_EddsaPublicKey,
}
#[test]
fn bindgen_test_layout_GNUNET_HELLO_Message() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_HELLO_Message>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_HELLO_Message))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_HELLO_Message>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_HELLO_Message))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HELLO_Message>())).header as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Message),
            "::",
            stringify!(header)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_HELLO_Message>())).friend_only as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Message),
            "::",
            stringify!(friend_only)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_HELLO_Message>())).publicKey as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_HELLO_Message),
            "::",
            stringify!(publicKey)
        )
    );
}
extern "C" {
    #[doc = " Return HELLO type"]
    #[doc = ""]
    #[doc = " @param h HELLO Message to test"]
    #[doc = " @return #GNUNET_YES for friend-only or #GNUNET_NO otherwise"]
    pub fn GNUNET_HELLO_is_friend_only(h: *const GNUNET_HELLO_Message) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Copy the given address information into"]
    #[doc = " the given buffer using the format of HELLOs."]
    #[doc = ""]
    #[doc = " @param address address to add"]
    #[doc = " @param expiration expiration for the address"]
    #[doc = " @param target where to copy the address"]
    #[doc = " @param max maximum number of bytes to copy to @a target"]
    #[doc = " @return number of bytes copied, 0 if"]
    #[doc = "         the target buffer was not big enough."]
    pub fn GNUNET_HELLO_add_address(
        address: *const GNUNET_HELLO_Address,
        expiration: GNUNET_TIME_Absolute,
        target: *mut ::std::os::raw::c_char,
        max: usize,
    ) -> usize;
}
#[doc = " Callback function used to fill a buffer of max bytes with a list of"]
#[doc = " addresses in the format used by HELLOs.  Should use"]
#[doc = " #GNUNET_HELLO_add_address() as a helper function."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param max maximum number of bytes that can be written to @a buf"]
#[doc = " @param buf where to write the address information"]
#[doc = " @return number of bytes written or 0, #GNUNET_SYSERR to signal the"]
#[doc = "         end of the iteration."]
pub type GNUNET_HELLO_GenerateAddressListCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        max: usize,
        buf: *mut ::std::os::raw::c_void,
    ) -> isize,
>;
extern "C" {
    #[doc = " Construct a HELLO message given the public key,"]
    #[doc = " expiration time and an iterator that spews the"]
    #[doc = " transport addresses."]
    #[doc = ""]
    #[doc = " If friend only is set to #GNUNET_YES we create a FRIEND_HELLO which"]
    #[doc = " will not be gossiped to other peers."]
    #[doc = ""]
    #[doc = " @param public_key public key to include in the HELLO"]
    #[doc = " @param addrgen callback to invoke to get addresses"]
    #[doc = " @param addrgen_cls closure for @a addrgen"]
    #[doc = " @param friend_only should the returned HELLO be only visible to friends?"]
    #[doc = " @return the hello message"]
    pub fn GNUNET_HELLO_create(
        public_key: *const GNUNET_CRYPTO_EddsaPublicKey,
        addrgen: GNUNET_HELLO_GenerateAddressListCallback,
        addrgen_cls: *mut ::std::os::raw::c_void,
        friend_only: ::std::os::raw::c_int,
    ) -> *mut GNUNET_HELLO_Message;
}
extern "C" {
    #[doc = " Return the size of the given HELLO message."]
    #[doc = ""]
    #[doc = " @param hello to inspect"]
    #[doc = " @return the size, 0 if HELLO is invalid"]
    pub fn GNUNET_HELLO_size(hello: *const GNUNET_HELLO_Message) -> u16;
}
extern "C" {
    #[doc = " Construct a HELLO message by merging the"]
    #[doc = " addresses in two existing HELLOs (which"]
    #[doc = " must be for the same peer)."]
    #[doc = ""]
    #[doc = " @param h1 first HELLO message"]
    #[doc = " @param h2 the second HELLO message"]
    #[doc = " @return the combined hello message"]
    pub fn GNUNET_HELLO_merge(
        h1: *const GNUNET_HELLO_Message,
        h2: *const GNUNET_HELLO_Message,
    ) -> *mut GNUNET_HELLO_Message;
}
extern "C" {
    #[doc = " Test if two HELLO messages contain the same addresses."]
    #[doc = " If they only differ in expiration time, the lowest"]
    #[doc = " expiration time larger than 'now' where they differ"]
    #[doc = " is returned."]
    #[doc = ""]
    #[doc = " @param h1 first HELLO message"]
    #[doc = " @param h2 the second HELLO message"]
    #[doc = " @param now time to use for deciding which addresses have"]
    #[doc = "            expired and should not be considered at all"]
    #[doc = " @return absolute time forever if the two HELLOs are"]
    #[doc = "         totally identical; smallest timestamp >= now if"]
    #[doc = "         they only differ in timestamps;"]
    #[doc = "         zero if the some addresses with expirations >= now"]
    #[doc = "         do not match at all"]
    pub fn GNUNET_HELLO_equals(
        h1: *const GNUNET_HELLO_Message,
        h2: *const GNUNET_HELLO_Message,
        now: GNUNET_TIME_Absolute,
    ) -> GNUNET_TIME_Absolute;
}
#[doc = " Iterator callback to go over all addresses."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param address the address"]
#[doc = " @param expiration expiration time"]
#[doc = " @return #GNUNET_OK to keep the address,"]
#[doc = "         #GNUNET_NO to delete it from the HELLO"]
#[doc = "         #GNUNET_SYSERR to stop iterating (but keep current address)"]
pub type GNUNET_HELLO_AddressIterator = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        address: *const GNUNET_HELLO_Address,
        expiration: GNUNET_TIME_Absolute,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " When does the last address in the given HELLO expire?"]
    #[doc = ""]
    #[doc = " @param msg HELLO to inspect"]
    #[doc = " @return time the last address expires, 0 if there are no addresses in the HELLO"]
    pub fn GNUNET_HELLO_get_last_expiration(
        msg: *const GNUNET_HELLO_Message,
    ) -> GNUNET_TIME_Absolute;
}
extern "C" {
    #[doc = " Iterate over all of the addresses in the HELLO."]
    #[doc = ""]
    #[doc = " @param msg HELLO to iterate over; client does not need to"]
    #[doc = "        have verified that msg is well-formed (beyond starting"]
    #[doc = "        with a GNUNET_MessageHeader of the right type)."]
    #[doc = " @param return_modified if a modified copy should be returned,"]
    #[doc = "         otherwise NULL will be returned"]
    #[doc = " @param it iterator to call on each address"]
    #[doc = " @param it_cls closure for @a it"]
    #[doc = " @return the modified HELLO or NULL"]
    pub fn GNUNET_HELLO_iterate_addresses(
        msg: *const GNUNET_HELLO_Message,
        return_modified: ::std::os::raw::c_int,
        it: GNUNET_HELLO_AddressIterator,
        it_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_HELLO_Message;
}
extern "C" {
    #[doc = " Iterate over addresses in @a new_hello that are NOT already present"]
    #[doc = " in @a old_hello. Note that if the address is present in @a old_hello"]
    #[doc = " but the expiration time in @a new_hello is more recent, the"]
    #[doc = " iterator is also called."]
    #[doc = ""]
    #[doc = " @param new_hello a HELLO message"]
    #[doc = " @param old_hello a HELLO message"]
    #[doc = " @param expiration_limit ignore addresses in old_hello"]
    #[doc = "        that expired before the given time stamp"]
    #[doc = " @param it iterator to call on each address"]
    #[doc = " @param it_cls closure for @a it"]
    pub fn GNUNET_HELLO_iterate_new_addresses(
        new_hello: *const GNUNET_HELLO_Message,
        old_hello: *const GNUNET_HELLO_Message,
        expiration_limit: GNUNET_TIME_Absolute,
        it: GNUNET_HELLO_AddressIterator,
        it_cls: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Get the peer identity from a HELLO message."]
    #[doc = ""]
    #[doc = " @param hello the hello message"]
    #[doc = " @param peer where to store the peer's identity"]
    #[doc = " @return #GNUNET_SYSERR if the HELLO was malformed"]
    pub fn GNUNET_HELLO_get_id(
        hello: *const GNUNET_HELLO_Message,
        peer: *mut GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get the header from a HELLO message, used so other code"]
    #[doc = " can correctly send HELLO messages."]
    #[doc = ""]
    #[doc = " @param hello the hello message"]
    #[doc = ""]
    #[doc = " @return header or NULL if the HELLO was malformed"]
    pub fn GNUNET_HELLO_get_header(hello: *mut GNUNET_HELLO_Message) -> *mut GNUNET_MessageHeader;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_PluginFunctions {
    _unused: [u8; 0],
}
#[doc = " Helper function to load/access transport plugins."]
#[doc = " FIXME: pass closure!"]
#[doc = ""]
#[doc = " @param name name of the transport plugin to load"]
#[doc = " @return NULL if a plugin with name @a name is not known/loadable"]
pub type GNUNET_HELLO_TransportPluginsFind = ::std::option::Option<
    unsafe extern "C" fn(
        name: *const ::std::os::raw::c_char,
    ) -> *mut GNUNET_TRANSPORT_PluginFunctions,
>;
extern "C" {
    #[doc = " Compose a hello URI string from a hello message."]
    #[doc = ""]
    #[doc = " @param hello Hello message"]
    #[doc = " @param plugins_find Function to find transport plugins by name"]
    #[doc = " @return Hello URI string"]
    pub fn GNUNET_HELLO_compose_uri(
        hello: *const GNUNET_HELLO_Message,
        plugins_find: GNUNET_HELLO_TransportPluginsFind,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Parse a hello URI string to a hello message."]
    #[doc = ""]
    #[doc = " @param uri URI string to parse"]
    #[doc = " @param pubkey Pointer to struct where public key is parsed"]
    #[doc = " @param hello Pointer to struct where hello message is parsed"]
    #[doc = " @param plugins_find Function to find transport plugins by name"]
    #[doc = " @return #GNUNET_OK on success, #GNUNET_SYSERR if the URI was invalid, #GNUNET_NO on other errors"]
    pub fn GNUNET_HELLO_parse_uri(
        uri: *const ::std::os::raw::c_char,
        pubkey: *mut GNUNET_CRYPTO_EddsaPublicKey,
        hello: *mut *mut GNUNET_HELLO_Message,
        plugins_find: GNUNET_HELLO_TransportPluginsFind,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Category of last resort."]
pub const GNUNET_NetworkType_GNUNET_NT_UNSPECIFIED: GNUNET_NetworkType = 0;
#[doc = " Loopback (same host)."]
pub const GNUNET_NetworkType_GNUNET_NT_LOOPBACK: GNUNET_NetworkType = 1;
#[doc = " Local area network."]
pub const GNUNET_NetworkType_GNUNET_NT_LAN: GNUNET_NetworkType = 2;
#[doc = " Wide area network (i.e. Internet)"]
pub const GNUNET_NetworkType_GNUNET_NT_WAN: GNUNET_NetworkType = 3;
#[doc = " Wireless LAN (i.e. 802.11abgn)"]
pub const GNUNET_NetworkType_GNUNET_NT_WLAN: GNUNET_NetworkType = 4;
#[doc = " Bluetooth LAN"]
pub const GNUNET_NetworkType_GNUNET_NT_BT: GNUNET_NetworkType = 5;
#[doc = " Types of networks (with separate quotas) we support."]
pub type GNUNET_NetworkType = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Convert a `enum GNUNET_NetworkType` to a string"]
    #[doc = ""]
    #[doc = " @param net the network type"]
    #[doc = " @return a string or NULL if invalid"]
    pub fn GNUNET_NT_to_string(net: GNUNET_NetworkType) -> *const ::std::os::raw::c_char;
}
#[doc = " Handle for the LAN Characterization library."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_NT_InterfaceScanner {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Returns where the address is located: loopback, LAN or WANT."]
    #[doc = ""]
    #[doc = " @param is handle from #GNUNET_ATS_interface_scanner_init()"]
    #[doc = " @param addr address"]
    #[doc = " @param addrlen address length"]
    #[doc = " @return type of the network the address belongs to"]
    pub fn GNUNET_NT_scanner_get_type(
        is: *mut GNUNET_NT_InterfaceScanner,
        addr: *const sockaddr,
        addrlen: socklen_t,
    ) -> GNUNET_NetworkType;
}
extern "C" {
    #[doc = " Initialize the address characterization client handle."]
    #[doc = ""]
    #[doc = " @return scanner handle, NULL on error"]
    pub fn GNUNET_NT_scanner_init() -> *mut GNUNET_NT_InterfaceScanner;
}
extern "C" {
    #[doc = " Terminate interface scanner."]
    #[doc = ""]
    #[doc = " @param is scanner we are done with"]
    pub fn GNUNET_NT_scanner_done(is: *mut GNUNET_NT_InterfaceScanner);
}
extern "C" {
    #[doc = " Build address record by signing raw information with private key."]
    #[doc = ""]
    #[doc = " @param address text address to sign"]
    #[doc = " @param nt network type of @a address"]
    #[doc = " @param mono_time when was @a address valid"]
    #[doc = " @param private_key signing key to use"]
    #[doc = " @param result[out] where to write address record (allocated)"]
    #[doc = " @param result_size[out] set to size of @a result"]
    pub fn GNUNET_HELLO_sign_address(
        address: *const ::std::os::raw::c_char,
        nt: GNUNET_NetworkType,
        mono_time: GNUNET_TIME_Absolute,
        private_key: *const GNUNET_CRYPTO_EddsaPrivateKey,
        result: *mut *mut ::std::os::raw::c_void,
        result_size: *mut usize,
    );
}
extern "C" {
    #[doc = " Check signature and extract address record."]
    #[doc = ""]
    #[doc = " @param raw raw signed address"]
    #[doc = " @param raw_size size of @a raw"]
    #[doc = " @param pid public key to use for signature verification"]
    #[doc = " @param nt[out] set to network type"]
    #[doc = " @param mono_time[out] when was the address generated"]
    #[doc = " @return NULL on error, otherwise the address"]
    pub fn GNUNET_HELLO_extract_address(
        raw: *const ::std::os::raw::c_void,
        raw_size: usize,
        pid: *const GNUNET_PeerIdentity,
        nt: *mut GNUNET_NetworkType,
        mono_time: *mut GNUNET_TIME_Absolute,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Given an address as a string, extract the prefix that identifies"]
    #[doc = " the communicator offering transmissions to that address."]
    #[doc = ""]
    #[doc = " @param address a peer's address"]
    #[doc = " @return NULL if the address is mal-formed, otherwise the prefix"]
    pub fn GNUNET_HELLO_address_to_prefix(
        address: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
#[doc = " ATS performance characteristics for an address."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_Properties {
    #[doc = " Delay.  Time between when the time packet is sent and the packet"]
    #[doc = " arrives.  FOREVER if we did not measure yet."]
    pub delay: GNUNET_TIME_Relative,
    #[doc = " Actual traffic on this connection from this peer to the other peer."]
    #[doc = " Includes transport overhead."]
    #[doc = ""]
    #[doc = " Unit: [bytes/second]"]
    pub utilization_out: u32,
    #[doc = " Actual traffic on this connection from the other peer to this peer."]
    #[doc = " Includes transport overhead."]
    #[doc = ""]
    #[doc = " Unit: [bytes/second]"]
    pub utilization_in: u32,
    #[doc = " Distance on network layer (required for distance-vector routing)"]
    #[doc = " in hops.  Zero for direct connections (i.e. plain TCP/UDP)."]
    pub distance: ::std::os::raw::c_uint,
    #[doc = " Which network scope does the respective address belong to?"]
    #[doc = " This property does not change."]
    pub scope: GNUNET_NetworkType,
}
#[test]
fn bindgen_test_layout_GNUNET_ATS_Properties() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_ATS_Properties>(),
        24usize,
        concat!("Size of: ", stringify!(GNUNET_ATS_Properties))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_ATS_Properties>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_ATS_Properties))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ATS_Properties>())).delay as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_Properties),
            "::",
            stringify!(delay)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_ATS_Properties>())).utilization_out as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_Properties),
            "::",
            stringify!(utilization_out)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_ATS_Properties>())).utilization_in as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_Properties),
            "::",
            stringify!(utilization_in)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ATS_Properties>())).distance as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_Properties),
            "::",
            stringify!(distance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ATS_Properties>())).scope as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_Properties),
            "::",
            stringify!(scope)
        )
    );
}
#[doc = " ATS performance characteristics for an address in"]
#[doc = " network byte order (for IPC)."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_PropertiesNBO {
    #[doc = " Actual traffic on this connection from this peer to the other peer."]
    #[doc = " Includes transport overhead."]
    #[doc = ""]
    #[doc = " Unit: [bytes/second]"]
    pub utilization_out: u32,
    #[doc = " Actual traffic on this connection from the other peer to this peer."]
    #[doc = " Includes transport overhead."]
    #[doc = ""]
    #[doc = " Unit: [bytes/second]"]
    pub utilization_in: u32,
    #[doc = " Which network scope does the respective address belong to?"]
    #[doc = " This property does not change."]
    pub scope: u32,
    #[doc = " Distance on network layer (required for distance-vector routing)"]
    #[doc = " in hops.  Zero for direct connections (i.e. plain TCP/UDP)."]
    pub distance: u32,
    #[doc = " Delay.  Time between when the time packet is sent and the packet"]
    #[doc = " arrives.  FOREVER if we did not measure yet."]
    pub delay: GNUNET_TIME_RelativeNBO,
}
#[test]
fn bindgen_test_layout_GNUNET_ATS_PropertiesNBO() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_ATS_PropertiesNBO>(),
        24usize,
        concat!("Size of: ", stringify!(GNUNET_ATS_PropertiesNBO))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_ATS_PropertiesNBO>(),
        1usize,
        concat!("Alignment of ", stringify!(GNUNET_ATS_PropertiesNBO))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_ATS_PropertiesNBO>())).utilization_out as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_PropertiesNBO),
            "::",
            stringify!(utilization_out)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_ATS_PropertiesNBO>())).utilization_in as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_PropertiesNBO),
            "::",
            stringify!(utilization_in)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ATS_PropertiesNBO>())).scope as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_PropertiesNBO),
            "::",
            stringify!(scope)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_ATS_PropertiesNBO>())).distance as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_PropertiesNBO),
            "::",
            stringify!(distance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_ATS_PropertiesNBO>())).delay as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_ATS_PropertiesNBO),
            "::",
            stringify!(delay)
        )
    );
}
extern "C" {
    #[doc = " Convert ATS properties from host to network byte order."]
    #[doc = ""]
    #[doc = " @param nbo[OUT] value written"]
    #[doc = " @param hbo value read"]
    pub fn GNUNET_ATS_properties_hton(
        nbo: *mut GNUNET_ATS_PropertiesNBO,
        hbo: *const GNUNET_ATS_Properties,
    );
}
extern "C" {
    #[doc = " Convert ATS properties from network to host byte order."]
    #[doc = ""]
    #[doc = " @param hbo[OUT] value written"]
    #[doc = " @param nbo value read"]
    pub fn GNUNET_ATS_properties_ntoh(
        hbo: *mut GNUNET_ATS_Properties,
        nbo: *const GNUNET_ATS_PropertiesNBO,
    );
}
#[doc = " Handle to the ATS subsystem for making suggestions about"]
#[doc = " connections the peer would like to have."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_ConnectivityHandle {
    _unused: [u8; 0],
}
#[doc = " Handle for address suggestion requests."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_ConnectivitySuggestHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Initialize the ATS connectivity suggestion client handle."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @return ats connectivity handle, NULL on error"]
    pub fn GNUNET_ATS_connectivity_init(
        cfg: *const GNUNET_CONFIGURATION_Handle,
    ) -> *mut GNUNET_ATS_ConnectivityHandle;
}
extern "C" {
    #[doc = " Shutdown ATS connectivity suggestion client."]
    #[doc = ""]
    #[doc = " @param ch handle to destroy"]
    pub fn GNUNET_ATS_connectivity_done(ch: *mut GNUNET_ATS_ConnectivityHandle);
}
extern "C" {
    #[doc = " We would like to establish a new connection with a peer.  ATS"]
    #[doc = " should suggest a good address to begin with."]
    #[doc = ""]
    #[doc = " @param ch handle"]
    #[doc = " @param peer identity of the peer we need an address for"]
    #[doc = " @param strength how urgent is the need for such a suggestion"]
    #[doc = " @return suggestion handle, NULL if request is already pending"]
    pub fn GNUNET_ATS_connectivity_suggest(
        ch: *mut GNUNET_ATS_ConnectivityHandle,
        peer: *const GNUNET_PeerIdentity,
        strength: u32,
    ) -> *mut GNUNET_ATS_ConnectivitySuggestHandle;
}
extern "C" {
    #[doc = " We no longer care about being connected to a peer."]
    #[doc = ""]
    #[doc = " @param sh handle"]
    pub fn GNUNET_ATS_connectivity_suggest_cancel(sh: *mut GNUNET_ATS_ConnectivitySuggestHandle);
}
#[doc = " Handle to the ATS subsystem for bandwidth/transport scheduling information."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_SchedulingHandle {
    _unused: [u8; 0],
}
#[doc = " Opaque session handle, defined by plugins.  Contents not known to ATS."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_Session {
    _unused: [u8; 0],
}
#[doc = " Signature of a function called by ATS with the current bandwidth"]
#[doc = " and address preferences as determined by ATS.  If our connection"]
#[doc = " to ATS dies and thus all suggestions become invalid, this function"]
#[doc = " is called ONCE with all arguments (except @a cls) being NULL/0."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer for which we suggest an address, NULL if ATS connection died"]
#[doc = " @param address suggested address (including peer identity of the peer),"]
#[doc = "             may be NULL to signal disconnect from peer"]
#[doc = " @param session session to use, NULL to establish a new outgoing session"]
#[doc = " @param bandwidth_out assigned outbound bandwidth for the connection,"]
#[doc = "        0 to signal disconnect"]
#[doc = " @param bandwidth_in assigned inbound bandwidth for the connection,"]
#[doc = "        0 to signal disconnect"]
pub type GNUNET_ATS_AddressSuggestionCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        address: *const GNUNET_HELLO_Address,
        session: *mut GNUNET_ATS_Session,
        bandwidth_out: GNUNET_BANDWIDTH_Value32NBO,
        bandwidth_in: GNUNET_BANDWIDTH_Value32NBO,
    ),
>;
extern "C" {
    #[doc = " Initialize the ATS scheduling subsystem."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param suggest_cb notification to call whenever the suggestation changed"]
    #[doc = " @param suggest_cb_cls closure for @a suggest_cb"]
    #[doc = " @return ats context"]
    pub fn GNUNET_ATS_scheduling_init(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        suggest_cb: GNUNET_ATS_AddressSuggestionCallback,
        suggest_cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_ATS_SchedulingHandle;
}
extern "C" {
    #[doc = " Client is done with ATS scheduling, release resources."]
    #[doc = ""]
    #[doc = " @param sh handle to release"]
    pub fn GNUNET_ATS_scheduling_done(sh: *mut GNUNET_ATS_SchedulingHandle);
}
#[doc = " Handle used within ATS to track an address."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_AddressRecord {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " We have a new address ATS should know. Addresses have to be added with this"]
    #[doc = " function before they can be: updated, set in use and destroyed"]
    #[doc = ""]
    #[doc = " @param sh handle"]
    #[doc = " @param address the address"]
    #[doc = " @param session session handle (if available, i.e. for incoming connections)"]
    #[doc = " @param prop performance data for the address"]
    #[doc = " @return handle to the address representation inside ATS, NULL"]
    #[doc = "         on error (i.e. ATS knows this exact address already, or"]
    #[doc = "         address is invalid)"]
    pub fn GNUNET_ATS_address_add(
        sh: *mut GNUNET_ATS_SchedulingHandle,
        address: *const GNUNET_HELLO_Address,
        session: *mut GNUNET_ATS_Session,
        prop: *const GNUNET_ATS_Properties,
    ) -> *mut GNUNET_ATS_AddressRecord;
}
extern "C" {
    #[doc = " An address was used to initiate a session."]
    #[doc = ""]
    #[doc = " @param ar address record to update information for"]
    #[doc = " @param session session handle"]
    pub fn GNUNET_ATS_address_add_session(
        ar: *mut GNUNET_ATS_AddressRecord,
        session: *mut GNUNET_ATS_Session,
    );
}
extern "C" {
    #[doc = " A @a session was destroyed, disassociate it from the given address"]
    #[doc = " record.  If this was an incoming address, destroys the address as"]
    #[doc = " well."]
    #[doc = ""]
    #[doc = " @param ar address record to update information for"]
    #[doc = " @param session session handle"]
    #[doc = " @return #GNUNET_YES if the @a ar was destroyed because"]
    #[doc = "                     it was an incoming address,"]
    #[doc = "         #GNUNET_NO if the @ar was kept because we can"]
    #[doc = "                    use it still to establish a new session"]
    pub fn GNUNET_ATS_address_del_session(
        ar: *mut GNUNET_ATS_AddressRecord,
        session: *mut GNUNET_ATS_Session,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " We have updated performance statistics for a given address.  Note"]
    #[doc = " that this function can be called for addresses that are currently"]
    #[doc = " in use as well as addresses that are valid but not actively in use."]
    #[doc = " Furthermore, the peer may not even be connected to us right now (@a"]
    #[doc = " session value of NULL used to signal disconnect, or somehow we"]
    #[doc = " otherwise got updated on @a ats information).  Based on the"]
    #[doc = " information provided, ATS may update bandwidth assignments and"]
    #[doc = " suggest to switch addresses."]
    #[doc = ""]
    #[doc = " @param ar address record to update information for"]
    #[doc = " @param prop performance data for the address"]
    pub fn GNUNET_ATS_address_update(
        ar: *mut GNUNET_ATS_AddressRecord,
        prop: *const GNUNET_ATS_Properties,
    );
}
extern "C" {
    #[doc = " An address got destroyed, stop using it as a valid address."]
    #[doc = ""]
    #[doc = " @param ar address record to destroy, it's validation has"]
    #[doc = "           expired and ATS may no longer use it"]
    pub fn GNUNET_ATS_address_destroy(ar: *mut GNUNET_ATS_AddressRecord);
}
#[doc = " ATS Handle to obtain and/or modify performance information."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_PerformanceHandle {
    _unused: [u8; 0],
}
#[doc = " Signature of a function that is called with QoS information about an address."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param address the address, NULL if ATS service was disconnected or"]
#[doc = "        when the iteration is completed in the case of"]
#[doc = "        #GNUNET_ATS_performance_list_addresses()"]
#[doc = " @param address_active #GNUNET_YES if this address is actively used"]
#[doc = "        to maintain a connection to a peer;"]
#[doc = "        #GNUNET_NO if the address is not actively used;"]
#[doc = "        #GNUNET_SYSERR if this address is no longer available for ATS"]
#[doc = " @param bandwidth_out assigned outbound bandwidth for the connection"]
#[doc = " @param bandwidth_in assigned inbound bandwidth for the connection"]
#[doc = " @param prop performance data for the address"]
pub type GNUNET_ATS_AddressInformationCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        address: *const GNUNET_HELLO_Address,
        address_active: ::std::os::raw::c_int,
        bandwidth_out: GNUNET_BANDWIDTH_Value32NBO,
        bandwidth_in: GNUNET_BANDWIDTH_Value32NBO,
        prop: *const GNUNET_ATS_Properties,
    ),
>;
#[doc = " Handle for an address listing operation"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_AddressListHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Get handle to access performance API of the ATS subsystem."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param addr_info_cb callback called when performance characteristics for"]
    #[doc = "      an address change"]
    #[doc = " @param addr_info_cb_cls closure for @a addr_info_cb"]
    #[doc = " @return ats performance context"]
    pub fn GNUNET_ATS_performance_init(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        addr_info_cb: GNUNET_ATS_AddressInformationCallback,
        addr_info_cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_ATS_PerformanceHandle;
}
extern "C" {
    #[doc = " Get information about addresses known to the ATS subsystem."]
    #[doc = ""]
    #[doc = " @param ph the performance handle to use"]
    #[doc = " @param peer peer idm can be NULL for all peers"]
    #[doc = " @param all #GNUNET_YES to get information about all addresses or #GNUNET_NO to"]
    #[doc = "        get only address currently used"]
    #[doc = " @param infocb callback to call with the addresses,"]
    #[doc = "        will callback with address == NULL when done"]
    #[doc = " @param infocb_cls closure for @a infocb"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_ATS_performance_list_addresses(
        ph: *mut GNUNET_ATS_PerformanceHandle,
        peer: *const GNUNET_PeerIdentity,
        all: ::std::os::raw::c_int,
        infocb: GNUNET_ATS_AddressInformationCallback,
        infocb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_ATS_AddressListHandle;
}
extern "C" {
    #[doc = " Cancel a pending address listing operation"]
    #[doc = ""]
    #[doc = " @param alh the `struct GNUNET_ATS_AddressListHandle` handle to cancel"]
    pub fn GNUNET_ATS_performance_list_addresses_cancel(alh: *mut GNUNET_ATS_AddressListHandle);
}
extern "C" {
    #[doc = " Client is done using the ATS performance subsystem, release resources."]
    #[doc = ""]
    #[doc = " @param ph handle"]
    pub fn GNUNET_ATS_performance_done(ph: *mut GNUNET_ATS_PerformanceHandle);
}
#[doc = " Function called with reservation result."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer identifies the peer"]
#[doc = " @param amount set to the amount that was actually reserved or unreserved;"]
#[doc = "               either the full requested amount or zero (no partial reservations)"]
#[doc = " @param res_delay if the reservation could not be satisfied (amount was 0), how"]
#[doc = "        long should the client wait until re-trying?"]
pub type GNUNET_ATS_ReservationCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        amount: i32,
        res_delay: GNUNET_TIME_Relative,
    ),
>;
#[doc = " Context that can be used to cancel a peer information request."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_ATS_ReservationContext {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Reserve inbound bandwidth from the given peer.  ATS will look at"]
    #[doc = " the current amount of traffic we receive from the peer and ensure"]
    #[doc = " that the peer could add 'amount' of data to its stream."]
    #[doc = ""]
    #[doc = " @param ph performance handle"]
    #[doc = " @param peer identifies the peer"]
    #[doc = " @param amount reserve N bytes for receiving, negative"]
    #[doc = "                amounts can be used to undo a (recent) reservation;"]
    #[doc = " @param rcb function to call with the resulting reservation information"]
    #[doc = " @param rcb_cls closure for @a rcb"]
    #[doc = " @return NULL on error"]
    #[doc = " @deprecated will be replaced soon"]
    pub fn GNUNET_ATS_reserve_bandwidth(
        ph: *mut GNUNET_ATS_PerformanceHandle,
        peer: *const GNUNET_PeerIdentity,
        amount: i32,
        rcb: GNUNET_ATS_ReservationCallback,
        rcb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_ATS_ReservationContext;
}
extern "C" {
    #[doc = " Cancel request for reserving bandwidth."]
    #[doc = ""]
    #[doc = " @param rc context returned by the original GNUNET_ATS_reserve_bandwidth call"]
    pub fn GNUNET_ATS_reserve_bandwidth_cancel(rc: *mut GNUNET_ATS_ReservationContext);
}
#[doc = " Change the peer's bandwidth value (value per byte of bandwidth in"]
#[doc = " the goal function) to the given amount.  The argument is followed"]
#[doc = " by a double value giving the desired value (can be negative)."]
#[doc = " Preference changes are forgotten if peers disconnect."]
pub const GNUNET_ATS_PreferenceKind_GNUNET_ATS_PREFERENCE_BANDWIDTH: GNUNET_ATS_PreferenceKind = 0;
#[doc = " Change the peer's latency value to the given amount.  The"]
#[doc = " argument is followed by a double value giving the desired value"]
#[doc = " (can be negative).  The absolute score in the goal function is"]
#[doc = " the inverse of the latency in microseconds (minimum: 1"]
#[doc = " microsecond) multiplied by the latency preferences."]
pub const GNUNET_ATS_PreferenceKind_GNUNET_ATS_PREFERENCE_LATENCY: GNUNET_ATS_PreferenceKind = 1;
#[doc = " End of preference list."]
pub const GNUNET_ATS_PreferenceKind_GNUNET_ATS_PREFERENCE_END: GNUNET_ATS_PreferenceKind = 2;
#[doc = " Enum defining all known preference categories."]
pub type GNUNET_ATS_PreferenceKind = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Convert a GNUNET_ATS_PreferenceType to a string"]
    #[doc = ""]
    #[doc = " @param type the preference type"]
    #[doc = " @return a string or NULL if invalid"]
    pub fn GNUNET_ATS_print_preference_type(
        type_: GNUNET_ATS_PreferenceKind,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Change preferences for the given peer. Preference changes are forgotten if peers"]
    #[doc = " disconnect."]
    #[doc = ""]
    #[doc = " @param ph performance handle @param peer identifies the peer"]
    #[doc = " @param ... #GNUNET_ATS_PREFERENCE_END-terminated specification of the"]
    #[doc = " desired changes"]
    pub fn GNUNET_ATS_performance_change_preference(
        ph: *mut GNUNET_ATS_PerformanceHandle,
        peer: *const GNUNET_PeerIdentity,
        ...
    );
}
extern "C" {
    #[doc = " Application feedback on how good preference requirements are fulfilled"]
    #[doc = " for the preferences included in the given time scope [now - scope .. now]"]
    #[doc = ""]
    #[doc = " An application notifies ATS if (and only if) it has feedback information"]
    #[doc = " for specific properties. This values are valid until the feedback scores are"]
    #[doc = " updated by the application."]
    #[doc = ""]
    #[doc = " If the application has no feedback for this preference kind the application"]
    #[doc = " will not explicitly call for this property and will not include it in this"]
    #[doc = " function call."]
    #[doc = ""]
    #[doc = " @param ph performance handle"]
    #[doc = " @param scope the time interval this valid for: [now - scope .. now]"]
    #[doc = " @param peer identifies the peer"]
    #[doc = " @param ... #GNUNET_ATS_PREFERENCE_END-terminated specification of the desired changes"]
    pub fn GNUNET_ATS_performance_give_feedback(
        ph: *mut GNUNET_ATS_PerformanceHandle,
        peer: *const GNUNET_PeerIdentity,
        scope: GNUNET_TIME_Relative,
        ...
    );
}
#[doc = " Handle for a #GNUNET_TRANSPORT_offer_hello operation"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_OfferHelloHandle {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Offer the transport service the HELLO of another peer.  Note that"]
    #[doc = " the transport service may just ignore this message if the HELLO is"]
    #[doc = " malformed or useless due to our local configuration."]
    #[doc = ""]
    #[doc = " @param cfg configuration"]
    #[doc = " @param hello the hello message"]
    #[doc = " @param cont continuation to call when HELLO has been sent,"]
    #[doc = "      tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail"]
    #[doc = "      tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success"]
    #[doc = " @param cont_cls closure for @a cont"]
    #[doc = " @return a `struct GNUNET_TRANSPORT_OfferHelloHandle` handle or NULL on"]
    #[doc = " failure, in case of failure @a cont will not be called"]
    #[doc = ""]
    pub fn GNUNET_TRANSPORT_offer_hello(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        hello: *const GNUNET_MessageHeader,
        cont: GNUNET_SCHEDULER_TaskCallback,
        cont_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_TRANSPORT_OfferHelloHandle;
}
extern "C" {
    #[doc = " Cancel the request to transport to offer the HELLO message"]
    #[doc = ""]
    #[doc = " @param ohh the `struct GNUNET_TRANSPORT_OfferHelloHandle` to cancel"]
    pub fn GNUNET_TRANSPORT_offer_hello_cancel(ohh: *mut GNUNET_TRANSPORT_OfferHelloHandle);
}
#[doc = " Handle to cancel a pending address lookup."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_AddressToStringContext {
    _unused: [u8; 0],
}
#[doc = " Function to call with a textual representation of an address.  This"]
#[doc = " function will be called several times with different possible"]
#[doc = " textual representations, and a last time with @a address being NULL"]
#[doc = " to signal the end of the iteration.  Note that @a address NULL"]
#[doc = " always is the last call, regardless of the value in @a res."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param address NULL on end of iteration,"]
#[doc = "        otherwise 0-terminated printable UTF-8 string,"]
#[doc = "        in particular an empty string if @a res is #GNUNET_NO"]
#[doc = " @param res result of the address to string conversion:"]
#[doc = "        if #GNUNET_OK: conversion successful"]
#[doc = "        if #GNUNET_NO: address was invalid (or not supported)"]
#[doc = "        if #GNUNET_SYSERR: communication error (IPC error)"]
pub type GNUNET_TRANSPORT_AddressToStringCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        address: *const ::std::os::raw::c_char,
        res: ::std::os::raw::c_int,
    ),
>;
extern "C" {
    #[doc = " Convert a binary address into a human readable address."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param address address to convert (binary format)"]
    #[doc = " @param numeric should (IP) addresses be displayed in numeric form"]
    #[doc = "                (otherwise do reverse DNS lookup)"]
    #[doc = " @param timeout how long is the lookup allowed to take at most"]
    #[doc = " @param aluc function to call with the results"]
    #[doc = " @param aluc_cls closure for @a aluc"]
    #[doc = " @return handle to cancel the operation, NULL on error"]
    pub fn GNUNET_TRANSPORT_address_to_string(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        address: *const GNUNET_HELLO_Address,
        numeric: ::std::os::raw::c_int,
        timeout: GNUNET_TIME_Relative,
        aluc: GNUNET_TRANSPORT_AddressToStringCallback,
        aluc_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_TRANSPORT_AddressToStringContext;
}
extern "C" {
    #[doc = " Cancel request for address conversion."]
    #[doc = ""]
    #[doc = " @param alc the context handle"]
    pub fn GNUNET_TRANSPORT_address_to_string_cancel(
        alc: *mut GNUNET_TRANSPORT_AddressToStringContext,
    );
}
#[doc = " Fresh peer or completely disconnected"]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_NOT_CONNECTED: GNUNET_TRANSPORT_PeerState =
    0;
#[doc = " Asked to initiate connection, trying to get address from ATS"]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_INIT_ATS: GNUNET_TRANSPORT_PeerState = 1;
#[doc = " Sent SYN message to other peer, waiting for SYN_ACK"]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_SYN_SENT: GNUNET_TRANSPORT_PeerState = 2;
#[doc = " Received a SYN, asking ATS about address suggestions."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_SYN_RECV_ATS: GNUNET_TRANSPORT_PeerState =
    3;
#[doc = " SYN request from other peer was SYN_ACK'ed, waiting for ACK."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_SYN_RECV_ACK: GNUNET_TRANSPORT_PeerState =
    4;
#[doc = " Got our SYN_ACK/ACK, connection is up."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_CONNECTED: GNUNET_TRANSPORT_PeerState = 5;
#[doc = " Connection got into trouble, rest of the system still believes"]
#[doc = " it to be up, but we're getting a new address from ATS."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_RECONNECT_ATS: GNUNET_TRANSPORT_PeerState =
    6;
#[doc = " Sent SYN over new address (either by ATS telling us to switch"]
#[doc = " addresses or from RECONNECT_ATS); if this fails, we need to tell"]
#[doc = " the rest of the system about a disconnect."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_RECONNECT_SENT:
    GNUNET_TRANSPORT_PeerState = 7;
#[doc = " We have some primary connection, but ATS suggested we switch"]
#[doc = " to some alternative; we now sent a SYN message for the"]
#[doc = " alternative session to the other peer and waiting for a"]
#[doc = " SYN_ACK to make this our primary connection."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_SWITCH_SYN_SENT:
    GNUNET_TRANSPORT_PeerState = 8;
#[doc = " Disconnect in progress (we're sending the DISCONNECT message to the"]
#[doc = " other peer; after that is finished, the state will be cleaned up)."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_DISCONNECT: GNUNET_TRANSPORT_PeerState = 9;
#[doc = " We're finished with the disconnect; and are cleaning up the state"]
#[doc = " now!  We put the struct into this state when we are really in the"]
#[doc = " task that calls 'free' on it and are about to remove the record"]
#[doc = " from the map.  We should never find a 'struct NeighbourMapEntry'"]
#[doc = " in this state in the map.  Accessing a 'struct NeighbourMapEntry'"]
#[doc = " in this state virtually always means using memory that has been"]
#[doc = " freed (the exception being the cleanup code in #free_neighbour())."]
pub const GNUNET_TRANSPORT_PeerState_GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED:
    GNUNET_TRANSPORT_PeerState = 10;
#[doc = " Possible state of a neighbour.  Initially, we are"]
#[doc = " #GNUNET_TRANSPORT_PS_NOT_CONNECTED."]
#[doc = ""]
#[doc = " Then, there are two main paths. If we receive a SYN message, we give"]
#[doc = " the inbound address to ATS. After the check we ask ATS for a suggestion"]
#[doc = " (#GNUNET_TRANSPORT_PS_CONNECT_RECV_ATS). If ATS makes a suggestion, we"]
#[doc = " send our SYN_ACK and go to #GNUNET_TRANSPORT_PS_CONNECT_RECV_ACK."]
#[doc = " If we receive a ACK, we go to #GNUNET_TRANSPORT_PS_CONNECTED"]
#[doc = " (and notify everyone about the new connection). If the operation times out,"]
#[doc = " we go to #GNUNET_TRANSPORT_PS_DISCONNECT."]
#[doc = ""]
#[doc = " The other case is where we transmit a SYN message first.  We"]
#[doc = " start with #GNUNET_TRANSPORT_PS_INIT_ATS.  If we get an address, we send"]
#[doc = " the SYN message and go to state #GNUNET_TRANSPORT_PS_CONNECT_SENT."]
#[doc = " Once we receive a SYN_ACK, we go to #GNUNET_TRANSPORT_PS_CONNECTED"]
#[doc = " (and notify everyone about the new connection and send"]
#[doc = " back a ACK).  If the operation times out, we go to"]
#[doc = " #GNUNET_TRANSPORT_PS_DISCONNECT."]
#[doc = ""]
#[doc = " If the session is in trouble (i.e. transport-level disconnect or"]
#[doc = " timeout), we go to #GNUNET_TRANSPORT_PS_RECONNECT_ATS where we ask ATS for a"]
#[doc = " new address (we don't notify anyone about the disconnect yet).  Once we have"]
#[doc = " a new address, we enter #GNUNET_TRANSPORT_PS_RECONNECT_SENT and send a SYN"]
#[doc = " message.  If we receive a SYN_ACK, we go to #GNUNET_TRANSPORT_PS_CONNECTED"]
#[doc = " and nobody noticed that we had trouble; we also send a ACK at this time just"]
#[doc = " in case.  If the operation times out, we go to"]
#[doc = " #GNUNET_TRANSPORT_PS_DISCONNECT (and notify everyone about the lost"]
#[doc = " connection)."]
#[doc = ""]
#[doc = " If ATS decides to switch addresses while we have a normal"]
#[doc = " connection, we go to #GNUNET_TRANSPORT_PS_CONNECTED_SWITCHING_SYN_SENT"]
#[doc = " and send a SESSION_CONNECT.  If we get a ACK back, we switch the"]
#[doc = " primary connection to the suggested alternative from ATS, go back"]
#[doc = " to #GNUNET_TRANSPORT_PS_CONNECTED and send a ACK to the other peer just to be"]
#[doc = " sure.  If the operation times out"]
#[doc = " we go to #GNUNET_TRANSPORT_PS_CONNECTED (and notify ATS that the given"]
#[doc = " alternative address is \"invalid\")."]
#[doc = ""]
#[doc = " Once a session is in #GNUNET_TRANSPORT_PS_DISCONNECT, it is cleaned up and"]
#[doc = " then goes to (#GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED).  If we receive an"]
#[doc = " explicit disconnect request, we can go from any state to"]
#[doc = " #GNUNET_TRANSPORT_PS_DISCONNECT, possibly after generating disconnect"]
#[doc = " notifications."]
#[doc = ""]
#[doc = " Note that it is quite possible that while we are in any of these"]
#[doc = " states, we could receive a 'SYN' request from the other peer."]
#[doc = " We then enter a 'weird' state where we pursue our own primary state"]
#[doc = " machine (as described above), but with the 'send_connect_ack' flag"]
#[doc = " set to 1.  If our state machine allows us to send a 'SYN_ACK'"]
#[doc = " (because we have an acceptable address), we send the 'SYN_ACK'"]
#[doc = " and set the 'send_connect_ack' to 2.  If we then receive a"]
#[doc = " 'ACK', we go to #GNUNET_TRANSPORT_PS_CONNECTED (and reset 'send_connect_ack'"]
#[doc = " to 0)."]
#[doc = ""]
pub type GNUNET_TRANSPORT_PeerState = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Convert a transport state to a human readable string."]
    #[doc = ""]
    #[doc = " @param state the state"]
    pub fn GNUNET_TRANSPORT_ps2s(
        state: GNUNET_TRANSPORT_PeerState,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Check if a state is defined as connected"]
    #[doc = ""]
    #[doc = " @param state the state value"]
    #[doc = " @return #GNUNET_YES or #GNUNET_NO"]
    pub fn GNUNET_TRANSPORT_is_connected(
        state: GNUNET_TRANSPORT_PeerState,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Handle for a #GNUNET_TRANSPORT_monitor_peers operation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_PeerMonitoringContext {
    _unused: [u8; 0],
}
#[doc = " Function to call with information about a peer"]
#[doc = ""]
#[doc = " If one_shot was set to #GNUNET_YES to iterate over all peers once,"]
#[doc = " a final call with NULL for peer and address will follow when done."]
#[doc = " In this case state and timeout do not contain valid values."]
#[doc = ""]
#[doc = " The #GNUNET_TRANSPORT_monitor_peers_cancel() call MUST not be called from"]
#[doc = " within this function!"]
#[doc = ""]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer peer this update is about,"]
#[doc = "      NULL if this is the final last callback for a iteration operation"]
#[doc = " @param address address, NULL if this is the final callback for iteration op"]
#[doc = " @param state current state this peer is in"]
#[doc = " @param state_timeout timeout for the current state of the peer"]
pub type GNUNET_TRANSPORT_PeerIterateCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        address: *const GNUNET_HELLO_Address,
        state: GNUNET_TRANSPORT_PeerState,
        state_timeout: GNUNET_TIME_Absolute,
    ),
>;
extern "C" {
    #[doc = " Return information about a specific peer or all peers currently known to"]
    #[doc = " transport service once or in monitoring mode. To obtain information about"]
    #[doc = " a specific peer, a peer identity can be passed. To obtain information about"]
    #[doc = " all peers currently known to transport service, NULL can be passed as peer"]
    #[doc = " identity."]
    #[doc = ""]
    #[doc = " For each peer, the callback is called with information about the address used"]
    #[doc = " to communicate with this peer, the state this peer is currently in and the"]
    #[doc = " the current timeout for this state."]
    #[doc = ""]
    #[doc = " Upon completion, the #GNUNET_TRANSPORT_PeerIterateCallback is called one"]
    #[doc = " more time with `NULL`. After this, the operation must no longer be"]
    #[doc = " explicitly canceled."]
    #[doc = ""]
    #[doc = " The #GNUNET_TRANSPORT_monitor_peers_cancel call MUST not be called in the"]
    #[doc = " the peer_callback!"]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param peer a specific peer identity to obtain information for,"]
    #[doc = "      NULL for all peers"]
    #[doc = " @param one_shot #GNUNET_YES to return the current state and then end (with"]
    #[doc = " NULL+NULL), #GNUNET_NO to monitor peers continuously"]
    #[doc = " @param peer_callback function to call with the results"]
    #[doc = " @param peer_callback_cls closure for @a peer_callback"]
    pub fn GNUNET_TRANSPORT_monitor_peers(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        peer: *const GNUNET_PeerIdentity,
        one_shot: ::std::os::raw::c_int,
        peer_callback: GNUNET_TRANSPORT_PeerIterateCallback,
        peer_callback_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_TRANSPORT_PeerMonitoringContext;
}
extern "C" {
    #[doc = " Cancel request to monitor peers"]
    #[doc = ""]
    #[doc = " @param pic handle for the request to cancel"]
    pub fn GNUNET_TRANSPORT_monitor_peers_cancel(pic: *mut GNUNET_TRANSPORT_PeerMonitoringContext);
}
#[doc = " Handle for blacklisting peers."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_Blacklist {
    _unused: [u8; 0],
}
#[doc = " Function that decides if a connection is acceptable or not."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param pid peer to approve or disapproave"]
#[doc = " @return #GNUNET_OK if the connection is allowed, #GNUNET_SYSERR if not"]
pub type GNUNET_TRANSPORT_BlacklistCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        pid: *const GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " Install a blacklist callback.  The service will be queried for all"]
    #[doc = " existing connections as well as any fresh connections to check if"]
    #[doc = " they are permitted.  If the blacklisting callback is unregistered,"]
    #[doc = " all hosts that were denied in the past will automatically be"]
    #[doc = " whitelisted again.  Cancelling the blacklist handle is also the"]
    #[doc = " only way to re-enable connections from peers that were previously"]
    #[doc = " blacklisted."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param cb callback to invoke to check if connections are allowed"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return NULL on error, otherwise handle for cancellation"]
    pub fn GNUNET_TRANSPORT_blacklist(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        cb: GNUNET_TRANSPORT_BlacklistCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_TRANSPORT_Blacklist;
}
extern "C" {
    #[doc = " Abort the blacklist.  Note that this function is the only way for"]
    #[doc = " removing a peer from the blacklist."]
    #[doc = ""]
    #[doc = " @param br handle of the request that is to be cancelled"]
    pub fn GNUNET_TRANSPORT_blacklist_cancel(br: *mut GNUNET_TRANSPORT_Blacklist);
}
#[doc = " Handle for a plugin session state monitor."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_PluginMonitor {
    _unused: [u8; 0],
}
#[doc = " Abstract representation of a plugin's session."]
#[doc = " Corresponds to the `struct GNUNET_ATS_Session` within the TRANSPORT service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_PluginSession {
    _unused: [u8; 0],
}
#[doc = " The session was created (first call for each session object)."]
pub const GNUNET_TRANSPORT_SessionState_GNUNET_TRANSPORT_SS_INIT: GNUNET_TRANSPORT_SessionState = 0;
#[doc = " Initial session handshake is in progress."]
pub const GNUNET_TRANSPORT_SessionState_GNUNET_TRANSPORT_SS_HANDSHAKE:
    GNUNET_TRANSPORT_SessionState = 1;
#[doc = " Session is fully UP."]
pub const GNUNET_TRANSPORT_SessionState_GNUNET_TRANSPORT_SS_UP: GNUNET_TRANSPORT_SessionState = 2;
#[doc = " This is just an update about the session,"]
#[doc = " the state did not change."]
pub const GNUNET_TRANSPORT_SessionState_GNUNET_TRANSPORT_SS_UPDATE: GNUNET_TRANSPORT_SessionState =
    3;
#[doc = " Session is being torn down and about to disappear."]
#[doc = " Last call for each session object."]
pub const GNUNET_TRANSPORT_SessionState_GNUNET_TRANSPORT_SS_DONE: GNUNET_TRANSPORT_SessionState = 4;
#[doc = " Possible states of a session in a plugin."]
pub type GNUNET_TRANSPORT_SessionState = ::std::os::raw::c_uint;
#[doc = " Information about a plugin's session."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_SessionInfo {
    #[doc = " New state of the session."]
    pub state: GNUNET_TRANSPORT_SessionState,
    #[doc = " #GNUNET_YES if this is an inbound connection,"]
    #[doc = " #GNUNET_NO if this is an outbound connection,"]
    #[doc = " #GNUNET_SYSERR if connections of this plugin"]
    #[doc = "             are so fundamentally bidirectional"]
    #[doc = "             that they have no 'initiator'"]
    pub is_inbound: ::std::os::raw::c_int,
    #[doc = " Number of messages pending transmission for this session."]
    pub num_msg_pending: u32,
    #[doc = " Number of bytes pending transmission for this session."]
    pub num_bytes_pending: u32,
    #[doc = " Until when does this plugin refuse to receive to manage"]
    #[doc = " staying within the inbound quota?  ZERO if receive is"]
    #[doc = " active."]
    pub receive_delay: GNUNET_TIME_Absolute,
    #[doc = " At what time will this session timeout (unless activity"]
    #[doc = " happens)?"]
    pub session_timeout: GNUNET_TIME_Absolute,
    #[doc = " Address used by the session.  Can be NULL if none is available."]
    pub address: *const GNUNET_HELLO_Address,
}
#[test]
fn bindgen_test_layout_GNUNET_TRANSPORT_SessionInfo() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_TRANSPORT_SessionInfo>(),
        40usize,
        concat!("Size of: ", stringify!(GNUNET_TRANSPORT_SessionInfo))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_TRANSPORT_SessionInfo>(),
        8usize,
        concat!("Alignment of ", stringify!(GNUNET_TRANSPORT_SessionInfo))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).state as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(state)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).is_inbound as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(is_inbound)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).num_msg_pending as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(num_msg_pending)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).num_bytes_pending as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(num_bytes_pending)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).receive_delay as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(receive_delay)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).session_timeout as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(session_timeout)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_TRANSPORT_SessionInfo>())).address as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_TRANSPORT_SessionInfo),
            "::",
            stringify!(address)
        )
    );
}
#[doc = " Function called by the plugin with information about the"]
#[doc = " current sessions managed by the plugin (for monitoring)."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param session session handle this information is about,"]
#[doc = "        NULL to indicate that we are \"in sync\" (initial"]
#[doc = "        iteration complete)"]
#[doc = " @param session_ctx storage location where the application"]
#[doc = "        can store data; will point to NULL on #GNUNET_TRANSPORT_SS_INIT,"]
#[doc = "        and must be reset to NULL on #GNUNET_TRANSPORT_SS_DONE"]
#[doc = " @param info information about the state of the session,"]
#[doc = "        NULL if @a session is also NULL and we are"]
#[doc = "        merely signalling that the initial iteration is over;"]
#[doc = "        NULL with @a session being non-NULL if the monitor"]
#[doc = "        was being cancelled while sessions were active"]
pub type GNUNET_TRANSPORT_SessionMonitorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        session: *mut GNUNET_TRANSPORT_PluginSession,
        session_ctx: *mut *mut ::std::os::raw::c_void,
        info: *const GNUNET_TRANSPORT_SessionInfo,
    ),
>;
extern "C" {
    #[doc = " Install a plugin session state monitor callback.  The callback"]
    #[doc = " will be notified whenever the session changes."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param cb callback to invoke on events"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return NULL on error, otherwise handle for cancellation"]
    pub fn GNUNET_TRANSPORT_monitor_plugins(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        cb: GNUNET_TRANSPORT_SessionMonitorCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_TRANSPORT_PluginMonitor;
}
extern "C" {
    #[doc = " Cancel monitoring the plugin session state.  The callback will be"]
    #[doc = " called once for each session that is up with the \"info\" argument"]
    #[doc = " being NULL (this is just to enable client-side cleanup)."]
    #[doc = ""]
    #[doc = " @param pm handle of the request that is to be cancelled"]
    pub fn GNUNET_TRANSPORT_monitor_plugins_cancel(pm: *mut GNUNET_TRANSPORT_PluginMonitor);
}
#[doc = " Opaque handle to the service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_TRANSPORT_CoreHandle {
    _unused: [u8; 0],
}
#[doc = " Function called to notify transport users that another"]
#[doc = " peer connected to us."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer the identity of the peer that connected; this"]
#[doc = "        pointer will remain valid until the disconnect, hence"]
#[doc = "        applications do not necessarily have to make a copy"]
#[doc = "        of the value if they only need it until disconnect"]
#[doc = " @param mq message queue to use to transmit to @a peer"]
#[doc = " @return closure to use in MQ handlers"]
pub type GNUNET_TRANSPORT_NotifyConnect = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        mq: *mut GNUNET_MQ_Handle,
    ) -> *mut ::std::os::raw::c_void,
>;
#[doc = " Function called to notify transport users that another peer"]
#[doc = " disconnected from us.  The message queue that was given to the"]
#[doc = " connect notification will be destroyed and must not be used"]
#[doc = " henceforth."]
#[doc = ""]
#[doc = " @param cls closure from #GNUNET_TRANSPORT_core_connect"]
#[doc = " @param peer the peer that disconnected"]
#[doc = " @param handlers_cls closure of the handlers, was returned from the"]
#[doc = "                    connect notification callback"]
pub type GNUNET_TRANSPORT_NotifyDisconnect = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        handler_cls: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " Function called if we have \"excess\" bandwidth to a peer."]
#[doc = " The notification will happen the first time we have excess"]
#[doc = " bandwidth, and then only again after the client has performed"]
#[doc = " some transmission to the peer."]
#[doc = ""]
#[doc = " Excess bandwidth is defined as being allowed (by ATS) to send"]
#[doc = " more data, and us reaching the limit of the capacity build-up"]
#[doc = " (which, if we go past it, means we don't use available bandwidth)."]
#[doc = " See also the \"max carry\" in `struct GNUNET_BANDWIDTH_Tracker`."]
#[doc = ""]
#[doc = " @param cls the closure"]
#[doc = " @param neighbour peer that we have excess bandwidth to"]
#[doc = " @param handlers_cls closure of the handlers, was returned from the"]
#[doc = "                    connect notification callback"]
pub type GNUNET_TRANSPORT_NotifyExcessBandwidth = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        neighbour: *const GNUNET_PeerIdentity,
        handlers_cls: *mut ::std::os::raw::c_void,
    ),
>;
extern "C" {
    #[doc = " Connect to the transport service.  Note that the connection may"]
    #[doc = " complete (or fail) asynchronously."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param self our own identity (API should check that it matches"]
    #[doc = "             the identity found by transport), or NULL (no check)"]
    #[doc = " @param handlers array of message handlers; note that the"]
    #[doc = "                 closures provided will be ignored and replaced"]
    #[doc = "                 with the respective return value from @a nc"]
    #[doc = " @param handlers array with handlers to call when we receive messages, or NULL"]
    #[doc = " @param cls closure for the @a nc, @a nd and @a neb callbacks"]
    #[doc = " @param nc function to call on connect events, or NULL"]
    #[doc = " @param nd function to call on disconnect events, or NULL"]
    #[doc = " @param neb function to call if we have excess bandwidth to a peer, or NULL"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_TRANSPORT_core_connect(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        self_: *const GNUNET_PeerIdentity,
        handlers: *const GNUNET_MQ_MessageHandler,
        cls: *mut ::std::os::raw::c_void,
        nc: GNUNET_TRANSPORT_NotifyConnect,
        nd: GNUNET_TRANSPORT_NotifyDisconnect,
        neb: GNUNET_TRANSPORT_NotifyExcessBandwidth,
    ) -> *mut GNUNET_TRANSPORT_CoreHandle;
}
extern "C" {
    #[doc = " Disconnect from the transport service."]
    #[doc = ""]
    #[doc = " @param handle handle returned from connect"]
    pub fn GNUNET_TRANSPORT_core_disconnect(handle: *mut GNUNET_TRANSPORT_CoreHandle);
}
extern "C" {
    #[doc = " Checks if a given peer is connected to us and get the message queue."]
    #[doc = ""]
    #[doc = " @param handle connection to transport service"]
    #[doc = " @param peer the peer to check"]
    #[doc = " @return NULL if disconnected, otherwise message queue for @a peer"]
    pub fn GNUNET_TRANSPORT_core_get_mq(
        handle: *mut GNUNET_TRANSPORT_CoreHandle,
        peer: *const GNUNET_PeerIdentity,
    ) -> *mut GNUNET_MQ_Handle;
}
#[doc = " Message transmitted with the signed ephemeral key of a peer.  The"]
#[doc = " session key is then derived from the two ephemeral keys (ECDHE)."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct EphemeralKeyMessage {
    #[doc = " Message type is #GNUNET_MESSAGE_TYPE_CORE_EPHEMERAL_KEY."]
    pub header: GNUNET_MessageHeader,
    #[doc = " Status of the sender (should be in `enum PeerStateMachine`), nbo."]
    pub sender_status: i32,
    #[doc = " An ECC signature of the @e origin_identity asserting the validity"]
    #[doc = " of the given ephemeral key."]
    pub signature: GNUNET_CRYPTO_EddsaSignature,
    #[doc = " Information about what is being signed."]
    pub purpose: GNUNET_CRYPTO_EccSignaturePurpose,
    #[doc = " At what time was this key created (beginning of validity)."]
    pub creation_time: GNUNET_TIME_AbsoluteNBO,
    #[doc = " When does the given ephemeral key expire (end of validity)."]
    pub expiration_time: GNUNET_TIME_AbsoluteNBO,
    #[doc = " Ephemeral public ECC key."]
    pub ephemeral_key: GNUNET_CRYPTO_EcdhePublicKey,
    #[doc = " Public key of the signing peer (persistent version, not the"]
    #[doc = " ephemeral public key)."]
    pub origin_identity: GNUNET_PeerIdentity,
}
#[test]
fn bindgen_test_layout_EphemeralKeyMessage() {
    assert_eq!(
        ::std::mem::size_of::<EphemeralKeyMessage>(),
        160usize,
        concat!("Size of: ", stringify!(EphemeralKeyMessage))
    );
    assert_eq!(
        ::std::mem::align_of::<EphemeralKeyMessage>(),
        1usize,
        concat!("Alignment of ", stringify!(EphemeralKeyMessage))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EphemeralKeyMessage>())).header as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(header)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EphemeralKeyMessage>())).sender_status as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(sender_status)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EphemeralKeyMessage>())).signature as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(signature)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<EphemeralKeyMessage>())).purpose as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(purpose)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EphemeralKeyMessage>())).creation_time as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(creation_time)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EphemeralKeyMessage>())).expiration_time as *const _ as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(expiration_time)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EphemeralKeyMessage>())).ephemeral_key as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(ephemeral_key)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<EphemeralKeyMessage>())).origin_identity as *const _ as usize
        },
        128usize,
        concat!(
            "Offset of field: ",
            stringify!(EphemeralKeyMessage),
            "::",
            stringify!(origin_identity)
        )
    );
}
#[doc = " We're sending an (encrypted) PING to the other peer to check if it"]
#[doc = " can decrypt.  The other peer should respond with a PONG with the"]
#[doc = " same content, except this time encrypted with the receiver's key."]
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct PingMessage {
    #[doc = " Message type is #GNUNET_MESSAGE_TYPE_CORE_PING."]
    pub header: GNUNET_MessageHeader,
    #[doc = " Seed for the IV"]
    pub iv_seed: u32,
    #[doc = " Intended target of the PING, used primarily to check"]
    #[doc = " that decryption actually worked."]
    pub target: GNUNET_PeerIdentity,
    #[doc = " Random number chosen to make replay harder."]
    pub challenge: u32,
}
#[test]
fn bindgen_test_layout_PingMessage() {
    assert_eq!(
        ::std::mem::size_of::<PingMessage>(),
        44usize,
        concat!("Size of: ", stringify!(PingMessage))
    );
    assert_eq!(
        ::std::mem::align_of::<PingMessage>(),
        1usize,
        concat!("Alignment of ", stringify!(PingMessage))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PingMessage>())).header as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(PingMessage),
            "::",
            stringify!(header)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PingMessage>())).iv_seed as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(PingMessage),
            "::",
            stringify!(iv_seed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PingMessage>())).target as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(PingMessage),
            "::",
            stringify!(target)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PingMessage>())).challenge as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(PingMessage),
            "::",
            stringify!(challenge)
        )
    );
}
#[doc = " Response to a PING.  Includes data from the original PING."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PongMessage {
    #[doc = " Message type is #GNUNET_MESSAGE_TYPE_CORE_PONG."]
    pub header: GNUNET_MessageHeader,
    #[doc = " Seed for the IV"]
    pub iv_seed: u32,
    #[doc = " Random number to make replay attacks harder."]
    pub challenge: u32,
    #[doc = " Reserved, always zero."]
    pub reserved: u32,
    #[doc = " Intended target of the PING, used primarily to check"]
    #[doc = " that decryption actually worked."]
    pub target: GNUNET_PeerIdentity,
}
#[test]
fn bindgen_test_layout_PongMessage() {
    assert_eq!(
        ::std::mem::size_of::<PongMessage>(),
        48usize,
        concat!("Size of: ", stringify!(PongMessage))
    );
    assert_eq!(
        ::std::mem::align_of::<PongMessage>(),
        4usize,
        concat!("Alignment of ", stringify!(PongMessage))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PongMessage>())).header as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(PongMessage),
            "::",
            stringify!(header)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PongMessage>())).iv_seed as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(PongMessage),
            "::",
            stringify!(iv_seed)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PongMessage>())).challenge as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(PongMessage),
            "::",
            stringify!(challenge)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PongMessage>())).reserved as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(PongMessage),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<PongMessage>())).target as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(PongMessage),
            "::",
            stringify!(target)
        )
    );
}
#[doc = " Opaque handle to the service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CORE_Handle {
    _unused: [u8; 0],
}
#[doc = " Method called whenever a given peer connects."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer peer identity this notification is about"]
#[doc = " @return closure associated with @a peer. given to mq callbacks and"]
#[doc = "         #GNUNET_CORE_DisconnectEventHandler"]
pub type GNUNET_CORE_ConnectEventHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        mq: *mut GNUNET_MQ_Handle,
    ) -> *mut ::std::os::raw::c_void,
>;
#[doc = " Method called whenever a peer disconnects."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param peer peer identity this notification is about"]
#[doc = " @param peer_cls closure associated with peer. given in"]
#[doc = "        #GNUNET_CORE_ConnectEventHandler"]
pub type GNUNET_CORE_DisconnectEventHandler = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        peer: *const GNUNET_PeerIdentity,
        peer_cls: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " Function called after #GNUNET_CORE_connect has succeeded (or failed"]
#[doc = " for good).  Note that the private key of the peer is intentionally"]
#[doc = " not exposed here; if you need it, your process should try to read"]
#[doc = " the private key file directly (which should work if you are"]
#[doc = " authorized...).  Implementations of this function must not call"]
#[doc = " #GNUNET_CORE_disconnect (other than by scheduling a new task to"]
#[doc = " do this later)."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param my_identity ID of this peer, NULL if we failed"]
pub type GNUNET_CORE_StartupCallback = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, my_identity: *const GNUNET_PeerIdentity),
>;
extern "C" {
    #[doc = " Connect to the core service.  Note that the connection may complete"]
    #[doc = " (or fail) asynchronously.  This function primarily causes the given"]
    #[doc = " callback notification functions to be invoked whenever the"]
    #[doc = " specified event happens.  The maximum number of queued"]
    #[doc = " notifications (queue length) is per client; the queue is shared"]
    #[doc = " across all types of notifications.  So a slow client that registers"]
    #[doc = " for @a outbound_notify also risks missing @a inbound_notify messages."]
    #[doc = " Certain events (such as connect/disconnect notifications) are not"]
    #[doc = " subject to queue size limitations."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param cls closure for the various callbacks that follow (including handlers in the handlers array)"]
    #[doc = " @param init callback to call once we have successfully"]
    #[doc = "        connected to the core service"]
    #[doc = " @param connects function to call on peer connect, can be NULL"]
    #[doc = " @param disconnects function to call on peer disconnect / timeout, can be NULL"]
    #[doc = " @param handlers callbacks for messages we care about, NULL-terminated"]
    #[doc = "                note that the core is allowed to drop notifications about inbound"]
    #[doc = "                messages if the client does not process them fast enough (for this"]
    #[doc = "                notification type, a bounded queue is used)"]
    #[doc = " @return handle to the core service (only useful for disconnect until @a init is called),"]
    #[doc = "           NULL on error (in this case, init is never called)"]
    pub fn GNUNET_CORE_connect(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        cls: *mut ::std::os::raw::c_void,
        init: GNUNET_CORE_StartupCallback,
        connects: GNUNET_CORE_ConnectEventHandler,
        disconnects: GNUNET_CORE_DisconnectEventHandler,
        handlers: *const GNUNET_MQ_MessageHandler,
    ) -> *mut GNUNET_CORE_Handle;
}
extern "C" {
    #[doc = " Disconnect from the core service."]
    #[doc = ""]
    #[doc = " @param handle connection to core to disconnect"]
    pub fn GNUNET_CORE_disconnect(handle: *mut GNUNET_CORE_Handle);
}
extern "C" {
    #[doc = " Obtain the message queue for a connected peer."]
    #[doc = ""]
    #[doc = " @param h the core handle"]
    #[doc = " @param pid the identity of the peer"]
    #[doc = " @return NULL if @a pid is not connected"]
    pub fn GNUNET_CORE_get_mq(
        h: *const GNUNET_CORE_Handle,
        pid: *const GNUNET_PeerIdentity,
    ) -> *mut GNUNET_MQ_Handle;
}
#[doc = " Handle to a CORE monitoring operation."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_CORE_MonitorHandle {
    _unused: [u8; 0],
}
#[doc = " No handshake yet."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_STATE_DOWN: GNUNET_CORE_KxState = 0;
#[doc = " We've sent our session key."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_STATE_KEY_SENT: GNUNET_CORE_KxState = 1;
#[doc = " We've received the other peers session key."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_STATE_KEY_RECEIVED: GNUNET_CORE_KxState = 2;
#[doc = " The other peer has confirmed our session key + PING with a PONG"]
#[doc = " message encrypted with their session key (which we got).  Key"]
#[doc = " exchange is done."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_STATE_UP: GNUNET_CORE_KxState = 3;
#[doc = " We're rekeying (or had a timeout), so we have sent the other peer"]
#[doc = " our new ephemeral key, but we did not get a matching PONG yet."]
#[doc = " This is equivalent to being #GNUNET_CORE_KX_STATE_KEY_RECEIVED,"]
#[doc = " except that the session is marked as 'up' with sessions (as we"]
#[doc = " don't want to drop and re-establish P2P connections simply due to"]
#[doc = " rekeying)."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_STATE_REKEY_SENT: GNUNET_CORE_KxState = 4;
#[doc = " Last state of a KX (when it is being terminated).  Set"]
#[doc = " just before CORE frees the internal state for this peer."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_PEER_DISCONNECT: GNUNET_CORE_KxState = 5;
#[doc = " This is not a state in a peer's state machine, but a special"]
#[doc = " value used with the #GNUNET_CORE_MonitorCallback to indicate"]
#[doc = " that we finished the initial iteration over the peers."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_ITERATION_FINISHED: GNUNET_CORE_KxState = 6;
#[doc = " This is not a state in a peer's state machine, but a special"]
#[doc = " value used with the #GNUNET_CORE_MonitorCallback to indicate"]
#[doc = " that we lost the connection to the CORE service (and will try"]
#[doc = " to reconnect).  If this happens, most likely the CORE service"]
#[doc = " crashed and thus all connection state should be assumed lost."]
pub const GNUNET_CORE_KxState_GNUNET_CORE_KX_CORE_DISCONNECT: GNUNET_CORE_KxState = 7;
#[doc = " State machine for our P2P encryption handshake.  Everyone starts in"]
#[doc = " #GNUNET_CORE_KX_STATE_DOWN, if we receive the other peer's key"]
#[doc = " (other peer initiated) we start in state"]
#[doc = " #GNUNET_CORE_KX_STATE_KEY_RECEIVED (since we will immediately send"]
#[doc = " our own); otherwise we start in #GNUNET_CORE_KX_STATE_KEY_SENT.  If"]
#[doc = " we get back a PONG from within either state, we move up to"]
#[doc = " #GNUNET_CORE_KX_STATE_UP (the PONG will always be sent back"]
#[doc = " encrypted with the key we sent to the other peer).  Eventually,"]
#[doc = " we will try to rekey, for this we will enter"]
#[doc = " #GNUNET_CORE_KX_STATE_REKEY_SENT until the rekey operation is"]
#[doc = " confirmed by a PONG from the other peer."]
pub type GNUNET_CORE_KxState = ::std::os::raw::c_uint;
#[doc = " Function called by the monitor callback whenever"]
#[doc = " a peer's connection status changes."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param pid identity of the peer this update is about"]
#[doc = " @param state current key exchange state of the peer"]
#[doc = " @param timeout when does the current state expire"]
pub type GNUNET_CORE_MonitorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        pid: *const GNUNET_PeerIdentity,
        state: GNUNET_CORE_KxState,
        timeout: GNUNET_TIME_Absolute,
    ),
>;
extern "C" {
    #[doc = " Monitor connectivity and KX status of all peers known to CORE."]
    #[doc = " Calls @a peer_cb with the current status for each connected peer,"]
    #[doc = " and then once with NULL to indicate that all peers that are"]
    #[doc = " currently active have been handled.  After that, the iteration"]
    #[doc = " continues until it is cancelled.  Normal users of the CORE API are"]
    #[doc = " not expected to use this function.  It is different in that it"]
    #[doc = " truly lists all connections (including those where the KX is in"]
    #[doc = " progress), not just those relevant to the application.  This"]
    #[doc = " function is used by special applications for diagnostics."]
    #[doc = ""]
    #[doc = " @param cfg configuration handle"]
    #[doc = " @param peer_cb function to call with the peer information"]
    #[doc = " @param peer_cb_cls closure for @a peer_cb"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_CORE_monitor_start(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        peer_cb: GNUNET_CORE_MonitorCallback,
        peer_cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_CORE_MonitorHandle;
}
extern "C" {
    #[doc = " Stop monitoring CORE activity."]
    #[doc = ""]
    #[doc = " @param mh monitor to stop"]
    pub fn GNUNET_CORE_monitor_stop(mh: *mut GNUNET_CORE_MonitorHandle);
}
extern "C" {
    #[doc = " Check if the given peer is currently connected. This function is for special"]
    #[doc = " circumstances (GNUNET_TESTBED uses it), normal users of the CORE API are"]
    #[doc = " expected to track which peers are connected based on the connect/disconnect"]
    #[doc = " callbacks from #GNUNET_CORE_connect.  This function is NOT part of the"]
    #[doc = " 'versioned', 'official' API.  This function returns"]
    #[doc = " synchronously after looking in the CORE API cache."]
    #[doc = ""]
    #[doc = " @param h the core handle"]
    #[doc = " @param pid the identity of the peer to check if it has been connected to us"]
    #[doc = " @return #GNUNET_YES if the peer is connected to us; #GNUNET_NO if not"]
    pub fn GNUNET_CORE_is_peer_connected_sync(
        h: *const GNUNET_CORE_Handle,
        pid: *const GNUNET_PeerIdentity,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a message queue for sending messages to a peer with CORE."]
    #[doc = " Messages may only be queued with #GNUNET_MQ_send once the init callback has"]
    #[doc = " been called for the given handle."]
    #[doc = " There must only be one queue per peer for each core handle."]
    #[doc = " The message queue can only be used to transmit messages,"]
    #[doc = " not to receive them."]
    #[doc = ""]
    #[doc = " @param h the core handle"]
    #[doc = " @param target the target peer for this queue, may not be NULL"]
    #[doc = " @return a message queue for sending messages over the core handle"]
    #[doc = "         to the target peer"]
    pub fn GNUNET_CORE_mq_create(
        h: *mut GNUNET_CORE_Handle,
        target: *const GNUNET_PeerIdentity,
    ) -> *mut GNUNET_MQ_Handle;
}
#[doc = " The identity type. The value is the same as the"]
#[doc = " PKEY record type."]
pub const GNUNET_IDENTITY_KeyType_GNUNET_IDENTITY_TYPE_ECDSA: GNUNET_IDENTITY_KeyType = 65536;
#[doc = " EDDSA identity. The value is the same as the EDKEY"]
#[doc = " record type."]
pub const GNUNET_IDENTITY_KeyType_GNUNET_IDENTITY_TYPE_EDDSA: GNUNET_IDENTITY_KeyType = 65556;
pub type GNUNET_IDENTITY_KeyType = ::std::os::raw::c_uint;
#[doc = " Handle to access the identity service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_IDENTITY_Handle {
    _unused: [u8; 0],
}
#[doc = " Handle for a ego."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_IDENTITY_Ego {
    _unused: [u8; 0],
}
#[doc = " A private key for an identity as per LSD0001."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_IDENTITY_PrivateKey {
    #[doc = " Type of public key."]
    #[doc = " Defined by the GNS zone type value."]
    #[doc = " In NBO."]
    pub type_: u32,
    pub __bindgen_anon_1: GNUNET_IDENTITY_PrivateKey__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GNUNET_IDENTITY_PrivateKey__bindgen_ty_1 {
    #[doc = " An ECDSA identity key."]
    pub ecdsa_key: GNUNET_CRYPTO_EcdsaPrivateKey,
    #[doc = " AN EdDSA identtiy key"]
    pub eddsa_key: GNUNET_CRYPTO_EddsaPrivateKey,
    _bindgen_union_align: [u8; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_PrivateKey__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_PrivateKey__bindgen_ty_1>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_IDENTITY_PrivateKey__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_PrivateKey__bindgen_ty_1>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_IDENTITY_PrivateKey__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_PrivateKey__bindgen_ty_1>())).ecdsa_key
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PrivateKey__bindgen_ty_1),
            "::",
            stringify!(ecdsa_key)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_PrivateKey__bindgen_ty_1>())).eddsa_key
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PrivateKey__bindgen_ty_1),
            "::",
            stringify!(eddsa_key)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_PrivateKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_PrivateKey>(),
        36usize,
        concat!("Size of: ", stringify!(GNUNET_IDENTITY_PrivateKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_PrivateKey>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_IDENTITY_PrivateKey))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_PrivateKey>())).type_ as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PrivateKey),
            "::",
            stringify!(type_)
        )
    );
}
#[doc = " An identity key as per LSD0001."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_IDENTITY_PublicKey {
    #[doc = " Type of public key."]
    #[doc = " Defined by the GNS zone type value."]
    #[doc = " In NBO."]
    pub type_: u32,
    pub __bindgen_anon_1: GNUNET_IDENTITY_PublicKey__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GNUNET_IDENTITY_PublicKey__bindgen_ty_1 {
    #[doc = " An ECDSA identity key."]
    pub ecdsa_key: GNUNET_CRYPTO_EcdsaPublicKey,
    #[doc = " AN EdDSA identtiy key"]
    pub eddsa_key: GNUNET_CRYPTO_EddsaPublicKey,
    _bindgen_union_align: [u8; 32usize],
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_PublicKey__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_PublicKey__bindgen_ty_1>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_IDENTITY_PublicKey__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_PublicKey__bindgen_ty_1>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_IDENTITY_PublicKey__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_PublicKey__bindgen_ty_1>())).ecdsa_key
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PublicKey__bindgen_ty_1),
            "::",
            stringify!(ecdsa_key)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_PublicKey__bindgen_ty_1>())).eddsa_key
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PublicKey__bindgen_ty_1),
            "::",
            stringify!(eddsa_key)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_PublicKey() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_PublicKey>(),
        36usize,
        concat!("Size of: ", stringify!(GNUNET_IDENTITY_PublicKey))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_PublicKey>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_IDENTITY_PublicKey))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_IDENTITY_PublicKey>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_PublicKey),
            "::",
            stringify!(type_)
        )
    );
}
#[doc = " An identity signature as per LSD0001."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GNUNET_IDENTITY_Signature {
    #[doc = " Type of signature."]
    #[doc = " Defined by the GNS zone type value."]
    #[doc = " In NBO."]
    pub type_: u32,
    pub __bindgen_anon_1: GNUNET_IDENTITY_Signature__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GNUNET_IDENTITY_Signature__bindgen_ty_1 {
    #[doc = " An ECDSA signature"]
    pub ecdsa_signature: GNUNET_CRYPTO_EcdsaSignature,
    #[doc = " AN EdDSA signature"]
    pub eddsa_signature: GNUNET_CRYPTO_EddsaSignature,
    _bindgen_union_align: [u8; 64usize],
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_Signature__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_Signature__bindgen_ty_1>(),
        64usize,
        concat!(
            "Size of: ",
            stringify!(GNUNET_IDENTITY_Signature__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_Signature__bindgen_ty_1>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(GNUNET_IDENTITY_Signature__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_Signature__bindgen_ty_1>())).ecdsa_signature
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_Signature__bindgen_ty_1),
            "::",
            stringify!(ecdsa_signature)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GNUNET_IDENTITY_Signature__bindgen_ty_1>())).eddsa_signature
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_Signature__bindgen_ty_1),
            "::",
            stringify!(eddsa_signature)
        )
    );
}
#[test]
fn bindgen_test_layout_GNUNET_IDENTITY_Signature() {
    assert_eq!(
        ::std::mem::size_of::<GNUNET_IDENTITY_Signature>(),
        68usize,
        concat!("Size of: ", stringify!(GNUNET_IDENTITY_Signature))
    );
    assert_eq!(
        ::std::mem::align_of::<GNUNET_IDENTITY_Signature>(),
        4usize,
        concat!("Alignment of ", stringify!(GNUNET_IDENTITY_Signature))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GNUNET_IDENTITY_Signature>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GNUNET_IDENTITY_Signature),
            "::",
            stringify!(type_)
        )
    );
}
#[doc = " Handle for an operation with the identity service."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_IDENTITY_Operation {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Obtain the ECC key associated with a ego."]
    #[doc = ""]
    #[doc = " @param ego the ego"]
    #[doc = " @return associated ECC key, valid as long as the ego is valid"]
    pub fn GNUNET_IDENTITY_ego_get_private_key(
        ego: *const GNUNET_IDENTITY_Ego,
    ) -> *const GNUNET_IDENTITY_PrivateKey;
}
extern "C" {
    #[doc = " Obtain the ego representing 'anonymous' users."]
    #[doc = ""]
    #[doc = " @return handle for the anonymous user, MUST NOT be freed"]
    pub fn GNUNET_IDENTITY_ego_get_anonymous() -> *mut GNUNET_IDENTITY_Ego;
}
extern "C" {
    #[doc = " Get the identifier (public key) of an ego."]
    #[doc = ""]
    #[doc = " @param ego identity handle with the private key"]
    #[doc = " @param pk set to ego's public key"]
    pub fn GNUNET_IDENTITY_ego_get_public_key(
        ego: *mut GNUNET_IDENTITY_Ego,
        pk: *mut GNUNET_IDENTITY_PublicKey,
    );
}
#[doc = " Method called to inform about the egos of this peer."]
#[doc = ""]
#[doc = " When used with #GNUNET_IDENTITY_connect, this function is"]
#[doc = " initially called for all egos and then again whenever a"]
#[doc = " ego's name changes or if it is deleted.  At the end of"]
#[doc = " the initial pass over all egos, the function is once called"]
#[doc = " with 'NULL' for @a ego. That does NOT mean that the callback won't"]
#[doc = " be invoked in the future or that there was an error."]
#[doc = ""]
#[doc = " When used with #GNUNET_IDENTITY_create or #GNUNET_IDENTITY_get,"]
#[doc = " this function is only called ONCE, and 'NULL' being passed in"]
#[doc = " @a ego does indicate an error (i.e. name is taken or no default"]
#[doc = " value is known).  If @a ego is non-NULL and if '*ctx'"]
#[doc = " is set in those callbacks, the value WILL be passed to a subsequent"]
#[doc = " call to the identity callback of #GNUNET_IDENTITY_connect (if"]
#[doc = " that one was not NULL)."]
#[doc = ""]
#[doc = " When an identity is renamed, this function is called with the"]
#[doc = " (known) @a ego but the NEW @a name."]
#[doc = ""]
#[doc = " When an identity is deleted, this function is called with the"]
#[doc = " (known) ego and \"NULL\" for the @a name.  In this case,"]
#[doc = " the @a ego is henceforth invalid (and the @a ctx should also be"]
#[doc = " cleaned up)."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param ego ego handle"]
#[doc = " @param ctx context for application to store data for this ego"]
#[doc = "                 (during the lifetime of this process, initially NULL)"]
#[doc = " @param name name assigned by the user for this ego,"]
#[doc = "                   NULL if the user just deleted the ego and it"]
#[doc = "                   must thus no longer be used"]
pub type GNUNET_IDENTITY_Callback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        ego: *mut GNUNET_IDENTITY_Ego,
        ctx: *mut *mut ::std::os::raw::c_void,
        name: *const ::std::os::raw::c_char,
    ),
>;
extern "C" {
    #[doc = " Connect to the identity service."]
    #[doc = ""]
    #[doc = " @param cfg Configuration to contact the identity service."]
    #[doc = " @param cb function to call on all identity events, can be NULL"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to communicate with identity service"]
    pub fn GNUNET_IDENTITY_connect(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        cb: GNUNET_IDENTITY_Callback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Handle;
}
extern "C" {
    #[doc = " Obtain the ego that is currently preferred/default for a service."]
    #[doc = ""]
    #[doc = " @param id identity service to query"]
    #[doc = " @param service_name for which service is an identity wanted"]
    #[doc = " @param cb function to call with the result (will only be called once)"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_get(
        id: *mut GNUNET_IDENTITY_Handle,
        service_name: *const ::std::os::raw::c_char,
        cb: GNUNET_IDENTITY_Callback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Operation;
}
#[doc = " Function called once the requested operation has"]
#[doc = " been completed."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param emsg NULL on success, otherwise an error message"]
pub type GNUNET_IDENTITY_Continuation = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, emsg: *const ::std::os::raw::c_char),
>;
extern "C" {
    #[doc = " Set the preferred/default ego for a service."]
    #[doc = ""]
    #[doc = " @param id identity service to inform"]
    #[doc = " @param service_name for which service is an identity set"]
    #[doc = " @param ego new default identity to be set for this service"]
    #[doc = " @param cont function to call once the operation finished"]
    #[doc = " @param cont_cls closure for @a cont"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_set(
        id: *mut GNUNET_IDENTITY_Handle,
        service_name: *const ::std::os::raw::c_char,
        ego: *mut GNUNET_IDENTITY_Ego,
        cont: GNUNET_IDENTITY_Continuation,
        cont_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Operation;
}
extern "C" {
    #[doc = " Disconnect from identity service."]
    #[doc = ""]
    #[doc = " @param h identity service to disconnect"]
    pub fn GNUNET_IDENTITY_disconnect(h: *mut GNUNET_IDENTITY_Handle);
}
#[doc = " Function called once the requested operation has"]
#[doc = " been completed."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param pk private key, NULL on error"]
#[doc = " @param emsg error message, NULL on success"]
pub type GNUNET_IDENTITY_CreateContinuation = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        pk: *const GNUNET_IDENTITY_PrivateKey,
        emsg: *const ::std::os::raw::c_char,
    ),
>;
extern "C" {
    #[doc = " Create a new ego with the given name."]
    #[doc = ""]
    #[doc = " @param id identity service to use"]
    #[doc = " @param name desired name"]
    #[doc = " @param privkey desired private key or NULL to create one"]
    #[doc = " @param ktype the type of key to create. Ignored if privkey != NULL."]
    #[doc = " @param cont function to call with the result (will only be called once)"]
    #[doc = " @param cont_cls closure for @a cont"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_create(
        id: *mut GNUNET_IDENTITY_Handle,
        name: *const ::std::os::raw::c_char,
        privkey: *const GNUNET_IDENTITY_PrivateKey,
        ktype: GNUNET_IDENTITY_KeyType,
        cont: GNUNET_IDENTITY_CreateContinuation,
        cont_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Operation;
}
extern "C" {
    #[doc = " Renames an existing ego."]
    #[doc = ""]
    #[doc = " @param id identity service to use"]
    #[doc = " @param old_name old name"]
    #[doc = " @param new_name desired new name"]
    #[doc = " @param cb function to call with the result (will only be called once)"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_rename(
        id: *mut GNUNET_IDENTITY_Handle,
        old_name: *const ::std::os::raw::c_char,
        new_name: *const ::std::os::raw::c_char,
        cb: GNUNET_IDENTITY_Continuation,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Operation;
}
extern "C" {
    #[doc = " Delete an existing ego."]
    #[doc = ""]
    #[doc = " @param id identity service to use"]
    #[doc = " @param name name of the identity to delete"]
    #[doc = " @param cb function to call with the result (will only be called once)"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_delete(
        id: *mut GNUNET_IDENTITY_Handle,
        name: *const ::std::os::raw::c_char,
        cb: GNUNET_IDENTITY_Continuation,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_Operation;
}
extern "C" {
    #[doc = " Cancel an identity operation.  Note that the operation MAY still"]
    #[doc = " be executed; this merely cancels the continuation; if the request"]
    #[doc = " was already transmitted, the service may still choose to complete"]
    #[doc = " the operation."]
    #[doc = ""]
    #[doc = " @param op operation to cancel"]
    pub fn GNUNET_IDENTITY_cancel(op: *mut GNUNET_IDENTITY_Operation);
}
extern "C" {
    #[doc = " Get the compacted length of a #GNUNET_IDENTITY_PublicKey."]
    #[doc = " Compacted means that it returns the minimum number of bytes this"]
    #[doc = " key is long, as opposed to the union structure inside"]
    #[doc = " #GNUNET_IDENTITY_PublicKey."]
    #[doc = " Useful for compact serializations."]
    #[doc = ""]
    #[doc = " @param key the key."]
    #[doc = " @return -1 on error, else the compacted length of the key."]
    pub fn GNUNET_IDENTITY_key_get_length(key: *const GNUNET_IDENTITY_PublicKey) -> isize;
}
extern "C" {
    #[doc = " Reads a #GNUNET_IDENTITY_PublicKey from a compact buffer."]
    #[doc = " The buffer has to contain at least the compacted length of"]
    #[doc = " a #GNUNET_IDENTITY_PublicKey in bytes."]
    #[doc = " If the buffer is too small, the function returns -1 as error."]
    #[doc = " If the buffer does not contain a valid key, it returns -2 as error."]
    #[doc = ""]
    #[doc = " @param key the key"]
    #[doc = " @param buffer the buffer"]
    #[doc = " @param len the length of buffer"]
    #[doc = " @return -1 or -2 on error, else the amount of bytes read from the buffer"]
    pub fn GNUNET_IDENTITY_read_key_from_buffer(
        key: *mut GNUNET_IDENTITY_PublicKey,
        buffer: *const ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Writes a #GNUNET_IDENTITY_PublicKey to a compact buffer."]
    #[doc = " The buffer requires space for at least the compacted length of"]
    #[doc = " a #GNUNET_IDENTITY_PublicKey in bytes."]
    #[doc = " If the buffer is too small, the function returns -1 as error."]
    #[doc = " If the key is not valid, it returns -2 as error."]
    #[doc = ""]
    #[doc = " @param key the key"]
    #[doc = " @param buffer the buffer"]
    #[doc = " @param len the length of buffer"]
    #[doc = " @return -1 or -2 on error, else the amount of bytes written to the buffer"]
    pub fn GNUNET_IDENTITY_write_key_to_buffer(
        key: *const GNUNET_IDENTITY_PublicKey,
        buffer: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Get the compacted length of a #GNUNET_IDENTITY_Signature."]
    #[doc = " Compacted means that it returns the minimum number of bytes this"]
    #[doc = " signature is long, as opposed to the union structure inside"]
    #[doc = " #GNUNET_IDENTITY_Signature."]
    #[doc = " Useful for compact serializations."]
    #[doc = ""]
    #[doc = " @param sig the signature."]
    #[doc = " @return -1 on error, else the compacted length of the signature."]
    pub fn GNUNET_IDENTITY_signature_get_length(sig: *const GNUNET_IDENTITY_Signature) -> isize;
}
extern "C" {
    #[doc = " Reads a #GNUNET_IDENTITY_Signature from a compact buffer."]
    #[doc = " The buffer has to contain at least the compacted length of"]
    #[doc = " a #GNUNET_IDENTITY_Signature in bytes."]
    #[doc = " If the buffer is too small, the function returns -1 as error."]
    #[doc = " If the buffer does not contain a valid key, it returns -2 as error."]
    #[doc = ""]
    #[doc = " @param sig the signature"]
    #[doc = " @param buffer the buffer"]
    #[doc = " @param len the length of buffer"]
    #[doc = " @return -1 or -2 on error, else the amount of bytes read from the buffer"]
    pub fn GNUNET_IDENTITY_read_signature_from_buffer(
        sig: *mut GNUNET_IDENTITY_Signature,
        buffer: *const ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " Writes a #GNUNET_IDENTITY_Signature to a compact buffer."]
    #[doc = " The buffer requires space for at least the compacted length of"]
    #[doc = " a #GNUNET_IDENTITY_Signature in bytes."]
    #[doc = " If the buffer is too small, the function returns -1 as error."]
    #[doc = " If the key is not valid, it returns -2 as error."]
    #[doc = ""]
    #[doc = " @param sig the signature"]
    #[doc = " @param buffer the buffer"]
    #[doc = " @param len the length of buffer"]
    #[doc = " @return -1 or -2 on error, else the amount of bytes written to the buffer"]
    pub fn GNUNET_IDENTITY_write_signature_to_buffer(
        sig: *const GNUNET_IDENTITY_Signature,
        buffer: *mut ::std::os::raw::c_void,
        len: usize,
    ) -> isize;
}
extern "C" {
    #[doc = " @brief Sign a given block."]
    #[doc = ""]
    #[doc = " The @a purpose data is the beginning of the data of which the signature is"]
    #[doc = " to be created. The `size` field in @a purpose must correctly indicate the"]
    #[doc = " number of bytes of the data structure, including its header. If possible,"]
    #[doc = " use #GNUNET_IDENTITY_sign() instead of this function."]
    #[doc = ""]
    #[doc = " @param priv private key to use for the signing"]
    #[doc = " @param purpose what to sign (size, purpose)"]
    #[doc = " @param[out] sig where to write the signature"]
    #[doc = " @return #GNUNET_SYSERR on error, #GNUNET_OK on success"]
    pub fn GNUNET_IDENTITY_sign_(
        priv_: *const GNUNET_IDENTITY_PrivateKey,
        purpose: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *mut GNUNET_IDENTITY_Signature,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " @brief Verify a given signature."]
    #[doc = ""]
    #[doc = " The @a validate data is the beginning of the data of which the signature"]
    #[doc = " is to be verified. The `size` field in @a validate must correctly indicate"]
    #[doc = " the number of bytes of the data structure, including its header.  If @a"]
    #[doc = " purpose does not match the purpose given in @a validate (the latter must be"]
    #[doc = " in big endian), signature verification fails.  If possible,"]
    #[doc = " use #GNUNET_IDENTITY_signature_verify() instead of this function (only if @a validate"]
    #[doc = " is not fixed-size, you must use this function directly)."]
    #[doc = ""]
    #[doc = " @param purpose what is the purpose that the signature should have?"]
    #[doc = " @param validate block to validate (size, purpose, data)"]
    #[doc = " @param sig signature that is being validated"]
    #[doc = " @param pub public key of the signer"]
    #[doc = " @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid"]
    pub fn GNUNET_IDENTITY_signature_verify_(
        purpose: u32,
        validate: *const GNUNET_CRYPTO_EccSignaturePurpose,
        sig: *const GNUNET_IDENTITY_Signature,
        pub_: *const GNUNET_IDENTITY_PublicKey,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Encrypt a block with #GNUNET_IDENTITY_PublicKey and derives a"]
    #[doc = " #GNUNET_CRYPTO_EcdhePublicKey which is required for decryption"]
    #[doc = " using ecdh to derive a symmetric key."]
    #[doc = ""]
    #[doc = " @param block the block to encrypt"]
    #[doc = " @param size the size of the @a block"]
    #[doc = " @param pub public key to use for ecdh"]
    #[doc = " @param ecc where to write the ecc public key"]
    #[doc = " @param result the output parameter in which to store the encrypted result"]
    #[doc = "               can be the same or overlap with @c block"]
    #[doc = " @returns the size of the encrypted block, -1 for errors."]
    #[doc = "          Due to the use of CFB and therefore an effective stream cipher,"]
    #[doc = "          this size should be the same as @c len."]
    pub fn GNUNET_IDENTITY_encrypt(
        block: *const ::std::os::raw::c_void,
        size: usize,
        pub_: *const GNUNET_IDENTITY_PublicKey,
        ecc: *mut GNUNET_CRYPTO_EcdhePublicKey,
        result: *mut ::std::os::raw::c_void,
    ) -> isize;
}
extern "C" {
    #[doc = " Decrypt a given block with #GNUNET_IDENTITY_PrivateKey and a given"]
    #[doc = " #GNUNET_CRYPTO_EcdhePublicKey using ecdh to derive a symmetric key."]
    #[doc = ""]
    #[doc = " @param block the data to decrypt, encoded as returned by encrypt"]
    #[doc = " @param size the size of the @a block to decrypt"]
    #[doc = " @param priv private key to use for ecdh"]
    #[doc = " @param ecc the ecc public key"]
    #[doc = " @param result address to store the result at"]
    #[doc = "               can be the same or overlap with @c block"]
    #[doc = " @return -1 on failure, size of decrypted block on success."]
    #[doc = "         Due to the use of CFB and therefore an effective stream cipher,"]
    #[doc = "         this size should be the same as @c size."]
    pub fn GNUNET_IDENTITY_decrypt(
        block: *const ::std::os::raw::c_void,
        size: usize,
        priv_: *const GNUNET_IDENTITY_PrivateKey,
        ecc: *const GNUNET_CRYPTO_EcdhePublicKey,
        result: *mut ::std::os::raw::c_void,
    ) -> isize;
}
extern "C" {
    #[doc = " Creates a (Base32) string representation of the public key."]
    #[doc = " The resulting string encodes a compacted representation of the key."]
    #[doc = " See also #GNUNET_IDENTITY_key_get_length."]
    #[doc = ""]
    #[doc = " @param key the key."]
    #[doc = " @return the string representation of the key, or NULL on error."]
    pub fn GNUNET_IDENTITY_public_key_to_string(
        key: *const GNUNET_IDENTITY_PublicKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Creates a (Base32) string representation of the private key."]
    #[doc = " The resulting string encodes a compacted representation of the key."]
    #[doc = " See also #GNUNET_IDENTITY_key_get_length."]
    #[doc = ""]
    #[doc = " @param key the key."]
    #[doc = " @return the string representation of the key, or NULL on error."]
    pub fn GNUNET_IDENTITY_private_key_to_string(
        key: *const GNUNET_IDENTITY_PrivateKey,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Parses a (Base32) string representation of the public key."]
    #[doc = " See also #GNUNET_IDENTITY_public_key_to_string."]
    #[doc = ""]
    #[doc = " @param str the encoded key."]
    #[doc = " @param key where to write the key."]
    #[doc = " @return GNUNET_SYSERR on error."]
    pub fn GNUNET_IDENTITY_public_key_from_string(
        str_: *const ::std::os::raw::c_char,
        key: *mut GNUNET_IDENTITY_PublicKey,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Parses a (Base32) string representation of the private key."]
    #[doc = " See also #GNUNET_IDENTITY_private_key_to_string."]
    #[doc = ""]
    #[doc = " @param str the encoded key."]
    #[doc = " @param key where to write the key."]
    #[doc = " @return GNUNET_SYSERR on error."]
    pub fn GNUNET_IDENTITY_private_key_from_string(
        str_: *const ::std::os::raw::c_char,
        key: *mut GNUNET_IDENTITY_PrivateKey,
    ) -> GNUNET_GenericReturnValue;
}
extern "C" {
    #[doc = " Retrieves the public key representation of a private key."]
    #[doc = ""]
    #[doc = " @param privkey the private key."]
    #[doc = " @param key the public key result."]
    #[doc = " @return GNUNET_SYSERR on error."]
    pub fn GNUNET_IDENTITY_key_get_public(
        privkey: *const GNUNET_IDENTITY_PrivateKey,
        key: *mut GNUNET_IDENTITY_PublicKey,
    ) -> GNUNET_GenericReturnValue;
}
#[doc = " Function called with the result."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param ego NULL on error / ego not found"]
pub type GNUNET_IDENTITY_EgoCallback = ::std::option::Option<
    unsafe extern "C" fn(cls: *mut ::std::os::raw::c_void, ego: *mut GNUNET_IDENTITY_Ego),
>;
#[doc = " Handle for ego lookup."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_IDENTITY_EgoLookup {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Lookup an ego by name."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param name name to look up"]
    #[doc = " @param cb callback to invoke with the result"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return NULL on error"]
    pub fn GNUNET_IDENTITY_ego_lookup(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        name: *const ::std::os::raw::c_char,
        cb: GNUNET_IDENTITY_EgoCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_EgoLookup;
}
extern "C" {
    #[doc = " Abort ego lookup attempt."]
    #[doc = ""]
    #[doc = " @param el handle for lookup to abort"]
    pub fn GNUNET_IDENTITY_ego_lookup_cancel(el: *mut GNUNET_IDENTITY_EgoLookup);
}
#[doc = " Function called with the result."]
#[doc = ""]
#[doc = " @param cls closure"]
#[doc = " @param ego NULL on error / ego not found"]
#[doc = " @param ego_name NULL on error, name of the ego otherwise"]
pub type GNUNET_IDENTITY_EgoSuffixCallback = ::std::option::Option<
    unsafe extern "C" fn(
        cls: *mut ::std::os::raw::c_void,
        priv_: *const GNUNET_IDENTITY_PrivateKey,
        ego_name: *const ::std::os::raw::c_char,
    ),
>;
#[doc = " Handle for suffix lookup."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GNUNET_IDENTITY_EgoSuffixLookup {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Obtain the ego with the maximum suffix match between the"]
    #[doc = " ego's name and the given domain name @a suffix.  I.e., given"]
    #[doc = " a @a suffix \"a.b.c\" and egos with names \"d.a.b.c\", \"b.c\" and \"c\","]
    #[doc = " we return the ego for \"b.c\"."]
    #[doc = ""]
    #[doc = " @param cfg configuration to use"]
    #[doc = " @param suffix for which domain name suffix is an identity wanted"]
    #[doc = " @param cb function to call with the result (will only be called once)"]
    #[doc = " @param cb_cls closure for @a cb"]
    #[doc = " @return handle to abort the operation"]
    pub fn GNUNET_IDENTITY_ego_lookup_by_suffix(
        cfg: *const GNUNET_CONFIGURATION_Handle,
        suffix: *const ::std::os::raw::c_char,
        cb: GNUNET_IDENTITY_EgoSuffixCallback,
        cb_cls: *mut ::std::os::raw::c_void,
    ) -> *mut GNUNET_IDENTITY_EgoSuffixLookup;
}
extern "C" {
    #[doc = " Abort ego suffix lookup attempt."]
    #[doc = ""]
    #[doc = " @param el handle for lookup to abort"]
    pub fn GNUNET_IDENTITY_ego_lookup_by_suffix_cancel(el: *mut GNUNET_IDENTITY_EgoSuffixLookup);
}
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)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_at {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_ax25 {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_dl {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_eon {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_inarp {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_ipx {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_iso {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_ns {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_un {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sockaddr_x25 {
    pub _address: u8,
}