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
/* automatically generated by rust-bindgen 0.56.0 */

pub const _STDIO_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: 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 __STDC_NO_THREADS__: u32 = 1;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 27;
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 __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const ____FILE_defined: u32 = 1;
pub const __FILE_defined: u32 = 1;
pub const _BITS_LIBIO_H: u32 = 1;
pub const _BITS_G_CONFIG_H: u32 = 1;
pub const ____mbstate_t_defined: u32 = 1;
pub const _G_HAVE_MMAP: u32 = 1;
pub const _G_HAVE_MREMAP: u32 = 1;
pub const _G_IO_IO_FILE_VERSION: u32 = 131073;
pub const _G_BUFSIZ: u32 = 8192;
pub const _IO_BUFSIZ: u32 = 8192;
pub const __GNUC_VA_LIST: u32 = 1;
pub const _IO_UNIFIED_JUMPTABLES: u32 = 1;
pub const EOF: i32 = -1;
pub const _IOS_INPUT: u32 = 1;
pub const _IOS_OUTPUT: u32 = 2;
pub const _IOS_ATEND: u32 = 4;
pub const _IOS_APPEND: u32 = 8;
pub const _IOS_TRUNC: u32 = 16;
pub const _IOS_NOCREATE: u32 = 32;
pub const _IOS_NOREPLACE: u32 = 64;
pub const _IOS_BIN: u32 = 128;
pub const _IO_MAGIC: u32 = 4222418944;
pub const _OLD_STDIO_MAGIC: u32 = 4206624768;
pub const _IO_MAGIC_MASK: u32 = 4294901760;
pub const _IO_USER_BUF: u32 = 1;
pub const _IO_UNBUFFERED: u32 = 2;
pub const _IO_NO_READS: u32 = 4;
pub const _IO_NO_WRITES: u32 = 8;
pub const _IO_EOF_SEEN: u32 = 16;
pub const _IO_ERR_SEEN: u32 = 32;
pub const _IO_DELETE_DONT_CLOSE: u32 = 64;
pub const _IO_LINKED: u32 = 128;
pub const _IO_IN_BACKUP: u32 = 256;
pub const _IO_LINE_BUF: u32 = 512;
pub const _IO_TIED_PUT_GET: u32 = 1024;
pub const _IO_CURRENTLY_PUTTING: u32 = 2048;
pub const _IO_IS_APPENDING: u32 = 4096;
pub const _IO_IS_FILEBUF: u32 = 8192;
pub const _IO_BAD_SEEN: u32 = 16384;
pub const _IO_USER_LOCK: u32 = 32768;
pub const _IO_FLAGS2_MMAP: u32 = 1;
pub const _IO_FLAGS2_NOTCANCEL: u32 = 2;
pub const _IO_FLAGS2_USER_WBUF: u32 = 8;
pub const _IO_SKIPWS: u32 = 1;
pub const _IO_LEFT: u32 = 2;
pub const _IO_RIGHT: u32 = 4;
pub const _IO_INTERNAL: u32 = 8;
pub const _IO_DEC: u32 = 16;
pub const _IO_OCT: u32 = 32;
pub const _IO_HEX: u32 = 64;
pub const _IO_SHOWBASE: u32 = 128;
pub const _IO_SHOWPOINT: u32 = 256;
pub const _IO_UPPERCASE: u32 = 512;
pub const _IO_SHOWPOS: u32 = 1024;
pub const _IO_SCIENTIFIC: u32 = 2048;
pub const _IO_FIXED: u32 = 4096;
pub const _IO_UNITBUF: u32 = 8192;
pub const _IO_STDIO: u32 = 16384;
pub const _IO_DONT_CLOSE: u32 = 32768;
pub const _IO_BOOLALPHA: u32 = 65536;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 8192;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
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 FOPEN_MAX: u32 = 16;
pub const MQTT_INVALID_PROPERTY_ID: i32 = -2;
pub const MQTTCLIENT_PERSISTENCE_DEFAULT: u32 = 0;
pub const MQTTCLIENT_PERSISTENCE_NONE: u32 = 1;
pub const MQTTCLIENT_PERSISTENCE_USER: u32 = 2;
pub const MQTTCLIENT_PERSISTENCE_ERROR: i32 = -2;
pub const MQTTASYNC_SUCCESS: u32 = 0;
pub const MQTTASYNC_FAILURE: i32 = -1;
pub const MQTTASYNC_PERSISTENCE_ERROR: i32 = -2;
pub const MQTTASYNC_DISCONNECTED: i32 = -3;
pub const MQTTASYNC_MAX_MESSAGES_INFLIGHT: i32 = -4;
pub const MQTTASYNC_BAD_UTF8_STRING: i32 = -5;
pub const MQTTASYNC_NULL_PARAMETER: i32 = -6;
pub const MQTTASYNC_TOPICNAME_TRUNCATED: i32 = -7;
pub const MQTTASYNC_BAD_STRUCTURE: i32 = -8;
pub const MQTTASYNC_BAD_QOS: i32 = -9;
pub const MQTTASYNC_NO_MORE_MSGIDS: i32 = -10;
pub const MQTTASYNC_OPERATION_INCOMPLETE: i32 = -11;
pub const MQTTASYNC_MAX_BUFFERED_MESSAGES: i32 = -12;
pub const MQTTASYNC_SSL_NOT_SUPPORTED: i32 = -13;
pub const MQTTASYNC_BAD_PROTOCOL: i32 = -14;
pub const MQTTASYNC_BAD_MQTT_OPTION: i32 = -15;
pub const MQTTASYNC_WRONG_MQTT_VERSION: i32 = -16;
pub const MQTTASYNC_0_LEN_WILL_TOPIC: i32 = -17;
pub const MQTTVERSION_DEFAULT: u32 = 0;
pub const MQTTVERSION_3_1: u32 = 3;
pub const MQTTVERSION_3_1_1: u32 = 4;
pub const MQTTVERSION_5: u32 = 5;
pub const MQTT_BAD_SUBSCRIBE: u32 = 128;
pub const MQTT_SSL_VERSION_DEFAULT: u32 = 0;
pub const MQTT_SSL_VERSION_TLS_1_0: u32 = 1;
pub const MQTT_SSL_VERSION_TLS_1_1: u32 = 2;
pub const MQTT_SSL_VERSION_TLS_1_2: u32 = 3;
pub const MQTTASYNC_TRUE: u32 = 1;
pub type size_t = ::std::os::raw::c_ulong;
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
    pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
    assert_eq!(
        ::std::mem::size_of::<__fsid_t>(),
        8usize,
        concat!("Size of: ", stringify!(__fsid_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__fsid_t>(),
        4usize,
        concat!("Alignment of ", stringify!(__fsid_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__fsid_t),
            "::",
            stringify!(__val)
        )
    );
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[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)
        )
    );
}
#[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 va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_jump_t {
    _unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    pub _next: *mut _IO_marker,
    pub _sbuf: *mut _IO_FILE,
    pub _pos: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__IO_marker() {
    assert_eq!(
        ::std::mem::size_of::<_IO_marker>(),
        24usize,
        concat!("Size of: ", stringify!(_IO_marker))
    );
    assert_eq!(
        ::std::mem::align_of::<_IO_marker>(),
        8usize,
        concat!("Alignment of ", stringify!(_IO_marker))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._next as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_next)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._sbuf as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_sbuf)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_marker>()))._pos as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_marker),
            "::",
            stringify!(_pos)
        )
    );
}
pub const __codecvt_result___codecvt_ok: __codecvt_result = 0;
pub const __codecvt_result___codecvt_partial: __codecvt_result = 1;
pub const __codecvt_result___codecvt_error: __codecvt_result = 2;
pub const __codecvt_result___codecvt_noconv: __codecvt_result = 3;
pub type __codecvt_result = ::std::os::raw::c_uint;
#[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 __pad1: *mut ::std::os::raw::c_void,
    pub __pad2: *mut ::std::os::raw::c_void,
    pub __pad3: *mut ::std::os::raw::c_void,
    pub __pad4: *mut ::std::os::raw::c_void,
    pub __pad5: size_t,
    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>())).__pad1 as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad1)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad2 as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad3 as *const _ as usize },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad3)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad4 as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(_IO_FILE),
            "::",
            stringify!(__pad4)
        )
    );
    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)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE_plus {
    _unused: [u8; 0],
}
extern "C" {
    pub static mut _IO_2_1_stdin_: _IO_FILE_plus;
}
extern "C" {
    pub static mut _IO_2_1_stdout_: _IO_FILE_plus;
}
extern "C" {
    pub static mut _IO_2_1_stderr_: _IO_FILE_plus;
}
pub type __io_read_fn = ::std::option::Option<
    unsafe extern "C" fn(
        __cookie: *mut ::std::os::raw::c_void,
        __buf: *mut ::std::os::raw::c_char,
        __nbytes: size_t,
    ) -> __ssize_t,
>;
pub type __io_write_fn = ::std::option::Option<
    unsafe extern "C" fn(
        __cookie: *mut ::std::os::raw::c_void,
        __buf: *const ::std::os::raw::c_char,
        __n: size_t,
    ) -> __ssize_t,
