netsnmp-sys-nocrypto 0.1.3

Rust FFI bindings to Net-SNMP with no crypto dep
Documentation
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
use libc;
use std::os::raw;
use auto::*;

pub type marker_t = *mut raw::c_void;
pub type const_marker_t = *const raw::c_void;

#[repr(C)]
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
impl <T> __BindgenUnionField<T> {
    #[inline]
    pub fn new() -> Self { __BindgenUnionField(::std::marker::PhantomData) }
    #[inline]
    pub unsafe fn as_ref(&self) -> &T { ::std::mem::transmute(self) }
    #[inline]
    pub unsafe fn as_mut(&mut self) -> &mut T { ::std::mem::transmute(self) }
}
impl <T> ::std::default::Default for __BindgenUnionField<T> {
    #[inline]
    fn default() -> Self { Self::new() }
}
impl <T> ::std::clone::Clone for __BindgenUnionField<T> {
    #[inline]
    fn clone(&self) -> Self { Self::new() }
}
impl <T> ::std::marker::Copy for __BindgenUnionField<T> { }
impl <T> ::std::fmt::Debug for __BindgenUnionField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        fmt.write_str("__BindgenUnionField")
    }
}


#[repr(C)]
#[derive(Copy)]
pub struct div_t {
    pub quot:  raw::c_int,
    pub rem:  raw::c_int,
}
impl Clone for div_t {
    fn clone(&self) -> Self { *self }
}

pub type Netsnmp_Free_List_Data =
    ::std::option::Option<unsafe extern "C" fn(arg1:
                                                   *mut  raw::c_void)>;
pub type Netsnmp_Save_List_Data =
    ::std::option::Option<unsafe extern "C" fn(buf:
                                                   *mut  raw::c_char,
                                               buf_len: usize,
                                               arg1:
                                                   *mut  raw::c_void)
                              ->  raw::c_int>;
pub type Netsnmp_Read_List_Data =
    ::std::option::Option<unsafe extern "C" fn(buf:
                                                   *mut  raw::c_char,
                                               buf_len: usize)
                              -> *mut  raw::c_void>;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_data_list_s {
    pub next: *mut netsnmp_data_list_s,
    pub name: *mut  raw::c_char,
    pub data: *mut  raw::c_void,
    pub free_func: Netsnmp_Free_List_Data,
}
impl Clone for netsnmp_data_list_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_data_list = netsnmp_data_list_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_data_list_saveinfo_s {
    pub datalist: *mut *mut netsnmp_data_list,
    pub type_: *const  raw::c_char,
    pub token: *const  raw::c_char,
    pub data_list_save_ptr: Netsnmp_Save_List_Data,
    pub data_list_read_ptr: Netsnmp_Read_List_Data,
    pub data_list_free_ptr: Netsnmp_Free_List_Data,
}