>;
pub type __io_seek_fn = ::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 __io_close_fn = ::std::option::Option<
    unsafe extern "C" fn(__cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn __underflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __uflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __overflow(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_getc(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_putc(__c: ::std::os::raw::c_int, __fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_feof(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_ferror(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_peekc_locked(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_flockfile(arg1: *mut _IO_FILE);
}
extern "C" {
    pub fn _IO_funlockfile(arg1: *mut _IO_FILE);
}
extern "C" {
    pub fn _IO_ftrylockfile(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_vfscanf(
        arg1: *mut _IO_FILE,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
        arg4: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_vfprintf(
        arg1: *mut _IO_FILE,
        arg2: *const ::std::os::raw::c_char,
        arg3: *mut __va_list_tag,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn _IO_padn(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int, arg3: __ssize_t)
        -> __ssize_t;
}
extern "C" {
    pub fn _IO_sgetn(
        arg1: *mut _IO_FILE,
        arg2: *mut ::std::os::raw::c_void,
        arg3: size_t,
    ) -> size_t;
}
extern "C" {
    pub fn _IO_seekoff(
        arg1: *mut _IO_FILE,
        arg2: __off64_t,
        arg3: ::std::os::raw::c_int,
        arg4: ::std::os::raw::c_int,
    ) -> __off64_t;
}
extern "C" {
    pub fn _IO_seekpos(
        arg1: *mut _IO_FILE,
        arg2: __off64_t,
        arg3: ::std::os::raw::c_int,
    ) -> __off64_t;
}
extern "C" {
    pub fn _IO_free_backup_area(arg1: *mut _IO_FILE);
}
pub type off_t = __off_t;
pub type ssize_t = __ssize_t;
pub type fpos_t = _G_fpos_t;
extern "C" {
    pub static mut stdin: *mut _IO_FILE;
}
extern "C" {
    pub static mut stdout: *mut _IO_FILE;
}
extern "C" {
    pub static mut stderr: *mut _IO_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 tmpfile() -> *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 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 fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
        -> *mut FILE;
}
extern "C" {
    pub fn fmemopen(
        __s: *mut ::std::os::raw::c_void,
        __len: size_t,
        __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 size_t,
    ) -> *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: size_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: size_t);
}
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 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 __getdelim(
        __lineptr: *mut *mut ::std::os::raw::c_char,
        __n: *mut size_t,
        __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 size_t,
        __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 size_t,
        __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 fread_unlocked(
        __ptr: *mut ::std::os::raw::c_void,
        __size: size_t,
        __n: size_t,
        __stream: *mut FILE,
    ) -> size_t;
}
extern "C" {
    pub fn fwrite_unlocked(
        __ptr: *const ::std::os::raw::c_void,
        __size: size_t,
        __n: size_t,
        __stream: *mut FILE,
    ) -> size_t;
}
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 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 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 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);
}
#[doc = "< The value is 1"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_PAYLOAD_FORMAT_INDICATOR: MQTTPropertyCodes = 1;
#[doc = "< The value is 2"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_MESSAGE_EXPIRY_INTERVAL: MQTTPropertyCodes = 2;
#[doc = "< The value is 3"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_CONTENT_TYPE: MQTTPropertyCodes = 3;
#[doc = "< The value is 8"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_RESPONSE_TOPIC: MQTTPropertyCodes = 8;
#[doc = "< The value is 9"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_CORRELATION_DATA: MQTTPropertyCodes = 9;
#[doc = "< The value is 11"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SUBSCRIPTION_IDENTIFIER: MQTTPropertyCodes = 11;
#[doc = "< The value is 17"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SESSION_EXPIRY_INTERVAL: MQTTPropertyCodes = 17;
#[doc = "< The value is 18"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_ASSIGNED_CLIENT_IDENTIFER: MQTTPropertyCodes = 18;
#[doc = "< The value is 19"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SERVER_KEEP_ALIVE: MQTTPropertyCodes = 19;
#[doc = "< The value is 21"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_AUTHENTICATION_METHOD: MQTTPropertyCodes = 21;
#[doc = "< The value is 22"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_AUTHENTICATION_DATA: MQTTPropertyCodes = 22;
#[doc = "< The value is 23"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_REQUEST_PROBLEM_INFORMATION: MQTTPropertyCodes = 23;
#[doc = "< The value is 24"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_WILL_DELAY_INTERVAL: MQTTPropertyCodes = 24;
#[doc = "< The value is 25"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_REQUEST_RESPONSE_INFORMATION: MQTTPropertyCodes = 25;
#[doc = "< The value is 26"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_RESPONSE_INFORMATION: MQTTPropertyCodes = 26;
#[doc = "< The value is 28"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SERVER_REFERENCE: MQTTPropertyCodes = 28;
#[doc = "< The value is 31"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_REASON_STRING: MQTTPropertyCodes = 31;
#[doc = "< The value is 33"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_RECEIVE_MAXIMUM: MQTTPropertyCodes = 33;
#[doc = "< The value is 34"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_TOPIC_ALIAS_MAXIMUM: MQTTPropertyCodes = 34;
#[doc = "< The value is 35"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_TOPIC_ALIAS: MQTTPropertyCodes = 35;
#[doc = "< The value is 36"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_MAXIMUM_QOS: MQTTPropertyCodes = 36;
#[doc = "< The value is 37"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_RETAIN_AVAILABLE: MQTTPropertyCodes = 37;
#[doc = "< The value is 38"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_USER_PROPERTY: MQTTPropertyCodes = 38;
#[doc = "< The value is 39"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_MAXIMUM_PACKET_SIZE: MQTTPropertyCodes = 39;
#[doc = "< The value is 40"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_WILDCARD_SUBSCRIPTION_AVAILABLE: MQTTPropertyCodes =
    40;
#[doc = "< The value is 41"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SUBSCRIPTION_IDENTIFIERS_AVAILABLE:
    MQTTPropertyCodes = 41;
#[doc = "< The value is 241"]
pub const MQTTPropertyCodes_MQTTPROPERTY_CODE_SHARED_SUBSCRIPTION_AVAILABLE: MQTTPropertyCodes = 42;
#[doc = " The one byte MQTT V5 property indicator"]
pub type MQTTPropertyCodes = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Returns a printable string description of an MQTT V5 property code."]
    #[doc = " @param value an MQTT V5 property code."]
    #[doc = " @return the printable string description of the input property code."]
    #[doc = " NULL if the code was not found."]
    pub fn MQTTPropertyName(value: MQTTPropertyCodes) -> *const ::std::os::raw::c_char;
}
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_BYTE: MQTTPropertyTypes = 0;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_TWO_BYTE_INTEGER: MQTTPropertyTypes = 1;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_FOUR_BYTE_INTEGER: MQTTPropertyTypes = 2;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_VARIABLE_BYTE_INTEGER: MQTTPropertyTypes = 3;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_BINARY_DATA: MQTTPropertyTypes = 4;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_UTF_8_ENCODED_STRING: MQTTPropertyTypes = 5;
pub const MQTTPropertyTypes_MQTTPROPERTY_TYPE_UTF_8_STRING_PAIR: MQTTPropertyTypes = 6;
#[doc = " The one byte MQTT V5 property type"]
pub type MQTTPropertyTypes = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Returns the MQTT V5 type code of an MQTT V5 property."]
    #[doc = " @param value an MQTT V5 property code."]
    #[doc = " @return the MQTT V5 type code of the input property. -1 if the code was not found."]
    pub fn MQTTProperty_getType(value: MQTTPropertyCodes) -> ::std::os::raw::c_int;
}
#[doc = " The data for a length delimited string"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTLenString {
    #[doc = "< the length of the string"]
    pub len: ::std::os::raw::c_int,
    #[doc = "< pointer to the string data"]
    pub data: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_MQTTLenString() {
    assert_eq!(
        ::std::mem::size_of::<MQTTLenString>(),
        16usize,
        concat!("Size of: ", stringify!(MQTTLenString))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTLenString>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTLenString))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTLenString>())).len as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTLenString),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTLenString>())).data as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTLenString),
            "::",
            stringify!(data)
        )
    );
}
#[doc = " Structure to hold an MQTT version 5 property of any type"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct MQTTProperty {
    #[doc = "<  The MQTT V5 property id. A multi-byte integer."]
    pub identifier: MQTTPropertyCodes,
    pub value: MQTTProperty__bindgen_ty_1,
}
#[doc = " The value of the property, as a union of the different possible types."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union MQTTProperty__bindgen_ty_1 {
    #[doc = "< holds the value of a byte property type"]
    pub byte: ::std::os::raw::c_uchar,
    #[doc = "< holds the value of a 2 byte integer property type"]
    pub integer2: ::std::os::raw::c_ushort,
    #[doc = "< holds the value of a 4 byte integer property type"]
    pub integer4: ::std::os::raw::c_uint,
    pub __bindgen_anon_1: MQTTProperty__bindgen_ty_1__bindgen_ty_1,
    _bindgen_union_align: [u64; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTProperty__bindgen_ty_1__bindgen_ty_1 {
    #[doc = "< The value of a string property, or the name of a user property."]
    pub data: MQTTLenString,
    #[doc = "< The value of a user property."]
    pub value: MQTTLenString,
}
#[test]
fn bindgen_test_layout_MQTTProperty__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTProperty__bindgen_ty_1__bindgen_ty_1>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(MQTTProperty__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTProperty__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTProperty__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTProperty__bindgen_ty_1__bindgen_ty_1>())).data as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTProperty__bindgen_ty_1__bindgen_ty_1>())).value as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(value)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTProperty__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTProperty__bindgen_ty_1>(),
        32usize,
        concat!("Size of: ", stringify!(MQTTProperty__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTProperty__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTProperty__bindgen_ty_1))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperty__bindgen_ty_1>())).byte as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty__bindgen_ty_1),
            "::",
            stringify!(byte)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTProperty__bindgen_ty_1>())).integer2 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty__bindgen_ty_1),
            "::",
            stringify!(integer2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTProperty__bindgen_ty_1>())).integer4 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty__bindgen_ty_1),
            "::",
            stringify!(integer4)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTProperty() {
    assert_eq!(
        ::std::mem::size_of::<MQTTProperty>(),
        40usize,
        concat!("Size of: ", stringify!(MQTTProperty))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTProperty>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTProperty))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperty>())).identifier as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty),
            "::",
            stringify!(identifier)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperty>())).value as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperty),
            "::",
            stringify!(value)
        )
    );
}
#[doc = " MQTT version 5 property list"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTProperties {
    #[doc = "< number of property entries in the array"]
    pub count: ::std::os::raw::c_int,
    #[doc = "< max number of properties that the currently allocated array can store"]
    pub max_count: ::std::os::raw::c_int,
    #[doc = "< mbi: byte length of all properties"]
    pub length: ::std::os::raw::c_int,
    #[doc = "< array of properties"]
    pub array: *mut MQTTProperty,
}
#[test]
fn bindgen_test_layout_MQTTProperties() {
    assert_eq!(
        ::std::mem::size_of::<MQTTProperties>(),
        24usize,
        concat!("Size of: ", stringify!(MQTTProperties))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTProperties>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTProperties))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperties>())).count as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperties),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperties>())).max_count as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperties),
            "::",
            stringify!(max_count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperties>())).length as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperties),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTProperties>())).array as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTProperties),
            "::",
            stringify!(array)
        )
    );
}
extern "C" {
    #[doc = " Returns the length of the properties structure when serialized ready for network transmission."]
    #[doc = " @param props an MQTT V5 property structure."]
    #[doc = " @return the length in bytes of the properties when serialized."]
    pub fn MQTTProperties_len(props: *mut MQTTProperties) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Add a property pointer to the property array.  There is no memory allocation."]
    #[doc = " @param props The property list to add the property to."]
    #[doc = " @param prop The property to add to the list."]
    #[doc = " @return 0 on success, -1 on failure."]
    pub fn MQTTProperties_add(
        props: *mut MQTTProperties,
        prop: *const MQTTProperty,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Serialize the given property list to a character buffer, e.g. for writing to the network."]
    #[doc = " @param pptr pointer to the buffer - move the pointer as we add data"]
    #[doc = " @param properties pointer to the property list, can be NULL"]
    #[doc = " @return whether the write succeeded or not: number of bytes written, or < 0 on failure."]
    pub fn MQTTProperties_write(
        pptr: *mut *mut ::std::os::raw::c_char,
        properties: *const MQTTProperties,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Reads a property list from a character buffer into an array."]
    #[doc = " @param properties pointer to the property list to be filled. Should be initalized but empty."]
    #[doc = " @param pptr pointer to the character buffer."]
    #[doc = " @param enddata pointer to the end of the character buffer so we don't read beyond."]
    #[doc = " @return 1 if the properties were read successfully."]
    pub fn MQTTProperties_read(
        properties: *mut MQTTProperties,
        pptr: *mut *mut ::std::os::raw::c_char,
        enddata: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Free all memory allocated to the property list, including any to individual properties."]
    #[doc = " @param properties pointer to the property list."]
    pub fn MQTTProperties_free(properties: *mut MQTTProperties);
}
extern "C" {
    #[doc = " Copy the contents of a property list, allocating additional memory if needed."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @return the duplicated property list."]
    pub fn MQTTProperties_copy(props: *const MQTTProperties) -> MQTTProperties;
}
extern "C" {
    #[doc = " Checks if property list contains a specific property."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @return 1 if found, 0 if not."]
    pub fn MQTTProperties_hasProperty(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns the number of instances of a property id. Most properties can exist only once."]
    #[doc = " User properties and subscription ids can exist more than once."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @return the number of times found.  Can be 0."]
    pub fn MQTTProperties_propertyCount(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns the integer value of a specific property.  The property given must be a numeric type."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @return the integer value of the property. -9999999 on failure."]
    pub fn MQTTProperties_getNumericValue(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns the integer value of a specific property when it's not the only instance."]
    #[doc = " The property given must be a numeric type."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @param index the instance number, starting at 0."]
    #[doc = " @return the integer value of the property. -9999999 on failure."]
    pub fn MQTTProperties_getNumericValueAt(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
        index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns a pointer to the property structure for a specific property."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @return the pointer to the property structure if found.  NULL if not found."]
    pub fn MQTTProperties_getProperty(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
    ) -> *mut MQTTProperty;
}
extern "C" {
    #[doc = " Returns a pointer to the property structure for a specific property when it's not the only instance."]
    #[doc = " @param props pointer to the property list."]
    #[doc = " @param propid the property id to check for."]
    #[doc = " @param index the instance number, starting at 0."]
    #[doc = " @return the pointer to the property structure if found.  NULL if not found."]
    pub fn MQTTProperties_getPropertyAt(
        props: *mut MQTTProperties,
        propid: MQTTPropertyCodes,
        index: ::std::os::raw::c_int,
    ) -> *mut MQTTProperty;
}
pub const MQTTReasonCodes_MQTTREASONCODE_SUCCESS: MQTTReasonCodes = 0;
pub const MQTTReasonCodes_MQTTREASONCODE_NORMAL_DISCONNECTION: MQTTReasonCodes = 0;
pub const MQTTReasonCodes_MQTTREASONCODE_GRANTED_QOS_0: MQTTReasonCodes = 0;
pub const MQTTReasonCodes_MQTTREASONCODE_GRANTED_QOS_1: MQTTReasonCodes = 1;
pub const MQTTReasonCodes_MQTTREASONCODE_GRANTED_QOS_2: MQTTReasonCodes = 2;
pub const MQTTReasonCodes_MQTTREASONCODE_DISCONNECT_WITH_WILL_MESSAGE: MQTTReasonCodes = 4;
pub const MQTTReasonCodes_MQTTREASONCODE_NO_MATCHING_SUBSCRIBERS: MQTTReasonCodes = 16;
pub const MQTTReasonCodes_MQTTREASONCODE_NO_SUBSCRIPTION_FOUND: MQTTReasonCodes = 17;
pub const MQTTReasonCodes_MQTTREASONCODE_CONTINUE_AUTHENTICATION: MQTTReasonCodes = 24;
pub const MQTTReasonCodes_MQTTREASONCODE_RE_AUTHENTICATE: MQTTReasonCodes = 25;
pub const MQTTReasonCodes_MQTTREASONCODE_UNSPECIFIED_ERROR: MQTTReasonCodes = 128;
pub const MQTTReasonCodes_MQTTREASONCODE_MALFORMED_PACKET: MQTTReasonCodes = 129;
pub const MQTTReasonCodes_MQTTREASONCODE_PROTOCOL_ERROR: MQTTReasonCodes = 130;
pub const MQTTReasonCodes_MQTTREASONCODE_IMPLEMENTATION_SPECIFIC_ERROR: MQTTReasonCodes = 131;
pub const MQTTReasonCodes_MQTTREASONCODE_UNSUPPORTED_PROTOCOL_VERSION: MQTTReasonCodes = 132;
pub const MQTTReasonCodes_MQTTREASONCODE_CLIENT_IDENTIFIER_NOT_VALID: MQTTReasonCodes = 133;
pub const MQTTReasonCodes_MQTTREASONCODE_BAD_USER_NAME_OR_PASSWORD: MQTTReasonCodes = 134;
pub const MQTTReasonCodes_MQTTREASONCODE_NOT_AUTHORIZED: MQTTReasonCodes = 135;
pub const MQTTReasonCodes_MQTTREASONCODE_SERVER_UNAVAILABLE: MQTTReasonCodes = 136;
pub const MQTTReasonCodes_MQTTREASONCODE_SERVER_BUSY: MQTTReasonCodes = 137;
pub const MQTTReasonCodes_MQTTREASONCODE_BANNED: MQTTReasonCodes = 138;
pub const MQTTReasonCodes_MQTTREASONCODE_SERVER_SHUTTING_DOWN: MQTTReasonCodes = 139;
pub const MQTTReasonCodes_MQTTREASONCODE_BAD_AUTHENTICATION_METHOD: MQTTReasonCodes = 140;
pub const MQTTReasonCodes_MQTTREASONCODE_KEEP_ALIVE_TIMEOUT: MQTTReasonCodes = 141;
pub const MQTTReasonCodes_MQTTREASONCODE_SESSION_TAKEN_OVER: MQTTReasonCodes = 142;
pub const MQTTReasonCodes_MQTTREASONCODE_TOPIC_FILTER_INVALID: MQTTReasonCodes = 143;
pub const MQTTReasonCodes_MQTTREASONCODE_TOPIC_NAME_INVALID: MQTTReasonCodes = 144;
pub const MQTTReasonCodes_MQTTREASONCODE_PACKET_IDENTIFIER_IN_USE: MQTTReasonCodes = 145;
pub const MQTTReasonCodes_MQTTREASONCODE_PACKET_IDENTIFIER_NOT_FOUND: MQTTReasonCodes = 146;
pub const MQTTReasonCodes_MQTTREASONCODE_RECEIVE_MAXIMUM_EXCEEDED: MQTTReasonCodes = 147;
pub const MQTTReasonCodes_MQTTREASONCODE_TOPIC_ALIAS_INVALID: MQTTReasonCodes = 148;
pub const MQTTReasonCodes_MQTTREASONCODE_PACKET_TOO_LARGE: MQTTReasonCodes = 149;
pub const MQTTReasonCodes_MQTTREASONCODE_MESSAGE_RATE_TOO_HIGH: MQTTReasonCodes = 150;
pub const MQTTReasonCodes_MQTTREASONCODE_QUOTA_EXCEEDED: MQTTReasonCodes = 151;
pub const MQTTReasonCodes_MQTTREASONCODE_ADMINISTRATIVE_ACTION: MQTTReasonCodes = 152;
pub const MQTTReasonCodes_MQTTREASONCODE_PAYLOAD_FORMAT_INVALID: MQTTReasonCodes = 153;
pub const MQTTReasonCodes_MQTTREASONCODE_RETAIN_NOT_SUPPORTED: MQTTReasonCodes = 154;
pub const MQTTReasonCodes_MQTTREASONCODE_QOS_NOT_SUPPORTED: MQTTReasonCodes = 155;
pub const MQTTReasonCodes_MQTTREASONCODE_USE_ANOTHER_SERVER: MQTTReasonCodes = 156;
pub const MQTTReasonCodes_MQTTREASONCODE_SERVER_MOVED: MQTTReasonCodes = 157;
pub const MQTTReasonCodes_MQTTREASONCODE_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: MQTTReasonCodes = 158;
pub const MQTTReasonCodes_MQTTREASONCODE_CONNECTION_RATE_EXCEEDED: MQTTReasonCodes = 159;
pub const MQTTReasonCodes_MQTTREASONCODE_MAXIMUM_CONNECT_TIME: MQTTReasonCodes = 160;
pub const MQTTReasonCodes_MQTTREASONCODE_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: MQTTReasonCodes =
    161;
pub const MQTTReasonCodes_MQTTREASONCODE_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: MQTTReasonCodes =
    162;
#[doc = " The MQTT V5 one byte reason code"]
pub type MQTTReasonCodes = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " Returns a printable string description of an MQTT V5 reason code."]
    #[doc = " @param value an MQTT V5 reason code."]
    #[doc = " @return the printable string description of the input reason code."]
    #[doc = " NULL if the code was not found."]
    pub fn MQTTReasonCode_toString(value: MQTTReasonCodes) -> *const ::std::os::raw::c_char;
}
#[doc = " The MQTT V5 subscribe options, apart from QoS which existed before V5."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTSubscribe_options {
    #[doc = " The eyecatcher for this structure. Must be MQSO."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0."]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " To not receive our own publications, set to 1."]
    #[doc = "  0 is the original MQTT behaviour - all messages matching the subscription are received."]
    pub noLocal: ::std::os::raw::c_uchar,
    #[doc = " To keep the retain flag as on the original publish message, set to 1."]
    #[doc = "  If 0, defaults to the original MQTT behaviour where the retain flag is only set on"]
    #[doc = "  publications sent by a broker if in response to a subscribe request."]
    pub retainAsPublished: ::std::os::raw::c_uchar,
    #[doc = " 0 - send retained messages at the time of the subscribe (original MQTT behaviour)"]
    #[doc = "  1 - send retained messages on subscribe only if the subscription is new"]
    #[doc = "  2 - do not send retained messages at all"]
    pub retainHandling: ::std::os::raw::c_uchar,
}
#[test]
fn bindgen_test_layout_MQTTSubscribe_options() {
    assert_eq!(
        ::std::mem::size_of::<MQTTSubscribe_options>(),
        12usize,
        concat!("Size of: ", stringify!(MQTTSubscribe_options))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTSubscribe_options>(),
        4usize,
        concat!("Alignment of ", stringify!(MQTTSubscribe_options))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTSubscribe_options>())).struct_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTSubscribe_options),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTSubscribe_options>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTSubscribe_options),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTSubscribe_options>())).noLocal as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTSubscribe_options),
            "::",
            stringify!(noLocal)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTSubscribe_options>())).retainAsPublished as *const _ as usize
        },
        9usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTSubscribe_options),
            "::",
            stringify!(retainAsPublished)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTSubscribe_options>())).retainHandling as *const _ as usize
        },
        10usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTSubscribe_options),
            "::",
            stringify!(retainHandling)
        )
    );
}
#[doc = " @brief Initialize the persistent store."]
#[doc = ""]
#[doc = " Either open the existing persistent store for this client ID or create a new"]
#[doc = " one if one doesn't exist. If the persistent store is already open, return"]
#[doc = " without taking any action."]
#[doc = ""]
#[doc = " An application can use the same client identifier to connect to many"]
#[doc = " different servers. The <i>clientid</i> in conjunction with the"]
#[doc = " <i>serverURI</i> uniquely identifies the persistence store required."]
#[doc = ""]
#[doc = " @param handle The address of a pointer to a handle for this persistence"]
#[doc = " implementation. This function must set handle to a valid reference to the"]
#[doc = " persistence following a successful return."]
#[doc = " The handle pointer is passed as an argument to all the other"]
#[doc = " persistence functions. It may include the context parameter and/or any other"]
#[doc = " data for use by the persistence functions."]
#[doc = " @param clientID The client identifier for which the persistent store should"]
#[doc = " be opened."]
#[doc = " @param serverURI The connection string specified when the MQTT client was"]
#[doc = " created (see MQTTClient_create())."]
#[doc = " @param context A pointer to any data required to initialize the persistent"]
#[doc = " store (see ::MQTTClient_persistence)."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_open = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut *mut ::std::os::raw::c_void,
        clientID: *const ::std::os::raw::c_char,
        serverURI: *const ::std::os::raw::c_char,
        context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Close the persistent store referred to by the handle."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_close = ::std::option::Option<
    unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Put the specified data into the persistent store."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @param key A string used as the key for the data to be put in the store. The"]
#[doc = " key is later used to retrieve data from the store with Persistence_get()."]
#[doc = " @param bufcount The number of buffers to write to the persistence store."]
#[doc = " @param buffers An array of pointers to the data buffers associated with"]
#[doc = " this <i>key</i>."]
#[doc = " @param buflens An array of lengths of the data buffers. <i>buflen[n]</i>"]
#[doc = " gives the length of <i>buffer[n]</i>."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_put = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut ::std::os::raw::c_void,
        key: *mut ::std::os::raw::c_char,
        bufcount: ::std::os::raw::c_int,
        buffers: *mut *mut ::std::os::raw::c_char,
        buflens: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Retrieve the specified data from the persistent store."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @param key A string that is the key for the data to be retrieved. This is"]
#[doc = " the same key used to save the data to the store with Persistence_put()."]
#[doc = " @param buffer The address of a pointer to a buffer. This function sets the"]
#[doc = " pointer to point at the retrieved data, if successful."]
#[doc = " @param buflen The address of an int that is set to the length of"]
#[doc = " <i>buffer</i> by this function if successful."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_get = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut ::std::os::raw::c_void,
        key: *mut ::std::os::raw::c_char,
        buffer: *mut *mut ::std::os::raw::c_char,
        buflen: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Remove the data for the specified key from the store."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @param key A string that is the key for the data to be removed from the"]
#[doc = " store. This is the same key used to save the data to the store with"]
#[doc = " Persistence_put()."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_remove = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut ::std::os::raw::c_void,
        key: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Returns the keys in this persistent data store."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @param keys The address of a pointer to pointers to strings. Assuming"]
#[doc = " successful execution, this function allocates memory to hold the returned"]
#[doc = " keys (strings used to store the data with Persistence_put()). It also"]
#[doc = " allocates memory to hold an array of pointers to these strings. <i>keys</i>"]
#[doc = " is set to point to the array of pointers to strings."]
#[doc = " @param nkeys A pointer to the number of keys in this persistent data store."]
#[doc = " This function sets the number of keys, if successful."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_keys = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut ::std::os::raw::c_void,
        keys: *mut *mut *mut ::std::os::raw::c_char,
        nkeys: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Clears the persistence store, so that it no longer contains any"]
#[doc = " persisted data."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @return Return 0 if the function completes successfully, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_clear = ::std::option::Option<
    unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
#[doc = " @brief Returns whether any data has been persisted using the specified key."]
#[doc = ""]
#[doc = " @param handle The handle pointer from a successful call to"]
#[doc = " Persistence_open()."]
#[doc = " @param key The string to be tested for existence in the store."]
#[doc = " @return Return 0 if the key was found in the store, otherwise return"]
#[doc = " ::MQTTCLIENT_PERSISTENCE_ERROR."]
pub type Persistence_containskey = ::std::option::Option<
    unsafe extern "C" fn(
        handle: *mut ::std::os::raw::c_void,
        key: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " @brief A structure containing the function pointers to a persistence"]
#[doc = " implementation and the context or state that will be shared across all"]
#[doc = " the persistence functions."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTClient_persistence {
    #[doc = " A pointer to any data required to initialize the persistent store."]
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " A function pointer to an implementation of Persistence_open()."]
    pub popen: Persistence_open,
    #[doc = " A function pointer to an implementation of Persistence_close()."]
    pub pclose: Persistence_close,
    #[doc = " A function pointer to an implementation of Persistence_put()."]
    pub pput: Persistence_put,
    #[doc = " A function pointer to an implementation of Persistence_get()."]
    pub pget: Persistence_get,
    #[doc = " A function pointer to an implementation of Persistence_remove()."]
    pub premove: Persistence_remove,
    #[doc = " A function pointer to an implementation of Persistence_keys()."]
    pub pkeys: Persistence_keys,
    #[doc = " A function pointer to an implementation of Persistence_clear()."]
    pub pclear: Persistence_clear,
    #[doc = " A function pointer to an implementation of Persistence_containskey()."]
    pub pcontainskey: Persistence_containskey,
}
#[test]
fn bindgen_test_layout_MQTTClient_persistence() {
    assert_eq!(
        ::std::mem::size_of::<MQTTClient_persistence>(),
        72usize,
        concat!("Size of: ", stringify!(MQTTClient_persistence))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTClient_persistence>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTClient_persistence))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).context as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).popen as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(popen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).pclose as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pclose)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).pput as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pput)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).pget as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pget)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).premove as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(premove)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).pkeys as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pkeys)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTClient_persistence>())).pclear as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pclear)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTClient_persistence>())).pcontainskey as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTClient_persistence),
            "::",
            stringify!(pcontainskey)
        )
    );
}
#[doc = " A callback which is invoked just before a write to persistence.  This can be"]
#[doc = " used to transform the data, for instance to encrypt it."]
#[doc = " @param context The context as set in ::MQTTAsync_setBeforePersistenceWrite"]
#[doc = " @param bufcount The number of buffers to write to the persistence store."]
#[doc = " @param buffers An array of pointers to the data buffers."]
#[doc = " @param buflens An array of lengths of the data buffers."]
#[doc = " @return Return 0 if the function completes successfully, otherwise non 0."]
pub type MQTTPersistence_beforeWrite = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        bufcount: ::std::os::raw::c_int,
        buffers: *mut *mut ::std::os::raw::c_char,
        buflens: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " A callback which is invoked just after a read from persistence.  This can be"]