impl Clone for netsnmp_data_list_saveinfo_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_data_list_saveinfo = netsnmp_data_list_saveinfo_s;
extern "C" {
    pub fn netsnmp_create_data_list(arg1: *const  raw::c_char,
                                    arg2: *mut  raw::c_void,
                                    arg3: Netsnmp_Free_List_Data)
     -> *mut netsnmp_data_list;

    pub fn netsnmp_data_list_add_node(head: *mut *mut netsnmp_data_list,
                                      node: *mut netsnmp_data_list);

    pub fn netsnmp_data_list_add_data(head: *mut *mut netsnmp_data_list,
                                      name: *const  raw::c_char,
                                      data: *mut  raw::c_void,
                                      beer: Netsnmp_Free_List_Data)
     -> *mut netsnmp_data_list;

    pub fn netsnmp_get_list_data(head: *mut netsnmp_data_list,
                                 node: *const  raw::c_char)
     -> *mut  raw::c_void;

    pub fn netsnmp_free_list_data(head: *mut netsnmp_data_list);

    pub fn netsnmp_free_all_list_data(head: *mut netsnmp_data_list);

    pub fn netsnmp_remove_list_node(realhead: *mut *mut netsnmp_data_list,
                                    name: *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_get_list_node(head: *mut netsnmp_data_list,
                                 name: *const  raw::c_char)
     -> *mut netsnmp_data_list;

    pub fn netsnmp_add_list_data(head: *mut *mut netsnmp_data_list,
                                 node: *mut netsnmp_data_list);

    pub fn netsnmp_register_save_list(datalist: *mut *mut netsnmp_data_list,
                                      type_: *const  raw::c_char,
                                      token: *const  raw::c_char,
                                      data_list_save_ptr:
                                          Netsnmp_Save_List_Data,
                                      data_list_read_ptr:
                                          Netsnmp_Read_List_Data,
                                      data_list_free_ptr:
                                          Netsnmp_Free_List_Data);

    pub fn netsnmp_save_all_data(head: *mut netsnmp_data_list,
                                 type_: *const  raw::c_char,
                                 token: *const  raw::c_char,
                                 data_list_save_ptr: Netsnmp_Save_List_Data)
     ->  raw::c_int;

    pub fn netsnmp_save_all_data_callback(majorID:  raw::c_int,
                                          minorID:  raw::c_int,
                                          serverarg:
                                              *mut  raw::c_void,
                                          clientarg:
                                              *mut  raw::c_void)
     ->  raw::c_int;

    pub fn netsnmp_read_data_callback(token: *const  raw::c_char,
                                      line: *mut  raw::c_char);

    #[link_name = "log_addresses"]
    pub static mut log_addresses:  raw::c_int;

    #[link_name = "lastAddrAge"]
    pub static mut lastAddrAge:  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_request_info_s {
    pub requestvb: *mut netsnmp_variable_list,
    pub parent_data: *mut netsnmp_data_list,
    pub agent_req_info: *mut netsnmp_agent_request_info_s,
    pub range_end: *mut oid,
    pub range_end_len: usize,
    pub delegated:  raw::c_int,
    pub processed:  raw::c_int,
    pub inclusive:  raw::c_int,
    pub status:  raw::c_int,
    pub index:  raw::c_int,
    pub repeat:  raw::c_int,
    pub orig_repeat:  raw::c_int,
    pub requestvb_start: *mut netsnmp_variable_list,
    pub next: *mut netsnmp_request_info_s,
    pub prev: *mut netsnmp_request_info_s,
    pub subtree: *mut netsnmp_subtree_s,
}

impl Clone for netsnmp_request_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_request_info = netsnmp_request_info_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_set_info_s {
    pub action:  raw::c_int,
    pub stateRef: *mut  raw::c_void,
    pub oldData: *mut *mut  raw::c_void,
    pub setCleanupFlags:  raw::c_int,
}

impl Clone for netsnmp_set_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_set_info = netsnmp_set_info_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_tree_cache_s {
    pub subtree: *mut netsnmp_subtree_s,
    pub requests_begin: *mut netsnmp_request_info,
    pub requests_end: *mut netsnmp_request_info,
}

impl Clone for netsnmp_tree_cache_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_tree_cache = netsnmp_tree_cache_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_agent_request_info_s {
    pub mode:  raw::c_int,
    pub asp: *mut netsnmp_agent_session_s,
    pub agent_data: *mut netsnmp_data_list,
}

impl Clone for netsnmp_agent_request_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_agent_request_info = netsnmp_agent_request_info_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_cachemap_s {
    pub globalid:  raw::c_int,
    pub cacheid:  raw::c_int,
    pub next: *mut netsnmp_cachemap_s,
}

impl Clone for netsnmp_cachemap_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_cachemap = netsnmp_cachemap_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_agent_session_s {
    pub mode:  raw::c_int,
    pub session: *mut netsnmp_session,
    pub pdu: *mut netsnmp_pdu,
    pub orig_pdu: *mut netsnmp_pdu,
    pub rw:  raw::c_int,
    pub exact:  raw::c_int,
    pub status:  raw::c_int,
    pub index:  raw::c_int,
    pub oldmode:  raw::c_int,
    pub next: *mut netsnmp_agent_session_s,
    pub reqinfo: *mut netsnmp_agent_request_info,
    pub requests: *mut netsnmp_request_info,
    pub treecache: *mut netsnmp_tree_cache,
    pub bulkcache: *mut *mut netsnmp_variable_list,
    pub treecache_len:  raw::c_int,
    pub treecache_num:  raw::c_int,
    pub cache_store: *mut netsnmp_cachemap,
    pub vbcount:  raw::c_int,
}

impl Clone for netsnmp_agent_session_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_agent_session = netsnmp_agent_session_s;
extern "C" {
    pub fn netsnmp_addrcache_initialise();

    pub fn netsnmp_addrcache_destroy();

    pub fn netsnmp_addrcache_age();

    pub fn handle_snmp_packet(arg1:  raw::c_int,
                              arg2: *mut netsnmp_session,
                              arg3:  raw::c_int,
                              arg4: *mut netsnmp_pdu,
                              arg5: *mut  raw::c_void)
     ->  raw::c_int;

    pub fn snmp_agent_parse_config(arg1: *mut  raw::c_char,
                                   arg2: *mut  raw::c_char);

    pub fn init_agent_snmp_session(arg1: *mut netsnmp_session,
                                   arg2: *mut netsnmp_pdu)
     -> *mut netsnmp_agent_session;

    pub fn free_agent_snmp_session(arg1: *mut netsnmp_agent_session);

    pub fn netsnmp_remove_and_free_agent_snmp_session(asp:
                                                          *mut netsnmp_agent_session);

    pub fn getNextSessID() ->  raw::c_int;

    pub fn dump_sess_list();

    pub fn init_master_agent() ->  raw::c_int;

    pub fn shutdown_master_agent();

    pub fn agent_check_and_process(block:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_check_outstanding_agent_requests();

    pub fn netsnmp_request_set_error(request: *mut netsnmp_request_info,
                                     error_value:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_check_requests_error(reqs: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_check_all_requests_error(asp: *mut netsnmp_agent_session,
                                            look_for_specific:
                                                 raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_set_all_requests_error(reqinfo:
                                              *mut netsnmp_agent_request_info,
                                          requests: *mut netsnmp_request_info,
                                          error_value:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_request_set_error_idx(requests: *mut netsnmp_request_info,
                                         error_value:  raw::c_int,
                                         idx:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_request_set_error_all(requests: *mut netsnmp_request_info,
                                         error_value:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_set_request_error(reqinfo: *mut netsnmp_agent_request_info,
                                     request: *mut netsnmp_request_info,
                                     error_value:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_set_mode_request_error(mode:  raw::c_int,
                                          request: *mut netsnmp_request_info,
                                          error_value:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_marker_uptime(pm: marker_t) -> raw::c_ulong;

    pub fn netsnmp_timeval_uptime(tv: *mut libc::timeval) -> raw::c_ulong;

    pub fn netsnmp_get_agent_starttime() -> const_marker_t;

    pub fn netsnmp_get_agent_runtime() -> u64;

    pub fn netsnmp_set_agent_starttime(s: marker_t);

    pub fn netsnmp_get_agent_uptime() -> raw::c_ulong;

    pub fn netsnmp_set_agent_uptime(hsec: raw::c_ulong);

    pub fn netsnmp_check_transaction_id(transaction_id:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_agent_check_packet(arg1: *mut netsnmp_session,
                                      arg2: *mut Struct_netsnmp_transport_s,
                                      arg3: *mut  raw::c_void,
                                      arg4:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_agent_check_parse(arg1: *mut netsnmp_session,
                                     arg2: *mut netsnmp_pdu,
                                     arg3:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_allocate_globalcacheid() ->  raw::c_int;

    pub fn netsnmp_remove_delegated_requests_for_session(sess:
                                                             *mut netsnmp_session)
     ->  raw::c_int;

    pub fn netsnmp_register_agent_nsap(t: *mut Struct_netsnmp_transport_s)
     ->  raw::c_int;

    pub fn netsnmp_deregister_agent_nsap(handle:  raw::c_int);

    pub fn netsnmp_agent_add_list_data(agent: *mut netsnmp_agent_request_info,
                                       node: *mut netsnmp_data_list);

    pub fn netsnmp_agent_remove_list_data(ari:
                                              *mut netsnmp_agent_request_info,
                                          name: *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_agent_get_list_data(agent: *mut netsnmp_agent_request_info,
                                       name: *const  raw::c_char)
     -> *mut  raw::c_void;

    pub fn netsnmp_free_agent_data_set(agent:
                                           *mut netsnmp_agent_request_info);

    pub fn netsnmp_free_agent_data_sets(agent:
                                            *mut netsnmp_agent_request_info);

    pub fn netsnmp_free_agent_request_info(ari:
                                               *mut netsnmp_agent_request_info);
}
#[repr(C)]
pub struct variable {
    pub magic: raw::c_uchar,
    pub type_: raw::c_char,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 128usize],
}

extern "C" {
    pub fn netsnmp_duplicate_variable(var: *const variable) -> *mut variable;
}
pub type WriteMethod =
    ::std::option::Option<unsafe extern "C" fn(action:  raw::c_int,
                                               var_val: *mut raw::c_uchar,
                                               var_val_type: raw::c_uchar,
                                               var_val_len: usize,
                                               statP: *mut raw::c_uchar,
                                               name: *mut oid, length: usize)
                              ->  raw::c_int>;
pub type FindVarMethod =
    ::std::option::Option<unsafe extern "C" fn(vp: *mut variable,
                                               name: *mut oid,
                                               length: *mut usize,
                                               exact:  raw::c_int,
                                               var_len: *mut usize,
                                               write_method: *mut WriteMethod)
                              -> *mut raw::c_uchar>;
pub type AddVarMethod =
    ::std::option::Option<unsafe extern "C" fn(asp:
                                                   *mut netsnmp_agent_session,
                                               vbp:
                                                   *mut netsnmp_variable_list)
                              ->  raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nlist([u8; 0]);
extern "C" {
    #[link_name = "long_return"]
    pub static mut long_return:  raw::c_long;

    #[link_name = "return_buf"]
    pub static mut return_buf: [raw::c_uchar; 0usize];

    #[link_name = "nullOid"]
    pub static mut nullOid: [oid; 0usize];

    #[link_name = "nullOidLen"]
    pub static mut nullOidLen:  raw::c_int;

    pub fn init_agent(arg1: *const  raw::c_char)
     ->  raw::c_int;

    pub fn shutdown_agent();

    pub fn should_init(module_name: *const  raw::c_char)
     ->  raw::c_int;

    pub fn add_to_init_list(module_list: *mut  raw::c_char);

    pub fn netsnmp_enable_subagent();
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_handler_registration_s {
    pub handlerName: *mut  raw::c_char,
    pub contextName: *mut  raw::c_char,
    pub rootoid: *mut oid,
    pub rootoid_len: usize,
    pub handler: *mut netsnmp_mib_handler,
    pub modes:  raw::c_int,
    pub priority:  raw::c_int,
    pub range_subid:  raw::c_int,
    pub range_ubound: oid,
    pub timeout:  raw::c_int,
    pub global_cacheid:  raw::c_int,
    pub my_reg_void: *mut  raw::c_void,
}

impl Clone for netsnmp_handler_registration_s {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_mib_handler_s {
    pub handler_name: *mut  raw::c_char,
    pub myvoid: *mut  raw::c_void,
    pub flags:  raw::c_int,
    pub access_method: ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                      *mut netsnmp_mib_handler_s,
                                                                  arg2:
                                                                      *mut netsnmp_handler_registration_s,
                                                                  arg3:
                                                                      *mut netsnmp_agent_request_info_s,
                                                                  arg4:
                                                                      *mut netsnmp_request_info_s)
                                                 ->  raw::c_int>,
    pub data_clone: ::std::option::Option<unsafe extern "C" fn(myvoid:
                                                                   *mut  raw::c_void)
                                              -> *mut  raw::c_void>,
    pub data_free: ::std::option::Option<unsafe extern "C" fn(myvoid:
                                                                  *mut  raw::c_void)>,
    pub next: *mut netsnmp_mib_handler_s,
    pub prev: *mut netsnmp_mib_handler_s,
}

impl Clone for netsnmp_mib_handler_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_mib_handler = netsnmp_mib_handler_s;
pub type netsnmp_handler_registration = netsnmp_handler_registration_s;
pub type Netsnmp_Node_Handler =
    ::std::option::Option<unsafe extern "C" fn(handler:
                                                   *mut netsnmp_mib_handler,
                                               reginfo:
                                                   *mut netsnmp_handler_registration,
                                               reqinfo:
                                                   *mut netsnmp_agent_request_info,
                                               requests:
                                                   *mut netsnmp_request_info)
                              ->  raw::c_int>;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_handler_args_s {
    pub handler: *mut netsnmp_mib_handler,
    pub reginfo: *mut netsnmp_handler_registration,
    pub reqinfo: *mut netsnmp_agent_request_info,
    pub requests: *mut netsnmp_request_info,
}

impl Clone for netsnmp_handler_args_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_handler_args = netsnmp_handler_args_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_delegated_cache_s {
    pub transaction_id:  raw::c_int,
    pub handler: *mut netsnmp_mib_handler,
    pub reginfo: *mut netsnmp_handler_registration,
    pub reqinfo: *mut netsnmp_agent_request_info,
    pub requests: *mut netsnmp_request_info,
    pub localinfo: *mut  raw::c_void,
}

impl Clone for netsnmp_delegated_cache_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_delegated_cache = netsnmp_delegated_cache_s;
extern "C" {
    pub fn netsnmp_init_handler_conf();

    pub fn netsnmp_register_handler(reginfo:
                                        *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_unregister_handler(reginfo:
                                          *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_register_handler_nocallback(reginfo:
                                                   *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_inject_handler(reginfo: *mut netsnmp_handler_registration,
                                  handler: *mut netsnmp_mib_handler)
     ->  raw::c_int;

    pub fn netsnmp_inject_handler_before(reginfo:
                                             *mut netsnmp_handler_registration,
                                         handler: *mut netsnmp_mib_handler,
                                         before_what:
                                             *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_find_handler_by_name(reginfo:
                                            *mut netsnmp_handler_registration,
                                        name: *const  raw::c_char)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_find_handler_data_by_name(reginfo:
                                                 *mut netsnmp_handler_registration,
                                             name:
                                                 *const  raw::c_char)
     -> *mut  raw::c_void;

    pub fn netsnmp_call_handlers(reginfo: *mut netsnmp_handler_registration,
                                 reqinfo: *mut netsnmp_agent_request_info,
                                 requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_call_handler(next_handler: *mut netsnmp_mib_handler,
                                reginfo: *mut netsnmp_handler_registration,
                                reqinfo: *mut netsnmp_agent_request_info,
                                requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_call_next_handler(current: *mut netsnmp_mib_handler,
                                     reginfo:
                                         *mut netsnmp_handler_registration,
                                     reqinfo: *mut netsnmp_agent_request_info,
                                     requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_call_next_handler_one_request(current:
                                                     *mut netsnmp_mib_handler,
                                                 reginfo:
                                                     *mut netsnmp_handler_registration,
                                                 reqinfo:
                                                     *mut netsnmp_agent_request_info,
                                                 requests:
                                                     *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_create_handler(name: *const  raw::c_char,
                                  handler_access_method: Netsnmp_Node_Handler)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_handler_registration_create(name:
                                                   *const  raw::c_char,
                                               handler:
                                                   *mut netsnmp_mib_handler,
                                               reg_oid: *const oid,
                                               reg_oid_len: usize,
                                               modes:  raw::c_int)
     -> *mut netsnmp_handler_registration;

    pub fn netsnmp_create_handler_registration(name:
                                                   *const  raw::c_char,
                                               handler_access_method:
                                                   Netsnmp_Node_Handler,
                                               reg_oid: *const oid,
                                               reg_oid_len: usize,
                                               modes:  raw::c_int)
     -> *mut netsnmp_handler_registration;

    pub fn netsnmp_create_delegated_cache(arg1: *mut netsnmp_mib_handler,
                                          arg2:
                                              *mut netsnmp_handler_registration,
                                          arg3:
                                              *mut netsnmp_agent_request_info,
                                          arg4: *mut netsnmp_request_info,
                                          arg5: *mut  raw::c_void)
     -> *mut netsnmp_delegated_cache;

    pub fn netsnmp_free_delegated_cache(dcache: *mut netsnmp_delegated_cache);

    pub fn netsnmp_handler_check_cache(dcache: *mut netsnmp_delegated_cache)
     -> *mut netsnmp_delegated_cache;

    pub fn netsnmp_register_handler_by_name(arg1:
                                                *const  raw::c_char,
                                            arg2: *mut netsnmp_mib_handler);

    pub fn netsnmp_clear_handler_list();

    pub fn netsnmp_request_add_list_data(request: *mut netsnmp_request_info,
                                         node: *mut netsnmp_data_list);

    pub fn netsnmp_request_remove_list_data(request:
                                                *mut netsnmp_request_info,
                                            name:
                                                *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_request_get_list_data(request: *mut netsnmp_request_info,
                                         name: *const  raw::c_char)
     -> *mut  raw::c_void;

    pub fn netsnmp_free_request_data_set(request: *mut netsnmp_request_info);

    pub fn netsnmp_free_request_data_sets(request: *mut netsnmp_request_info);

    pub fn netsnmp_handler_free(arg1: *mut netsnmp_mib_handler);

    pub fn netsnmp_handler_dup(arg1: *mut netsnmp_mib_handler)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_handler_registration_dup(arg1:
                                                *mut netsnmp_handler_registration)
     -> *mut netsnmp_handler_registration;

    pub fn netsnmp_handler_registration_free(arg1:
                                                 *mut netsnmp_handler_registration);

    pub fn netsnmp_handler_mark_requests_as_delegated(arg1:
                                                          *mut netsnmp_request_info,
                                                      arg2:
                                                           raw::c_int);

    pub fn netsnmp_handler_get_parent_data(arg1: *mut netsnmp_request_info,
                                           arg2:
                                               *const  raw::c_char)
     -> *mut  raw::c_void;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_subtree_s {
    pub name_a: *mut oid,
    pub namelen: raw::c_uchar,
    pub start_a: *mut oid,
    pub start_len: raw::c_uchar,
    pub end_a: *mut oid,
    pub end_len: raw::c_uchar,
    pub variables: *mut variable,
    pub variables_len:  raw::c_int,
    pub variables_width:  raw::c_int,
    pub label_a: *mut  raw::c_char,
    pub session: *mut netsnmp_session,
    pub flags: raw::c_uchar,
    pub priority: raw::c_uchar,
    pub timeout:  raw::c_int,
    pub next: *mut netsnmp_subtree_s,
    pub prev: *mut netsnmp_subtree_s,
    pub children: *mut netsnmp_subtree_s,
    pub range_subid:  raw::c_int,
    pub range_ubound: oid,
    pub reginfo: *mut netsnmp_handler_registration,
    pub cacheid:  raw::c_int,
    pub global_cacheid:  raw::c_int,
    pub oid_off: usize,
}

impl Clone for netsnmp_subtree_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_subtree = netsnmp_subtree_s;
#[repr(C)]
#[derive(Copy)]
pub struct variable1 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 1usize],
}

impl Clone for variable1 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable2 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 2usize],
}

impl Clone for variable2 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable3 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 3usize],
}

impl Clone for variable3 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable4 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 4usize],
}

impl Clone for variable4 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable7 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 7usize],
}

impl Clone for variable7 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable8 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 8usize],
}

impl Clone for variable8 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct variable13 {
    pub magic: raw::c_uchar,
    pub type_: raw::c_uchar,
    pub acl: raw::c_ushort,
    pub findVar: FindVarMethod,
    pub namelen: raw::c_uchar,
    pub name: [oid; 13usize],
}

impl Clone for variable13 {
    fn clone(&self) -> Self { *self }
}
extern "C" {
    #[link_name = "external_readfd"]
    pub static mut external_readfd: [ raw::c_int; 32usize];

    #[link_name = "external_readfdlen"]
    pub static mut external_readfdlen:  raw::c_int;

    #[link_name = "external_writefd"]
    pub static mut external_writefd: [ raw::c_int; 32usize];

    #[link_name = "external_writefdlen"]
    pub static mut external_writefdlen:  raw::c_int;

    #[link_name = "external_exceptfd"]
    pub static mut external_exceptfd: [ raw::c_int; 32usize];

    #[link_name = "external_exceptfdlen"]
    pub static mut external_exceptfdlen:  raw::c_int;

    #[link_name = "external_readfdfunc"]
    pub static mut external_readfdfunc:
               [::std::option::Option<unsafe extern "C" fn(arg1:
                                                                raw::c_int,
                                                           arg2:
                                                               *mut  raw::c_void)>; 32usize];

    #[link_name = "external_writefdfunc"]
    pub static mut external_writefdfunc:
               [::std::option::Option<unsafe extern "C" fn(arg1:
                                                                raw::c_int,
                                                           arg2:
                                                               *mut  raw::c_void)>; 32usize];

    #[link_name = "external_exceptfdfunc"]
    pub static mut external_exceptfdfunc:
               [::std::option::Option<unsafe extern "C" fn(arg1:
                                                                raw::c_int,
                                                           arg2:
                                                               *mut  raw::c_void)>; 32usize];

    #[link_name = "external_readfd_data"]
    pub static mut external_readfd_data:
               [*mut  raw::c_void; 32usize];

    #[link_name = "external_writefd_data"]
    pub static mut external_writefd_data:
               [*mut  raw::c_void; 32usize];

    #[link_name = "external_exceptfd_data"]
    pub static mut external_exceptfd_data:
               [*mut  raw::c_void; 32usize];

    pub fn register_readfd(arg1:  raw::c_int,
                           func:
                               ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                               raw::c_int,
                                                                          arg2:
                                                                              *mut  raw::c_void)>,
                           arg2: *mut  raw::c_void)
     ->  raw::c_int;

    pub fn register_writefd(arg1:  raw::c_int,
                            func:
                                ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                                raw::c_int,
                                                                           arg2:
                                                                               *mut  raw::c_void)>,
                            arg2: *mut  raw::c_void)
     ->  raw::c_int;

    pub fn register_exceptfd(arg1:  raw::c_int,
                             func:
                                 ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                                 raw::c_int,
                                                                            arg2:
                                                                                *mut  raw::c_void)>,
                             arg2: *mut  raw::c_void)
     ->  raw::c_int;

    pub fn unregister_readfd(arg1:  raw::c_int)
     ->  raw::c_int;

    pub fn unregister_writefd(arg1:  raw::c_int)
     ->  raw::c_int;

    pub fn unregister_exceptfd(arg1:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_external_event_info(numfds: *mut  raw::c_int,
                                       readfds: *mut libc::fd_set,
                                       writefds: *mut libc::fd_set,
                                       exceptfds: *mut libc::fd_set);

    pub fn netsnmp_external_event_info2(numfds: *mut  raw::c_int,
                                        readfds: *mut netsnmp_large_fd_set,
                                        writefds: *mut netsnmp_large_fd_set,
                                        exceptfds: *mut netsnmp_large_fd_set);

    pub fn netsnmp_dispatch_external_events(count: *mut  raw::c_int,
                                            readfds: *mut libc::fd_set,
                                            writefds: *mut libc::fd_set,
                                            exceptfds: *mut libc::fd_set);

    pub fn netsnmp_dispatch_external_events2(count:
                                                 *mut  raw::c_int,
                                             readfds:
                                                 *mut netsnmp_large_fd_set,
                                             writefds:
                                                 *mut netsnmp_large_fd_set,
                                             exceptfds:
                                                 *mut netsnmp_large_fd_set);
}
#[repr(C)]
#[derive(Copy)]
pub struct view_parameters {
    pub pdu: *mut netsnmp_pdu,
    pub name: *mut oid,
    pub namelen: usize,
    pub test:  raw::c_int,
    pub errorcode:  raw::c_int,
    pub check_subtree:  raw::c_int,
}

impl Clone for view_parameters {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct register_parameters {
    pub name: *mut oid,
    pub namelen: usize,
    pub priority:  raw::c_int,
    pub range_subid:  raw::c_int,
    pub range_ubound: oid,
    pub timeout:  raw::c_int,
    pub flags: raw::c_uchar,
    pub contextName: *const  raw::c_char,
    pub session: *mut netsnmp_session,
    pub reginfo: *mut netsnmp_handler_registration,
}

impl Clone for register_parameters {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct subtree_context_cache_s {
    pub context_name: *const  raw::c_char,
    pub first_subtree: *mut netsnmp_subtree_s,
    pub next: *mut subtree_context_cache_s,
}

impl Clone for subtree_context_cache_s {
    fn clone(&self) -> Self { *self }
}
pub type subtree_context_cache = subtree_context_cache_s;
extern "C" {
    pub fn setup_tree();

    pub fn shutdown_tree();

    pub fn netsnmp_subtree_find(arg1: *const oid, arg2: usize,
                                arg3: *mut netsnmp_subtree,
                                context_name: *const  raw::c_char)
     -> *mut netsnmp_subtree;

    pub fn netsnmp_subtree_find_next(arg1: *const oid, arg2: usize,
                                     arg3: *mut netsnmp_subtree,
                                     context_name:
                                         *const  raw::c_char)
     -> *mut netsnmp_subtree;

    pub fn netsnmp_subtree_find_prev(arg1: *const oid, arg2: usize,
                                     arg3: *mut netsnmp_subtree,
                                     context_name:
                                         *const  raw::c_char)
     -> *mut netsnmp_subtree;

    pub fn netsnmp_subtree_find_first(context_name:
                                          *const  raw::c_char)
     -> *mut netsnmp_subtree;

    pub fn get_session_for_oid(arg1: *const oid, arg2: usize,
                               context_name: *const  raw::c_char)
     -> *mut netsnmp_session;

    pub fn get_top_context_cache() -> *mut subtree_context_cache;

    pub fn netsnmp_set_lookup_cache_size(newsize:  raw::c_int);

    pub fn netsnmp_get_lookup_cache_size() ->  raw::c_int;

    pub fn register_mib(arg1: *const  raw::c_char,
                        arg2: *const variable, arg3: usize, arg4: usize,
                        arg5: *const oid, arg6: usize)
     ->  raw::c_int;

    pub fn register_mib_priority(arg1: *const  raw::c_char,
                                 arg2: *const variable, arg3: usize,
                                 arg4: usize, arg5: *const oid, arg6: usize,
                                 arg7:  raw::c_int)
     ->  raw::c_int;

    pub fn register_mib_range(arg1: *const  raw::c_char,
                              arg2: *const variable, arg3: usize, arg4: usize,
                              arg5: *const oid, arg6: usize,
                              arg7:  raw::c_int,
                              arg8:  raw::c_int, arg9: oid,
                              arg10: *mut netsnmp_session)
     ->  raw::c_int;

    pub fn register_mib_context(arg1: *const  raw::c_char,
                                arg2: *const variable, arg3: usize,
                                arg4: usize, arg5: *const oid, arg6: usize,
                                arg7:  raw::c_int,
                                arg8:  raw::c_int, arg9: oid,
                                arg10: *mut netsnmp_session,
                                arg11: *const  raw::c_char,
                                arg12:  raw::c_int,
                                arg13:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_register_mib_table_row(arg1: *const  raw::c_char,
                                          arg2: *const variable, arg3: usize,
                                          arg4: usize, arg5: *mut oid,
                                          arg6: usize,
                                          arg7:  raw::c_int,
                                          arg8:  raw::c_int,
                                          arg9: *mut netsnmp_session,
                                          arg10:
                                              *const  raw::c_char,
                                          arg11:  raw::c_int,
                                          arg12:  raw::c_int)
     ->  raw::c_int;

    pub fn unregister_mib(arg1: *mut oid, arg2: usize)
     ->  raw::c_int;

    pub fn unregister_mib_priority(arg1: *mut oid, arg2: usize,
                                   arg3:  raw::c_int)
     ->  raw::c_int;

    pub fn unregister_mib_range(arg1: *mut oid, arg2: usize,
                                arg3:  raw::c_int,
                                arg4:  raw::c_int, arg5: oid)
     ->  raw::c_int;

    pub fn unregister_mib_context(arg1: *mut oid, arg2: usize,
                                  arg3:  raw::c_int,
                                  arg4:  raw::c_int, arg5: oid,
                                  arg6: *const  raw::c_char)
     ->  raw::c_int;

    pub fn clear_context();

    pub fn unregister_mibs_by_session(arg1: *mut netsnmp_session);

    pub fn netsnmp_unregister_mib_table_row(mibloc: *mut oid,
                                            mibloclen: usize,
                                            priority:  raw::c_int,
                                            var_subid:  raw::c_int,
                                            range_ubound: oid,
                                            context:
                                                *const  raw::c_char)
     ->  raw::c_int;

    pub fn compare_tree(arg1: *const oid, arg2: usize, arg3: *const oid,
                        arg4: usize) ->  raw::c_int;

    pub fn in_a_view(arg1: *mut oid, arg2: *mut usize, arg3: *mut netsnmp_pdu,
                     arg4:  raw::c_int) ->  raw::c_int;

    pub fn check_access(pdu: *mut netsnmp_pdu) ->  raw::c_int;

    pub fn netsnmp_acm_check_subtree(arg1: *mut netsnmp_pdu, arg2: *mut oid,
                                     arg3: usize) ->  raw::c_int;

    pub fn register_mib_reattach();

    pub fn register_mib_detach();

    #[link_name = "external_signal_scheduled"]
    pub static mut external_signal_scheduled:
               [ raw::c_int; 32usize];

    #[link_name = "external_signal_handler"]
    pub static mut external_signal_handler:
               [::std::option::Option<unsafe extern "C" fn(arg1:
                                                                raw::c_int)>; 32usize];

    pub fn register_signal(arg1:  raw::c_int,
                           func:
                               ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                               raw::c_int)>)
     ->  raw::c_int;

    pub fn unregister_signal(arg1:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_register_mib(arg1: *const  raw::c_char,
                                arg2: *mut variable, arg3: usize, arg4: usize,
                                arg5: *mut oid, arg6: usize,
                                arg7:  raw::c_int,
                                arg8:  raw::c_int, arg9: oid,
                                arg10: *mut netsnmp_session,
                                arg11: *const  raw::c_char,
                                arg12:  raw::c_int,
                                arg13:  raw::c_int,
                                arg14: *mut netsnmp_handler_registration_s,
                                arg15:  raw::c_int)
     ->  raw::c_int;

    pub fn init_agent_read_config(arg1: *const  raw::c_char);

    pub fn update_config();

    pub fn snmpd_register_config_handler(token: *const  raw::c_char,
                                         parser:
                                             ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                                            *const  raw::c_char,
                                                                                        arg2:
                                                                                            *mut  raw::c_char)>,
                                         releaser:
                                             ::std::option::Option<unsafe extern "C" fn()>,
                                         help: *const  raw::c_char);

    pub fn snmpd_register_const_config_handler(arg1:
                                                   *const  raw::c_char,
                                               parser:
                                                   ::std::option::Option<unsafe extern "C" fn(arg1:
                                                                                                  *const  raw::c_char,
                                                                                              arg2:
                                                                                                  *const  raw::c_char)>,
                                               releaser:
                                                   ::std::option::Option<unsafe extern "C" fn()>,
                                               arg2:
                                                   *const  raw::c_char);

    pub fn snmpd_unregister_config_handler(arg1:
                                               *const  raw::c_char);

    pub fn snmpd_store_config(arg1: *const  raw::c_char);
}
#[repr(C)]
#[derive(Copy)]
pub struct agent_add_trap_args {
    pub ss: *mut netsnmp_session,
    pub confirm:  raw::c_int,
}

impl Clone for agent_add_trap_args {
    fn clone(&self) -> Self { *self }
}
extern "C" {
    pub fn init_traps();

    pub fn send_easy_trap(arg1:  raw::c_int,
                          arg2:  raw::c_int);

    pub fn send_trap_pdu(arg1: *mut netsnmp_pdu);

    pub fn send_v2trap(arg1: *mut netsnmp_variable_list);

    pub fn send_v3trap(vars: *mut netsnmp_variable_list,
                       context: *const  raw::c_char);

    pub fn send_trap_vars(arg1:  raw::c_int,
                          arg2:  raw::c_int,
                          arg3: *mut netsnmp_variable_list);

    pub fn send_trap_vars_with_context(trap:  raw::c_int,
                                       specific:  raw::c_int,
                                       vars: *mut netsnmp_variable_list,
                                       context:
                                           *const  raw::c_char);

    pub fn send_enterprise_trap_vars(trap:  raw::c_int,
                                     specific:  raw::c_int,
                                     enterprise: *const oid,
                                     enterprise_length:  raw::c_int,
                                     vars: *mut netsnmp_variable_list);

    pub fn netsnmp_send_traps(trap:  raw::c_int,
                              specific:  raw::c_int,
                              enterprise: *const oid,
                              enterprise_length:  raw::c_int,
                              vars: *mut netsnmp_variable_list,
                              context: *const  raw::c_char,
                              flags:  raw::c_int)
     ->  raw::c_int;

    pub fn snmpd_parse_config_authtrap(arg1: *const  raw::c_char,
                                       arg2: *mut  raw::c_char);

    pub fn snmpd_parse_config_trapsink(arg1: *const  raw::c_char,
                                       arg2: *mut  raw::c_char);

    pub fn snmpd_parse_config_trap2sink(arg1: *const  raw::c_char,
                                        arg2: *mut  raw::c_char);

    pub fn snmpd_parse_config_informsink(arg1: *const  raw::c_char,
                                         arg2: *mut  raw::c_char);

    pub fn snmpd_parse_config_trapsess(arg1: *const  raw::c_char,
                                       arg2: *mut  raw::c_char);

    pub fn snmpd_free_trapsinks();

    pub fn snmpd_parse_config_trapcommunity(arg1:
                                                *const  raw::c_char,
                                            arg2:
                                                *mut  raw::c_char);

    pub fn snmpd_free_trapcommunity();

    pub fn send_trap_to_sess(sess: *mut netsnmp_session,
                             template_pdu: *mut netsnmp_pdu);

    pub fn create_trap_session(arg1: *mut  raw::c_char,
                               arg2: raw::c_ushort,
                               arg3: *mut  raw::c_char,
                               arg4:  raw::c_int,
                               arg5:  raw::c_int)
     ->  raw::c_int;

    pub fn add_trap_session(arg1: *mut netsnmp_session,
                            arg2:  raw::c_int,
                            arg3:  raw::c_int,
                            arg4:  raw::c_int)
     ->  raw::c_int;

    pub fn remove_trap_session(arg1: *mut netsnmp_session)
     ->  raw::c_int;

    pub fn convert_v2_to_v1(arg1: *mut netsnmp_variable_list,
                            arg2: *mut netsnmp_pdu);

    pub fn convert_v1_to_v2(arg1: *mut netsnmp_pdu)
     -> *mut netsnmp_variable_list;

    pub fn convert_v2pdu_to_v1(arg1: *mut netsnmp_pdu) -> *mut netsnmp_pdu;

    pub fn convert_v1pdu_to_v2(arg1: *mut netsnmp_pdu) -> *mut netsnmp_pdu;

    pub fn netsnmp_register_instance(reginfo:
                                         *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_instance(reginfo:
                                                   *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_get_instance_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_read_only_ulong_instance(name:
                                                         *const  raw::c_char,
                                                     reg_oid: *const oid,
                                                     reg_oid_len: usize,
                                                     it: *mut raw::c_ulong,
                                                     subhandler:
                                                         Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_ulong_instance(name:
                                               *const  raw::c_char,
                                           reg_oid: *const oid,
                                           reg_oid_len: usize,
                                           it: *mut raw::c_ulong,
                                           subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_counter32_instance(name:
                                                             *const  raw::c_char,
                                                         reg_oid: *const oid,
                                                         reg_oid_len: usize,
                                                         it: *mut raw::c_ulong,
                                                         subhandler:
                                                             Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_long_instance(name:
                                                        *const  raw::c_char,
                                                    reg_oid: *const oid,
                                                    reg_oid_len: usize,
                                                    it:
                                                        *mut  raw::c_long,
                                                    subhandler:
                                                        Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_long_instance(name: *const  raw::c_char,
                                          reg_oid: *const oid,
                                          reg_oid_len: usize,
                                          it: *mut  raw::c_long,
                                          subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_int_instance(name:
                                                       *const  raw::c_char,
                                                   reg_oid: *const oid,
                                                   reg_oid_len: usize,
                                                   it:
                                                       *mut  raw::c_int,
                                                   subhandler:
                                                       Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_int_instance(name: *const  raw::c_char,
                                         reg_oid: *const oid,
                                         reg_oid_len: usize,
                                         it: *mut  raw::c_int,
                                         subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_ulong_instance_context(name:
                                                                 *const  raw::c_char,
                                                             reg_oid:
                                                                 *const oid,
                                                             reg_oid_len:
                                                                 usize,
                                                             it: *mut raw::c_ulong,
                                                             subhandler:
                                                                 Netsnmp_Node_Handler,
                                                             contextName:
                                                                 *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_ulong_instance_context(name:
                                                       *const  raw::c_char,
                                                   reg_oid: *const oid,
                                                   reg_oid_len: usize,
                                                   it: *mut raw::c_ulong,
                                                   subhandler:
                                                       Netsnmp_Node_Handler,
                                                   contextName:
                                                       *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_counter32_instance_context(name:
                                                                     *const  raw::c_char,
                                                                 reg_oid:
                                                                     *const oid,
                                                                 reg_oid_len:
                                                                     usize,
                                                                 it:
                                                                     *mut raw::c_ulong,
                                                                 subhandler:
                                                                     Netsnmp_Node_Handler,
                                                                 contextName:
                                                                     *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_long_instance_context(name:
                                                                *const  raw::c_char,
                                                            reg_oid:
                                                                *const oid,
                                                            reg_oid_len:
                                                                usize,
                                                            it:
                                                                *mut  raw::c_long,
                                                            subhandler:
                                                                Netsnmp_Node_Handler,
                                                            contextName:
                                                                *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_long_instance_context(name:
                                                      *const  raw::c_char,
                                                  reg_oid: *const oid,
                                                  reg_oid_len: usize,
                                                  it:
                                                      *mut  raw::c_long,
                                                  subhandler:
                                                      Netsnmp_Node_Handler,
                                                  contextName:
                                                      *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_int_instance_context(name:
                                                               *const  raw::c_char,
                                                           reg_oid:
                                                               *const oid,
                                                           reg_oid_len: usize,
                                                           it:
                                                               *mut  raw::c_int,
                                                           subhandler:
                                                               Netsnmp_Node_Handler,
                                                           contextName:
                                                               *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_int_instance_context(name:
                                                     *const  raw::c_char,
                                                 reg_oid: *const oid,
                                                 reg_oid_len: usize,
                                                 it:
                                                     *mut  raw::c_int,
                                                 subhandler:
                                                     Netsnmp_Node_Handler,
                                                 contextName:
                                                     *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_register_num_file_instance(name:
                                                  *const  raw::c_char,
                                              reg_oid: *const oid,
                                              reg_oid_len: usize,
                                              file_name:
                                                  *const  raw::c_char,
                                              asn_type:  raw::c_int,
                                              mode:  raw::c_int,
                                              subhandler:
                                                  Netsnmp_Node_Handler,
                                              contextName:
                                                  *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_instance_helper_handler(handler: *mut netsnmp_mib_handler,
                                           reginfo:
                                               *mut netsnmp_handler_registration,
                                           reqinfo:
                                               *mut netsnmp_agent_request_info,
                                           requests:
                                               *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_instance_num_file_handler(handler:
                                                 *mut netsnmp_mib_handler,
                                             reginfo:
                                                 *mut netsnmp_handler_registration,
                                             reqinfo:
                                                 *mut netsnmp_agent_request_info,
                                             requests:
                                                 *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_baby_steps_modes_s {
    pub refcnt:  raw::c_int,
    pub registered: raw::c_uint,
    pub completed: raw::c_uint,
}

impl Clone for netsnmp_baby_steps_modes_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_baby_steps_modes = netsnmp_baby_steps_modes_s;
extern "C" {
    pub fn netsnmp_baby_steps_init();

    pub fn netsnmp_baby_steps_handler_get(modes: raw::c_ulong)
     -> *mut netsnmp_mib_handler;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_baby_steps_access_methods_s {
    pub pre_request: Netsnmp_Node_Handler,
    pub object_lookup: Netsnmp_Node_Handler,
    pub get_values: Netsnmp_Node_Handler,
    pub object_syntax_checks: Netsnmp_Node_Handler,
    pub row_creation: Netsnmp_Node_Handler,
    pub undo_setup: Netsnmp_Node_Handler,
    pub set_values: Netsnmp_Node_Handler,
    pub consistency_checks: Netsnmp_Node_Handler,
    pub commit: Netsnmp_Node_Handler,
    pub undo_sets: Netsnmp_Node_Handler,
    pub undo_cleanup: Netsnmp_Node_Handler,
    pub undo_commit: Netsnmp_Node_Handler,
    pub irreversible_commit: Netsnmp_Node_Handler,
    pub post_request: Netsnmp_Node_Handler,
    pub my_access_void: *mut  raw::c_void,
}

impl Clone for netsnmp_baby_steps_access_methods_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_baby_steps_access_methods =
    netsnmp_baby_steps_access_methods_s;
extern "C" {
    pub fn netsnmp_baby_steps_access_multiplexer_get(arg1:
                                                         *mut netsnmp_baby_steps_access_methods)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_baby_step_mode2flag(mode: raw::c_uint) ->  raw::c_int;

    pub fn netsnmp_register_scalar(reginfo: *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_scalar(reginfo:
                                                 *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_get_scalar_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_scalar_helper_handler(handler: *mut netsnmp_mib_handler,
                                         reginfo:
                                             *mut netsnmp_handler_registration,
                                         reqinfo:
                                             *mut netsnmp_agent_request_info,
                                         requests: *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_scalar_group_s {
    pub lbound: oid,
    pub ubound: oid,
}

impl Clone for netsnmp_scalar_group_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_scalar_group = netsnmp_scalar_group_s;
extern "C" {
    pub fn netsnmp_register_scalar_group(reginfo:
                                             *mut netsnmp_handler_registration,
                                         first: oid, last: oid)
     ->  raw::c_int;

    pub fn netsnmp_get_scalar_group_handler(first: oid, last: oid)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_scalar_group_helper_handler(handler:
                                                   *mut netsnmp_mib_handler,
                                               reginfo:
                                                   *mut netsnmp_handler_registration,
                                               reqinfo:
                                                   *mut netsnmp_agent_request_info,
                                               requests:
                                                   *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_watcher_info_s {
    pub data: *mut  raw::c_void,
    pub data_size: usize,
    pub max_size: usize,
    pub type_: raw::c_uchar,
    pub flags:  raw::c_int,
    pub data_size_p: *mut usize,
}

impl Clone for netsnmp_watcher_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_watcher_info = netsnmp_watcher_info_s;
extern "C" {
    pub fn netsnmp_register_watched_instance(reginfo:
                                                 *mut netsnmp_handler_registration,
                                             winfo: *mut netsnmp_watcher_info)
     ->  raw::c_int;

    pub fn netsnmp_register_watched_instance2(reginfo:
                                                  *mut netsnmp_handler_registration,
                                              winfo:
                                                  *mut netsnmp_watcher_info)
     ->  raw::c_int;

    pub fn netsnmp_register_watched_scalar(reginfo:
                                               *mut netsnmp_handler_registration,
                                           winfo: *mut netsnmp_watcher_info)
     ->  raw::c_int;

    pub fn netsnmp_register_watched_scalar2(reginfo:
                                                *mut netsnmp_handler_registration,
                                            winfo: *mut netsnmp_watcher_info)
     ->  raw::c_int;

    pub fn netsnmp_register_watched_timestamp(reginfo:
                                                  *mut netsnmp_handler_registration,
                                              timestamp: marker_t)
     ->  raw::c_int;

    pub fn netsnmp_watched_timestamp_register(whandler:
                                                  *mut netsnmp_mib_handler,
                                              reginfo:
                                                  *mut netsnmp_handler_registration,
                                              timestamp: marker_t)
     ->  raw::c_int;

    pub fn netsnmp_register_watched_spinlock(reginfo:
                                                 *mut netsnmp_handler_registration,
                                             spinlock:
                                                 *mut  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_register_ulong_scalar(name: *const  raw::c_char,
                                         reg_oid: *const oid,
                                         reg_oid_len: usize, it: *mut raw::c_ulong,
                                         subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_ulong_scalar(name:
                                                       *const  raw::c_char,
                                                   reg_oid: *const oid,
                                                   reg_oid_len: usize,
                                                   it: *mut raw::c_ulong,
                                                   subhandler:
                                                       Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_long_scalar(name: *const  raw::c_char,
                                        reg_oid: *const oid,
                                        reg_oid_len: usize,
                                        it: *mut  raw::c_long,
                                        subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_long_scalar(name:
                                                      *const  raw::c_char,
                                                  reg_oid: *const oid,
                                                  reg_oid_len: usize,
                                                  it:
                                                      *mut  raw::c_long,
                                                  subhandler:
                                                      Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_int_scalar(name: *const  raw::c_char,
                                       reg_oid: *const oid,
                                       reg_oid_len: usize,
                                       it: *mut  raw::c_int,
                                       subhandler: Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_int_scalar(name:
                                                     *const  raw::c_char,
                                                 reg_oid: *const oid,
                                                 reg_oid_len: usize,
                                                 it:
                                                     *mut  raw::c_int,
                                                 subhandler:
                                                     Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_counter32_scalar(name:
                                                           *const  raw::c_char,
                                                       reg_oid: *const oid,
                                                       reg_oid_len: usize,
                                                       it: *mut raw::c_ulong,
                                                       subhandler:
                                                           Netsnmp_Node_Handler)
     ->  raw::c_int;

    pub fn netsnmp_get_watcher_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_init_watcher_info(arg1: *mut netsnmp_watcher_info,
                                     arg2: *mut  raw::c_void,
                                     arg3: usize, arg4: raw::c_uchar,
                                     arg5:  raw::c_int)
     -> *mut netsnmp_watcher_info;

    pub fn netsnmp_init_watcher_info6(arg1: *mut netsnmp_watcher_info,
                                      arg2: *mut  raw::c_void,
                                      arg3: usize, arg4: raw::c_uchar,
                                      arg5:  raw::c_int,
                                      arg6: usize, arg7: *mut usize)
     -> *mut netsnmp_watcher_info;

    pub fn netsnmp_create_watcher_info(arg1: *mut  raw::c_void,
                                       arg2: usize, arg3: raw::c_uchar,
                                       arg4:  raw::c_int)
     -> *mut netsnmp_watcher_info;

    pub fn netsnmp_create_watcher_info6(arg1: *mut  raw::c_void,
                                        arg2: usize, arg3: raw::c_uchar,
                                        arg4:  raw::c_int,
                                        arg5: usize, arg6: *mut usize)
     -> *mut netsnmp_watcher_info;

    pub fn netsnmp_clone_watcher_info(winfo: *mut netsnmp_watcher_info)
     -> *mut netsnmp_watcher_info;

    pub fn netsnmp_owns_watcher_info(handler: *mut netsnmp_mib_handler);

    pub fn netsnmp_watcher_helper_handler(handler: *mut netsnmp_mib_handler,
                                          reginfo:
                                              *mut netsnmp_handler_registration,
                                          reqinfo:
                                              *mut netsnmp_agent_request_info,
                                          requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_watched_timestamp_handler()
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_watched_timestamp_handler(handler:
                                                 *mut netsnmp_mib_handler,
                                             reginfo:
                                                 *mut netsnmp_handler_registration,
                                             reqinfo:
                                                 *mut netsnmp_agent_request_info,
                                             requests:
                                                 *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_watched_spinlock_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_watched_spinlock_handler(handler: *mut netsnmp_mib_handler,
                                            reginfo:
                                                *mut netsnmp_handler_registration,
                                            reqinfo:
                                                *mut netsnmp_agent_request_info,
                                            requests:
                                                *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_mib_handler_methods_s {
    pub get_handler: *mut netsnmp_mib_handler,
    pub getnext_handler: *mut netsnmp_mib_handler,
    pub getbulk_handler: *mut netsnmp_mib_handler,
    pub set_handler: *mut netsnmp_mib_handler,
}

impl Clone for netsnmp_mib_handler_methods_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_mib_handler_methods = netsnmp_mib_handler_methods_s;
extern "C" {
    pub fn netsnmp_get_multiplexer_handler(arg1:
                                               *mut netsnmp_mib_handler_methods)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_multiplexer_helper_handler(handler:
                                                  *mut netsnmp_mib_handler,
                                              reginfo:
                                                  *mut netsnmp_handler_registration,
                                              reqinfo:
                                                  *mut netsnmp_agent_request_info,
                                              requests:
                                                  *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_register_null(arg1: *mut oid, arg2: usize)
     ->  raw::c_int;

    pub fn netsnmp_register_null_context(arg1: *mut oid, arg2: usize,
                                         contextName:
                                             *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_null_handler(handler: *mut netsnmp_mib_handler,
                                reginfo: *mut netsnmp_handler_registration,
                                reqinfo: *mut netsnmp_agent_request_info,
                                requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_debug_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_init_debug_helper();

    pub fn netsnmp_debug_helper(handler: *mut netsnmp_mib_handler,
                                reginfo: *mut netsnmp_handler_registration,
                                reqinfo: *mut netsnmp_agent_request_info,
                                requests: *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_cache_s {
    pub refcnt:  raw::c_int,
    pub flags:  raw::c_int,
    pub enabled:  raw::c_int,
    pub valid:  raw::c_int,
    pub expired:  raw::c_char,
    pub timeout:  raw::c_int,
    pub timestampM: marker_t,
    pub timer_id: raw::c_ulong,
    pub load_cache: NetsnmpCacheLoad,
    pub free_cache: NetsnmpCacheFree,
    pub magic: *mut  raw::c_void,
    pub cache_hint: *mut netsnmp_handler_args,
    pub next: *mut netsnmp_cache,
    pub prev: *mut netsnmp_cache,
    pub rootoid: *mut oid,
    pub rootoid_len:  raw::c_int,
}

impl Clone for netsnmp_cache_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_cache = netsnmp_cache_s;
pub type NetsnmpCacheLoad =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut netsnmp_cache,
                                               arg2:
                                                   *mut  raw::c_void)
                              ->  raw::c_int>;
pub type NetsnmpCacheFree =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut netsnmp_cache,
                                               arg2:
                                                   *mut  raw::c_void)>;
extern "C" {
    pub fn netsnmp_cache_reqinfo_insert(cache: *mut netsnmp_cache,
                                        reqinfo:
                                            *mut netsnmp_agent_request_info,
                                        name: *const  raw::c_char);

    pub fn netsnmp_cache_reqinfo_extract(reqinfo:
                                             *mut netsnmp_agent_request_info,
                                         name: *const  raw::c_char)
     -> *mut netsnmp_cache;

    pub fn netsnmp_extract_cache_info(arg1: *mut netsnmp_agent_request_info)
     -> *mut netsnmp_cache;

    pub fn netsnmp_cache_check_and_reload(cache: *mut netsnmp_cache)
     ->  raw::c_int;

    pub fn netsnmp_cache_check_expired(cache: *mut netsnmp_cache)
     ->  raw::c_int;

    pub fn netsnmp_cache_is_valid(arg1: *mut netsnmp_agent_request_info,
                                  name: *const  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_is_cache_valid(arg1: *mut netsnmp_agent_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_cache_handler(arg1:  raw::c_int,
                                     arg2: NetsnmpCacheLoad,
                                     arg3: NetsnmpCacheFree, arg4: *const oid,
                                     arg5:  raw::c_int)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_cache_handler(reginfo:
                                              *mut netsnmp_handler_registration,
                                          arg1:  raw::c_int,
                                          arg2: NetsnmpCacheLoad,
                                          arg3: NetsnmpCacheFree)
     ->  raw::c_int;

    pub fn netsnmp_cache_helper_handler(handler: *mut netsnmp_mib_handler,
                                        reginfo:
                                            *mut netsnmp_handler_registration,
                                        reqinfo:
                                            *mut netsnmp_agent_request_info,
                                        requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_cache_create(timeout:  raw::c_int,
                                load_hook: NetsnmpCacheLoad,
                                free_hook: NetsnmpCacheFree,
                                rootoid: *const oid,
                                rootoid_len:  raw::c_int)
     -> *mut netsnmp_cache;

    pub fn netsnmp_cache_remove(cache: *mut netsnmp_cache)
     ->  raw::c_int;

    pub fn netsnmp_cache_free(cache: *mut netsnmp_cache)
     ->  raw::c_int;

    pub fn netsnmp_cache_handler_get(cache: *mut netsnmp_cache)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_cache_handler_owns_cache(handler:
                                                *mut netsnmp_mib_handler);

    pub fn netsnmp_cache_find_by_oid(rootoid: *const oid,
                                     rootoid_len:  raw::c_int)
     -> *mut netsnmp_cache;

    pub fn netsnmp_cache_timer_start(cache: *mut netsnmp_cache)
     ->  raw::c_uint;

    pub fn netsnmp_cache_timer_stop(cache: *mut netsnmp_cache);
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_old_api_info_s {
    pub var: *mut variable,
    pub varsize: usize,
    pub numvars: usize,
    pub ss: *mut netsnmp_session,
    pub flags:  raw::c_int,
}

impl Clone for netsnmp_old_api_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_old_api_info = netsnmp_old_api_info_s;
#[repr(C)]
#[derive(Copy)]
pub struct old_opi_cache_s {
    pub data: *mut raw::c_uchar,
    pub write_method: WriteMethod,
}

impl Clone for old_opi_cache_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_old_api_cache = old_opi_cache_s;
extern "C" {
    pub fn netsnmp_register_old_api(moduleName: *const  raw::c_char,
                                    var: *const variable, varsize: usize,
                                    numvars: usize, mibloc: *const oid,
                                    mibloclen: usize,
                                    priority:  raw::c_int,
                                    range_subid:  raw::c_int,
                                    range_ubound: oid,
                                    ss: *mut netsnmp_session,
                                    context: *const  raw::c_char,
                                    timeout:  raw::c_int,
                                    flags:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_old_api_helper(handler: *mut netsnmp_mib_handler,
                                  reginfo: *mut netsnmp_handler_registration,
                                  reqinfo: *mut netsnmp_agent_request_info,
                                  requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_current_agent_session() -> *mut netsnmp_agent_session;

    pub fn netsnmp_get_read_only_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_init_read_only_helper();

    pub fn netsnmp_read_only_helper(handler: *mut netsnmp_mib_handler,
                                    reginfo:
                                        *mut netsnmp_handler_registration,
                                    reqinfo: *mut netsnmp_agent_request_info,
                                    requests: *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_row_merge_status_x {
    pub count:  raw::c_char,
    pub rows:  raw::c_char,
    pub current:  raw::c_char,
    pub reserved:  raw::c_char,
    pub saved_requests: *mut *mut netsnmp_request_info,
    pub saved_status: *mut  raw::c_char,
}

impl Clone for netsnmp_row_merge_status_x {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_row_merge_status = netsnmp_row_merge_status_x;
extern "C" {
    pub fn netsnmp_get_row_merge_handler(arg1:  raw::c_int)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_row_merge(reginfo:
                                          *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_init_row_merge();

    pub fn netsnmp_row_merge_status_first(reginfo:
                                              *mut netsnmp_handler_registration,
                                          reqinfo:
                                              *mut netsnmp_agent_request_info)
     ->  raw::c_int;

    pub fn netsnmp_row_merge_status_last(reginfo:
                                             *mut netsnmp_handler_registration,
                                         reqinfo:
                                             *mut netsnmp_agent_request_info)
     ->  raw::c_int;

    pub fn netsnmp_row_merge_helper_handler(handler: *mut netsnmp_mib_handler,
                                            reginfo:
                                                *mut netsnmp_handler_registration,
                                            reqinfo:
                                                *mut netsnmp_agent_request_info,
                                            requests:
                                                *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_serialize_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_serialize(reginfo:
                                          *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_init_serialize();

    pub fn netsnmp_serialize_helper_handler(handler: *mut netsnmp_mib_handler,
                                            reginfo:
                                                *mut netsnmp_handler_registration,
                                            reqinfo:
                                                *mut netsnmp_agent_request_info,
                                            requests:
                                                *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_get_bulk_to_next_handler() -> *mut netsnmp_mib_handler;

    pub fn netsnmp_init_bulk_to_next_helper();

    pub fn netsnmp_bulk_to_next_fix_requests(requests:
                                                 *mut netsnmp_request_info);

    pub fn netsnmp_bulk_to_next_helper(handler: *mut netsnmp_mib_handler,
                                       reginfo:
                                           *mut netsnmp_handler_registration,
                                       reqinfo:
                                           *mut netsnmp_agent_request_info,
                                       requests: *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_mode_handler_list_s {
    pub next: *mut netsnmp_mode_handler_list_s,
    pub mode:  raw::c_int,
    pub callback_handler: *mut netsnmp_mib_handler,
}

impl Clone for netsnmp_mode_handler_list_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_mode_handler_list = netsnmp_mode_handler_list_s;
extern "C" {
    pub fn netsnmp_get_mode_end_call_handler(endlist:
                                                 *mut netsnmp_mode_handler_list)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_mode_end_call_add_mode_callback(endlist:
                                                       *mut netsnmp_mode_handler_list,
                                                   mode:
                                                        raw::c_int,
                                                   callbackh:
                                                       *mut netsnmp_mib_handler)
     -> *mut netsnmp_mode_handler_list;

    pub fn netsnmp_mode_end_call_helper(handler: *mut netsnmp_mib_handler,
                                        reginfo:
                                            *mut netsnmp_handler_registration,
                                        reqinfo:
                                            *mut netsnmp_agent_request_info,
                                        requests: *mut netsnmp_request_info)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_column_info_t {
    pub isRange:  raw::c_char,
    pub list_count:  raw::c_char,
    pub details: netsnmp_column_info_t__bindgen_ty_1,
    pub next: *mut netsnmp_column_info_t,
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_column_info_t__bindgen_ty_1 {
    pub range: __BindgenUnionField<[ raw::c_uint; 2usize]>,
    pub list: __BindgenUnionField<*mut  raw::c_uint>,
    pub bindgen_union_field: u64,
}

impl Clone for netsnmp_column_info_t__bindgen_ty_1 {
    fn clone(&self) -> Self { *self }
}

impl Clone for netsnmp_column_info_t {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_column_info = netsnmp_column_info_t;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_registration_info_s {
    pub indexes: *mut netsnmp_variable_list,
    pub number_indexes:  raw::c_uint,
    pub min_column:  raw::c_uint,
    pub max_column:  raw::c_uint,
    pub valid_columns: *mut netsnmp_column_info,
}
impl Clone for netsnmp_table_registration_info_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_registration_info = netsnmp_table_registration_info_s;
#[repr(C)]
pub struct netsnmp_table_request_info_s {
    pub colnum:  raw::c_uint,
    pub number_indexes:  raw::c_uint,
    pub indexes: *mut netsnmp_variable_list,
    pub index_oid: [oid; 128usize],
    pub index_oid_len: usize,
    pub reg_info: *mut netsnmp_table_registration_info,
}

pub type netsnmp_table_request_info = netsnmp_table_request_info_s;
extern "C" {
    pub fn netsnmp_get_table_handler(tabreq:
                                         *mut netsnmp_table_registration_info)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_handler_owns_table_info(handler: *mut netsnmp_mib_handler);

    pub fn netsnmp_registration_owns_table_info(reg:
                                                    *mut netsnmp_handler_registration);

    pub fn netsnmp_register_table(reginfo: *mut netsnmp_handler_registration,
                                  tabreq:
                                      *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_unregister_table(reginfo:
                                        *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_table_build_oid(reginfo: *mut netsnmp_handler_registration,
                                   reqinfo: *mut netsnmp_request_info,
                                   table_info:
                                       *mut netsnmp_table_request_info)
     ->  raw::c_int;

    pub fn netsnmp_table_build_oid_from_index(reginfo:
                                                  *mut netsnmp_handler_registration,
                                              reqinfo:
                                                  *mut netsnmp_request_info,
                                              table_info:
                                                  *mut netsnmp_table_request_info)
     ->  raw::c_int;

    pub fn netsnmp_table_build_result(reginfo:
                                          *mut netsnmp_handler_registration,
                                      reqinfo: *mut netsnmp_request_info,
                                      table_info:
                                          *mut netsnmp_table_request_info,
                                      type_: raw::c_uchar, result: *mut raw::c_uchar,
                                      result_len: usize)
     ->  raw::c_int;

    pub fn netsnmp_update_variable_list_from_index(arg1:
                                                       *mut netsnmp_table_request_info)
     ->  raw::c_int;

    pub fn netsnmp_update_indexes_from_variable_list(tri:
                                                         *mut netsnmp_table_request_info)
     ->  raw::c_int;

    pub fn netsnmp_find_table_registration_info(reginfo:
                                                    *mut netsnmp_handler_registration)
     -> *mut netsnmp_table_registration_info;

    pub fn netsnmp_table_registration_info_clone(tri:
                                                     *mut netsnmp_table_registration_info)
     -> *mut netsnmp_table_registration_info;

    pub fn netsnmp_table_registration_info_free(arg1:
                                                    *mut netsnmp_table_registration_info);

    pub fn netsnmp_table_index_find_next_row(c: *mut netsnmp_container,
                                             tblreq:
                                                 *mut netsnmp_table_request_info)
     -> *mut netsnmp_index;

    pub fn netsnmp_closest_column(current:  raw::c_uint,
                                  valid_columns: *mut netsnmp_column_info)
     ->  raw::c_uint;

    pub fn table_helper_handler(handler: *mut netsnmp_mib_handler,
                                reginfo: *mut netsnmp_handler_registration,
                                reqinfo: *mut netsnmp_agent_request_info,
                                requests: *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_table_helper_add_indexes(tinfo:
                                                *mut netsnmp_table_registration_info, ...);

    pub fn netsnmp_check_getnext_reply(request: *mut netsnmp_request_info,
                                       prefix: *mut oid, prefix_len: usize,
                                       newvar: *mut netsnmp_variable_list,
                                       outvar:
                                           *mut *mut netsnmp_variable_list)
     ->  raw::c_int;

    pub fn netsnmp_extract_table_info(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_table_request_info;

    pub fn netsnmp_table_get_or_create_row_stash(reqinfo:
                                                     *mut netsnmp_agent_request_info,
                                                 storage_name: *const raw::c_uchar)
     -> *mut *mut netsnmp_oid_stash_node;

    pub fn netsnmp_table_next_column(table_info:
                                         *mut netsnmp_table_request_info)
     ->  raw::c_uint;

    pub fn netsnmp_sparse_table_register(reginfo:
                                             *mut netsnmp_handler_registration,
                                         tabreq:
                                             *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_sparse_table_handler_get() -> *mut netsnmp_mib_handler;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_row_s {
    pub indexes: *mut netsnmp_variable_list,
    pub index_oid: *mut oid,
    pub index_oid_len: usize,
    pub data: *mut  raw::c_void,
    pub next: *mut netsnmp_table_row_s,
    pub prev: *mut netsnmp_table_row_s,
}

impl Clone for netsnmp_table_row_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_row = netsnmp_table_row_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_data_s {
    pub indexes_template: *mut netsnmp_variable_list,
    pub name: *mut  raw::c_char,
    pub flags:  raw::c_int,
    pub store_indexes:  raw::c_int,
    pub first_row: *mut netsnmp_table_row,
    pub last_row: *mut netsnmp_table_row,
}

impl Clone for netsnmp_table_data_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_data = netsnmp_table_data_s;
extern "C" {
    pub fn netsnmp_table_data_generate_index_oid(row: *mut netsnmp_table_row);

    pub fn netsnmp_create_table_data(name: *const  raw::c_char)
     -> *mut netsnmp_table_data;

    pub fn netsnmp_create_table_data_row() -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_clone_row(row: *mut netsnmp_table_row)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_delete_row(row: *mut netsnmp_table_row)
     -> *mut  raw::c_void;

    pub fn netsnmp_table_data_add_row(table: *mut netsnmp_table_data,
                                      row: *mut netsnmp_table_row)
     ->  raw::c_int;

    pub fn netsnmp_table_data_replace_row(table: *mut netsnmp_table_data,
                                          origrow: *mut netsnmp_table_row,
                                          newrow: *mut netsnmp_table_row);

    pub fn netsnmp_table_data_remove_row(table: *mut netsnmp_table_data,
                                         row: *mut netsnmp_table_row)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_remove_and_delete_row(table:
                                                        *mut netsnmp_table_data,
                                                    row:
                                                        *mut netsnmp_table_row)
     -> *mut  raw::c_void;

    pub fn netsnmp_table_data_delete_table(table: *mut netsnmp_table_data);

    pub fn netsnmp_get_table_data_handler(table: *mut netsnmp_table_data)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_table_data(reginfo:
                                           *mut netsnmp_handler_registration,
                                       table: *mut netsnmp_table_data,
                                       table_info:
                                           *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_register_read_only_table_data(reginfo:
                                                     *mut netsnmp_handler_registration,
                                                 table:
                                                     *mut netsnmp_table_data,
                                                 table_info:
                                                     *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_table_data_helper_handler(handler:
                                                 *mut netsnmp_mib_handler,
                                             reginfo:
                                                 *mut netsnmp_handler_registration,
                                             reqinfo:
                                                 *mut netsnmp_agent_request_info,
                                             requests:
                                                 *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_extract_table(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_table_data;

    pub fn netsnmp_extract_table_row(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_extract_table_row_data(arg1: *mut netsnmp_request_info)
     -> *mut  raw::c_void;

    pub fn netsnmp_insert_table_row(arg1: *mut netsnmp_request_info,
                                    arg2: *mut netsnmp_table_row);

    pub fn netsnmp_table_data_build_result(reginfo:
                                               *mut netsnmp_handler_registration,
                                           reqinfo:
                                               *mut netsnmp_agent_request_info,
                                           request: *mut netsnmp_request_info,
                                           row: *mut netsnmp_table_row,
                                           column:  raw::c_int,
                                           type_: raw::c_uchar,
                                           result_data: *mut raw::c_uchar,
                                           result_data_len: usize)
     ->  raw::c_int;

    pub fn netsnmp_table_data_get_first_row(table: *mut netsnmp_table_data)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_get_next_row(table: *mut netsnmp_table_data,
                                           row: *mut netsnmp_table_row)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_get(table: *mut netsnmp_table_data,
                                  indexes: *mut netsnmp_variable_list)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_get_from_oid(table: *mut netsnmp_table_data,
                                           searchfor: *mut oid,
                                           searchfor_len: usize)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_num_rows(table: *mut netsnmp_table_data)
     ->  raw::c_int;

    pub fn netsnmp_init_table_dataset();
}
pub type Netsnmp_Value_Change_Ok =
    ::std::option::Option<unsafe extern "C" fn(old_value:
                                                   *mut  raw::c_char,
                                               old_value_len: usize,
                                               new_value:
                                                   *mut  raw::c_char,
                                               new_value_len: usize,
                                               mydata:
                                                   *mut  raw::c_void)
                              ->  raw::c_int>;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_data_set_storage_s {
    pub column:  raw::c_uint,
    pub writable:  raw::c_char,
    pub change_ok_fn: Netsnmp_Value_Change_Ok,
    pub my_change_data: *mut  raw::c_void,
    pub type_: raw::c_uchar,
    pub data: netsnmp_table_data_set_storage_s__bindgen_ty_1,
    pub data_len: raw::c_ulong,
    pub next: *mut netsnmp_table_data_set_storage_s,
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_data_set_storage_s__bindgen_ty_1 {
    pub voidp: __BindgenUnionField<*mut  raw::c_void>,
    pub integer: __BindgenUnionField<*mut  raw::c_long>,
    pub string: __BindgenUnionField<*mut raw::c_uchar>,
    pub objid: __BindgenUnionField<*mut oid>,
    pub bitstring: __BindgenUnionField<*mut raw::c_uchar>,
    pub counter64: __BindgenUnionField<Struct_counter64>,
    pub floatVal: __BindgenUnionField<*mut f32>,
    pub doubleVal: __BindgenUnionField<*mut f64>,
    pub bindgen_union_field: u64,
}

impl Clone for netsnmp_table_data_set_storage_s__bindgen_ty_1 {
    fn clone(&self) -> Self { *self }
}

impl Clone for netsnmp_table_data_set_storage_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_data_set_storage = netsnmp_table_data_set_storage_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_data_set_s {
    pub table: *mut netsnmp_table_data,
    pub default_row: *mut netsnmp_table_data_set_storage,
    pub allow_creation:  raw::c_int,
    pub rowstatus_column:  raw::c_uint,
}

impl Clone for netsnmp_table_data_set_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_data_set = netsnmp_table_data_set_s;
extern "C" {
    pub fn netsnmp_create_table_data_set(arg1: *const  raw::c_char)
     -> *mut netsnmp_table_data_set;

    pub fn netsnmp_table_data_set_clone_row(row: *mut netsnmp_table_row)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_dataset_delete_all_data(data:
                                                     *mut netsnmp_table_data_set_storage);

    pub fn netsnmp_table_dataset_delete_row(row: *mut netsnmp_table_row);

    pub fn netsnmp_table_dataset_add_row(table: *mut netsnmp_table_data_set,
                                         row: *mut netsnmp_table_row);

    pub fn netsnmp_table_dataset_replace_row(table:
                                                 *mut netsnmp_table_data_set,
                                             origrow: *mut netsnmp_table_row,
                                             newrow: *mut netsnmp_table_row);

    pub fn netsnmp_table_dataset_remove_row(table:
                                                *mut netsnmp_table_data_set,
                                            row: *mut netsnmp_table_row);

    pub fn netsnmp_table_dataset_remove_and_delete_row(table:
                                                           *mut netsnmp_table_data_set,
                                                       row:
                                                           *mut netsnmp_table_row);

    pub fn netsnmp_delete_table_data_set(table_set:
                                             *mut netsnmp_table_data_set);

    pub fn netsnmp_table_set_add_default_row(arg1:
                                                 *mut netsnmp_table_data_set,
                                             arg2:  raw::c_uint,
                                             arg3:  raw::c_int,
                                             arg4:  raw::c_int,
                                             default_value:
                                                 *mut  raw::c_void,
                                             default_value_len: usize)
     ->  raw::c_int;

    pub fn netsnmp_table_set_multi_add_default_row(arg1:
                                                       *mut netsnmp_table_data_set, ...);

    pub fn netsnmp_get_table_data_set_handler(arg1:
                                                  *mut netsnmp_table_data_set)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_table_data_set_helper_handler(handler:
                                                     *mut netsnmp_mib_handler,
                                                 reginfo:
                                                     *mut netsnmp_handler_registration,
                                                 reqinfo:
                                                     *mut netsnmp_agent_request_info,
                                                 requests:
                                                     *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_register_table_data_set(arg1:
                                               *mut netsnmp_handler_registration,
                                           arg2: *mut netsnmp_table_data_set,
                                           arg3:
                                               *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_extract_table_data_set(request: *mut netsnmp_request_info)
     -> *mut netsnmp_table_data_set;

    pub fn netsnmp_extract_table_data_set_column(arg1:
                                                     *mut netsnmp_request_info,
                                                 arg2:  raw::c_uint)
     -> *mut netsnmp_table_data_set_storage;

    pub fn netsnmp_table_dataset_get_or_create_stash(ari:
                                                         *mut netsnmp_agent_request_info,
                                                     tds:
                                                         *mut netsnmp_table_data_set,
                                                     tri:
                                                         *mut netsnmp_table_request_info)
     -> *mut *mut netsnmp_oid_stash_node;

    pub fn netsnmp_table_dataset_get_newrow(request:
                                                *mut netsnmp_request_info,
                                            reqinfo:
                                                *mut netsnmp_agent_request_info,
                                            rootoid_len:
                                                 raw::c_int,
                                            datatable:
                                                *mut netsnmp_table_data_set,
                                            table_info:
                                                *mut netsnmp_table_request_info)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_register_auto_data_table(table_set:
                                                *mut netsnmp_table_data_set,
                                            registration_name:
                                                *mut  raw::c_char);

    pub fn netsnmp_unregister_auto_data_table(table_set:
                                                  *mut netsnmp_table_data_set,
                                              registration_name:
                                                  *mut  raw::c_char);

    pub fn netsnmp_config_parse_table_set(token:
                                              *const  raw::c_char,
                                          line: *mut  raw::c_char);

    pub fn netsnmp_config_parse_add_row(token: *const  raw::c_char,
                                        line: *mut  raw::c_char);

    pub fn netsnmp_table_data_set_get_first_row(table:
                                                    *mut netsnmp_table_data_set)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_data_set_get_next_row(table:
                                                   *mut netsnmp_table_data_set,
                                               row: *mut netsnmp_table_row)
     -> *mut netsnmp_table_row;

    pub fn netsnmp_table_set_num_rows(table: *mut netsnmp_table_data_set)
     ->  raw::c_int;

    pub fn netsnmp_table_data_set_find_column(arg1:
                                                  *mut netsnmp_table_data_set_storage,
                                              arg2:  raw::c_uint)
     -> *mut netsnmp_table_data_set_storage;

    pub fn netsnmp_mark_row_column_writable(row: *mut netsnmp_table_row,
                                            column:  raw::c_int,
                                            writable:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_set_row_column(arg1: *mut netsnmp_table_row,
                                  arg2:  raw::c_uint,
                                  arg3:  raw::c_int,
                                  arg4: *const  raw::c_void,
                                  arg5: usize) ->  raw::c_int;

    pub fn netsnmp_table_dataset_add_index(table: *mut netsnmp_table_data_set,
                                           type_: raw::c_uchar);

    pub fn netsnmp_table_set_add_indexes(tset:
                                             *mut netsnmp_table_data_set, ...);
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_tdata_row_s {
    pub oid_index: netsnmp_index,
    pub indexes: *mut netsnmp_variable_list,
    pub data: *mut  raw::c_void,
}

impl Clone for netsnmp_tdata_row_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_tdata_row = netsnmp_tdata_row_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_tdata_s {
    pub indexes_template: *mut netsnmp_variable_list,
    pub name: *mut  raw::c_char,
    pub flags:  raw::c_int,
    pub container: *mut netsnmp_container,
}

impl Clone for netsnmp_tdata_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_tdata = netsnmp_tdata_s;
pub type netsnmp_table_data2row = netsnmp_tdata_row_s;
pub type netsnmp_table_data2 = netsnmp_tdata_s;
extern "C" {
    pub fn netsnmp_tdata_create_table(name: *const  raw::c_char,
                                      flags:  raw::c_long)
     -> *mut netsnmp_tdata;

    pub fn netsnmp_tdata_delete_table(table: *mut netsnmp_tdata);

    pub fn netsnmp_tdata_create_row() -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_clone_row(row: *mut netsnmp_tdata_row)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_copy_row(dst_row: *mut netsnmp_tdata_row,
                                  src_row: *mut netsnmp_tdata_row)
     ->  raw::c_int;

    pub fn netsnmp_tdata_delete_row(row: *mut netsnmp_tdata_row)
     -> *mut  raw::c_void;

    pub fn netsnmp_tdata_add_row(table: *mut netsnmp_tdata,
                                 row: *mut netsnmp_tdata_row)
     ->  raw::c_int;

    pub fn netsnmp_tdata_replace_row(table: *mut netsnmp_tdata,
                                     origrow: *mut netsnmp_tdata_row,
                                     newrow: *mut netsnmp_tdata_row);

    pub fn netsnmp_tdata_remove_row(table: *mut netsnmp_tdata,
                                    row: *mut netsnmp_tdata_row)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_remove_and_delete_row(table: *mut netsnmp_tdata,
                                               row: *mut netsnmp_tdata_row)
     -> *mut  raw::c_void;

    pub fn netsnmp_get_tdata_handler(table: *mut netsnmp_tdata)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_tdata_register(reginfo: *mut netsnmp_handler_registration,
                                  table: *mut netsnmp_tdata,
                                  table_info:
                                      *mut netsnmp_table_registration_info)
     ->  raw::c_int;

    pub fn netsnmp_tdata_unregister(reginfo:
                                        *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_tdata_extract_table(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_tdata;

    pub fn netsnmp_tdata_extract_container(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_container;

    pub fn netsnmp_tdata_extract_row(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_extract_entry(arg1: *mut netsnmp_request_info)
     -> *mut  raw::c_void;

    pub fn netsnmp_insert_tdata_row(arg1: *mut netsnmp_request_info,
                                    arg2: *mut netsnmp_tdata_row);

    pub fn netsnmp_remove_tdata_row(arg1: *mut netsnmp_request_info,
                                    arg2: *mut netsnmp_tdata_row);

    pub fn netsnmp_tdata_row_entry(row: *mut netsnmp_tdata_row)
     -> *mut  raw::c_void;

    pub fn netsnmp_tdata_row_first(table: *mut netsnmp_tdata)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_get(table: *mut netsnmp_tdata,
                                 row: *mut netsnmp_tdata_row)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_next(table: *mut netsnmp_tdata,
                                  row: *mut netsnmp_tdata_row)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_get_byidx(table: *mut netsnmp_tdata,
                                       indexes: *mut netsnmp_variable_list)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_get_byoid(table: *mut netsnmp_tdata,
                                       searchfor: *mut oid,
                                       searchfor_len: usize)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_next_byidx(table: *mut netsnmp_tdata,
                                        indexes: *mut netsnmp_variable_list)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_next_byoid(table: *mut netsnmp_tdata,
                                        searchfor: *mut oid,
                                        searchfor_len: usize)
     -> *mut netsnmp_tdata_row;

    pub fn netsnmp_tdata_row_count(table: *mut netsnmp_tdata)
     ->  raw::c_int;

    pub fn netsnmp_tdata_compare_idx(row: *mut netsnmp_tdata_row,
                                     indexes: *mut netsnmp_variable_list)
     ->  raw::c_int;

    pub fn netsnmp_tdata_compare_oid(row: *mut netsnmp_tdata_row,
                                     compareto: *mut oid,
                                     compareto_len: usize)
     ->  raw::c_int;

    pub fn netsnmp_tdata_compare_subtree_idx(row: *mut netsnmp_tdata_row,
                                             indexes:
                                                 *mut netsnmp_variable_list)
     ->  raw::c_int;

    pub fn netsnmp_tdata_compare_subtree_oid(row: *mut netsnmp_tdata_row,
                                             compareto: *mut oid,
                                             compareto_len: usize)
     ->  raw::c_int;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_iterator_info_s {
    pub refcnt:  raw::c_int,
    pub get_first_data_point: Netsnmp_First_Data_Point,
    pub get_next_data_point: Netsnmp_Next_Data_Point,
    pub make_data_context: Netsnmp_Make_Data_Context,
    pub free_loop_context: Netsnmp_Free_Loop_Context,
    pub free_data_context: Netsnmp_Free_Data_Context,
    pub free_loop_context_at_end: Netsnmp_Free_Loop_Context,
    pub myvoid: *mut  raw::c_void,
    pub flags:  raw::c_int,
    pub table_reginfo: *mut netsnmp_table_registration_info,
    pub get_row_indexes: Netsnmp_First_Data_Point,
    pub indexes: *mut netsnmp_variable_list,
}

impl Clone for netsnmp_iterator_info_s {
    fn clone(&self) -> Self { *self }
}
pub type Netsnmp_First_Data_Point =
    ::std::option::Option<unsafe extern "C" fn(loop_context:
                                                   *mut *mut  raw::c_void,
                                               data_context:
                                                   *mut *mut  raw::c_void,
                                               arg1:
                                                   *mut netsnmp_variable_list,
                                               arg2:
                                                   *mut netsnmp_iterator_info_s)
                              -> *mut netsnmp_variable_list>;
pub type Netsnmp_Next_Data_Point =
    ::std::option::Option<unsafe extern "C" fn(loop_context:
                                                   *mut *mut  raw::c_void,
                                               data_context:
                                                   *mut *mut  raw::c_void,
                                               arg1:
                                                   *mut netsnmp_variable_list,
                                               arg2:
                                                   *mut netsnmp_iterator_info_s)
                              -> *mut netsnmp_variable_list>;
pub type Netsnmp_Make_Data_Context =
    ::std::option::Option<unsafe extern "C" fn(loop_context:
                                                   *mut  raw::c_void,
                                               arg1:
                                                   *mut netsnmp_iterator_info_s)
                              -> *mut  raw::c_void>;
pub type Netsnmp_Free_Loop_Context =
    ::std::option::Option<unsafe extern "C" fn(arg1:
                                                   *mut  raw::c_void,
                                               arg2:
                                                   *mut netsnmp_iterator_info_s)>;
pub type Netsnmp_Free_Data_Context =
    ::std::option::Option<unsafe extern "C" fn(arg1:
                                                   *mut  raw::c_void,
                                               arg2:
                                                   *mut netsnmp_iterator_info_s)>;
pub type netsnmp_iterator_info = netsnmp_iterator_info_s;
extern "C" {
    pub fn netsnmp_handler_owns_iterator_info(h: *mut netsnmp_mib_handler);

    pub fn netsnmp_get_table_iterator_handler(iinfo:
                                                  *mut netsnmp_iterator_info)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_register_table_iterator(reginfo:
                                               *mut netsnmp_handler_registration,
                                           iinfo: *mut netsnmp_iterator_info)
     ->  raw::c_int;

    pub fn netsnmp_iterator_delete_table(iinfo: *mut netsnmp_iterator_info);

    pub fn netsnmp_extract_iterator_context(arg1: *mut netsnmp_request_info)
     -> *mut  raw::c_void;

    pub fn netsnmp_insert_iterator_context(arg1: *mut netsnmp_request_info,
                                           arg2: *mut  raw::c_void);

    pub fn netsnmp_table_iterator_helper_handler(handler:
                                                     *mut netsnmp_mib_handler,
                                                 reginfo:
                                                     *mut netsnmp_handler_registration,
                                                 reqinfo:
                                                     *mut netsnmp_agent_request_info,
                                                 requests:
                                                     *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_iterator_row_first(arg1: *mut netsnmp_iterator_info)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_get(arg1: *mut netsnmp_iterator_info,
                                    arg2: *mut  raw::c_void)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_next(arg1: *mut netsnmp_iterator_info,
                                     arg2: *mut  raw::c_void)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_get_byidx(arg1: *mut netsnmp_iterator_info,
                                          arg2: *mut netsnmp_variable_list)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_next_byidx(arg1: *mut netsnmp_iterator_info,
                                           arg2: *mut netsnmp_variable_list)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_get_byoid(arg1: *mut netsnmp_iterator_info,
                                          arg2: *mut oid, arg3: usize)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_next_byoid(arg1: *mut netsnmp_iterator_info,
                                           arg2: *mut oid, arg3: usize)
     -> *mut  raw::c_void;

    pub fn netsnmp_iterator_row_count(arg1: *mut netsnmp_iterator_info)
     ->  raw::c_int;

    pub fn netsnmp_container_table_handler_get(tabreq:
                                                   *mut netsnmp_table_registration_info,
                                               container:
                                                   *mut netsnmp_container,
                                               key_type:
                                                    raw::c_char)
     -> *mut netsnmp_mib_handler;

    pub fn netsnmp_container_table_register(reginfo:
                                                *mut netsnmp_handler_registration,
                                            tabreq:
                                                *mut netsnmp_table_registration_info,
                                            container: *mut netsnmp_container,
                                            key_type:  raw::c_char)
     ->  raw::c_int;

    pub fn netsnmp_container_table_unregister(reginfo:
                                                  *mut netsnmp_handler_registration)
     ->  raw::c_int;

    pub fn netsnmp_container_table_container_extract(request:
                                                         *mut netsnmp_request_info)
     -> *mut netsnmp_container;

    pub fn netsnmp_container_table_row_insert(request:
                                                  *mut netsnmp_request_info,
                                              row: *mut netsnmp_index);

    pub fn netsnmp_container_table_row_remove(request:
                                                  *mut netsnmp_request_info,
                                              row: *mut netsnmp_index);

    pub fn netsnmp_container_table_find_next_row(request:
                                                     *mut netsnmp_request_info,
                                                 tblreq:
                                                     *mut netsnmp_table_request_info,
                                                 container:
                                                     *mut netsnmp_container,
                                                 key_type:
                                                      raw::c_char)
     -> *mut  raw::c_void;
}
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_request_group_item_s {
    pub ri: *mut netsnmp_request_info,
    pub tri: *mut netsnmp_table_request_info,
    pub next: *mut netsnmp_request_group_item_s,
}

impl Clone for netsnmp_request_group_item_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_request_group_item = netsnmp_request_group_item_s;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_request_group_s {
    pub index: netsnmp_index,
    pub table: *mut netsnmp_container,
    pub existing_row: *mut netsnmp_index,
    pub undo_info: *mut netsnmp_index,
    pub row_created:  raw::c_char,
    pub row_deleted:  raw::c_char,
    pub fill1:  raw::c_char,
    pub fill2:  raw::c_char,
    pub list: *mut netsnmp_request_group_item,
    pub status:  raw::c_int,
    pub rg_void: *mut  raw::c_void,
}

impl Clone for netsnmp_request_group_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_request_group = netsnmp_request_group_s;
pub type Netsnmp_User_Row_Operation_c =
    ::std::option::Option<unsafe extern "C" fn(lhs:
                                                   *const  raw::c_void,
                                               rhs:
                                                   *const  raw::c_void)
                              ->  raw::c_int>;
pub type Netsnmp_User_Row_Operation =
    ::std::option::Option<unsafe extern "C" fn(lhs:
                                                   *mut  raw::c_void,
                                               rhs:
                                                   *mut  raw::c_void)
                              ->  raw::c_int>;
pub type Netsnmp_User_Get_Processor =
    ::std::option::Option<unsafe extern "C" fn(arg1:
                                                   *mut netsnmp_request_info,
                                               arg2: *mut netsnmp_index,
                                               arg3:
                                                   *mut netsnmp_table_request_info)
                              ->  raw::c_int>;
pub type UserRowMethod =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut netsnmp_index)
                              -> *mut netsnmp_index>;
pub type Netsnmp_User_Row_Action =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut netsnmp_index,
                                               arg2: *mut netsnmp_index,
                                               arg3:
                                                   *mut netsnmp_request_group)
                              ->  raw::c_int>;
pub type Netsnmp_User_Group_Method =
    ::std::option::Option<unsafe extern "C" fn(arg1:
                                                   *mut netsnmp_request_group)>;
#[repr(C)]
#[derive(Copy)]
pub struct netsnmp_table_array_callbacks_s {
    pub row_copy: Netsnmp_User_Row_Operation,
    pub row_compare: Netsnmp_User_Row_Operation_c,
    pub get_value: Netsnmp_User_Get_Processor,
    pub can_activate: Netsnmp_User_Row_Action,
    pub activated: Netsnmp_User_Row_Action,
    pub can_deactivate: Netsnmp_User_Row_Action,
    pub deactivated: Netsnmp_User_Row_Action,
    pub can_delete: Netsnmp_User_Row_Action,
    pub create_row: UserRowMethod,
    pub duplicate_row: UserRowMethod,
    pub delete_row: UserRowMethod,
    pub set_reserve1: Netsnmp_User_Group_Method,
    pub set_reserve2: Netsnmp_User_Group_Method,
    pub set_action: Netsnmp_User_Group_Method,
    pub set_commit: Netsnmp_User_Group_Method,
    pub set_free: Netsnmp_User_Group_Method,
    pub set_undo: Netsnmp_User_Group_Method,
    pub container: *mut netsnmp_container,
    pub can_set:  raw::c_char,
}

impl Clone for netsnmp_table_array_callbacks_s {
    fn clone(&self) -> Self { *self }
}
pub type netsnmp_table_array_callbacks = netsnmp_table_array_callbacks_s;
extern "C" {
    pub fn netsnmp_table_container_register(reginfo:
                                                *mut netsnmp_handler_registration,
                                            tabreq:
                                                *mut netsnmp_table_registration_info,
                                            cb:
                                                *mut netsnmp_table_array_callbacks,
                                            container: *mut netsnmp_container,
                                            group_rows:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_table_array_register(reginfo:
                                            *mut netsnmp_handler_registration,
                                        tabreq:
                                            *mut netsnmp_table_registration_info,
                                        cb:
                                            *mut netsnmp_table_array_callbacks,
                                        container: *mut netsnmp_container,
                                        group_rows:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_extract_array_context(arg1: *mut netsnmp_request_info)
     -> *mut netsnmp_container;

    pub fn netsnmp_table_array_helper_handler(handler:
                                                  *mut netsnmp_mib_handler,
                                              reginfo:
                                                  *mut netsnmp_handler_registration,
                                              reqinfo:
                                                  *mut netsnmp_agent_request_info,
                                              requests:
                                                  *mut netsnmp_request_info)
     ->  raw::c_int;

    pub fn netsnmp_table_array_check_row_status(cb:
                                                    *mut netsnmp_table_array_callbacks,
                                                ag:
                                                    *mut netsnmp_request_group,
                                                rs_new:
                                                    *mut  raw::c_long,
                                                rs_old:
                                                    *mut  raw::c_long)
     ->  raw::c_int;

    pub fn netsnmp_register_statistic_handler(reginfo:
                                                  *mut netsnmp_handler_registration,
                                              start: oid,
                                              begin:  raw::c_int,
                                              end:  raw::c_int)
     ->  raw::c_int;

    pub fn netsnmp_init_helpers();

    pub fn init_vacm_vars();
    pub fn init_usmUser();
}
#[repr(C)]
#[derive(Copy)]
pub struct __locale_data {
    pub _address: u8,
}
impl Clone for __locale_data {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct __va_list_tag {
    pub gp_offset:  raw::c_uint,
    pub fp_offset:  raw::c_uint,
    pub overflow_arg_area: *mut  raw::c_void,
    pub reg_save_area: *mut  raw::c_void,
}

impl Clone for __va_list_tag {
    fn clone(&self) -> Self { *self }
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_at {
    pub _address: u8,
}
impl Clone for sockaddr_at {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_ax25 {
    pub _address: u8,
}
impl Clone for sockaddr_ax25 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_dl {
    pub _address: u8,
}
impl Clone for sockaddr_dl {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_eon {
    pub _address: u8,
}
impl Clone for sockaddr_eon {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_inarp {
    pub _address: u8,
}
impl Clone for sockaddr_inarp {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_ipx {
    pub _address: u8,
}
impl Clone for sockaddr_ipx {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_iso {
    pub _address: u8,
}
impl Clone for sockaddr_iso {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_ns {
    pub _address: u8,
}
impl Clone for sockaddr_ns {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct sockaddr_x25 {
    pub _address: u8,
}
impl Clone for sockaddr_x25 {
    fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
pub struct snmp_internal_session {
    pub _address: u8,
}
impl Clone for snmp_internal_session {
    fn clone(&self) -> Self { *self }
}