#[doc = " used to transform the data, for instance to decrypt it."]
#[doc = " @param context The context as set in ::MQTTAsync_setAfterPersistenceRead"]
#[doc = " @param buffer The address of a pointer to a buffer."]
#[doc = " @param buflen The address of an int that is the length of the buffer."]
#[doc = " @return Return 0 if the function completes successfully, otherwise non 0."]
pub type MQTTPersistence_afterRead = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        buffer: *mut *mut ::std::os::raw::c_char,
        buflen: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[doc = "  Initialization options"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_init_options {
    #[doc = " The eyecatcher for this structure.  Must be MQTG."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " 1 = we do openssl init, 0 = leave it to the application"]
    pub do_openssl_init: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_MQTTAsync_init_options() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_init_options>(),
        12usize,
        concat!("Size of: ", stringify!(MQTTAsync_init_options))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_init_options>(),
        4usize,
        concat!("Alignment of ", stringify!(MQTTAsync_init_options))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_init_options>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_init_options),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_init_options>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_init_options),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_init_options>())).do_openssl_init as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_init_options),
            "::",
            stringify!(do_openssl_init)
        )
    );
}
extern "C" {
    #[doc = " Global init of mqtt library. Call once on program start to set global behaviour."]
    #[doc = " handle_openssl_init - if mqtt library should handle openssl init (1) or rely on the caller to init it before using mqtt (0)"]
    pub fn MQTTAsync_global_init(inits: *mut MQTTAsync_init_options);
}
#[doc = " A handle representing an MQTT client. A valid client handle is available"]
#[doc = " following a successful call to MQTTAsync_create()."]
pub type MQTTAsync = *mut ::std::os::raw::c_void;
#[doc = " A value representing an MQTT message. A token is returned to the"]
#[doc = " client application when a message is published. The token can then be used to"]
#[doc = " check that the message was successfully delivered to its destination (see"]
#[doc = " MQTTAsync_publish(),"]
#[doc = " MQTTAsync_publishMessage(),"]
#[doc = " MQTTAsync_deliveryComplete(), and"]
#[doc = " MQTTAsync_getPendingTokens())."]
pub type MQTTAsync_token = ::std::os::raw::c_int;
#[doc = " A structure representing the payload and attributes of an MQTT message. The"]
#[doc = " message topic is not part of this structure (see MQTTAsync_publishMessage(),"]
#[doc = " MQTTAsync_publish(), MQTTAsync_receive(), MQTTAsync_freeMessage()"]
#[doc = " and MQTTAsync_messageArrived())."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_message {
    #[doc = " The eyecatcher for this structure.  must be MQTM."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0 or 1."]
    #[doc = "  0 indicates no message properties"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " The length of the MQTT message payload in bytes."]
    pub payloadlen: ::std::os::raw::c_int,
    #[doc = " A pointer to the payload of the MQTT message."]
    pub payload: *mut ::std::os::raw::c_void,
    #[doc = " The quality of service (QoS) assigned to the message."]
    #[doc = " There are three levels of QoS:"]
    #[doc = " <DL>"]
    #[doc = " <DT><B>QoS0</B></DT>"]
    #[doc = " <DD>Fire and forget - the message may not be delivered</DD>"]
    #[doc = " <DT><B>QoS1</B></DT>"]
    #[doc = " <DD>At least once - the message will be delivered, but may be"]
    #[doc = " delivered more than once in some circumstances.</DD>"]
    #[doc = " <DT><B>QoS2</B></DT>"]
    #[doc = " <DD>Once and one only - the message will be delivered exactly once.</DD>"]
    #[doc = " </DL>"]
    pub qos: ::std::os::raw::c_int,
    #[doc = " The retained flag serves two purposes depending on whether the message"]
    #[doc = " it is associated with is being published or received."]
    #[doc = ""]
    #[doc = " <b>retained = true</b><br>"]
    #[doc = " For messages being published, a true setting indicates that the MQTT"]
    #[doc = " server should retain a copy of the message. The message will then be"]
    #[doc = " transmitted to new subscribers to a topic that matches the message topic."]
    #[doc = " For subscribers registering a new subscription, the flag being true"]
    #[doc = " indicates that the received message is not a new one, but one that has"]
    #[doc = " been retained by the MQTT server."]
    #[doc = ""]
    #[doc = " <b>retained = false</b> <br>"]
    #[doc = " For publishers, this indicates that this message should not be retained"]
    #[doc = " by the MQTT server. For subscribers, a false setting indicates this is"]
    #[doc = " a normal message, received as a result of it being published to the"]
    #[doc = " server."]
    pub retained: ::std::os::raw::c_int,
    #[doc = " The dup flag indicates whether or not this message is a duplicate."]
    #[doc = " It is only meaningful when receiving QoS1 messages. When true, the"]
    #[doc = " client application should take appropriate action to deal with the"]
    #[doc = " duplicate message.  This is an output parameter only."]
    pub dup: ::std::os::raw::c_int,
    #[doc = " The message identifier is reserved for internal use by the"]
    #[doc = " MQTT client and server.  It is an output parameter only - writing"]
    #[doc = " to it will serve no purpose.  It contains the MQTT message id of"]
    #[doc = " an incoming publish message."]
    pub msgid: ::std::os::raw::c_int,
    #[doc = " The MQTT V5 properties associated with the message."]
    pub properties: MQTTProperties,
}
#[test]
fn bindgen_test_layout_MQTTAsync_message() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_message>(),
        64usize,
        concat!("Size of: ", stringify!(MQTTAsync_message))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_message>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_message))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).struct_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_message>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).payloadlen as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(payloadlen)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).payload as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(payload)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).qos as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(qos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).retained as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(retained)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).dup as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(dup)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).msgid as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(msgid)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_message>())).properties as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_message),
            "::",
            stringify!(properties)
        )
    );
}
#[doc = " This is a callback function. The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " receipt of messages. The function is registered with the client library by"]
#[doc = " passing it as an argument to MQTTAsync_setCallbacks(). It is"]
#[doc = " called by the client library when a new message that matches a client"]
#[doc = " subscription has been received from the server. This function is executed on"]
#[doc = " a separate thread to the one on which the client application is running."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " MQTTAsync_setCallbacks(), which contains any application-specific context."]
#[doc = " @param topicName The topic associated with the received message."]
#[doc = " @param topicLen The length of the topic if there are one"]
#[doc = " more NULL characters embedded in <i>topicName</i>, otherwise <i>topicLen</i>"]
#[doc = " is 0. If <i>topicLen</i> is 0, the value returned by <i>strlen(topicName)</i>"]
#[doc = " can be trusted. If <i>topicLen</i> is greater than 0, the full topic name"]
#[doc = " can be retrieved by accessing <i>topicName</i> as a byte array of length"]
#[doc = " <i>topicLen</i>."]
#[doc = " @param message The MQTTAsync_message structure for the received message."]
#[doc = " This structure contains the message payload and attributes."]
#[doc = " @return This function must return 0 or 1 indicating whether or not"]
#[doc = " the message has been safely received by the client application. <br>"]
#[doc = " Returning 1 indicates that the message has been successfully handled."]
#[doc = " To free the message storage, ::MQTTAsync_freeMessage must be called."]
#[doc = " To free the topic name storage, ::MQTTAsync_free must be called.<br>"]
#[doc = " Returning 0 indicates that there was a problem. In this"]
#[doc = " case, the client library will reinvoke MQTTAsync_messageArrived() to"]
#[doc = " attempt to deliver the message to the application again."]
#[doc = " Do not free the message and topic storage when returning 0, otherwise"]
#[doc = " the redelivery will fail."]
pub type MQTTAsync_messageArrived = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        topicName: *mut ::std::os::raw::c_char,
        topicLen: ::std::os::raw::c_int,
        message: *mut MQTTAsync_message,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " This is a callback function. The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of delivery of messages to the server. The function is"]
#[doc = " registered with the client library by passing it as an argument to MQTTAsync_setCallbacks()."]
#[doc = " It is called by the client library after the client application has"]
#[doc = " published a message to the server. It indicates that the necessary"]
#[doc = " handshaking and acknowledgements for the requested quality of service (see"]
#[doc = " MQTTAsync_message.qos) have been completed. This function is executed on a"]
#[doc = " separate thread to the one on which the client application is running."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " MQTTAsync_setCallbacks(), which contains any application-specific context."]
#[doc = " @param token The ::MQTTAsync_token associated with"]
#[doc = " the published message. Applications can check that all messages have been"]
#[doc = " correctly published by matching the tokens returned from calls to"]
#[doc = " MQTTAsync_send() and MQTTAsync_sendMessage() with the tokens passed"]
#[doc = " to this callback."]
pub type MQTTAsync_deliveryComplete = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, token: MQTTAsync_token),
>;
#[doc = " This is a callback function. The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of the loss of connection to the server. The function is"]
#[doc = " registered with the client library by passing it as an argument to"]
#[doc = " MQTTAsync_setCallbacks(). It is called by the client library if the client"]
#[doc = " loses its connection to the server. The client application must take"]
#[doc = " appropriate action, such as trying to reconnect or reporting the problem."]
#[doc = " This function is executed on a separate thread to the one on which the"]
#[doc = " client application is running."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " MQTTAsync_setCallbacks(), which contains any application-specific context."]
#[doc = " @param cause The reason for the disconnection."]
#[doc = " Currently, <i>cause</i> is always set to NULL."]
pub type MQTTAsync_connectionLost = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, cause: *mut ::std::os::raw::c_char),
>;
#[doc = " This is a callback function, which will be called when the client"]
#[doc = " library successfully connects.  This is superfluous when the connection"]
#[doc = " is made in response to a MQTTAsync_connect call, because the onSuccess"]
#[doc = " callback can be used.  It is intended for use when automatic reconnect"]
#[doc = " is enabled, so that when a reconnection attempt succeeds in the background,"]
#[doc = " the application is notified and can take any required actions."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " MQTTAsync_setCallbacks(), which contains any application-specific context."]
#[doc = " @param cause The reason for the disconnection."]
#[doc = " Currently, <i>cause</i> is always set to NULL."]
pub type MQTTAsync_connected = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, cause: *mut ::std::os::raw::c_char),
>;
#[doc = " This is a callback function, which will be called when the client"]
#[doc = " library receives a disconnect packet."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " MQTTAsync_setCallbacks(), which contains any application-specific context."]
#[doc = " @param properties the properties in the disconnect packet."]
#[doc = " @param properties the reason code from the disconnect packet"]
#[doc = " Currently, <i>cause</i> is always set to NULL."]
pub type MQTTAsync_disconnected = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        properties: *mut MQTTProperties,
        reasonCode: MQTTReasonCodes,
    ),
>;
extern "C" {
    #[doc = " Sets the MQTTAsync_disconnected() callback function for a client."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = ""]
    #[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
    #[doc = " called within this callback."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to each of the callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param co A pointer to an MQTTAsync_connected() callback"]
    #[doc = " function.  NULL removes the callback setting."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setDisconnected(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        co: MQTTAsync_disconnected,
    ) -> ::std::os::raw::c_int;
}
#[doc = " The connect options that can be updated before an automatic reconnect."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_connectData {
    #[doc = " The eyecatcher for this structure.  Will be MQCD."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Will be 0"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " MQTT servers that support the MQTT v3.1 protocol provide authentication"]
    #[doc = " and authorisation by user name and password. This is the user name parameter."]
    #[doc = " Set data to NULL to remove.  To change, allocate new"]
    #[doc = " storage with ::MQTTAsync_allocate - this will then be free later by the library."]
    pub username: *const ::std::os::raw::c_char,
    pub binarypwd: MQTTAsync_connectData__bindgen_ty_1,
}
#[doc = " The password parameter of the MQTT authentication."]
#[doc = " Set data to NULL to remove.  To change, allocate new"]
#[doc = " storage with ::MQTTAsync_allocate - this will then be free later by the library."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_connectData__bindgen_ty_1 {
    #[doc = "< binary password length"]
    pub len: ::std::os::raw::c_int,
    #[doc = "< binary password data"]
    pub data: *const ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_MQTTAsync_connectData__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_connectData__bindgen_ty_1>(),
        16usize,
        concat!("Size of: ", stringify!(MQTTAsync_connectData__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_connectData__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_connectData__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectData__bindgen_ty_1>())).len as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData__bindgen_ty_1),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectData__bindgen_ty_1>())).data as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData__bindgen_ty_1),
            "::",
            stringify!(data)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_connectData() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_connectData>(),
        32usize,
        concat!("Size of: ", stringify!(MQTTAsync_connectData))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_connectData>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_connectData))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_connectData>())).struct_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectData>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_connectData>())).username as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData),
            "::",
            stringify!(username)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_connectData>())).binarypwd as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectData),
            "::",
            stringify!(binarypwd)
        )
    );
}
#[doc = " This is a callback function which will allow the client application to update the"]
#[doc = " connection data."]
#[doc = " @param data The connection data which can be modified by the application."]
#[doc = " @return Return a non-zero value to update the connect data, zero to keep the same data."]
pub type MQTTAsync_updateConnectOptions = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        data: *mut MQTTAsync_connectData,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    #[doc = " Sets the MQTTAsync_updateConnectOptions() callback function for a client."]
    #[doc = " @param handle A valid client handle from a successful call to MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to each of the callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param co A pointer to an MQTTAsync_updateConnectOptions() callback"]
    #[doc = " function.  NULL removes the callback setting."]
    pub fn MQTTAsync_setUpdateConnectOptions(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        co: MQTTAsync_updateConnectOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sets the MQTTPersistence_beforeWrite() callback function for a client."]
    #[doc = " @param handle A valid client handle from a successful call to MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to the callback function to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param co A pointer to an MQTTPersistence_beforeWrite() callback"]
    #[doc = " function.  NULL removes the callback setting."]
    pub fn MQTTAsync_setBeforePersistenceWrite(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        co: MQTTPersistence_beforeWrite,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sets the MQTTPersistence_afterRead() callback function for a client."]
    #[doc = " @param handle A valid client handle from a successful call to MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to the callback function to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param co A pointer to an MQTTPersistence_beforeWrite() callback"]
    #[doc = " function.  NULL removes the callback setting."]
    pub fn MQTTAsync_setAfterPersistenceRead(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        co: MQTTPersistence_afterRead,
    ) -> ::std::os::raw::c_int;
}
#[doc = " The data returned on completion of an unsuccessful API call in the response callback onFailure."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_failureData {
    #[doc = " A token identifying the failed request."]
    pub token: MQTTAsync_token,
    #[doc = " A numeric code identifying the error."]
    pub code: ::std::os::raw::c_int,
    #[doc = " Optional text explaining the error. Can be NULL."]
    pub message: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_MQTTAsync_failureData() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_failureData>(),
        16usize,
        concat!("Size of: ", stringify!(MQTTAsync_failureData))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_failureData>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_failureData))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData>())).token as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData),
            "::",
            stringify!(token)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData>())).code as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData),
            "::",
            stringify!(code)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData>())).message as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData),
            "::",
            stringify!(message)
        )
    );
}
#[doc = " The data returned on completion of an unsuccessful API call in the response callback onFailure."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_failureData5 {
    #[doc = " The eyecatcher for this structure.  Will be MQFD."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Will be 0"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " A token identifying the failed request."]
    pub token: MQTTAsync_token,
    #[doc = " The MQTT reason code returned."]
    pub reasonCode: MQTTReasonCodes,
    #[doc = " The MQTT properties on the ack, if any."]
    pub properties: MQTTProperties,
    #[doc = " A numeric code identifying the MQTT client library error."]
    pub code: ::std::os::raw::c_int,
    #[doc = " Optional further text explaining the error. Can be NULL."]
    pub message: *const ::std::os::raw::c_char,
    #[doc = " Packet type on which the failure occurred - used for publish QoS 1/2 exchanges"]
    pub packet_type: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_MQTTAsync_failureData5() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_failureData5>(),
        64usize,
        concat!("Size of: ", stringify!(MQTTAsync_failureData5))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_failureData5>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_failureData5))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_failureData5>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_failureData5>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData5>())).token as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(token)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_failureData5>())).reasonCode as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(reasonCode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_failureData5>())).properties as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(properties)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData5>())).code as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(code)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_failureData5>())).message as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_failureData5>())).packet_type as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_failureData5),
            "::",
            stringify!(packet_type)
        )
    );
}
#[doc = " The data returned on completion of a successful API call in the response callback onSuccess."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct MQTTAsync_successData {
    #[doc = " A token identifying the successful request. Can be used to refer to the request later."]
    pub token: MQTTAsync_token,
    pub alt: MQTTAsync_successData__bindgen_ty_1,
}
#[doc = " A union of the different values that can be returned for subscribe, unsubscribe and publish."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union MQTTAsync_successData__bindgen_ty_1 {
    #[doc = " For subscribe, the granted QoS of the subscription returned by the server."]
    #[doc = " Also for subscribeMany, if only 1 subscription was requested."]
    pub qos: ::std::os::raw::c_int,
    #[doc = " For subscribeMany, if more than one subscription was requested,"]
    #[doc = " the list of granted QoSs of the subscriptions returned by the server."]
    pub qosList: *mut ::std::os::raw::c_int,
    pub pub_: MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1,
    pub connect: MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2,
    _bindgen_union_align: [u64; 9usize],
}
#[doc = " For publish, the message being sent to the server."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1 {
    #[doc = "< the message being sent to the server"]
    pub message: MQTTAsync_message,
    #[doc = "< the topic destination for the message"]
    pub destinationName: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1>(),
        72usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1>())).message
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1>()))
                .destinationName as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(destinationName)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2 {
    #[doc = "< the connection string of the server"]
    pub serverURI: *mut ::std::os::raw::c_char,
    #[doc = "< the version of MQTT being used"]
    pub MQTTVersion: ::std::os::raw::c_int,
    #[doc = "< the session present flag returned from the server"]
    pub sessionPresent: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2>())).serverURI
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(serverURI)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2>()))
                .MQTTVersion as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(MQTTVersion)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2>()))
                .sessionPresent as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(sessionPresent)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData__bindgen_ty_1>(),
        72usize,
        concat!("Size of: ", stringify!(MQTTAsync_successData__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1>())).qos as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1),
            "::",
            stringify!(qos)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1>())).qosList as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1),
            "::",
            stringify!(qosList)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1>())).pub_ as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1),
            "::",
            stringify!(pub_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData__bindgen_ty_1>())).connect as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData__bindgen_ty_1),
            "::",
            stringify!(connect)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData>(),
        80usize,
        concat!("Size of: ", stringify!(MQTTAsync_successData))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_successData))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_successData>())).token as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData),
            "::",
            stringify!(token)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_successData>())).alt as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData),
            "::",
            stringify!(alt)
        )
    );
}
#[doc = " The data returned on completion of a successful API call in the response callback onSuccess."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct MQTTAsync_successData5 {
    #[doc = "< The eyecatcher for this structure.  Will be MQSD."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = "< The version number of this structure.  Will be 0"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " A token identifying the successful request. Can be used to refer to the request later."]
    pub token: MQTTAsync_token,
    #[doc = "< MQTT V5 reason code returned"]
    pub reasonCode: MQTTReasonCodes,
    #[doc = "< MQTT V5 properties returned, if any"]
    pub properties: MQTTProperties,
    pub alt: MQTTAsync_successData5__bindgen_ty_1,
}
#[doc = " A union of the different values that can be returned for subscribe, unsubscribe and publish."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union MQTTAsync_successData5__bindgen_ty_1 {
    pub sub: MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1,
    pub pub_: MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2,
    pub connect: MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3,
    pub unsub: MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4,
    _bindgen_union_align: [u64; 9usize],
}
#[doc = " For subscribeMany, the list of reasonCodes returned by the server."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1 {
    #[doc = "< the number of reason codes in the reasonCodes array"]
    pub reasonCodeCount: ::std::os::raw::c_int,
    #[doc = "< an array of reasonCodes"]
    pub reasonCodes: *mut MQTTReasonCodes,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1>()))
                .reasonCodeCount as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(reasonCodeCount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1>()))
                .reasonCodes as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_1),
            "::",
            stringify!(reasonCodes)
        )
    );
}
#[doc = " For publish, the message being sent to the server."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2 {
    #[doc = "< the message being sent to the server"]
    pub message: MQTTAsync_message,
    #[doc = "< the topic destination for the message"]
    pub destinationName: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2>(),
        72usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2>())).message
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2>()))
                .destinationName as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_2),
            "::",
            stringify!(destinationName)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3 {
    #[doc = "< the connection string of the server"]
    pub serverURI: *mut ::std::os::raw::c_char,
    #[doc = "< the version of MQTT being used"]
    pub MQTTVersion: ::std::os::raw::c_int,
    #[doc = "< the session present flag returned from the server"]
    pub sessionPresent: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3>())).serverURI
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(serverURI)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3>()))
                .MQTTVersion as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(MQTTVersion)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3>()))
                .sessionPresent as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_3),
            "::",
            stringify!(sessionPresent)
        )
    );
}
#[doc = " For unsubscribeMany, the list of reasonCodes returned by the server."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4 {
    #[doc = "< the number of reason codes in the reasonCodes array"]
    pub reasonCodeCount: ::std::os::raw::c_int,
    #[doc = "< an array of reasonCodes"]
    pub reasonCodes: *mut MQTTReasonCodes,
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4>()))
                .reasonCodeCount as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(reasonCodeCount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4>()))
                .reasonCodes as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1__bindgen_ty_4),
            "::",
            stringify!(reasonCodes)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5__bindgen_ty_1>(),
        72usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1>())).sub as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1),
            "::",
            stringify!(sub)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1>())).pub_ as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1),
            "::",
            stringify!(pub_)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1>())).connect as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1),
            "::",
            stringify!(connect)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5__bindgen_ty_1>())).unsub as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5__bindgen_ty_1),
            "::",
            stringify!(unsub)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_successData5() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_successData5>(),
        112usize,
        concat!("Size of: ", stringify!(MQTTAsync_successData5))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_successData5>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_successData5))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_successData5>())).token as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(token)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5>())).reasonCode as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(reasonCode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_successData5>())).properties as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(properties)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_successData5>())).alt as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_successData5),
            "::",
            stringify!(alt)
        )
    );
}
#[doc = " This is a callback function. The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of the successful completion of an API call. The function is"]
#[doc = " registered with the client library by passing it as an argument in"]
#[doc = " ::MQTTAsync_responseOptions."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " ::MQTTAsync_responseOptions, which contains any application-specific context."]
#[doc = " @param response Any success data associated with the API completion."]
pub type MQTTAsync_onSuccess = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        response: *mut MQTTAsync_successData,
    ),
>;
#[doc = " This is a callback function, the MQTT V5 version of ::MQTTAsync_onSuccess."]
#[doc = " The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of the successful completion of an API call. The function is"]
#[doc = " registered with the client library by passing it as an argument in"]
#[doc = " ::MQTTAsync_responseOptions."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " ::MQTTAsync_responseOptions, which contains any application-specific context."]
#[doc = " @param response Any success data associated with the API completion."]
pub type MQTTAsync_onSuccess5 = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        response: *mut MQTTAsync_successData5,
    ),
>;
#[doc = " This is a callback function. The client application"]
#[doc = " must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of the unsuccessful completion of an API call. The function is"]
#[doc = " registered with the client library by passing it as an argument in"]
#[doc = " ::MQTTAsync_responseOptions."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " ::MQTTAsync_responseOptions, which contains any application-specific context."]
#[doc = " @param response Failure data associated with the API completion."]
pub type MQTTAsync_onFailure = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        response: *mut MQTTAsync_failureData,
    ),
>;
#[doc = " This is a callback function, the MQTT V5 version of ::MQTTAsync_onFailure."]
#[doc = " The application must provide an implementation of this function to enable asynchronous"]
#[doc = " notification of the unsuccessful completion of an API call. The function is"]
#[doc = " registered with the client library by passing it as an argument in"]
#[doc = " ::MQTTAsync_responseOptions."]
#[doc = ""]
#[doc = " <b>Note:</b> Neither MQTTAsync_create() nor MQTTAsync_destroy() should be"]
#[doc = " called within this callback."]
#[doc = " @param context A pointer to the <i>context</i> value originally passed to"]
#[doc = " ::MQTTAsync_responseOptions, which contains any application-specific context."]
#[doc = " @param response Failure data associated with the API completion."]
pub type MQTTAsync_onFailure5 = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        response: *mut MQTTAsync_failureData5,
    ),
>;
#[doc = " Structure to define call options.  For MQTT 5.0 there is input data as well as that"]
#[doc = " describing the response method.  So there is now also a synonym ::MQTTAsync_callOptions"]
#[doc = " to better reflect the use.  This responseOptions name is kept for backward"]
#[doc = " compatibility."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_responseOptions {
    #[doc = " The eyecatcher for this structure.  Must be MQTR"]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0 or 1"]
    #[doc = "   if 0, no MQTTV5 options"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " A pointer to a callback function to be called if the API call successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess: MQTTAsync_onSuccess,
    #[doc = " A pointer to a callback function to be called if the API call fails."]
    #[doc = " Can be set to NULL, in which case no indication of unsuccessful"]
    #[doc = " completion will be received."]
    pub onFailure: MQTTAsync_onFailure,
    #[doc = " A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to success or failure callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " A token is returned from the call.  It can be used to track"]
    #[doc = " the state of this request, both in the callbacks and in future calls"]
    #[doc = " such as ::MQTTAsync_waitForCompletion."]
    pub token: MQTTAsync_token,
    #[doc = " A pointer to a callback function to be called if the API call successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess5: MQTTAsync_onSuccess5,
    #[doc = " A pointer to a callback function to be called if the API call successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onFailure5: MQTTAsync_onFailure5,
    #[doc = " MQTT V5 input properties"]
    pub properties: MQTTProperties,
    pub subscribeOptions: MQTTSubscribe_options,
    pub subscribeOptionsCount: ::std::os::raw::c_int,
    pub subscribeOptionsList: *mut MQTTSubscribe_options,
}
#[test]
fn bindgen_test_layout_MQTTAsync_responseOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_responseOptions>(),
        104usize,
        concat!("Size of: ", stringify!(MQTTAsync_responseOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_responseOptions>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_responseOptions))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).struct_version as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).onSuccess as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(onSuccess)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).onFailure as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(onFailure)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).context as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).token as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(token)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).onSuccess5 as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(onSuccess5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).onFailure5 as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(onFailure5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).properties as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(properties)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).subscribeOptions as *const _
                as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(subscribeOptions)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).subscribeOptionsCount as *const _
                as usize
        },
        92usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(subscribeOptionsCount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_responseOptions>())).subscribeOptionsList as *const _
                as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_responseOptions),
            "::",
            stringify!(subscribeOptionsList)
        )
    );
}
#[doc = " A synonym for responseOptions to better reflect its usage since MQTT 5.0"]
pub type MQTTAsync_callOptions = MQTTAsync_responseOptions;
extern "C" {
    #[doc = " This function sets the global callback functions for a specific client."]
    #[doc = " If your client application doesn't use a particular callback, set the"]
    #[doc = " relevant parameter to NULL. Any necessary message acknowledgements and"]
    #[doc = " status communications are handled in the background without any intervention"]
    #[doc = " from the client application.  If you do not set a messageArrived callback"]
    #[doc = " function, you will not be notified of the receipt of any messages as a"]
    #[doc = " result of a subscription."]
    #[doc = ""]
    #[doc = " <b>Note:</b> The MQTT client must be disconnected when this function is"]
    #[doc = " called."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to each of the callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param cl A pointer to an MQTTAsync_connectionLost() callback"]
    #[doc = " function. You can set this to NULL if your application doesn't handle"]
    #[doc = " disconnections."]
    #[doc = " @param ma A pointer to an MQTTAsync_messageArrived() callback"]
    #[doc = " function.  If this callback is not set, an error will be returned."]
    #[doc = " You must set this callback because otherwise there would be"]
    #[doc = " no way to deliver any incoming messages."]
    #[doc = " @param dc A pointer to an MQTTAsync_deliveryComplete() callback"]
    #[doc = " function. You can set this to NULL if you do not want to check"]
    #[doc = " for successful delivery."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setCallbacks(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        cl: MQTTAsync_connectionLost,
        ma: MQTTAsync_messageArrived,
        dc: MQTTAsync_deliveryComplete,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function sets the callback function for a connection lost event for"]
    #[doc = " a specific client. Any necessary message acknowledgements and status"]
    #[doc = " communications are handled in the background without any intervention"]
    #[doc = " from the client application."]
    #[doc = ""]
    #[doc = " <b>Note:</b> The MQTT client must be disconnected when this function is"]
    #[doc = " called."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed the callback functions to provide"]
    #[doc = " access to the context information in the callback."]
    #[doc = " @param cl A pointer to an MQTTAsync_connectionLost() callback"]
    #[doc = " function. You can set this to NULL if your application doesn't handle"]
    #[doc = " disconnections."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setConnectionLostCallback(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        cl: MQTTAsync_connectionLost,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function sets the callback function for a message arrived event for"]
    #[doc = " a specific client. Any necessary message acknowledgements and status"]
    #[doc = " communications are handled in the background without any intervention"]
    #[doc = " from the client application.  If you do not set a messageArrived callback"]
    #[doc = " function, you will not be notified of the receipt of any messages as a"]
    #[doc = " result of a subscription."]
    #[doc = ""]
    #[doc = " <b>Note:</b> The MQTT client must be disconnected when this function is"]
    #[doc = " called."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to the callback functions to provide"]
    #[doc = " access to the context information in the callback."]
    #[doc = " @param ma A pointer to an MQTTAsync_messageArrived() callback"]
    #[doc = " function.  You can set this to NULL if your application doesn't handle"]
    #[doc = " receipt of messages."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setMessageArrivedCallback(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        ma: MQTTAsync_messageArrived,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function sets the callback function for a delivery complete event"]
    #[doc = " for a specific client. Any necessary message acknowledgements and status"]
    #[doc = " communications are handled in the background without any intervention"]
    #[doc = " from the client application."]
    #[doc = ""]
    #[doc = " <b>Note:</b> The MQTT client must be disconnected when this function is"]
    #[doc = " called."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to the callback functions to provide"]
    #[doc = " access to the context information in the callback."]
    #[doc = " @param dc A pointer to an MQTTAsync_deliveryComplete() callback"]
    #[doc = " function. You can set this to NULL if you do not want to check"]
    #[doc = " for successful delivery."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setDeliveryCompleteCallback(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        dc: MQTTAsync_deliveryComplete,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sets the MQTTAsync_connected() callback function for a client."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param context A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to each of the callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    #[doc = " @param co A pointer to an MQTTAsync_connected() callback"]
    #[doc = " function.  NULL removes the callback setting."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_setConnected(
        handle: MQTTAsync,
        context: *mut ::std::os::raw::c_void,
        co: MQTTAsync_connected,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Reconnects a client with the previously used connect options.  Connect"]
    #[doc = " must have previously been called for this to work."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the callbacks were correctly set,"]
    #[doc = " ::MQTTASYNC_FAILURE if an error occurred."]
    pub fn MQTTAsync_reconnect(handle: MQTTAsync) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function creates an MQTT client ready for connection to the"]
    #[doc = " specified server and using the specified persistent storage (see"]
    #[doc = " MQTTAsync_persistence). See also MQTTAsync_destroy()."]
    #[doc = " @param handle A pointer to an ::MQTTAsync handle. The handle is"]
    #[doc = " populated with a valid client reference following a successful return from"]
    #[doc = " this function."]
    #[doc = " @param serverURI A null-terminated string specifying the server to"]
    #[doc = " which the client will connect. It takes the form <i>protocol://host:port</i>."]
    #[doc = " <i>protocol</i> must be <i>tcp</i>, <i>ssl</i>, <i>ws</i> or <i>wss</i>."]
    #[doc = " The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of"]
    #[doc = " the library is linked with."]
    #[doc = " For <i>host</i>, you can"]
    #[doc = " specify either an IP address or a host name. For instance, to connect to"]
    #[doc = " a server running on the local machines with the default MQTT port, specify"]
    #[doc = " <i>tcp://localhost:1883</i>."]
    #[doc = " @param clientId The client identifier passed to the server when the"]
    #[doc = " client connects to it. It is a null-terminated UTF-8 encoded string."]
    #[doc = " @param persistence_type The type of persistence to be used by the client:"]
    #[doc = " <br>"]
    #[doc = " ::MQTTCLIENT_PERSISTENCE_NONE: Use in-memory persistence. If the device or"]
    #[doc = " system on which the client is running fails or is switched off, the current"]
    #[doc = " state of any in-flight messages is lost and some messages may not be"]
    #[doc = " delivered even at QoS1 and QoS2."]
    #[doc = " <br>"]
    #[doc = " ::MQTTCLIENT_PERSISTENCE_DEFAULT: Use the default (file system-based)"]
    #[doc = " persistence mechanism. Status about in-flight messages is held in persistent"]
    #[doc = " storage and provides some protection against message loss in the case of"]
    #[doc = " unexpected failure."]
    #[doc = " <br>"]
    #[doc = " ::MQTTCLIENT_PERSISTENCE_USER: Use an application-specific persistence"]
    #[doc = " implementation. Using this type of persistence gives control of the"]
    #[doc = " persistence mechanism to the application. The application has to implement"]
    #[doc = " the MQTTClient_persistence interface."]
    #[doc = " @param persistence_context If the application uses"]
    #[doc = " ::MQTTCLIENT_PERSISTENCE_NONE persistence, this argument is unused and should"]
    #[doc = " be set to NULL. For ::MQTTCLIENT_PERSISTENCE_DEFAULT persistence, it"]
    #[doc = " should be set to the location of the persistence directory (if set"]
    #[doc = " to NULL, the persistence directory used is the working directory)."]
    #[doc = " Applications that use ::MQTTCLIENT_PERSISTENCE_USER persistence set this"]
    #[doc = " argument to point to a valid MQTTClient_persistence structure."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the client is successfully created, otherwise"]
    #[doc = " an error code is returned."]
    pub fn MQTTAsync_create(
        handle: *mut MQTTAsync,
        serverURI: *const ::std::os::raw::c_char,
        clientId: *const ::std::os::raw::c_char,
        persistence_type: ::std::os::raw::c_int,
        persistence_context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Options for the ::MQTTAsync_createWithOptions call"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_createOptions {
    #[doc = " The eyecatcher for this structure.  must be MQCO."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0, 1, 2 or 3"]
    #[doc = " 0 means no MQTTVersion"]
    #[doc = " 1 means no allowDisconnectedSendAtAnyTime, deleteOldestMessages, restoreMessages"]
    #[doc = " 2 means no persistQoS0"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " Whether to allow messages to be sent when the client library is not connected."]
    pub sendWhileDisconnected: ::std::os::raw::c_int,
    #[doc = " The maximum number of messages allowed to be buffered while not connected."]
    pub maxBufferedMessages: ::std::os::raw::c_int,
    #[doc = " Whether the MQTT version is 3.1, 3.1.1, or 5.  To use V5, this must be set."]
    #[doc = "  MQTT V5 has to be chosen here, because during the create call the message persistence"]
    #[doc = "  is initialized, and we want to know whether the format of any persisted messages"]
    #[doc = "  is appropriate for the MQTT version we are going to connect with.  Selecting 3.1 or"]
    #[doc = "  3.1.1 and attempting to read 5.0 persisted messages will result in an error on create."]
    pub MQTTVersion: ::std::os::raw::c_int,
    #[doc = " Allow sending of messages while disconnected before a first successful connect."]
    pub allowDisconnectedSendAtAnyTime: ::std::os::raw::c_int,
    pub deleteOldestMessages: ::std::os::raw::c_int,
    pub restoreMessages: ::std::os::raw::c_int,
    pub persistQoS0: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_MQTTAsync_createOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_createOptions>(),
        36usize,
        concat!("Size of: ", stringify!(MQTTAsync_createOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_createOptions>(),
        4usize,
        concat!("Alignment of ", stringify!(MQTTAsync_createOptions))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).sendWhileDisconnected as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(sendWhileDisconnected)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).maxBufferedMessages as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(maxBufferedMessages)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).MQTTVersion as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(MQTTVersion)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).allowDisconnectedSendAtAnyTime
                as *const _ as usize
        },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(allowDisconnectedSendAtAnyTime)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).deleteOldestMessages as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(deleteOldestMessages)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).restoreMessages as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(restoreMessages)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_createOptions>())).persistQoS0 as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_createOptions),
            "::",
            stringify!(persistQoS0)
        )
    );
}
extern "C" {
    pub fn MQTTAsync_createWithOptions(
        handle: *mut MQTTAsync,
        serverURI: *const ::std::os::raw::c_char,
        clientId: *const ::std::os::raw::c_char,
        persistence_type: ::std::os::raw::c_int,
        persistence_context: *mut ::std::os::raw::c_void,
        options: *mut MQTTAsync_createOptions,
    ) -> ::std::os::raw::c_int;
}
#[doc = " MQTTAsync_willOptions defines the MQTT \"Last Will and Testament\" (LWT) settings for"]
#[doc = " the client. In the event that a client unexpectedly loses its connection to"]
#[doc = " the server, the server publishes the LWT message to the LWT topic on"]
#[doc = " behalf of the client. This allows other clients (subscribed to the LWT topic)"]
#[doc = " to be made aware that the client has disconnected. To enable the LWT"]
#[doc = " function for a specific client, a valid pointer to an MQTTAsync_willOptions"]
#[doc = " structure is passed in the MQTTAsync_connectOptions structure used in the"]
#[doc = " MQTTAsync_connect() call that connects the client to the server. The pointer"]
#[doc = " to MQTTAsync_willOptions can be set to NULL if the LWT function is not"]
#[doc = " required."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_willOptions {
    #[doc = " The eyecatcher for this structure.  must be MQTW."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0 or 1"]
    #[doc = "0 indicates no binary will message support"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " The LWT topic to which the LWT message will be published."]
    pub topicName: *const ::std::os::raw::c_char,
    #[doc = " The LWT payload."]
    pub message: *const ::std::os::raw::c_char,
    #[doc = " The retained flag for the LWT message (see MQTTAsync_message.retained)."]
    pub retained: ::std::os::raw::c_int,
    #[doc = " The quality of service setting for the LWT message (see"]
    #[doc = " MQTTAsync_message.qos and @ref qos)."]
    pub qos: ::std::os::raw::c_int,
    pub payload: MQTTAsync_willOptions__bindgen_ty_1,
}
#[doc = " The LWT payload in binary form. This is only checked and used if the message option is NULL"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_willOptions__bindgen_ty_1 {
    #[doc = "< binary payload length"]
    pub len: ::std::os::raw::c_int,
    #[doc = "< binary payload data"]
    pub data: *const ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_MQTTAsync_willOptions__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_willOptions__bindgen_ty_1>(),
        16usize,
        concat!("Size of: ", stringify!(MQTTAsync_willOptions__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_willOptions__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_willOptions__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_willOptions__bindgen_ty_1>())).len as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions__bindgen_ty_1),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_willOptions__bindgen_ty_1>())).data as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions__bindgen_ty_1),
            "::",
            stringify!(data)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_willOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_willOptions>(),
        48usize,
        concat!("Size of: ", stringify!(MQTTAsync_willOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_willOptions>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_willOptions))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).struct_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_willOptions>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).topicName as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(topicName)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).message as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).retained as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(retained)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).qos as *const _ as usize },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(qos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_willOptions>())).payload as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_willOptions),
            "::",
            stringify!(payload)
        )
    );
}
#[doc = " MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the"]
#[doc = " OpenSSL library. It covers the following scenarios:"]
#[doc = " - Server authentication: The client needs the digital certificate of the server. It is included"]
#[doc = "   in a store containting trusted material (also known as \"trust store\")."]
#[doc = " - Mutual authentication: Both client and server are authenticated during the SSL handshake. In"]
#[doc = "   addition to the digital certificate of the server in a trust store, the client will need its own"]
#[doc = "   digital certificate and the private key used to sign its digital certificate stored in a \"key store\"."]
#[doc = " - Anonymous connection: Both client and server do not get authenticated and no credentials are needed"]
#[doc = "   to establish an SSL connection. Note that this scenario is not fully secure since it is subject to"]
#[doc = "   man-in-the-middle attacks."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_SSLOptions {
    #[doc = " The eyecatcher for this structure.  Must be MQTS"]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure. Must be 0, 1, 2, 3, 4 or 5."]
    #[doc = " 0 means no sslVersion"]
    #[doc = " 1 means no verify, CApath"]
    #[doc = " 2 means no ssl_error_context, ssl_error_cb"]
    #[doc = " 3 means no ssl_psk_cb, ssl_psk_context, disableDefaultTrustStore"]
    #[doc = " 4 means no protos, protos_len"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " The file in PEM format containing the public digital certificates trusted by the client."]
    pub trustStore: *const ::std::os::raw::c_char,
    #[doc = " The file in PEM format containing the public certificate chain of the client. It may also include"]
    #[doc = " the client's private key."]
    pub keyStore: *const ::std::os::raw::c_char,
    #[doc = " If not included in the sslKeyStore, this setting points to the file in PEM format containing"]
    #[doc = " the client's private key."]
    pub privateKey: *const ::std::os::raw::c_char,
    #[doc = " The password to load the client's privateKey if encrypted."]
    pub privateKeyPassword: *const ::std::os::raw::c_char,
    #[doc = " The list of cipher suites that the client will present to the server during the SSL handshake. For a"]
    #[doc = " full explanation of the cipher list format, please see the OpenSSL on-line documentation:"]
    #[doc = " http://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT"]
    #[doc = " If this setting is ommitted, its default value will be \"ALL\", that is, all the cipher suites -excluding"]
    #[doc = " those offering no encryption- will be considered."]
    #[doc = " This setting can be used to set an SSL anonymous connection (\"aNULL\" string value, for instance)."]
    pub enabledCipherSuites: *const ::std::os::raw::c_char,
    #[doc = " True/False option to enable verification of the server certificate"]
    pub enableServerCertAuth: ::std::os::raw::c_int,
    #[doc = " The SSL/TLS version to use. Specify one of MQTT_SSL_VERSION_DEFAULT (0),"]
    #[doc = " MQTT_SSL_VERSION_TLS_1_0 (1), MQTT_SSL_VERSION_TLS_1_1 (2) or MQTT_SSL_VERSION_TLS_1_2 (3)."]
    #[doc = " Only used if struct_version is >= 1."]
    pub sslVersion: ::std::os::raw::c_int,
    #[doc = " Whether to carry out post-connect checks, including that a certificate"]
    #[doc = " matches the given host name."]
    #[doc = " Exists only if struct_version >= 2"]
    pub verify: ::std::os::raw::c_int,
    #[doc = " From the OpenSSL documentation:"]
    #[doc = " If CApath is not NULL, it points to a directory containing CA certificates in PEM format."]
    #[doc = " Exists only if struct_version >= 2"]
    pub CApath: *const ::std::os::raw::c_char,
    #[doc = " Callback function for OpenSSL error handler ERR_print_errors_cb"]
    #[doc = " Exists only if struct_version >= 3"]
    pub ssl_error_cb: ::std::option::Option<
        unsafe extern "C" fn(
            str_: *const ::std::os::raw::c_char,
            len: size_t,
            u: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Application-specific contex for OpenSSL error handler ERR_print_errors_cb"]
    #[doc = " Exists only if struct_version >= 3"]
    pub ssl_error_context: *mut ::std::os::raw::c_void,
    #[doc = " Callback function for setting TLS-PSK options. Parameters correspond to that of"]
    #[doc = " SSL_CTX_set_psk_client_callback, except for u which is the pointer ssl_psk_context."]
    #[doc = " Exists only if struct_version >= 4"]
    pub ssl_psk_cb: ::std::option::Option<
        unsafe extern "C" fn(
            hint: *const ::std::os::raw::c_char,
            identity: *mut ::std::os::raw::c_char,
            max_identity_len: ::std::os::raw::c_uint,
            psk: *mut ::std::os::raw::c_uchar,
            max_psk_len: ::std::os::raw::c_uint,
            u: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_uint,
    >,
    #[doc = " Application-specific contex for ssl_psk_cb"]
    #[doc = " Exists only if struct_version >= 4"]
    pub ssl_psk_context: *mut ::std::os::raw::c_void,
    #[doc = " Don't load default SSL CA. Should be used together with PSK to make sure"]
    #[doc = " regular servers with certificate in place is not accepted."]
    #[doc = " Exists only if struct_version >= 4"]
    pub disableDefaultTrustStore: ::std::os::raw::c_int,
    #[doc = " The protocol-lists must be in wire-format, which is defined as a vector of non-empty, 8-bit length-prefixed, byte strings."]
    #[doc = " The length-prefix byte is not included in the length. Each string is limited to 255 bytes. A byte-string length of 0 is invalid."]
    #[doc = " A truncated byte-string is invalid."]
    #[doc = " Check documentation for SSL_CTX_set_alpn_protos"]
    #[doc = " Exists only if struct_version >= 5"]
    pub protos: *const ::std::os::raw::c_uchar,
    #[doc = " The length of the vector protos vector"]
    #[doc = " Exists only if struct_version >= 5"]
    pub protos_len: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_MQTTAsync_SSLOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_SSLOptions>(),
        128usize,
        concat!("Size of: ", stringify!(MQTTAsync_SSLOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_SSLOptions>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_SSLOptions))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).struct_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).trustStore as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(trustStore)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).keyStore as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(keyStore)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).privateKey as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(privateKey)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).privateKeyPassword as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(privateKeyPassword)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).enabledCipherSuites as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(enabledCipherSuites)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).enableServerCertAuth as *const _
                as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(enableServerCertAuth)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).sslVersion as *const _ as usize },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(sslVersion)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).verify as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(verify)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).CApath as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(CApath)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).ssl_error_cb as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(ssl_error_cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).ssl_error_context as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(ssl_error_context)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).ssl_psk_cb as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(ssl_psk_cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).ssl_psk_context as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(ssl_psk_context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).disableDefaultTrustStore as *const _
                as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(disableDefaultTrustStore)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).protos as *const _ as usize },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(protos)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_SSLOptions>())).protos_len as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_SSLOptions),
            "::",
            stringify!(protos_len)
        )
    );
}
#[doc = " Utility structure where name/value pairs are needed"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_nameValue {
    #[doc = "< name string"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = "< value string"]
    pub value: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_MQTTAsync_nameValue() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_nameValue>(),
        16usize,
        concat!("Size of: ", stringify!(MQTTAsync_nameValue))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_nameValue>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_nameValue))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_nameValue>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_nameValue),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_nameValue>())).value as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_nameValue),
            "::",
            stringify!(value)
        )
    );
}
#[doc = " MQTTAsync_connectOptions defines several settings that control the way the"]
#[doc = " client connects to an MQTT server.  Default values are set in"]
#[doc = " MQTTAsync_connectOptions_initializer."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_connectOptions {
    #[doc = " The eyecatcher for this structure.  must be MQTC."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0, 1, 2, 3 4 5 6, 7 or 8."]
    #[doc = " 0 signifies no SSL options and no serverURIs"]
    #[doc = " 1 signifies no serverURIs"]
    #[doc = " 2 signifies no MQTTVersion"]
    #[doc = " 3 signifies no automatic reconnect options"]
    #[doc = " 4 signifies no binary password option (just string)"]
    #[doc = " 5 signifies no MQTTV5 properties"]
    #[doc = " 6 signifies no HTTP headers option"]
    #[doc = " 7 signifies no HTTP proxy and HTTPS proxy options"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " The \"keep alive\" interval, measured in seconds, defines the maximum time"]
    #[doc = " that should pass without communication between the client and the server"]
    #[doc = " The client will ensure that at least one message travels across the"]
    #[doc = " network within each keep alive period.  In the absence of a data-related"]
    #[doc = " message during the time period, the client sends a very small MQTT"]
    #[doc = " \"ping\" message, which the server will acknowledge. The keep alive"]
    #[doc = " interval enables the client to detect when the server is no longer"]
    #[doc = " available without having to wait for the long TCP/IP timeout."]
    #[doc = " Set to 0 if you do not want any keep alive processing."]
    pub keepAliveInterval: ::std::os::raw::c_int,
    #[doc = " This is a boolean value. The cleansession setting controls the behaviour"]
    #[doc = " of both the client and the server at connection and disconnection time."]
    #[doc = " The client and server both maintain session state information. This"]
    #[doc = " information is used to ensure \"at least once\" and \"exactly once\""]
    #[doc = " delivery, and \"exactly once\" receipt of messages. Session state also"]
    #[doc = " includes subscriptions created by an MQTT client. You can choose to"]
    #[doc = " maintain or discard state information between sessions."]
    #[doc = ""]
    #[doc = " When cleansession is true, the state information is discarded at"]
    #[doc = " connect and disconnect. Setting cleansession to false keeps the state"]
    #[doc = " information. When you connect an MQTT client application with"]
    #[doc = " MQTTAsync_connect(), the client identifies the connection using the"]
    #[doc = " client identifier and the address of the server. The server checks"]
    #[doc = " whether session information for this client"]
    #[doc = " has been saved from a previous connection to the server. If a previous"]
    #[doc = " session still exists, and cleansession=true, then the previous session"]
    #[doc = " information at the client and server is cleared. If cleansession=false,"]
    #[doc = " the previous session is resumed. If no previous session exists, a new"]
    #[doc = " session is started."]
    pub cleansession: ::std::os::raw::c_int,
    #[doc = " This controls how many messages can be in-flight simultaneously."]
    pub maxInflight: ::std::os::raw::c_int,
    #[doc = " This is a pointer to an MQTTAsync_willOptions structure. If your"]
    #[doc = " application does not make use of the Last Will and Testament feature,"]
    #[doc = " set this pointer to NULL."]
    pub will: *mut MQTTAsync_willOptions,
    #[doc = " MQTT servers that support the MQTT v3.1 protocol provide authentication"]
    #[doc = " and authorisation by user name and password. This is the user name"]
    #[doc = " parameter."]
    pub username: *const ::std::os::raw::c_char,
    #[doc = " MQTT servers that support the MQTT v3.1 protocol provide authentication"]
    #[doc = " and authorisation by user name and password. This is the password"]
    #[doc = " parameter."]
    pub password: *const ::std::os::raw::c_char,
    #[doc = " The time interval in seconds to allow a connect to complete."]
    pub connectTimeout: ::std::os::raw::c_int,
    #[doc = " The time interval in seconds after which unacknowledged publish requests are"]
    #[doc = " retried during a TCP session.  With MQTT 3.1.1 and later, retries are"]
    #[doc = " not required except on reconnect.  0 turns off in-session retries, and is the"]
    #[doc = " recommended setting.  Adding retries to an already overloaded network only"]
    #[doc = " exacerbates the problem."]
    pub retryInterval: ::std::os::raw::c_int,
    #[doc = " This is a pointer to an MQTTAsync_SSLOptions structure. If your"]
    #[doc = " application does not make use of SSL, set this pointer to NULL."]
    pub ssl: *mut MQTTAsync_SSLOptions,
    #[doc = " A pointer to a callback function to be called if the connect successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess: MQTTAsync_onSuccess,
    #[doc = " A pointer to a callback function to be called if the connect fails."]
    #[doc = " Can be set to NULL, in which case no indication of unsuccessful"]
    #[doc = " completion will be received."]
    pub onFailure: MQTTAsync_onFailure,
    #[doc = " A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to success or failure callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " The number of entries in the serverURIs array."]
    pub serverURIcount: ::std::os::raw::c_int,
    #[doc = " An array of null-terminated strings specifying the servers to"]
    #[doc = " which the client will connect. Each string takes the form <i>protocol://host:port</i>."]
    #[doc = " <i>protocol</i> must be <i>tcp</i>, <i>ssl</i>, <i>ws</i> or <i>wss</i>."]
    #[doc = " The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library"]
    #[doc = " is linked with."]
    #[doc = " For <i>host</i>, you can"]
    #[doc = " specify either an IP address or a domain name. For instance, to connect to"]
    #[doc = " a server running on the local machines with the default MQTT port, specify"]
    #[doc = " <i>tcp://localhost:1883</i>."]
    pub serverURIs: *const *mut ::std::os::raw::c_char,
    #[doc = " Sets the version of MQTT to be used on the connect."]
    #[doc = " MQTTVERSION_DEFAULT (0) = default: start with 3.1.1, and if that fails, fall back to 3.1"]
    #[doc = " MQTTVERSION_3_1 (3) = only try version 3.1"]
    #[doc = " MQTTVERSION_3_1_1 (4) = only try version 3.1.1"]
    pub MQTTVersion: ::std::os::raw::c_int,
    #[doc = " Reconnect automatically in the case of a connection being lost?"]
    pub automaticReconnect: ::std::os::raw::c_int,
    #[doc = " Minimum retry interval in seconds.  Doubled on each failed retry."]
    pub minRetryInterval: ::std::os::raw::c_int,
    #[doc = " Maximum retry interval in seconds.  The doubling stops here on failed retries."]
    pub maxRetryInterval: ::std::os::raw::c_int,
    pub binarypwd: MQTTAsync_connectOptions__bindgen_ty_1,
    pub cleanstart: ::std::os::raw::c_int,
    #[doc = " MQTT V5 properties for connect"]
    pub connectProperties: *mut MQTTProperties,
    #[doc = " MQTT V5 properties for the will message in the connect"]
    pub willProperties: *mut MQTTProperties,
    #[doc = " A pointer to a callback function to be called if the connect successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess5: MQTTAsync_onSuccess5,
    #[doc = " A pointer to a callback function to be called if the connect fails."]
    #[doc = " Can be set to NULL, in which case no indication of unsuccessful"]
    #[doc = " completion will be received."]
    pub onFailure5: MQTTAsync_onFailure5,
    #[doc = " HTTP headers for websockets"]
    pub httpHeaders: *const MQTTAsync_nameValue,
    #[doc = " HTTP proxy for websockets"]
    pub httpProxy: *const ::std::os::raw::c_char,
    #[doc = " HTTPS proxy for websockets"]
    pub httpsProxy: *const ::std::os::raw::c_char,
}
#[doc = " Optional binary password.  Only checked and used if the password option is NULL"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_connectOptions__bindgen_ty_1 {
    #[doc = "< binary password length"]
    pub len: ::std::os::raw::c_int,
    #[doc = "< binary password data"]
    pub data: *const ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_MQTTAsync_connectOptions__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_connectOptions__bindgen_ty_1>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(MQTTAsync_connectOptions__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_connectOptions__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(MQTTAsync_connectOptions__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions__bindgen_ty_1>())).len as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions__bindgen_ty_1),
            "::",
            stringify!(len)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions__bindgen_ty_1>())).data as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions__bindgen_ty_1),
            "::",
            stringify!(data)
        )
    );
}
#[test]
fn bindgen_test_layout_MQTTAsync_connectOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_connectOptions>(),
        200usize,
        concat!("Size of: ", stringify!(MQTTAsync_connectOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_connectOptions>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_connectOptions))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).struct_version as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).keepAliveInterval as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(keepAliveInterval)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).cleansession as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(cleansession)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).maxInflight as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(maxInflight)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).will as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(will)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).username as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(username)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).password as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(password)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).connectTimeout as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(connectTimeout)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).retryInterval as *const _ as usize
        },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(retryInterval)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).ssl as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(ssl)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).onSuccess as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(onSuccess)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).onFailure as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(onFailure)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).context as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).serverURIcount as *const _ as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(serverURIcount)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).serverURIs as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(serverURIs)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).MQTTVersion as *const _ as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(MQTTVersion)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).automaticReconnect as *const _
                as usize
        },
        108usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(automaticReconnect)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).minRetryInterval as *const _
                as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(minRetryInterval)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).maxRetryInterval as *const _
                as usize
        },
        116usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(maxRetryInterval)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).binarypwd as *const _ as usize
        },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(binarypwd)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).cleanstart as *const _ as usize
        },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(cleanstart)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).connectProperties as *const _
                as usize
        },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(connectProperties)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).willProperties as *const _ as usize
        },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(willProperties)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).onSuccess5 as *const _ as usize
        },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(onSuccess5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).onFailure5 as *const _ as usize
        },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(onFailure5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).httpHeaders as *const _ as usize
        },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(httpHeaders)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).httpProxy as *const _ as usize
        },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(httpProxy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_connectOptions>())).httpsProxy as *const _ as usize
        },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_connectOptions),
            "::",
            stringify!(httpsProxy)
        )
    );
}
extern "C" {
    #[doc = " This function attempts to connect a previously-created client (see"]
    #[doc = " MQTTAsync_create()) to an MQTT server using the specified options. If you"]
    #[doc = " want to enable asynchronous message and status notifications, you must call"]
    #[doc = " MQTTAsync_setCallbacks() prior to MQTTAsync_connect()."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param options A pointer to a valid MQTTAsync_connectOptions"]
    #[doc = " structure."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the client connect request was accepted."]
    #[doc = " If the client was unable to connect to the server, an error code is"]
    #[doc = " returned via the onFailure callback, if set."]
    #[doc = " Error codes greater than 0 are returned by the MQTT protocol:<br><br>"]
    #[doc = " <b>1</b>: Connection refused: Unacceptable protocol version<br>"]
    #[doc = " <b>2</b>: Connection refused: Identifier rejected<br>"]
    #[doc = " <b>3</b>: Connection refused: Server unavailable<br>"]
    #[doc = " <b>4</b>: Connection refused: Bad user name or password<br>"]
    #[doc = " <b>5</b>: Connection refused: Not authorized<br>"]
    #[doc = " <b>6-255</b>: Reserved for future use<br>"]
    pub fn MQTTAsync_connect(
        handle: MQTTAsync,
        options: *const MQTTAsync_connectOptions,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Options for the ::MQTTAsync_disconnect call"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MQTTAsync_disconnectOptions {
    #[doc = " The eyecatcher for this structure. Must be MQTD."]
    pub struct_id: [::std::os::raw::c_char; 4usize],
    #[doc = " The version number of this structure.  Must be 0 or 1.  0 signifies no V5 properties"]
    pub struct_version: ::std::os::raw::c_int,
    #[doc = " The client delays disconnection for up to this time (in"]
    #[doc = " milliseconds) in order to allow in-flight message transfers to complete."]
    pub timeout: ::std::os::raw::c_int,
    #[doc = " A pointer to a callback function to be called if the disconnect successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess: MQTTAsync_onSuccess,
    #[doc = " A pointer to a callback function to be called if the disconnect fails."]
    #[doc = " Can be set to NULL, in which case no indication of unsuccessful"]
    #[doc = " completion will be received."]
    pub onFailure: MQTTAsync_onFailure,
    #[doc = " A pointer to any application-specific context. The"]
    #[doc = " the <i>context</i> pointer is passed to success or failure callback functions to"]
    #[doc = " provide access to the context information in the callback."]
    pub context: *mut ::std::os::raw::c_void,
    #[doc = " MQTT V5 input properties"]
    pub properties: MQTTProperties,
    #[doc = " Reason code for MQTTV5 disconnect"]
    pub reasonCode: MQTTReasonCodes,
    #[doc = " A pointer to a callback function to be called if the disconnect successfully"]
    #[doc = " completes.  Can be set to NULL, in which case no indication of successful"]
    #[doc = " completion will be received."]
    pub onSuccess5: MQTTAsync_onSuccess5,
    #[doc = " A pointer to a callback function to be called if the disconnect fails."]
    #[doc = " Can be set to NULL, in which case no indication of unsuccessful"]
    #[doc = " completion will be received."]
    pub onFailure5: MQTTAsync_onFailure5,
}
#[test]
fn bindgen_test_layout_MQTTAsync_disconnectOptions() {
    assert_eq!(
        ::std::mem::size_of::<MQTTAsync_disconnectOptions>(),
        88usize,
        concat!("Size of: ", stringify!(MQTTAsync_disconnectOptions))
    );
    assert_eq!(
        ::std::mem::align_of::<MQTTAsync_disconnectOptions>(),
        8usize,
        concat!("Alignment of ", stringify!(MQTTAsync_disconnectOptions))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).struct_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(struct_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).struct_version as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(struct_version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).timeout as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(timeout)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).onSuccess as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(onSuccess)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).onFailure as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(onFailure)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).context as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).properties as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(properties)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).reasonCode as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(reasonCode)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).onSuccess5 as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(onSuccess5)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<MQTTAsync_disconnectOptions>())).onFailure5 as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(MQTTAsync_disconnectOptions),
            "::",
            stringify!(onFailure5)
        )
    );
}
extern "C" {
    #[doc = " This function attempts to disconnect the client from the MQTT"]
    #[doc = " server. In order to allow the client time to complete handling of messages"]
    #[doc = " that are in-flight when this function is called, a timeout period is"]
    #[doc = " specified. When the timeout period has expired, the client disconnects even"]
    #[doc = " if there are still outstanding message acknowledgements."]
    #[doc = " The next time the client connects to the same server, any QoS 1 or 2"]
    #[doc = " messages which have not completed will be retried depending on the"]
    #[doc = " cleansession settings for both the previous and the new connection (see"]
    #[doc = " MQTTAsync_connectOptions.cleansession and MQTTAsync_connect())."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param options The client delays disconnection for up to this time (in"]
    #[doc = " milliseconds) in order to allow in-flight message transfers to complete."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the client successfully disconnects from"]
    #[doc = " the server. An error code is returned if the client was unable to disconnect"]
    #[doc = " from the server"]
    pub fn MQTTAsync_disconnect(
        handle: MQTTAsync,
        options: *const MQTTAsync_disconnectOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function allows the client application to test whether or not a"]
    #[doc = " client is currently connected to the MQTT server."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @return Boolean true if the client is connected, otherwise false."]
    pub fn MQTTAsync_isConnected(handle: MQTTAsync) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to subscribe a client to a single topic, which may"]
    #[doc = " contain wildcards (see @ref wildcard). This call also specifies the"]
    #[doc = " @ref qos requested for the subscription"]
    #[doc = " (see also MQTTAsync_subscribeMany())."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param topic The subscription topic, which may include wildcards."]
    #[doc = " @param qos The requested quality of service for the subscription."]
    #[doc = " @param response A pointer to a response options structure. Used to set callback functions."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the subscription request is successful."]
    #[doc = " An error code is returned if there was a problem registering the"]
    #[doc = " subscription."]
    pub fn MQTTAsync_subscribe(
        handle: MQTTAsync,
        topic: *const ::std::os::raw::c_char,
        qos: ::std::os::raw::c_int,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to subscribe a client to a list of topics, which may"]
    #[doc = " contain wildcards (see @ref wildcard). This call also specifies the"]
    #[doc = " @ref qos requested for each topic (see also MQTTAsync_subscribe())."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param count The number of topics for which the client is requesting"]
    #[doc = " subscriptions."]
    #[doc = " @param topic An array (of length <i>count</i>) of pointers to"]
    #[doc = " topics, each of which may include wildcards."]
    #[doc = " @param qos An array (of length <i>count</i>) of @ref qos"]
    #[doc = " values. qos[n] is the requested QoS for topic[n]."]
    #[doc = " @param response A pointer to a response options structure. Used to set callback functions."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the subscription request is successful."]
    #[doc = " An error code is returned if there was a problem registering the"]
    #[doc = " subscriptions."]
    pub fn MQTTAsync_subscribeMany(
        handle: MQTTAsync,
        count: ::std::os::raw::c_int,
        topic: *const *mut ::std::os::raw::c_char,
        qos: *const ::std::os::raw::c_int,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to remove an existing subscription made by the"]
    #[doc = " specified client."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param topic The topic for the subscription to be removed, which may"]
    #[doc = " include wildcards (see @ref wildcard)."]
    #[doc = " @param response A pointer to a response options structure. Used to set callback functions."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the subscription is removed."]
    #[doc = " An error code is returned if there was a problem removing the"]
    #[doc = " subscription."]
    pub fn MQTTAsync_unsubscribe(
        handle: MQTTAsync,
        topic: *const ::std::os::raw::c_char,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to remove existing subscriptions to a list of topics"]
    #[doc = " made by the specified client."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param count The number subscriptions to be removed."]
    #[doc = " @param topic An array (of length <i>count</i>) of pointers to the topics of"]
    #[doc = " the subscriptions to be removed, each of which may include wildcards."]
    #[doc = " @param response A pointer to a response options structure. Used to set callback functions."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the subscriptions are removed."]
    #[doc = " An error code is returned if there was a problem removing the subscriptions."]
    pub fn MQTTAsync_unsubscribeMany(
        handle: MQTTAsync,
        count: ::std::os::raw::c_int,
        topic: *const *mut ::std::os::raw::c_char,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to publish a message to a given topic (see also"]
    #[doc = " ::MQTTAsync_sendMessage()). An ::MQTTAsync_token is issued when"]
    #[doc = " this function returns successfully if the QoS is greater than 0."]
    #[doc = " If the client application needs to"]
    #[doc = " test for successful delivery of messages, a callback should be set"]
    #[doc = " (see ::MQTTAsync_onSuccess() and ::MQTTAsync_deliveryComplete())."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param destinationName The topic associated with this message."]
    #[doc = " @param payloadlen The length of the payload in bytes."]
    #[doc = " @param payload A pointer to the byte array payload of the message."]
    #[doc = " @param qos The @ref qos of the message."]
    #[doc = " @param retained The retained flag for the message."]
    #[doc = " @param response A pointer to an ::MQTTAsync_responseOptions structure. Used to set callback functions."]
    #[doc = " This is optional and can be set to NULL."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the message is accepted for publication."]
    #[doc = " An error code is returned if there was a problem accepting the message."]
    pub fn MQTTAsync_send(
        handle: MQTTAsync,
        destinationName: *const ::std::os::raw::c_char,
        payloadlen: ::std::os::raw::c_int,
        payload: *const ::std::os::raw::c_void,
        qos: ::std::os::raw::c_int,
        retained: ::std::os::raw::c_int,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function attempts to publish a message to a given topic (see also"]
    #[doc = " MQTTAsync_publish()). An ::MQTTAsync_token is issued when"]
    #[doc = " this function returns successfully if the QoS is greater than 0."]
    #[doc = " If the client application needs to"]
    #[doc = " test for successful delivery of messages, a callback should be set"]
    #[doc = " (see ::MQTTAsync_onSuccess() and ::MQTTAsync_deliveryComplete())."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param destinationName The topic associated with this message."]
    #[doc = " @param msg A pointer to a valid MQTTAsync_message structure containing"]
    #[doc = " the payload and attributes of the message to be published."]
    #[doc = " @param response A pointer to an ::MQTTAsync_responseOptions structure. Used to set callback functions."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the message is accepted for publication."]
    #[doc = " An error code is returned if there was a problem accepting the message."]
    pub fn MQTTAsync_sendMessage(
        handle: MQTTAsync,
        destinationName: *const ::std::os::raw::c_char,
        msg: *const MQTTAsync_message,
        response: *mut MQTTAsync_responseOptions,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function sets a pointer to an array of tokens for"]
    #[doc = " messages that are currently in-flight (pending completion)."]
    #[doc = ""]
    #[doc = " <b>Important note:</b> The memory used to hold the array of tokens is"]
    #[doc = " malloc()'d in this function. The client application is responsible for"]
    #[doc = " freeing this memory when it is no longer required."]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param tokens The address of a pointer to an ::MQTTAsync_token."]
    #[doc = " When the function returns successfully, the pointer is set to point to an"]
    #[doc = " array of tokens representing messages pending completion. The last member of"]
    #[doc = " the array is set to -1 to indicate there are no more tokens. If no tokens"]
    #[doc = " are pending, the pointer is set to NULL."]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the function returns successfully."]
    #[doc = " An error code is returned if there was a problem obtaining the list of"]
    #[doc = " pending tokens."]
    pub fn MQTTAsync_getPendingTokens(
        handle: MQTTAsync,
        tokens: *mut *mut MQTTAsync_token,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn MQTTAsync_isComplete(handle: MQTTAsync, token: MQTTAsync_token)
        -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Waits for a request corresponding to a token to complete.  This only works for"]
    #[doc = " messages with QoS greater than 0.  A QoS 0 message has no MQTT token."]
    #[doc = " This function will always return ::MQTTASYNC_SUCCESS for a QoS 0 message."]
    #[doc = ""]
    #[doc = " @param handle A valid client handle from a successful call to"]
    #[doc = " MQTTAsync_create()."]
    #[doc = " @param token An ::MQTTAsync_token associated with a request."]
    #[doc = " @param timeout the maximum time to wait for completion, in milliseconds"]
    #[doc = " @return ::MQTTASYNC_SUCCESS if the request has been completed in the time allocated,"]
    #[doc = "  ::MQTTASYNC_FAILURE or ::MQTTASYNC_DISCONNECTED if not."]
    pub fn MQTTAsync_waitForCompletion(
        handle: MQTTAsync,
        token: MQTTAsync_token,
        timeout: ::std::os::raw::c_ulong,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " This function frees memory allocated to an MQTT message, including the"]
    #[doc = " additional memory allocated to the message payload. The client application"]
    #[doc = " calls this function when the message has been fully processed. <b>Important"]
    #[doc = " note:</b> This function does not free the memory allocated to a message"]
    #[doc = " topic string. It is the responsibility of the client application to free"]
    #[doc = " this memory using the MQTTAsync_free() library function."]
    #[doc = " @param msg The address of a pointer to the ::MQTTAsync_message structure"]
    #[doc = " to be freed."]
    pub fn MQTTAsync_freeMessage(msg: *mut *mut MQTTAsync_message);
}
extern "C" {
    #[doc = " This function frees memory allocated by the MQTT C client library, especially the"]
    #[doc = " topic name. This is needed on Windows when the client library and application"]
    #[doc = " program have been compiled with different versions of the C compiler.  It is"]
    #[doc = " thus good policy to always use this function when freeing any MQTT C client-"]
    #[doc = " allocated memory."]
    #[doc = " @param ptr The pointer to the client library storage to be freed."]
    pub fn MQTTAsync_free(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " This function is used to allocate memory to be used or freed by the MQTT C client library,"]
    #[doc = " especially the data in the ::MQTTPersistence_afterRead and ::MQTTPersistence_beforeWrite"]
    #[doc = " callbacks. This is needed on Windows when the client library and application"]
    #[doc = " program have been compiled with different versions of the C compiler."]
    #[doc = " @param size The size of the memory to be allocated."]
    pub fn MQTTAsync_malloc(size: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " This function frees the memory allocated to an MQTT client (see"]
    #[doc = " MQTTAsync_create()). It should be called when the client is no longer"]
    #[doc = " required."]
    #[doc = " @param handle A pointer to the handle referring to the ::MQTTAsync"]
    #[doc = " structure to be freed."]
    pub fn MQTTAsync_destroy(handle: *mut MQTTAsync);
}
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_MAXIMUM: MQTTASYNC_TRACE_LEVELS = 1;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_MEDIUM: MQTTASYNC_TRACE_LEVELS = 2;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_MINIMUM: MQTTASYNC_TRACE_LEVELS = 3;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_PROTOCOL: MQTTASYNC_TRACE_LEVELS = 4;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_ERROR: MQTTASYNC_TRACE_LEVELS = 5;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_SEVERE: MQTTASYNC_TRACE_LEVELS = 6;
pub const MQTTASYNC_TRACE_LEVELS_MQTTASYNC_TRACE_FATAL: MQTTASYNC_TRACE_LEVELS = 7;
pub type MQTTASYNC_TRACE_LEVELS = ::std::os::raw::c_uint;
extern "C" {
    #[doc = " This function sets the level of trace information which will be"]
    #[doc = " returned in the trace callback."]
    #[doc = " @param level the trace level required"]
    pub fn MQTTAsync_setTraceLevel(level: MQTTASYNC_TRACE_LEVELS);
}
#[doc = " This is a callback function prototype which must be implemented if you want"]
#[doc = " to receive trace information."]
#[doc = " @param level the trace level of the message returned"]
#[doc = " @param message the trace message.  This is a pointer to a static buffer which"]
#[doc = " will be overwritten on each call.  You must copy the data if you want to keep"]
#[doc = " it for later."]
pub type MQTTAsync_traceCallback = ::std::option::Option<
    unsafe extern "C" fn(level: MQTTASYNC_TRACE_LEVELS, message: *mut ::std::os::raw::c_char),
>;
extern "C" {
    #[doc = " This function sets the trace callback if needed.  If set to NULL,"]
    #[doc = " no trace information will be returned.  The default trace level is"]
    #[doc = " MQTTASYNC_TRACE_MINIMUM."]
    #[doc = " @param callback a pointer to the function which will handle the trace information"]
    pub fn MQTTAsync_setTraceCallback(callback: MQTTAsync_traceCallback);
}
extern "C" {
    #[doc = " This function returns version information about the library."]
    #[doc = " no trace information will be returned.  The default trace level is"]
    #[doc = " MQTTASYNC_TRACE_MINIMUM"]
    #[doc = " @return an array of strings describing the library.  The last entry is a NULL pointer."]
    pub fn MQTTAsync_getVersionInfo() -> *mut MQTTAsync_nameValue;
}
extern "C" {
    #[doc = " Returns a pointer to a string representation of the error code, or NULL."]
    #[doc = " Do not free after use. Returns NULL if the error code is unknown."]
    #[doc = " @param code the MQTTASYNC_ return code."]
    #[doc = " @return a static string representation of the error code."]
    pub fn MQTTAsync_strerror(code: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
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)
        )
    );
}