1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
/* automatically generated by rust-bindgen 0.60.1 */

pub type __int64_t = ::std::os::raw::c_long;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __off_t = ::std::os::raw::c_long;
pub type mode_t = __mode_t;
pub type off_t = __off_t;
pub type va_list = __builtin_va_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct archive {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct archive_entry {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __alpm_list_t {
    pub data: *mut ::std::os::raw::c_void,
    pub prev: *mut __alpm_list_t,
    pub next: *mut __alpm_list_t,
}
#[test]
fn bindgen_test_layout___alpm_list_t() {
    assert_eq!(
        ::std::mem::size_of::<__alpm_list_t>(),
        24usize,
        concat!("Size of: ", stringify!(__alpm_list_t))
    );
    assert_eq!(
        ::std::mem::align_of::<__alpm_list_t>(),
        8usize,
        concat!("Alignment of ", stringify!(__alpm_list_t))
    );
    fn test_field_data() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__alpm_list_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(__alpm_list_t),
                "::",
                stringify!(data)
            )
        );
    }
    test_field_data();
    fn test_field_prev() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__alpm_list_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(__alpm_list_t),
                "::",
                stringify!(prev)
            )
        );
    }
    test_field_prev();
    fn test_field_next() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__alpm_list_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(__alpm_list_t),
                "::",
                stringify!(next)
            )
        );
    }
    test_field_next();
}
pub type alpm_list_t = __alpm_list_t;
pub type alpm_list_fn_free =
    ::std::option::Option<unsafe extern "C" fn(item: *mut ::std::os::raw::c_void)>;
pub type alpm_list_fn_cmp = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[doc = " The libalpm context handle."]
#[doc = ""]
#[doc = " This struct represents an instance of libalpm."]
#[doc = " @ingroup libalpm_handle"]
pub type alpm_handle_t = u8;
#[doc = " A database."]
#[doc = ""]
#[doc = " A database is a container that stores metadata about packages."]
#[doc = ""]
#[doc = " A database can be located on the local filesystem or on a remote server."]
#[doc = ""]
#[doc = " To use a database, it must first be registered via \\link alpm_register_syncdb \\endlink."]
#[doc = " If the database is already present in dbpath then it will be usable. Otherwise,"]
#[doc = " the database needs to be downloaded using \\link alpm_db_update \\endlink. Even if the"]
#[doc = " source of the database is the local filesystem."]
#[doc = ""]
#[doc = " After this, the database can be used to query packages and groups. Any packages or groups"]
#[doc = " from the database will continue to be owned by the database and do not need to be freed by"]
#[doc = " the user. They will be freed when the database is unregistered."]
#[doc = ""]
#[doc = " Databases are automatically unregistered when the \\link alpm_handle_t \\endlink is released."]
#[doc = " @ingroup libalpm_databases"]
pub type alpm_db_t = u8;
#[doc = " A package."]
#[doc = ""]
#[doc = " A package can be loaded from disk via \\link alpm_pkg_load \\endlink or retrieved from a database."]
#[doc = " Packages from databases are automatically freed when the database is unregistered. Packages loaded"]
#[doc = " from a file must be freed manually."]
#[doc = ""]
#[doc = " Packages can then be queried for metadata or added to a \\link alpm_trans_t transaction \\endlink"]
#[doc = " to be added or removed from the system."]
#[doc = " @ingroup libalpm_packages"]
pub type alpm_pkg_t = u8;
#[doc = " Transaction structure used internally by libalpm"]
#[doc = " @ingroup libalpm_trans"]
pub type alpm_trans_t = u8;
#[doc = " The time type used by libalpm. Represents a unix time stamp"]
#[doc = " @ingroup libalpm_misc"]
pub type alpm_time_t = i64;
#[doc = " File in a package"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_file_t {
    #[doc = " Name of the file"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = " Size of the file"]
    pub size: off_t,
    #[doc = " The file's permissions"]
    pub mode: mode_t,
}
#[test]
fn bindgen_test_layout__alpm_file_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_file_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_file_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_file_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_file_t))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_file_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_file_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_size() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_file_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_file_t),
                "::",
                stringify!(size)
            )
        );
    }
    test_field_size();
    fn test_field_mode() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_file_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).mode) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_file_t),
                "::",
                stringify!(mode)
            )
        );
    }
    test_field_mode();
}
#[doc = " File in a package"]
pub type alpm_file_t = _alpm_file_t;
#[doc = " Package filelist container"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_filelist_t {
    #[doc = " Amount of files in the array"]
    pub count: usize,
    #[doc = " An array of files"]
    pub files: *mut alpm_file_t,
}
#[test]
fn bindgen_test_layout__alpm_filelist_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_filelist_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_filelist_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_filelist_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_filelist_t))
    );
    fn test_field_count() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_filelist_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_filelist_t),
                "::",
                stringify!(count)
            )
        );
    }
    test_field_count();
    fn test_field_files() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_filelist_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).files) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_filelist_t),
                "::",
                stringify!(files)
            )
        );
    }
    test_field_files();
}
#[doc = " Package filelist container"]
pub type alpm_filelist_t = _alpm_filelist_t;
#[doc = " Local package or package file backup entry"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_backup_t {
    #[doc = " Name of the file (without .pacsave extension)"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = " Hash of the filename (used internally)"]
    pub hash: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_backup_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_backup_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_backup_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_backup_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_backup_t))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_backup_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_backup_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_hash() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_backup_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).hash) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_backup_t),
                "::",
                stringify!(hash)
            )
        );
    }
    test_field_hash();
}
#[doc = " Local package or package file backup entry"]
pub type alpm_backup_t = _alpm_backup_t;
#[doc = " Package group"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_group_t {
    #[doc = " group name"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = " list of alpm_pkg_t packages"]
    pub packages: *mut alpm_list_t,
}
#[test]
fn bindgen_test_layout__alpm_group_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_group_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_group_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_group_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_group_t))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_group_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_group_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_packages() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_group_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).packages) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_group_t),
                "::",
                stringify!(packages)
            )
        );
    }
    test_field_packages();
}
#[doc = " Package group"]
pub type alpm_group_t = _alpm_group_t;
#[repr(u32)]
#[doc = " libalpm's error type"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_errno_t {
    #[doc = " No error"]
    ALPM_ERR_OK = 0,
    #[doc = " Failed to allocate memory"]
    ALPM_ERR_MEMORY = 1,
    #[doc = " A system error occurred"]
    ALPM_ERR_SYSTEM = 2,
    #[doc = " Permmision denied"]
    ALPM_ERR_BADPERMS = 3,
    #[doc = " Should be a file"]
    ALPM_ERR_NOT_A_FILE = 4,
    #[doc = " Should be a directory"]
    ALPM_ERR_NOT_A_DIR = 5,
    #[doc = " Function was called with invalid arguments"]
    ALPM_ERR_WRONG_ARGS = 6,
    #[doc = " Insufficient disk space"]
    ALPM_ERR_DISK_SPACE = 7,
    #[doc = " Handle should be null"]
    ALPM_ERR_HANDLE_NULL = 8,
    #[doc = " Handle should not be null"]
    ALPM_ERR_HANDLE_NOT_NULL = 9,
    #[doc = " Failed to acquire lock"]
    ALPM_ERR_HANDLE_LOCK = 10,
    #[doc = " Failed to open database"]
    ALPM_ERR_DB_OPEN = 11,
    #[doc = " Failed to create database"]
    ALPM_ERR_DB_CREATE = 12,
    #[doc = " Database should not be null"]
    ALPM_ERR_DB_NULL = 13,
    #[doc = " Database should be null"]
    ALPM_ERR_DB_NOT_NULL = 14,
    #[doc = " The database could not be found"]
    ALPM_ERR_DB_NOT_FOUND = 15,
    #[doc = " Database is invalid"]
    ALPM_ERR_DB_INVALID = 16,
    #[doc = " Database has an invalid signature"]
    ALPM_ERR_DB_INVALID_SIG = 17,
    #[doc = " The localdb is in a newer/older format than libalpm expects"]
    ALPM_ERR_DB_VERSION = 18,
    #[doc = " Failed to write to the database"]
    ALPM_ERR_DB_WRITE = 19,
    #[doc = " Failed to remove entry from database"]
    ALPM_ERR_DB_REMOVE = 20,
    #[doc = " Server URL is in an invalid format"]
    ALPM_ERR_SERVER_BAD_URL = 21,
    #[doc = " The database has no configured servers"]
    ALPM_ERR_SERVER_NONE = 22,
    #[doc = " A transaction is already initialized"]
    ALPM_ERR_TRANS_NOT_NULL = 23,
    #[doc = " A transaction has not been initialized"]
    ALPM_ERR_TRANS_NULL = 24,
    #[doc = " Duplicate target in transaction"]
    ALPM_ERR_TRANS_DUP_TARGET = 25,
    #[doc = " Duplicate filename in transaction"]
    ALPM_ERR_TRANS_DUP_FILENAME = 26,
    #[doc = " A transaction has not been initialized"]
    ALPM_ERR_TRANS_NOT_INITIALIZED = 27,
    #[doc = " Transaction has not been prepared"]
    ALPM_ERR_TRANS_NOT_PREPARED = 28,
    #[doc = " Transaction was aborted"]
    ALPM_ERR_TRANS_ABORT = 29,
    #[doc = " Failed to interrupt transaction"]
    ALPM_ERR_TRANS_TYPE = 30,
    #[doc = " Tried to commit transaction without locking the database"]
    ALPM_ERR_TRANS_NOT_LOCKED = 31,
    #[doc = " A hook failed to run"]
    ALPM_ERR_TRANS_HOOK_FAILED = 32,
    #[doc = " Package not found"]
    ALPM_ERR_PKG_NOT_FOUND = 33,
    #[doc = " Package is in ignorepkg"]
    ALPM_ERR_PKG_IGNORED = 34,
    #[doc = " Package is invalid"]
    ALPM_ERR_PKG_INVALID = 35,
    #[doc = " Package has an invalid checksum"]
    ALPM_ERR_PKG_INVALID_CHECKSUM = 36,
    #[doc = " Package has an invalid signature"]
    ALPM_ERR_PKG_INVALID_SIG = 37,
    #[doc = " Package does not have a signature"]
    ALPM_ERR_PKG_MISSING_SIG = 38,
    #[doc = " Cannot open the package file"]
    ALPM_ERR_PKG_OPEN = 39,
    #[doc = " Failed to remove package files"]
    ALPM_ERR_PKG_CANT_REMOVE = 40,
    #[doc = " Package has an invalid name"]
    ALPM_ERR_PKG_INVALID_NAME = 41,
    #[doc = " Package has an invalid architecture"]
    ALPM_ERR_PKG_INVALID_ARCH = 42,
    #[doc = " Signatures are missing"]
    ALPM_ERR_SIG_MISSING = 43,
    #[doc = " Signatures are invalid"]
    ALPM_ERR_SIG_INVALID = 44,
    #[doc = " Dependencies could not be satisfied"]
    ALPM_ERR_UNSATISFIED_DEPS = 45,
    #[doc = " Conflicting dependencies"]
    ALPM_ERR_CONFLICTING_DEPS = 46,
    #[doc = " Files conflict"]
    ALPM_ERR_FILE_CONFLICTS = 47,
    #[doc = " Download failed"]
    ALPM_ERR_RETRIEVE = 48,
    #[doc = " Invalid Regex"]
    ALPM_ERR_INVALID_REGEX = 49,
    #[doc = " Error in libarchive"]
    ALPM_ERR_LIBARCHIVE = 50,
    #[doc = " Error in libcurl"]
    ALPM_ERR_LIBCURL = 51,
    #[doc = " Error in external download program"]
    ALPM_ERR_EXTERNAL_DOWNLOAD = 52,
    #[doc = " Error in gpgme"]
    ALPM_ERR_GPGME = 53,
    #[doc = " Missing compile-time features"]
    ALPM_ERR_MISSING_CAPABILITY_SIGNATURES = 54,
}
#[doc = " libalpm's error type"]
pub use self::_alpm_errno_t as alpm_errno_t;
pub mod _alpm_siglevel_t {
    #[doc = " PGP signature verification options"]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " Packages require a signature"]
    pub const ALPM_SIG_PACKAGE: Type = 1;
    #[doc = " Packages do not require a signature,"]
    #[doc = " but check packages that do have signatures"]
    pub const ALPM_SIG_PACKAGE_OPTIONAL: Type = 2;
    #[doc = " Packages do not require a signature,"]
    #[doc = " but check packages that do have signatures"]
    pub const ALPM_SIG_PACKAGE_MARGINAL_OK: Type = 4;
    #[doc = " Allow packages with signatures that are unknown trust"]
    pub const ALPM_SIG_PACKAGE_UNKNOWN_OK: Type = 8;
    #[doc = " Databases require a signature"]
    pub const ALPM_SIG_DATABASE: Type = 1024;
    #[doc = " Databases do not require a signature,"]
    #[doc = " but check databases that do have signatures"]
    pub const ALPM_SIG_DATABASE_OPTIONAL: Type = 2048;
    #[doc = " Allow databases with signatures that are marginal trust"]
    pub const ALPM_SIG_DATABASE_MARGINAL_OK: Type = 4096;
    #[doc = " Allow databases with signatures that are unknown trust"]
    pub const ALPM_SIG_DATABASE_UNKNOWN_OK: Type = 8192;
    #[doc = " The Default siglevel"]
    pub const ALPM_SIG_USE_DEFAULT: Type = 1073741824;
}
#[doc = " PGP signature verification options"]
pub use self::_alpm_siglevel_t::Type as alpm_siglevel_t;
#[repr(u32)]
#[doc = " PGP signature verification status return codes"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_sigstatus_t {
    #[doc = " Signature is valid"]
    ALPM_SIGSTATUS_VALID = 0,
    #[doc = " The key has expired"]
    ALPM_SIGSTATUS_KEY_EXPIRED = 1,
    #[doc = " The signature has expired"]
    ALPM_SIGSTATUS_SIG_EXPIRED = 2,
    #[doc = " The key is not in the keyring"]
    ALPM_SIGSTATUS_KEY_UNKNOWN = 3,
    #[doc = " The key has been disabled"]
    ALPM_SIGSTATUS_KEY_DISABLED = 4,
    #[doc = " The signature is invalid"]
    ALPM_SIGSTATUS_INVALID = 5,
}
#[doc = " PGP signature verification status return codes"]
pub use self::_alpm_sigstatus_t as alpm_sigstatus_t;
#[repr(u32)]
#[doc = " The trust level of a PGP key"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_sigvalidity_t {
    #[doc = " The signature is fully trusted"]
    ALPM_SIGVALIDITY_FULL = 0,
    #[doc = " The signature is marginally trusted"]
    ALPM_SIGVALIDITY_MARGINAL = 1,
    #[doc = " The signature is never trusted"]
    ALPM_SIGVALIDITY_NEVER = 2,
    #[doc = " The signature has unknown trust"]
    ALPM_SIGVALIDITY_UNKNOWN = 3,
}
#[doc = " The trust level of a PGP key"]
pub use self::_alpm_sigvalidity_t as alpm_sigvalidity_t;
#[doc = " A PGP key"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_pgpkey_t {
    #[doc = " The actual key data"]
    pub data: *mut ::std::os::raw::c_void,
    #[doc = " The key's fingerprint"]
    pub fingerprint: *mut ::std::os::raw::c_char,
    #[doc = " UID of the key"]
    pub uid: *mut ::std::os::raw::c_char,
    #[doc = " Name of the key's owner"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = " Email of the key's owner"]
    pub email: *mut ::std::os::raw::c_char,
    #[doc = " When the key was created"]
    pub created: alpm_time_t,
    #[doc = " When the key expires"]
    pub expires: alpm_time_t,
    #[doc = " The length of the key"]
    pub length: ::std::os::raw::c_uint,
    #[doc = " has the key been revoked"]
    pub revoked: ::std::os::raw::c_uint,
    #[doc = " A character representing the  encryption algorithm used by the public key"]
    #[doc = ""]
    #[doc = " ? = unknown"]
    #[doc = " R = RSA"]
    #[doc = " D = DSA"]
    #[doc = " E = EDDSA"]
    pub pubkey_algo: ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_pgpkey_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_pgpkey_t>(),
        72usize,
        concat!("Size of: ", stringify!(_alpm_pgpkey_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_pgpkey_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_pgpkey_t))
    );
    fn test_field_data() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(data)
            )
        );
    }
    test_field_data();
    fn test_field_fingerprint() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).fingerprint) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(fingerprint)
            )
        );
    }
    test_field_fingerprint();
    fn test_field_uid() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(uid)
            )
        );
    }
    test_field_uid();
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_email() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).email) as usize - ptr as usize
            },
            32usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(email)
            )
        );
    }
    test_field_email();
    fn test_field_created() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).created) as usize - ptr as usize
            },
            40usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(created)
            )
        );
    }
    test_field_created();
    fn test_field_expires() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).expires) as usize - ptr as usize
            },
            48usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(expires)
            )
        );
    }
    test_field_expires();
    fn test_field_length() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize
            },
            56usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(length)
            )
        );
    }
    test_field_length();
    fn test_field_revoked() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).revoked) as usize - ptr as usize
            },
            60usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(revoked)
            )
        );
    }
    test_field_revoked();
    fn test_field_pubkey_algo() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_pgpkey_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pubkey_algo) as usize - ptr as usize
            },
            64usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_pgpkey_t),
                "::",
                stringify!(pubkey_algo)
            )
        );
    }
    test_field_pubkey_algo();
}
#[doc = " A PGP key"]
pub type alpm_pgpkey_t = _alpm_pgpkey_t;
#[doc = " Signature result. Contains the key, status, and validity of a given"]
#[doc = " signature."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_sigresult_t {
    #[doc = " The key of the signature"]
    pub key: alpm_pgpkey_t,
    #[doc = " The status of the signature"]
    pub status: alpm_sigstatus_t,
    #[doc = " The validity of the signature"]
    pub validity: alpm_sigvalidity_t,
}
#[test]
fn bindgen_test_layout__alpm_sigresult_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_sigresult_t>(),
        80usize,
        concat!("Size of: ", stringify!(_alpm_sigresult_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_sigresult_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_sigresult_t))
    );
    fn test_field_key() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_sigresult_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_sigresult_t),
                "::",
                stringify!(key)
            )
        );
    }
    test_field_key();
    fn test_field_status() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_sigresult_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize
            },
            72usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_sigresult_t),
                "::",
                stringify!(status)
            )
        );
    }
    test_field_status();
    fn test_field_validity() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_sigresult_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).validity) as usize - ptr as usize
            },
            76usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_sigresult_t),
                "::",
                stringify!(validity)
            )
        );
    }
    test_field_validity();
}
#[doc = " Signature result. Contains the key, status, and validity of a given"]
#[doc = " signature."]
pub type alpm_sigresult_t = _alpm_sigresult_t;
#[doc = " Signature list. Contains the number of signatures found and a pointer to an"]
#[doc = " array of results. The array is of size count."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_siglist_t {
    #[doc = " The amount of results in the array"]
    pub count: usize,
    #[doc = " An array of sigresults"]
    pub results: *mut alpm_sigresult_t,
}
#[test]
fn bindgen_test_layout__alpm_siglist_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_siglist_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_siglist_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_siglist_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_siglist_t))
    );
    fn test_field_count() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_siglist_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_siglist_t),
                "::",
                stringify!(count)
            )
        );
    }
    test_field_count();
    fn test_field_results() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_siglist_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).results) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_siglist_t),
                "::",
                stringify!(results)
            )
        );
    }
    test_field_results();
}
#[doc = " Signature list. Contains the number of signatures found and a pointer to an"]
#[doc = " array of results. The array is of size count."]
pub type alpm_siglist_t = _alpm_siglist_t;
#[repr(u32)]
#[doc = " Types of version constraints in dependency specs."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_depmod_t {
    #[doc = " No version constraint"]
    ALPM_DEP_MOD_ANY = 1,
    #[doc = " Test version equality (package=x.y.z)"]
    ALPM_DEP_MOD_EQ = 2,
    #[doc = " Test for at least a version (package>=x.y.z)"]
    ALPM_DEP_MOD_GE = 3,
    #[doc = " Test for at most a version (package<=x.y.z)"]
    ALPM_DEP_MOD_LE = 4,
    #[doc = " Test for greater than some version (package>x.y.z)"]
    ALPM_DEP_MOD_GT = 5,
    #[doc = " Test for less than some version (package<x.y.z)"]
    ALPM_DEP_MOD_LT = 6,
}
#[doc = " Types of version constraints in dependency specs."]
pub use self::_alpm_depmod_t as alpm_depmod_t;
#[repr(u32)]
#[doc = " File conflict type."]
#[doc = " Whether the conflict results from a file existing on the filesystem, or with"]
#[doc = " another target in the transaction."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_fileconflicttype_t {
    #[doc = " The conflict results with a another target in the transaction"]
    ALPM_FILECONFLICT_TARGET = 1,
    #[doc = " The conflict results from a file existing on the filesystem"]
    ALPM_FILECONFLICT_FILESYSTEM = 2,
}
#[doc = " File conflict type."]
#[doc = " Whether the conflict results from a file existing on the filesystem, or with"]
#[doc = " another target in the transaction."]
pub use self::_alpm_fileconflicttype_t as alpm_fileconflicttype_t;
#[doc = " The basic dependency type."]
#[doc = ""]
#[doc = " This type is used throughout libalpm, not just for dependencies"]
#[doc = " but also conflicts and providers."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_depend_t {
    #[doc = "  Name of the provider to satisfy this dependency"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = "  Version of the provider to match against (optional)"]
    pub version: *mut ::std::os::raw::c_char,
    #[doc = " A description of why this dependency is needed (optional)"]
    pub desc: *mut ::std::os::raw::c_char,
    #[doc = " A hash of name (used internally to speed up conflict checks)"]
    pub name_hash: ::std::os::raw::c_ulong,
    #[doc = " How the version should match against the provider"]
    pub mod_: alpm_depmod_t,
}
#[test]
fn bindgen_test_layout__alpm_depend_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_depend_t>(),
        40usize,
        concat!("Size of: ", stringify!(_alpm_depend_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_depend_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_depend_t))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depend_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depend_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_version() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depend_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depend_t),
                "::",
                stringify!(version)
            )
        );
    }
    test_field_version();
    fn test_field_desc() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depend_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).desc) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depend_t),
                "::",
                stringify!(desc)
            )
        );
    }
    test_field_desc();
    fn test_field_name_hash() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depend_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name_hash) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depend_t),
                "::",
                stringify!(name_hash)
            )
        );
    }
    test_field_name_hash();
    fn test_field_mod() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depend_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).mod_) as usize - ptr as usize
            },
            32usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depend_t),
                "::",
                stringify!(mod_)
            )
        );
    }
    test_field_mod();
}
#[doc = " The basic dependency type."]
#[doc = ""]
#[doc = " This type is used throughout libalpm, not just for dependencies"]
#[doc = " but also conflicts and providers."]
pub type alpm_depend_t = _alpm_depend_t;
#[doc = " Missing dependency."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_depmissing_t {
    #[doc = " Name of the package that has the dependency"]
    pub target: *mut ::std::os::raw::c_char,
    #[doc = " The dependency that was wanted"]
    pub depend: *mut alpm_depend_t,
    #[doc = " If the depmissing was caused by a conflict, the name of the package"]
    #[doc = " that would be installed, causing the satisfying package to be removed"]
    pub causingpkg: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_depmissing_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_depmissing_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_depmissing_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_depmissing_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_depmissing_t))
    );
    fn test_field_target() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depmissing_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).target) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depmissing_t),
                "::",
                stringify!(target)
            )
        );
    }
    test_field_target();
    fn test_field_depend() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depmissing_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).depend) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depmissing_t),
                "::",
                stringify!(depend)
            )
        );
    }
    test_field_depend();
    fn test_field_causingpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_depmissing_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).causingpkg) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_depmissing_t),
                "::",
                stringify!(causingpkg)
            )
        );
    }
    test_field_causingpkg();
}
#[doc = " Missing dependency."]
pub type alpm_depmissing_t = _alpm_depmissing_t;
#[doc = " A conflict that has occurred between two packages."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_conflict_t {
    #[doc = " Hash of the first package name"]
    #[doc = " (used internally to speed up conflict checks)"]
    pub package1_hash: ::std::os::raw::c_ulong,
    #[doc = " Hash of the second package name"]
    #[doc = " (used internally to speed up conflict checks)"]
    pub package2_hash: ::std::os::raw::c_ulong,
    #[doc = " Name of the first package"]
    pub package1: *mut ::std::os::raw::c_char,
    #[doc = " Name of the second package"]
    pub package2: *mut ::std::os::raw::c_char,
    #[doc = " The conflict"]
    pub reason: *mut alpm_depend_t,
}
#[test]
fn bindgen_test_layout__alpm_conflict_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_conflict_t>(),
        40usize,
        concat!("Size of: ", stringify!(_alpm_conflict_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_conflict_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_conflict_t))
    );
    fn test_field_package1_hash() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).package1_hash) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_conflict_t),
                "::",
                stringify!(package1_hash)
            )
        );
    }
    test_field_package1_hash();
    fn test_field_package2_hash() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).package2_hash) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_conflict_t),
                "::",
                stringify!(package2_hash)
            )
        );
    }
    test_field_package2_hash();
    fn test_field_package1() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).package1) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_conflict_t),
                "::",
                stringify!(package1)
            )
        );
    }
    test_field_package1();
    fn test_field_package2() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).package2) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_conflict_t),
                "::",
                stringify!(package2)
            )
        );
    }
    test_field_package2();
    fn test_field_reason() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize
            },
            32usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_conflict_t),
                "::",
                stringify!(reason)
            )
        );
    }
    test_field_reason();
}
#[doc = " A conflict that has occurred between two packages."]
pub type alpm_conflict_t = _alpm_conflict_t;
#[doc = " File conflict."]
#[doc = ""]
#[doc = " A conflict that has happened due to a two packages containing the same file,"]
#[doc = " or a package contains a file that is already on the filesystem and not owned"]
#[doc = " by that package."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_fileconflict_t {
    #[doc = " The name of the package that caused the conflict"]
    pub target: *mut ::std::os::raw::c_char,
    #[doc = " The type of conflict"]
    pub type_: alpm_fileconflicttype_t,
    #[doc = " The name of the file that the package conflicts with"]
    pub file: *mut ::std::os::raw::c_char,
    #[doc = " The name of the package that also owns the file if there is one"]
    pub ctarget: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_fileconflict_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_fileconflict_t>(),
        32usize,
        concat!("Size of: ", stringify!(_alpm_fileconflict_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_fileconflict_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_fileconflict_t))
    );
    fn test_field_target() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_fileconflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).target) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_fileconflict_t),
                "::",
                stringify!(target)
            )
        );
    }
    test_field_target();
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_fileconflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_fileconflict_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_file() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_fileconflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_fileconflict_t),
                "::",
                stringify!(file)
            )
        );
    }
    test_field_file();
    fn test_field_ctarget() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_fileconflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).ctarget) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_fileconflict_t),
                "::",
                stringify!(ctarget)
            )
        );
    }
    test_field_ctarget();
}
#[doc = " File conflict."]
#[doc = ""]
#[doc = " A conflict that has happened due to a two packages containing the same file,"]
#[doc = " or a package contains a file that is already on the filesystem and not owned"]
#[doc = " by that package."]
pub type alpm_fileconflict_t = _alpm_fileconflict_t;
#[repr(u32)]
#[doc = " Type of events."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_event_type_t {
    #[doc = " Dependencies will be computed for a package."]
    ALPM_EVENT_CHECKDEPS_START = 1,
    #[doc = " Dependencies were computed for a package."]
    ALPM_EVENT_CHECKDEPS_DONE = 2,
    #[doc = " File conflicts will be computed for a package."]
    ALPM_EVENT_FILECONFLICTS_START = 3,
    #[doc = " File conflicts were computed for a package."]
    ALPM_EVENT_FILECONFLICTS_DONE = 4,
    #[doc = " Dependencies will be resolved for target package."]
    ALPM_EVENT_RESOLVEDEPS_START = 5,
    #[doc = " Dependencies were resolved for target package."]
    ALPM_EVENT_RESOLVEDEPS_DONE = 6,
    #[doc = " Inter-conflicts will be checked for target package."]
    ALPM_EVENT_INTERCONFLICTS_START = 7,
    #[doc = " Inter-conflicts were checked for target package."]
    ALPM_EVENT_INTERCONFLICTS_DONE = 8,
    #[doc = " Processing the package transaction is starting."]
    ALPM_EVENT_TRANSACTION_START = 9,
    #[doc = " Processing the package transaction is finished."]
    ALPM_EVENT_TRANSACTION_DONE = 10,
    #[doc = " Package will be installed/upgraded/downgraded/re-installed/removed; See"]
    #[doc = " alpm_event_package_operation_t for arguments."]
    ALPM_EVENT_PACKAGE_OPERATION_START = 11,
    #[doc = " Package was installed/upgraded/downgraded/re-installed/removed; See"]
    #[doc = " alpm_event_package_operation_t for arguments."]
    ALPM_EVENT_PACKAGE_OPERATION_DONE = 12,
    #[doc = " Target package's integrity will be checked."]
    ALPM_EVENT_INTEGRITY_START = 13,
    #[doc = " Target package's integrity was checked."]
    ALPM_EVENT_INTEGRITY_DONE = 14,
    #[doc = " Target package will be loaded."]
    ALPM_EVENT_LOAD_START = 15,
    #[doc = " Target package is finished loading."]
    ALPM_EVENT_LOAD_DONE = 16,
    #[doc = " Scriptlet has printed information; See alpm_event_scriptlet_info_t for"]
    #[doc = " arguments."]
    ALPM_EVENT_SCRIPTLET_INFO = 17,
    #[doc = " Database files will be downloaded from a repository."]
    ALPM_EVENT_DB_RETRIEVE_START = 18,
    #[doc = " Database files were downloaded from a repository."]
    ALPM_EVENT_DB_RETRIEVE_DONE = 19,
    #[doc = " Not all database files were successfully downloaded from a repository."]
    ALPM_EVENT_DB_RETRIEVE_FAILED = 20,
    #[doc = " Package files will be downloaded from a repository."]
    ALPM_EVENT_PKG_RETRIEVE_START = 21,
    #[doc = " Package files were downloaded from a repository."]
    ALPM_EVENT_PKG_RETRIEVE_DONE = 22,
    #[doc = " Not all package files were successfully downloaded from a repository."]
    ALPM_EVENT_PKG_RETRIEVE_FAILED = 23,
    #[doc = " Disk space usage will be computed for a package."]
    ALPM_EVENT_DISKSPACE_START = 24,
    #[doc = " Disk space usage was computed for a package."]
    ALPM_EVENT_DISKSPACE_DONE = 25,
    #[doc = " An optdepend for another package is being removed; See"]
    #[doc = " alpm_event_optdep_removal_t for arguments."]
    ALPM_EVENT_OPTDEP_REMOVAL = 26,
    #[doc = " A configured repository database is missing; See"]
    #[doc = " alpm_event_database_missing_t for arguments."]
    ALPM_EVENT_DATABASE_MISSING = 27,
    #[doc = " Checking keys used to create signatures are in keyring."]
    ALPM_EVENT_KEYRING_START = 28,
    #[doc = " Keyring checking is finished."]
    ALPM_EVENT_KEYRING_DONE = 29,
    #[doc = " Downloading missing keys into keyring."]
    ALPM_EVENT_KEY_DOWNLOAD_START = 30,
    #[doc = " Key downloading is finished."]
    ALPM_EVENT_KEY_DOWNLOAD_DONE = 31,
    #[doc = " A .pacnew file was created; See alpm_event_pacnew_created_t for arguments."]
    ALPM_EVENT_PACNEW_CREATED = 32,
    #[doc = " A .pacsave file was created; See alpm_event_pacsave_created_t for"]
    #[doc = " arguments."]
    ALPM_EVENT_PACSAVE_CREATED = 33,
    #[doc = " Processing hooks will be started."]
    ALPM_EVENT_HOOK_START = 34,
    #[doc = " Processing hooks is finished."]
    ALPM_EVENT_HOOK_DONE = 35,
    #[doc = " A hook is starting"]
    ALPM_EVENT_HOOK_RUN_START = 36,
    #[doc = " A hook has finished running."]
    ALPM_EVENT_HOOK_RUN_DONE = 37,
}
#[doc = " Type of events."]
pub use self::_alpm_event_type_t as alpm_event_type_t;
#[doc = " An event that may represent any event."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_any_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
}
#[test]
fn bindgen_test_layout__alpm_event_any_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_any_t>(),
        4usize,
        concat!("Size of: ", stringify!(_alpm_event_any_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_any_t>(),
        4usize,
        concat!("Alignment of ", stringify!(_alpm_event_any_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_any_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_any_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
}
#[doc = " An event that may represent any event."]
pub type alpm_event_any_t = _alpm_event_any_t;
#[repr(u32)]
#[doc = " An enum over the kind of package operations."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_package_operation_t {
    #[doc = " Package (to be) installed. (No oldpkg)"]
    ALPM_PACKAGE_INSTALL = 1,
    #[doc = " Package (to be) upgraded"]
    ALPM_PACKAGE_UPGRADE = 2,
    #[doc = " Package (to be) re-installed"]
    ALPM_PACKAGE_REINSTALL = 3,
    #[doc = " Package (to be) downgraded"]
    ALPM_PACKAGE_DOWNGRADE = 4,
    #[doc = " Package (to be) removed (No newpkg)"]
    ALPM_PACKAGE_REMOVE = 5,
}
#[doc = " An enum over the kind of package operations."]
pub use self::_alpm_package_operation_t as alpm_package_operation_t;
#[doc = " A package operation event occurred."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_package_operation_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Type of operation"]
    pub operation: alpm_package_operation_t,
    #[doc = " Old package"]
    pub oldpkg: *mut alpm_pkg_t,
    #[doc = " New package"]
    pub newpkg: *mut alpm_pkg_t,
}
#[test]
fn bindgen_test_layout__alpm_event_package_operation_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_package_operation_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_event_package_operation_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_package_operation_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_package_operation_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_package_operation_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_package_operation_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_operation() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_package_operation_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).operation) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_package_operation_t),
                "::",
                stringify!(operation)
            )
        );
    }
    test_field_operation();
    fn test_field_oldpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_package_operation_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).oldpkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_package_operation_t),
                "::",
                stringify!(oldpkg)
            )
        );
    }
    test_field_oldpkg();
    fn test_field_newpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_package_operation_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).newpkg) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_package_operation_t),
                "::",
                stringify!(newpkg)
            )
        );
    }
    test_field_newpkg();
}
#[doc = " A package operation event occurred."]
pub type alpm_event_package_operation_t = _alpm_event_package_operation_t;
#[doc = " An optional dependency was removed."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_optdep_removal_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Package with the optdep"]
    pub pkg: *mut alpm_pkg_t,
    #[doc = " Optdep being removed"]
    pub optdep: *mut alpm_depend_t,
}
#[test]
fn bindgen_test_layout__alpm_event_optdep_removal_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_optdep_removal_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_event_optdep_removal_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_optdep_removal_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_optdep_removal_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_optdep_removal_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_optdep_removal_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_pkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_optdep_removal_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_optdep_removal_t),
                "::",
                stringify!(pkg)
            )
        );
    }
    test_field_pkg();
    fn test_field_optdep() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_optdep_removal_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).optdep) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_optdep_removal_t),
                "::",
                stringify!(optdep)
            )
        );
    }
    test_field_optdep();
}
#[doc = " An optional dependency was removed."]
pub type alpm_event_optdep_removal_t = _alpm_event_optdep_removal_t;
#[doc = " A scriptlet was ran."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_scriptlet_info_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Line of scriptlet output"]
    pub line: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_event_scriptlet_info_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_scriptlet_info_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_event_scriptlet_info_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_scriptlet_info_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_scriptlet_info_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_scriptlet_info_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_scriptlet_info_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_line() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_scriptlet_info_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_scriptlet_info_t),
                "::",
                stringify!(line)
            )
        );
    }
    test_field_line();
}
#[doc = " A scriptlet was ran."]
pub type alpm_event_scriptlet_info_t = _alpm_event_scriptlet_info_t;
#[doc = " A database is missing."]
#[doc = ""]
#[doc = " The database is registered but has not been downloaded"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_database_missing_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Name of the database"]
    pub dbname: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_event_database_missing_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_database_missing_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_event_database_missing_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_database_missing_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_database_missing_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_database_missing_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_database_missing_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_dbname() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_database_missing_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).dbname) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_database_missing_t),
                "::",
                stringify!(dbname)
            )
        );
    }
    test_field_dbname();
}
#[doc = " A database is missing."]
#[doc = ""]
#[doc = " The database is registered but has not been downloaded"]
pub type alpm_event_database_missing_t = _alpm_event_database_missing_t;
#[doc = " A package was downloaded."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_pkgdownload_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Name of the file"]
    pub file: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_event_pkgdownload_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_pkgdownload_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_event_pkgdownload_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_pkgdownload_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_pkgdownload_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pkgdownload_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pkgdownload_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_file() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pkgdownload_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pkgdownload_t),
                "::",
                stringify!(file)
            )
        );
    }
    test_field_file();
}
#[doc = " A package was downloaded."]
pub type alpm_event_pkgdownload_t = _alpm_event_pkgdownload_t;
#[doc = " A pacnew file was created."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_pacnew_created_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Whether the creation was result of a NoUpgrade or not"]
    pub from_noupgrade: ::std::os::raw::c_int,
    #[doc = " Old package"]
    pub oldpkg: *mut alpm_pkg_t,
    #[doc = " New Package"]
    pub newpkg: *mut alpm_pkg_t,
    #[doc = " Filename of the file without the .pacnew suffix"]
    pub file: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_event_pacnew_created_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_pacnew_created_t>(),
        32usize,
        concat!("Size of: ", stringify!(_alpm_event_pacnew_created_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_pacnew_created_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_pacnew_created_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacnew_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacnew_created_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_from_noupgrade() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacnew_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).from_noupgrade) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacnew_created_t),
                "::",
                stringify!(from_noupgrade)
            )
        );
    }
    test_field_from_noupgrade();
    fn test_field_oldpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacnew_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).oldpkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacnew_created_t),
                "::",
                stringify!(oldpkg)
            )
        );
    }
    test_field_oldpkg();
    fn test_field_newpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacnew_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).newpkg) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacnew_created_t),
                "::",
                stringify!(newpkg)
            )
        );
    }
    test_field_newpkg();
    fn test_field_file() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacnew_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacnew_created_t),
                "::",
                stringify!(file)
            )
        );
    }
    test_field_file();
}
#[doc = " A pacnew file was created."]
pub type alpm_event_pacnew_created_t = _alpm_event_pacnew_created_t;
#[doc = " A pacsave file was created."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_pacsave_created_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Old package"]
    pub oldpkg: *mut alpm_pkg_t,
    #[doc = " Filename of the file without the .pacsave suffix"]
    pub file: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__alpm_event_pacsave_created_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_pacsave_created_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_event_pacsave_created_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_pacsave_created_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_pacsave_created_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacsave_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacsave_created_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_oldpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacsave_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).oldpkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacsave_created_t),
                "::",
                stringify!(oldpkg)
            )
        );
    }
    test_field_oldpkg();
    fn test_field_file() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pacsave_created_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pacsave_created_t),
                "::",
                stringify!(file)
            )
        );
    }
    test_field_file();
}
#[doc = " A pacsave file was created."]
pub type alpm_event_pacsave_created_t = _alpm_event_pacsave_created_t;
#[repr(u32)]
#[doc = " Kind of hook."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_hook_when_t {
    ALPM_HOOK_PRE_TRANSACTION = 1,
    ALPM_HOOK_POST_TRANSACTION = 2,
}
#[doc = " Kind of hook."]
pub use self::_alpm_hook_when_t as alpm_hook_when_t;
#[doc = " pre/post transaction hooks are to be ran."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_hook_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Type of hook"]
    pub when: alpm_hook_when_t,
}
#[test]
fn bindgen_test_layout__alpm_event_hook_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_hook_t>(),
        8usize,
        concat!("Size of: ", stringify!(_alpm_event_hook_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_hook_t>(),
        4usize,
        concat!("Alignment of ", stringify!(_alpm_event_hook_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_when() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).when) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_t),
                "::",
                stringify!(when)
            )
        );
    }
    test_field_when();
}
#[doc = " pre/post transaction hooks are to be ran."]
pub type alpm_event_hook_t = _alpm_event_hook_t;
#[doc = " A pre/post transaction hook was ran."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_hook_run_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Name of hook"]
    pub name: *const ::std::os::raw::c_char,
    #[doc = " Description of hook to be outputted"]
    pub desc: *const ::std::os::raw::c_char,
    #[doc = " position of hook being run"]
    pub position: usize,
    #[doc = " total hooks being run"]
    pub total: usize,
}
#[test]
fn bindgen_test_layout__alpm_event_hook_run_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_hook_run_t>(),
        40usize,
        concat!("Size of: ", stringify!(_alpm_event_hook_run_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_hook_run_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_hook_run_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_run_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_run_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_run_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_run_t),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_desc() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_run_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).desc) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_run_t),
                "::",
                stringify!(desc)
            )
        );
    }
    test_field_desc();
    fn test_field_position() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_run_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).position) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_run_t),
                "::",
                stringify!(position)
            )
        );
    }
    test_field_position();
    fn test_field_total() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_hook_run_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).total) as usize - ptr as usize
            },
            32usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_hook_run_t),
                "::",
                stringify!(total)
            )
        );
    }
    test_field_total();
}
#[doc = " A pre/post transaction hook was ran."]
pub type alpm_event_hook_run_t = _alpm_event_hook_run_t;
#[doc = " Packages downloading about to start."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_event_pkg_retrieve_t {
    #[doc = " Type of event"]
    pub type_: alpm_event_type_t,
    #[doc = " Number of packages to download"]
    pub num: usize,
    #[doc = " Total size of packages to download"]
    pub total_size: off_t,
}
#[test]
fn bindgen_test_layout__alpm_event_pkg_retrieve_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_pkg_retrieve_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_event_pkg_retrieve_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_pkg_retrieve_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_pkg_retrieve_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pkg_retrieve_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pkg_retrieve_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_num() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pkg_retrieve_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pkg_retrieve_t),
                "::",
                stringify!(num)
            )
        );
    }
    test_field_num();
    fn test_field_total_size() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_pkg_retrieve_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).total_size) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_pkg_retrieve_t),
                "::",
                stringify!(total_size)
            )
        );
    }
    test_field_total_size();
}
#[doc = " Packages downloading about to start."]
pub type alpm_event_pkg_retrieve_t = _alpm_event_pkg_retrieve_t;
#[doc = " Events."]
#[doc = " This is a union passed to the callback that allows the frontend to know"]
#[doc = " which type of event was triggered (via type). It is then possible to"]
#[doc = " typecast the pointer to the right structure, or use the union field, in order"]
#[doc = " to access event-specific data."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union _alpm_event_t {
    #[doc = " Type of event it's always safe to access this."]
    pub type_: alpm_event_type_t,
    #[doc = " The any event type. It's always safe to access this."]
    pub any: alpm_event_any_t,
    #[doc = " Package operation"]
    pub package_operation: alpm_event_package_operation_t,
    #[doc = " An optdept was remove"]
    pub optdep_removal: alpm_event_optdep_removal_t,
    #[doc = " A scriptlet was ran"]
    pub scriptlet_info: alpm_event_scriptlet_info_t,
    #[doc = " A database is missing"]
    pub database_missing: alpm_event_database_missing_t,
    #[doc = " A package was downloaded"]
    pub pkgdownload: alpm_event_pkgdownload_t,
    #[doc = " A pacnew file was created"]
    pub pacnew_created: alpm_event_pacnew_created_t,
    #[doc = " A pacsave file was created"]
    pub pacsave_created: alpm_event_pacsave_created_t,
    #[doc = " Pre/post transaction hooks are being ran"]
    pub hook: alpm_event_hook_t,
    #[doc = " A hook was ran"]
    pub hook_run: alpm_event_hook_run_t,
    #[doc = " Download packages"]
    pub pkg_retrieve: alpm_event_pkg_retrieve_t,
}
#[test]
fn bindgen_test_layout__alpm_event_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_event_t>(),
        40usize,
        concat!("Size of: ", stringify!(_alpm_event_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_event_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_event_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_any() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).any) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(any)
            )
        );
    }
    test_field_any();
    fn test_field_package_operation() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).package_operation) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(package_operation)
            )
        );
    }
    test_field_package_operation();
    fn test_field_optdep_removal() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).optdep_removal) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(optdep_removal)
            )
        );
    }
    test_field_optdep_removal();
    fn test_field_scriptlet_info() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).scriptlet_info) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(scriptlet_info)
            )
        );
    }
    test_field_scriptlet_info();
    fn test_field_database_missing() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).database_missing) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(database_missing)
            )
        );
    }
    test_field_database_missing();
    fn test_field_pkgdownload() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pkgdownload) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(pkgdownload)
            )
        );
    }
    test_field_pkgdownload();
    fn test_field_pacnew_created() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pacnew_created) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(pacnew_created)
            )
        );
    }
    test_field_pacnew_created();
    fn test_field_pacsave_created() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pacsave_created) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(pacsave_created)
            )
        );
    }
    test_field_pacsave_created();
    fn test_field_hook() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).hook) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(hook)
            )
        );
    }
    test_field_hook();
    fn test_field_hook_run() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).hook_run) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(hook_run)
            )
        );
    }
    test_field_hook_run();
    fn test_field_pkg_retrieve() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_event_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pkg_retrieve) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_event_t),
                "::",
                stringify!(pkg_retrieve)
            )
        );
    }
    test_field_pkg_retrieve();
}
#[doc = " Events."]
#[doc = " This is a union passed to the callback that allows the frontend to know"]
#[doc = " which type of event was triggered (via type). It is then possible to"]
#[doc = " typecast the pointer to the right structure, or use the union field, in order"]
#[doc = " to access event-specific data."]
pub type alpm_event_t = _alpm_event_t;
#[doc = " Event callback."]
#[doc = ""]
#[doc = " Called when an event occurs"]
#[doc = " @param ctx user-provided context"]
#[doc = " @param event the event that occurred"]
pub type alpm_cb_event = ::std::option::Option<
    unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void, arg1: *mut alpm_event_t),
>;
pub mod _alpm_question_type_t {
    #[doc = " Type of question."]
    #[doc = " Unlike the events or progress enumerations, this enum has bitmask values"]
    #[doc = " so a frontend can use a bitmask map to supply preselected answers to the"]
    #[doc = " different types of questions."]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " Should target in ignorepkg be installed anyway?"]
    pub const ALPM_QUESTION_INSTALL_IGNOREPKG: Type = 1;
    #[doc = " Should a package be replaced?"]
    pub const ALPM_QUESTION_REPLACE_PKG: Type = 2;
    #[doc = " Should a conflicting package be removed?"]
    pub const ALPM_QUESTION_CONFLICT_PKG: Type = 4;
    #[doc = " Should a corrupted package be deleted?"]
    pub const ALPM_QUESTION_CORRUPTED_PKG: Type = 8;
    #[doc = " Should unresolvable targets be removed from the transaction?"]
    pub const ALPM_QUESTION_REMOVE_PKGS: Type = 16;
    #[doc = " Provider selection"]
    pub const ALPM_QUESTION_SELECT_PROVIDER: Type = 32;
    #[doc = " Should a key be imported?"]
    pub const ALPM_QUESTION_IMPORT_KEY: Type = 64;
}
#[doc = " Type of question."]
#[doc = " Unlike the events or progress enumerations, this enum has bitmask values"]
#[doc = " so a frontend can use a bitmask map to supply preselected answers to the"]
#[doc = " different types of questions."]
pub use self::_alpm_question_type_t::Type as alpm_question_type_t;
#[doc = " A question that can represent any other question."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_any_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer"]
    pub answer: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__alpm_question_any_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_any_t>(),
        8usize,
        concat!("Size of: ", stringify!(_alpm_question_any_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_any_t>(),
        4usize,
        concat!("Alignment of ", stringify!(_alpm_question_any_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_any_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_any_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_answer() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_any_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).answer) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_any_t),
                "::",
                stringify!(answer)
            )
        );
    }
    test_field_answer();
}
#[doc = " A question that can represent any other question."]
pub type alpm_question_any_t = _alpm_question_any_t;
#[doc = " Should target in ignorepkg be installed anyway?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_install_ignorepkg_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to install pkg anyway"]
    pub install: ::std::os::raw::c_int,
    #[doc = " The ignored package that we are deciding whether to install"]
    pub pkg: *mut alpm_pkg_t,
}
#[test]
fn bindgen_test_layout__alpm_question_install_ignorepkg_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_install_ignorepkg_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_question_install_ignorepkg_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_install_ignorepkg_t>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(_alpm_question_install_ignorepkg_t)
        )
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit =
                    ::std::mem::MaybeUninit::<_alpm_question_install_ignorepkg_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_install_ignorepkg_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_install() {
        assert_eq!(
            unsafe {
                let uninit =
                    ::std::mem::MaybeUninit::<_alpm_question_install_ignorepkg_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).install) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_install_ignorepkg_t),
                "::",
                stringify!(install)
            )
        );
    }
    test_field_install();
    fn test_field_pkg() {
        assert_eq!(
            unsafe {
                let uninit =
                    ::std::mem::MaybeUninit::<_alpm_question_install_ignorepkg_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).pkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_install_ignorepkg_t),
                "::",
                stringify!(pkg)
            )
        );
    }
    test_field_pkg();
}
#[doc = " Should target in ignorepkg be installed anyway?"]
pub type alpm_question_install_ignorepkg_t = _alpm_question_install_ignorepkg_t;
#[doc = " Should a package be replaced?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_replace_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to replace oldpkg with newpkg"]
    pub replace: ::std::os::raw::c_int,
    #[doc = " Package to be replaced"]
    pub oldpkg: *mut alpm_pkg_t,
    #[doc = " Package to replace with."]
    pub newpkg: *mut alpm_pkg_t,
    #[doc = " DB of newpkg"]
    pub newdb: *mut alpm_db_t,
}
#[test]
fn bindgen_test_layout__alpm_question_replace_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_replace_t>(),
        32usize,
        concat!("Size of: ", stringify!(_alpm_question_replace_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_replace_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_replace_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_replace_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_replace_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_replace() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_replace_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).replace) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_replace_t),
                "::",
                stringify!(replace)
            )
        );
    }
    test_field_replace();
    fn test_field_oldpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_replace_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).oldpkg) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_replace_t),
                "::",
                stringify!(oldpkg)
            )
        );
    }
    test_field_oldpkg();
    fn test_field_newpkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_replace_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).newpkg) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_replace_t),
                "::",
                stringify!(newpkg)
            )
        );
    }
    test_field_newpkg();
    fn test_field_newdb() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_replace_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).newdb) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_replace_t),
                "::",
                stringify!(newdb)
            )
        );
    }
    test_field_newdb();
}
#[doc = " Should a package be replaced?"]
pub type alpm_question_replace_t = _alpm_question_replace_t;
#[doc = " Should a conflicting package be removed?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_conflict_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to remove conflict->package2"]
    pub remove: ::std::os::raw::c_int,
    #[doc = " Conflict info"]
    pub conflict: *mut alpm_conflict_t,
}
#[test]
fn bindgen_test_layout__alpm_question_conflict_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_conflict_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_question_conflict_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_conflict_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_conflict_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_conflict_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_remove() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).remove) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_conflict_t),
                "::",
                stringify!(remove)
            )
        );
    }
    test_field_remove();
    fn test_field_conflict() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_conflict_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).conflict) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_conflict_t),
                "::",
                stringify!(conflict)
            )
        );
    }
    test_field_conflict();
}
#[doc = " Should a conflicting package be removed?"]
pub type alpm_question_conflict_t = _alpm_question_conflict_t;
#[doc = " Should a corrupted package be deleted?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_corrupted_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to remove filepath"]
    pub remove: ::std::os::raw::c_int,
    #[doc = " File to remove"]
    pub filepath: *const ::std::os::raw::c_char,
    #[doc = " Error code indicating the reason for package invalidity"]
    pub reason: alpm_errno_t,
}
#[test]
fn bindgen_test_layout__alpm_question_corrupted_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_corrupted_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_question_corrupted_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_corrupted_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_corrupted_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_corrupted_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_corrupted_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_remove() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_corrupted_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).remove) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_corrupted_t),
                "::",
                stringify!(remove)
            )
        );
    }
    test_field_remove();
    fn test_field_filepath() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_corrupted_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).filepath) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_corrupted_t),
                "::",
                stringify!(filepath)
            )
        );
    }
    test_field_filepath();
    fn test_field_reason() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_corrupted_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_corrupted_t),
                "::",
                stringify!(reason)
            )
        );
    }
    test_field_reason();
}
#[doc = " Should a corrupted package be deleted?"]
pub type alpm_question_corrupted_t = _alpm_question_corrupted_t;
#[doc = " Should unresolvable targets be removed from the transaction?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_remove_pkgs_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to skip packages"]
    pub skip: ::std::os::raw::c_int,
    #[doc = " List of alpm_pkg_t* with unresolved dependencies"]
    pub packages: *mut alpm_list_t,
}
#[test]
fn bindgen_test_layout__alpm_question_remove_pkgs_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_remove_pkgs_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_question_remove_pkgs_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_remove_pkgs_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_remove_pkgs_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_remove_pkgs_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_remove_pkgs_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_skip() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_remove_pkgs_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).skip) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_remove_pkgs_t),
                "::",
                stringify!(skip)
            )
        );
    }
    test_field_skip();
    fn test_field_packages() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_remove_pkgs_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).packages) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_remove_pkgs_t),
                "::",
                stringify!(packages)
            )
        );
    }
    test_field_packages();
}
#[doc = " Should unresolvable targets be removed from the transaction?"]
pub type alpm_question_remove_pkgs_t = _alpm_question_remove_pkgs_t;
#[doc = " Provider selection"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_select_provider_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: which provider to use (index from providers)"]
    pub use_index: ::std::os::raw::c_int,
    #[doc = " List of alpm_pkg_t* as possible providers"]
    pub providers: *mut alpm_list_t,
    #[doc = " What providers provide for"]
    pub depend: *mut alpm_depend_t,
}
#[test]
fn bindgen_test_layout__alpm_question_select_provider_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_select_provider_t>(),
        24usize,
        concat!("Size of: ", stringify!(_alpm_question_select_provider_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_select_provider_t>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(_alpm_question_select_provider_t)
        )
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_select_provider_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_select_provider_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_use_index() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_select_provider_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).use_index) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_select_provider_t),
                "::",
                stringify!(use_index)
            )
        );
    }
    test_field_use_index();
    fn test_field_providers() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_select_provider_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).providers) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_select_provider_t),
                "::",
                stringify!(providers)
            )
        );
    }
    test_field_providers();
    fn test_field_depend() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_select_provider_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).depend) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_select_provider_t),
                "::",
                stringify!(depend)
            )
        );
    }
    test_field_depend();
}
#[doc = " Provider selection"]
pub type alpm_question_select_provider_t = _alpm_question_select_provider_t;
#[doc = " Should a key be imported?"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_question_import_key_t {
    #[doc = " Type of question"]
    pub type_: alpm_question_type_t,
    #[doc = " Answer: whether or not to import key"]
    pub import: ::std::os::raw::c_int,
    #[doc = " The key to import"]
    pub key: *mut alpm_pgpkey_t,
}
#[test]
fn bindgen_test_layout__alpm_question_import_key_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_import_key_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_question_import_key_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_import_key_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_import_key_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_import_key_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_import_key_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_import() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_import_key_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).import) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_import_key_t),
                "::",
                stringify!(import)
            )
        );
    }
    test_field_import();
    fn test_field_key() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_import_key_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_import_key_t),
                "::",
                stringify!(key)
            )
        );
    }
    test_field_key();
}
#[doc = " Should a key be imported?"]
pub type alpm_question_import_key_t = _alpm_question_import_key_t;
#[doc = " Questions."]
#[doc = " This is an union passed to the callback that allows the frontend to know"]
#[doc = " which type of question was triggered (via type). It is then possible to"]
#[doc = " typecast the pointer to the right structure, or use the union field, in order"]
#[doc = " to access question-specific data."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union _alpm_question_t {
    #[doc = " The type of question. It's always safe to access this."]
    pub type_: alpm_question_type_t,
    #[doc = " A question that can represent any question."]
    #[doc = " It's always safe to access this."]
    pub any: alpm_question_any_t,
    #[doc = " Should target in ignorepkg be installed anyway?"]
    pub install_ignorepkg: alpm_question_install_ignorepkg_t,
    #[doc = " Should a package be replaced?"]
    pub replace: alpm_question_replace_t,
    #[doc = " Should a conflicting package be removed?"]
    pub conflict: alpm_question_conflict_t,
    #[doc = " Should a corrupted package be deleted?"]
    pub corrupted: alpm_question_corrupted_t,
    #[doc = " Should unresolvable targets be removed from the transaction?"]
    pub remove_pkgs: alpm_question_remove_pkgs_t,
    #[doc = " Provider selection"]
    pub select_provider: alpm_question_select_provider_t,
    #[doc = " Should a key be imported?"]
    pub import_key: alpm_question_import_key_t,
}
#[test]
fn bindgen_test_layout__alpm_question_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_question_t>(),
        32usize,
        concat!("Size of: ", stringify!(_alpm_question_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_question_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_question_t))
    );
    fn test_field_type() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(type_)
            )
        );
    }
    test_field_type();
    fn test_field_any() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).any) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(any)
            )
        );
    }
    test_field_any();
    fn test_field_install_ignorepkg() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).install_ignorepkg) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(install_ignorepkg)
            )
        );
    }
    test_field_install_ignorepkg();
    fn test_field_replace() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).replace) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(replace)
            )
        );
    }
    test_field_replace();
    fn test_field_conflict() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).conflict) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(conflict)
            )
        );
    }
    test_field_conflict();
    fn test_field_corrupted() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).corrupted) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(corrupted)
            )
        );
    }
    test_field_corrupted();
    fn test_field_remove_pkgs() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).remove_pkgs) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(remove_pkgs)
            )
        );
    }
    test_field_remove_pkgs();
    fn test_field_select_provider() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).select_provider) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(select_provider)
            )
        );
    }
    test_field_select_provider();
    fn test_field_import_key() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_question_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).import_key) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_question_t),
                "::",
                stringify!(import_key)
            )
        );
    }
    test_field_import_key();
}
#[doc = " Questions."]
#[doc = " This is an union passed to the callback that allows the frontend to know"]
#[doc = " which type of question was triggered (via type). It is then possible to"]
#[doc = " typecast the pointer to the right structure, or use the union field, in order"]
#[doc = " to access question-specific data."]
pub type alpm_question_t = _alpm_question_t;
#[doc = " Question callback."]
#[doc = ""]
#[doc = " This callback allows user to give input and decide what to do during certain events"]
#[doc = " @param ctx user-provided context"]
#[doc = " @param question the question being asked."]
pub type alpm_cb_question = ::std::option::Option<
    unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void, arg1: *mut alpm_question_t),
>;
#[repr(u32)]
#[doc = " An enum over different kinds of progress alerts."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_progress_t {
    #[doc = " Package install"]
    ALPM_PROGRESS_ADD_START = 0,
    #[doc = " Package upgrade"]
    ALPM_PROGRESS_UPGRADE_START = 1,
    #[doc = " Package downgrade"]
    ALPM_PROGRESS_DOWNGRADE_START = 2,
    #[doc = " Package reinstall"]
    ALPM_PROGRESS_REINSTALL_START = 3,
    #[doc = " Package removal"]
    ALPM_PROGRESS_REMOVE_START = 4,
    #[doc = " Conflict checking"]
    ALPM_PROGRESS_CONFLICTS_START = 5,
    #[doc = " Diskspace checking"]
    ALPM_PROGRESS_DISKSPACE_START = 6,
    #[doc = " Package Integrity checking"]
    ALPM_PROGRESS_INTEGRITY_START = 7,
    #[doc = " Loading packages from disk"]
    ALPM_PROGRESS_LOAD_START = 8,
    #[doc = " Checking signatures of packages"]
    ALPM_PROGRESS_KEYRING_START = 9,
}
#[doc = " An enum over different kinds of progress alerts."]
pub use self::_alpm_progress_t as alpm_progress_t;
#[doc = " Progress callback"]
#[doc = ""]
#[doc = " Alert the front end about the progress of certain events."]
#[doc = " Allows the implementation of loading bars for events that"]
#[doc = " make take a while to complete."]
#[doc = " @param ctx user-provided context"]
#[doc = " @param progress the kind of event that is progressing"]
#[doc = " @param pkg for package operations, the name of the package being operated on"]
#[doc = " @param percent the percent completion of the action"]
#[doc = " @param howmany the total amount of items in the action"]
#[doc = " @param current the current amount of items completed"]
pub type alpm_cb_progress = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut ::std::os::raw::c_void,
        progress: alpm_progress_t,
        pkg: *const ::std::os::raw::c_char,
        percent: ::std::os::raw::c_int,
        howmany: usize,
        current: usize,
    ),
>;
#[repr(u32)]
#[doc = " File download events."]
#[doc = " These events are reported by ALPM via download callback."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_download_event_type_t {
    #[doc = " A download was started"]
    ALPM_DOWNLOAD_INIT = 0,
    #[doc = " A download made progress"]
    ALPM_DOWNLOAD_PROGRESS = 1,
    #[doc = " Download will be retried"]
    ALPM_DOWNLOAD_RETRY = 2,
    #[doc = " A download completed"]
    ALPM_DOWNLOAD_COMPLETED = 3,
}
#[doc = " File download events."]
#[doc = " These events are reported by ALPM via download callback."]
pub use self::_alpm_download_event_type_t as alpm_download_event_type_t;
#[doc = " Context struct for when a download starts."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_download_event_init_t {
    #[doc = " whether this file is optional and thus the errors could be ignored"]
    pub optional: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__alpm_download_event_init_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_download_event_init_t>(),
        4usize,
        concat!("Size of: ", stringify!(_alpm_download_event_init_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_download_event_init_t>(),
        4usize,
        concat!("Alignment of ", stringify!(_alpm_download_event_init_t))
    );
    fn test_field_optional() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_init_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).optional) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_init_t),
                "::",
                stringify!(optional)
            )
        );
    }
    test_field_optional();
}
#[doc = " Context struct for when a download starts."]
pub type alpm_download_event_init_t = _alpm_download_event_init_t;
#[doc = " Context struct for when a download progresses."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_download_event_progress_t {
    #[doc = " Amount of data downloaded"]
    pub downloaded: off_t,
    #[doc = " Total amount need to be downloaded"]
    pub total: off_t,
}
#[test]
fn bindgen_test_layout__alpm_download_event_progress_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_download_event_progress_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_download_event_progress_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_download_event_progress_t>(),
        8usize,
        concat!("Alignment of ", stringify!(_alpm_download_event_progress_t))
    );
    fn test_field_downloaded() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_progress_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).downloaded) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_progress_t),
                "::",
                stringify!(downloaded)
            )
        );
    }
    test_field_downloaded();
    fn test_field_total() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_progress_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).total) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_progress_t),
                "::",
                stringify!(total)
            )
        );
    }
    test_field_total();
}
#[doc = " Context struct for when a download progresses."]
pub type alpm_download_event_progress_t = _alpm_download_event_progress_t;
#[doc = " Context struct for when a download retries."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_download_event_retry_t {
    #[doc = " If the download will resume or start over"]
    pub resume: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__alpm_download_event_retry_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_download_event_retry_t>(),
        4usize,
        concat!("Size of: ", stringify!(_alpm_download_event_retry_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_download_event_retry_t>(),
        4usize,
        concat!("Alignment of ", stringify!(_alpm_download_event_retry_t))
    );
    fn test_field_resume() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_retry_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).resume) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_retry_t),
                "::",
                stringify!(resume)
            )
        );
    }
    test_field_resume();
}
#[doc = " Context struct for when a download retries."]
pub type alpm_download_event_retry_t = _alpm_download_event_retry_t;
#[doc = " Context struct for when a download completes."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _alpm_download_event_completed_t {
    #[doc = " Total bytes in file"]
    pub total: off_t,
    #[doc = " download result code:"]
    #[doc = "    0 - download completed successfully"]
    #[doc = "    1 - the file is up-to-date"]
    #[doc = "   -1 - error"]
    pub result: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__alpm_download_event_completed_t() {
    assert_eq!(
        ::std::mem::size_of::<_alpm_download_event_completed_t>(),
        16usize,
        concat!("Size of: ", stringify!(_alpm_download_event_completed_t))
    );
    assert_eq!(
        ::std::mem::align_of::<_alpm_download_event_completed_t>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(_alpm_download_event_completed_t)
        )
    );
    fn test_field_total() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_completed_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).total) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_completed_t),
                "::",
                stringify!(total)
            )
        );
    }
    test_field_total();
    fn test_field_result() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_alpm_download_event_completed_t>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).result) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_alpm_download_event_completed_t),
                "::",
                stringify!(result)
            )
        );
    }
    test_field_result();
}
#[doc = " Context struct for when a download completes."]
pub type alpm_download_event_completed_t = _alpm_download_event_completed_t;
#[doc = " Type of download progress callbacks."]
#[doc = " @param ctx user-provided context"]
#[doc = " @param filename the name of the file being downloaded"]
#[doc = " @param event the event type"]
#[doc = " @param data the event data of type alpm_download_event_*_t"]
pub type alpm_cb_download = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
        event: alpm_download_event_type_t,
        data: *mut ::std::os::raw::c_void,
    ),
>;
#[doc = " A callback for downloading files"]
#[doc = " @param ctx user-provided context"]
#[doc = " @param url the URL of the file to be downloaded"]
#[doc = " @param localpath the directory to which the file should be downloaded"]
#[doc = " @param force whether to force an update, even if the file is the same"]
#[doc = " @return 0 on success, 1 if the file exists and is identical, -1 on"]
#[doc = " error."]
pub type alpm_cb_fetch = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut ::std::os::raw::c_void,
        url: *const ::std::os::raw::c_char,
        localpath: *const ::std::os::raw::c_char,
        force: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub mod _alpm_db_usage_t {
    #[doc = " The usage level of a database."]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " Enable refreshes for this database"]
    pub const ALPM_DB_USAGE_SYNC: Type = 1;
    #[doc = " Enable search for this database"]
    pub const ALPM_DB_USAGE_SEARCH: Type = 2;
    #[doc = " Enable installing packages from this database"]
    pub const ALPM_DB_USAGE_INSTALL: Type = 4;
    #[doc = " Enable sysupgrades with this database"]
    pub const ALPM_DB_USAGE_UPGRADE: Type = 8;
    #[doc = " Enable all usage levels"]
    pub const ALPM_DB_USAGE_ALL: Type = 15;
}
#[doc = " The usage level of a database."]
pub use self::_alpm_db_usage_t::Type as alpm_db_usage_t;
pub mod _alpm_loglevel_t {
    #[doc = " Logging Levels"]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " Error"]
    pub const ALPM_LOG_ERROR: Type = 1;
    #[doc = " Warning"]
    pub const ALPM_LOG_WARNING: Type = 2;
    #[doc = " Debug"]
    pub const ALPM_LOG_DEBUG: Type = 4;
    #[doc = " Function"]
    pub const ALPM_LOG_FUNCTION: Type = 8;
}
#[doc = " Logging Levels"]
pub use self::_alpm_loglevel_t::Type as alpm_loglevel_t;
#[doc = " The callback type for logging."]
#[doc = ""]
#[doc = " libalpm will call this function whenever something is to be logged."]
#[doc = " many libalpm will produce log output. Additionally any calls to \\link alpm_logaction"]
#[doc = " \\endlink will also call this callback."]
#[doc = " @param ctx user-provided context"]
#[doc = " @param level the currently set loglevel"]
#[doc = " @param fmt the printf like format string"]
#[doc = " @param args printf like arguments"]
pub type alpm_cb_log = ::std::option::Option<
    unsafe extern "C" fn(
        ctx: *mut ::std::os::raw::c_void,
        level: alpm_loglevel_t,
        fmt: *const ::std::os::raw::c_char,
        args: *mut __va_list_tag,
    ),
>;
#[repr(u32)]
#[doc = " Package install reasons."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_pkgreason_t {
    #[doc = " Explicitly requested by the user."]
    ALPM_PKG_REASON_EXPLICIT = 0,
    #[doc = " Installed as a dependency for another package."]
    ALPM_PKG_REASON_DEPEND = 1,
}
#[doc = " Package install reasons."]
pub use self::_alpm_pkgreason_t as alpm_pkgreason_t;
#[repr(u32)]
#[doc = " Location a package object was loaded from."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _alpm_pkgfrom_t {
    #[doc = " Loaded from a file via \\link alpm_pkg_load \\endlink"]
    ALPM_PKG_FROM_FILE = 1,
    #[doc = " From the local database"]
    ALPM_PKG_FROM_LOCALDB = 2,
    #[doc = " From a sync database"]
    ALPM_PKG_FROM_SYNCDB = 3,
}
#[doc = " Location a package object was loaded from."]
pub use self::_alpm_pkgfrom_t as alpm_pkgfrom_t;
pub mod _alpm_pkgvalidation_t {
    #[doc = " Method used to validate a package."]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " The package's validation type is unknown"]
    pub const ALPM_PKG_VALIDATION_UNKNOWN: Type = 0;
    #[doc = " The package does not have any validation"]
    pub const ALPM_PKG_VALIDATION_NONE: Type = 1;
    #[doc = " The package is validated with md5"]
    pub const ALPM_PKG_VALIDATION_MD5SUM: Type = 2;
    #[doc = " The package is validated with sha256"]
    pub const ALPM_PKG_VALIDATION_SHA256SUM: Type = 4;
    #[doc = " The package is validated with a PGP signature"]
    pub const ALPM_PKG_VALIDATION_SIGNATURE: Type = 8;
}
#[doc = " Method used to validate a package."]
pub use self::_alpm_pkgvalidation_t::Type as alpm_pkgvalidation_t;
pub mod _alpm_transflag_t {
    #[doc = " Transaction flags"]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " Ignore dependency checks."]
    pub const ALPM_TRANS_FLAG_NODEPS: Type = 1;
    #[doc = " Delete files even if they are tagged as backup."]
    pub const ALPM_TRANS_FLAG_NOSAVE: Type = 4;
    #[doc = " Ignore version numbers when checking dependencies."]
    pub const ALPM_TRANS_FLAG_NODEPVERSION: Type = 8;
    #[doc = " Remove also any packages depending on a package being removed."]
    pub const ALPM_TRANS_FLAG_CASCADE: Type = 16;
    #[doc = " Remove packages and their unneeded deps (not explicitly installed)."]
    pub const ALPM_TRANS_FLAG_RECURSE: Type = 32;
    #[doc = " Modify database but do not commit changes to the filesystem."]
    pub const ALPM_TRANS_FLAG_DBONLY: Type = 64;
    #[doc = " Use ALPM_PKG_REASON_DEPEND when installing packages."]
    pub const ALPM_TRANS_FLAG_ALLDEPS: Type = 256;
    #[doc = " Only download packages and do not actually install."]
    pub const ALPM_TRANS_FLAG_DOWNLOADONLY: Type = 512;
    #[doc = " Do not execute install scriptlets after installing."]
    pub const ALPM_TRANS_FLAG_NOSCRIPTLET: Type = 1024;
    #[doc = " Ignore dependency conflicts."]
    pub const ALPM_TRANS_FLAG_NOCONFLICTS: Type = 2048;
    #[doc = " Do not install a package if it is already installed and up to date."]
    pub const ALPM_TRANS_FLAG_NEEDED: Type = 8192;
    #[doc = " Use ALPM_PKG_REASON_EXPLICIT when installing packages."]
    pub const ALPM_TRANS_FLAG_ALLEXPLICIT: Type = 16384;
    #[doc = " Do not remove a package if it is needed by another one."]
    pub const ALPM_TRANS_FLAG_UNNEEDED: Type = 32768;
    #[doc = " Remove also explicitly installed unneeded deps (use with ALPM_TRANS_FLAG_RECURSE)."]
    pub const ALPM_TRANS_FLAG_RECURSEALL: Type = 65536;
    #[doc = " Do not lock the database during the operation."]
    pub const ALPM_TRANS_FLAG_NOLOCK: Type = 131072;
}
#[doc = " Transaction flags"]
pub use self::_alpm_transflag_t::Type as alpm_transflag_t;
pub mod alpm_caps {
    #[doc = " Enum of possible compile time features"]
    pub type Type = ::std::os::raw::c_uint;
    #[doc = " localization"]
    pub const ALPM_CAPABILITY_NLS: Type = 1;
    #[doc = " Ability to download"]
    pub const ALPM_CAPABILITY_DOWNLOADER: Type = 2;
    #[doc = " Signature checking"]
    pub const ALPM_CAPABILITY_SIGNATURES: Type = 4;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
    assert_eq!(
        ::std::mem::size_of::<__va_list_tag>(),
        24usize,
        concat!("Size of: ", stringify!(__va_list_tag))
    );
    assert_eq!(
        ::std::mem::align_of::<__va_list_tag>(),
        8usize,
        concat!("Alignment of ", stringify!(__va_list_tag))
    );
    fn test_field_gp_offset() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__va_list_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(__va_list_tag),
                "::",
                stringify!(gp_offset)
            )
        );
    }
    test_field_gp_offset();
    fn test_field_fp_offset() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__va_list_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize
            },
            4usize,
            concat!(
                "Offset of field: ",
                stringify!(__va_list_tag),
                "::",
                stringify!(fp_offset)
            )
        );
    }
    test_field_fp_offset();
    fn test_field_overflow_arg_area() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__va_list_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(__va_list_tag),
                "::",
                stringify!(overflow_arg_area)
            )
        );
    }
    test_field_overflow_arg_area();
    fn test_field_reg_save_area() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<__va_list_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(__va_list_tag),
                "::",
                stringify!(reg_save_area)
            )
        );
    }
    test_field_reg_save_area();
}
extern crate libloading;
pub struct libalpm {
    __library: ::libloading::Library,
    pub alpm_list_free: unsafe extern "C" fn(list: *mut alpm_list_t),
    pub alpm_list_free_inner: unsafe extern "C" fn(list: *mut alpm_list_t, fn_: alpm_list_fn_free),
    pub alpm_list_add: unsafe extern "C" fn(
        list: *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t,
    pub alpm_list_append: unsafe extern "C" fn(
        list: *mut *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t,
    pub alpm_list_append_strdup: unsafe extern "C" fn(
        list: *mut *mut alpm_list_t,
        data: *const ::std::os::raw::c_char,
    ) -> *mut alpm_list_t,
    pub alpm_list_add_sorted: unsafe extern "C" fn(
        list: *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t,
    pub alpm_list_join:
        unsafe extern "C" fn(first: *mut alpm_list_t, second: *mut alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_mmerge: unsafe extern "C" fn(
        left: *mut alpm_list_t,
        right: *mut alpm_list_t,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t,
    pub alpm_list_msort: unsafe extern "C" fn(
        list: *mut alpm_list_t,
        n: usize,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t,
    pub alpm_list_remove_item: unsafe extern "C" fn(
        haystack: *mut alpm_list_t,
        item: *mut alpm_list_t,
    ) -> *mut alpm_list_t,
    pub alpm_list_remove: unsafe extern "C" fn(
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
        data: *mut *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t,
    pub alpm_list_remove_str: unsafe extern "C" fn(
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_char,
        data: *mut *mut ::std::os::raw::c_char,
    ) -> *mut alpm_list_t,
    pub alpm_list_remove_dupes: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_strdup: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_copy: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_copy_data:
        unsafe extern "C" fn(list: *const alpm_list_t, size: usize) -> *mut alpm_list_t,
    pub alpm_list_reverse: unsafe extern "C" fn(list: *mut alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_nth: unsafe extern "C" fn(list: *const alpm_list_t, n: usize) -> *mut alpm_list_t,
    pub alpm_list_next: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_previous: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_last: unsafe extern "C" fn(list: *const alpm_list_t) -> *mut alpm_list_t,
    pub alpm_list_count: unsafe extern "C" fn(list: *const alpm_list_t) -> usize,
    pub alpm_list_find: unsafe extern "C" fn(
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
    ) -> *mut ::std::os::raw::c_void,
    pub alpm_list_find_ptr: unsafe extern "C" fn(
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void,
    pub alpm_list_find_str: unsafe extern "C" fn(
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char,
    pub alpm_list_diff_sorted: unsafe extern "C" fn(
        left: *const alpm_list_t,
        right: *const alpm_list_t,
        fn_: alpm_list_fn_cmp,
        onlyleft: *mut *mut alpm_list_t,
        onlyright: *mut *mut alpm_list_t,
    ),
    pub alpm_list_diff: unsafe extern "C" fn(
        lhs: *const alpm_list_t,
        rhs: *const alpm_list_t,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t,
    pub alpm_list_to_array: unsafe extern "C" fn(
        list: *const alpm_list_t,
        n: usize,
        size: usize,
    ) -> *mut ::std::os::raw::c_void,
    pub alpm_filelist_contains: unsafe extern "C" fn(
        filelist: *mut alpm_filelist_t,
        path: *const ::std::os::raw::c_char,
    ) -> *mut alpm_file_t,
    pub alpm_find_group_pkgs: unsafe extern "C" fn(
        dbs: *mut alpm_list_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_list_t,
    pub alpm_errno: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_errno_t,
    pub alpm_strerror: unsafe extern "C" fn(err: alpm_errno_t) -> *const ::std::os::raw::c_char,
    pub alpm_initialize: unsafe extern "C" fn(
        root: *const ::std::os::raw::c_char,
        dbpath: *const ::std::os::raw::c_char,
        err: *mut alpm_errno_t,
    ) -> *mut alpm_handle_t,
    pub alpm_release: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_pkg_check_pgp_signature: unsafe extern "C" fn(
        pkg: *mut alpm_pkg_t,
        siglist: *mut alpm_siglist_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_check_pgp_signature: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        siglist: *mut alpm_siglist_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_siglist_cleanup:
        unsafe extern "C" fn(siglist: *mut alpm_siglist_t) -> ::std::os::raw::c_int,
    pub alpm_decode_signature: unsafe extern "C" fn(
        base64_data: *const ::std::os::raw::c_char,
        data: *mut *mut ::std::os::raw::c_uchar,
        data_len: *mut usize,
    ) -> ::std::os::raw::c_int,
    pub alpm_extract_keyid: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        identifier: *const ::std::os::raw::c_char,
        sig: *const ::std::os::raw::c_uchar,
        len: usize,
        keys: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_checkdeps: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkglist: *mut alpm_list_t,
        remove: *mut alpm_list_t,
        upgrade: *mut alpm_list_t,
        reversedeps: ::std::os::raw::c_int,
    ) -> *mut alpm_list_t,
    pub alpm_find_satisfier: unsafe extern "C" fn(
        pkgs: *mut alpm_list_t,
        depstring: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t,
    pub alpm_find_dbs_satisfier: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        dbs: *mut alpm_list_t,
        depstring: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t,
    pub alpm_checkconflicts: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkglist: *mut alpm_list_t,
    ) -> *mut alpm_list_t,
    pub alpm_dep_compute_string:
        unsafe extern "C" fn(dep: *const alpm_depend_t) -> *mut ::std::os::raw::c_char,
    pub alpm_dep_from_string:
        unsafe extern "C" fn(depstring: *const ::std::os::raw::c_char) -> *mut alpm_depend_t,
    pub alpm_dep_free: unsafe extern "C" fn(dep: *mut alpm_depend_t),
    pub alpm_fileconflict_free: unsafe extern "C" fn(conflict: *mut alpm_fileconflict_t),
    pub alpm_depmissing_free: unsafe extern "C" fn(miss: *mut alpm_depmissing_t),
    pub alpm_conflict_free: unsafe extern "C" fn(conflict: *mut alpm_conflict_t),
    pub alpm_get_localdb: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_db_t,
    pub alpm_get_syncdbs: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_register_syncdb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        treename: *const ::std::os::raw::c_char,
        level: ::std::os::raw::c_int,
    ) -> *mut alpm_db_t,
    pub alpm_unregister_all_syncdbs:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_db_unregister: unsafe extern "C" fn(db: *mut alpm_db_t) -> ::std::os::raw::c_int,
    pub alpm_db_get_name:
        unsafe extern "C" fn(db: *const alpm_db_t) -> *const ::std::os::raw::c_char,
    pub alpm_db_get_siglevel: unsafe extern "C" fn(db: *mut alpm_db_t) -> ::std::os::raw::c_int,
    pub alpm_db_get_valid: unsafe extern "C" fn(db: *mut alpm_db_t) -> ::std::os::raw::c_int,
    pub alpm_db_get_servers: unsafe extern "C" fn(db: *const alpm_db_t) -> *mut alpm_list_t,
    pub alpm_db_set_servers: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        servers: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_add_server: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        url: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_remove_server: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        url: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_update: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        dbs: *mut alpm_list_t,
        force: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_get_pkg: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t,
    pub alpm_db_get_pkgcache: unsafe extern "C" fn(db: *mut alpm_db_t) -> *mut alpm_list_t,
    pub alpm_db_get_group: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_group_t,
    pub alpm_db_get_groupcache: unsafe extern "C" fn(db: *mut alpm_db_t) -> *mut alpm_list_t,
    pub alpm_db_search: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        needles: *const alpm_list_t,
        ret: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_set_usage: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        usage: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_db_get_usage: unsafe extern "C" fn(
        db: *mut alpm_db_t,
        usage: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_logaction: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        prefix: *const ::std::os::raw::c_char,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_logcb: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_log,
    pub alpm_option_get_logcb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_logcb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_log,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_dlcb: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_download,
    pub alpm_option_get_dlcb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_dlcb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_download,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_fetchcb: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_fetch,
    pub alpm_option_get_fetchcb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_fetchcb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_fetch,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_eventcb: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_event,
    pub alpm_option_get_eventcb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_eventcb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_event,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_questioncb:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_question,
    pub alpm_option_get_questioncb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_questioncb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_question,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_progresscb:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> alpm_cb_progress,
    pub alpm_option_get_progresscb_ctx:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut ::std::os::raw::c_void,
    pub alpm_option_set_progresscb: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cb: alpm_cb_progress,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_root:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_get_dbpath:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_get_lockfile:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_get_cachedirs:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_set_cachedirs: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cachedirs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_add_cachedir: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cachedir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_cachedir: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        cachedir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_hookdirs:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_set_hookdirs: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        hookdirs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_add_hookdir: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        hookdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_hookdir: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        hookdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_overwrite_files:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_set_overwrite_files: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        globs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_add_overwrite_file: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        glob: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_overwrite_file: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        glob: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_logfile:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_set_logfile: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        logfile: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_gpgdir:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_set_gpgdir: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        gpgdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_usesyslog:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_usesyslog: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        usesyslog: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_noupgrades:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_noupgrade: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_noupgrades: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        noupgrade: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_noupgrade: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_match_noupgrade: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_noextracts:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_noextract: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_noextracts: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        noextract: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_noextract: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_match_noextract: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_ignorepkgs:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_ignorepkg: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkg: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_ignorepkgs: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        ignorepkgs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_ignorepkg: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkg: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_ignoregroups:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_ignoregroup: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        grp: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_ignoregroups: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        ignoregrps: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_ignoregroup: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        grp: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_assumeinstalled:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_assumeinstalled: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        dep: *const alpm_depend_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_assumeinstalled: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        deps: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_assumeinstalled: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        dep: *const alpm_depend_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_architectures:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_option_add_architecture: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        arch: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_architectures: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        arches: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_remove_architecture: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        arch: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_checkspace:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_checkspace: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        checkspace: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_dbext:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *const ::std::os::raw::c_char,
    pub alpm_option_set_dbext: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        dbext: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_default_siglevel:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_default_siglevel: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_local_file_siglevel:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_local_file_siglevel: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_remote_file_siglevel:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_remote_file_siglevel: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_set_disable_dl_timeout: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        disable_dl_timeout: ::std::os::raw::c_ushort,
    ) -> ::std::os::raw::c_int,
    pub alpm_option_get_parallel_downloads:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_option_set_parallel_downloads: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        num_streams: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_load: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        filename: *const ::std::os::raw::c_char,
        full: ::std::os::raw::c_int,
        level: ::std::os::raw::c_int,
        pkg: *mut *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_fetch_pkgurl: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        urls: *const alpm_list_t,
        fetched: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_find: unsafe extern "C" fn(
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t,
    pub alpm_pkg_free: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int,
    pub alpm_pkg_checkmd5sum: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int,
    pub alpm_pkg_vercmp: unsafe extern "C" fn(
        a: *const ::std::os::raw::c_char,
        b: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_compute_requiredby: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_compute_optionalfor:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_should_ignore: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_get_filename:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_base:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_name:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_version:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_origin: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> alpm_pkgfrom_t,
    pub alpm_pkg_get_desc:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_url:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_builddate: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> alpm_time_t,
    pub alpm_pkg_get_installdate: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> alpm_time_t,
    pub alpm_pkg_get_packager:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_md5sum:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_sha256sum:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_arch:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_size: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> off_t,
    pub alpm_pkg_get_isize: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> off_t,
    pub alpm_pkg_get_reason: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> alpm_pkgreason_t,
    pub alpm_pkg_get_licenses: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_groups: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_depends: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_optdepends: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_checkdepends: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_makedepends: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_conflicts: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_provides: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_replaces: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_files: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_filelist_t,
    pub alpm_pkg_get_backup: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_list_t,
    pub alpm_pkg_get_db: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut alpm_db_t,
    pub alpm_pkg_get_base64_sig:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char,
    pub alpm_pkg_get_sig: unsafe extern "C" fn(
        pkg: *mut alpm_pkg_t,
        sig: *mut *mut ::std::os::raw::c_uchar,
        sig_len: *mut usize,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_get_validation:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int,
    pub alpm_pkg_has_scriptlet: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int,
    pub alpm_pkg_download_size: unsafe extern "C" fn(newpkg: *mut alpm_pkg_t) -> off_t,
    pub alpm_pkg_set_reason: unsafe extern "C" fn(
        pkg: *mut alpm_pkg_t,
        reason: alpm_pkgreason_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_changelog_open:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut ::std::os::raw::c_void,
    pub alpm_pkg_changelog_read: unsafe extern "C" fn(
        ptr: *mut ::std::os::raw::c_void,
        size: usize,
        pkg: *const alpm_pkg_t,
        fp: *mut ::std::os::raw::c_void,
    ) -> usize,
    pub alpm_pkg_changelog_close: unsafe extern "C" fn(
        pkg: *const alpm_pkg_t,
        fp: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_mtree_open: unsafe extern "C" fn(pkg: *mut alpm_pkg_t) -> *mut archive,
    pub alpm_pkg_mtree_next: unsafe extern "C" fn(
        pkg: *const alpm_pkg_t,
        archive: *mut archive,
        entry: *mut *mut archive_entry,
    ) -> ::std::os::raw::c_int,
    pub alpm_pkg_mtree_close: unsafe extern "C" fn(
        pkg: *const alpm_pkg_t,
        archive: *mut archive,
    ) -> ::std::os::raw::c_int,
    pub alpm_trans_get_flags:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_trans_get_add: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_trans_get_remove: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> *mut alpm_list_t,
    pub alpm_trans_init: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_trans_prepare: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        data: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_trans_commit: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        data: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_trans_interrupt:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_trans_release:
        unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_sync_sysupgrade: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        enable_downgrade: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
    pub alpm_add_pkg: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_remove_pkg: unsafe extern "C" fn(
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int,
    pub alpm_sync_get_new_version:
        unsafe extern "C" fn(pkg: *mut alpm_pkg_t, dbs_sync: *mut alpm_list_t) -> *mut alpm_pkg_t,
    pub alpm_compute_md5sum: unsafe extern "C" fn(
        filename: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char,
    pub alpm_compute_sha256sum: unsafe extern "C" fn(
        filename: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char,
    pub alpm_unlock: unsafe extern "C" fn(handle: *mut alpm_handle_t) -> ::std::os::raw::c_int,
    pub alpm_version: unsafe extern "C" fn() -> *const ::std::os::raw::c_char,
    pub alpm_capabilities: unsafe extern "C" fn() -> ::std::os::raw::c_int,
}
impl libalpm {
    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
    where
        P: AsRef<::std::ffi::OsStr>,
    {
        let library = ::libloading::Library::new(path)?;
        Self::from_library(library)
    }
    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
    where
        L: Into<::libloading::Library>,
    {
        let __library = library.into();
        let alpm_list_free = __library.get(b"alpm_list_free\0").map(|sym| *sym)?;
        let alpm_list_free_inner = __library.get(b"alpm_list_free_inner\0").map(|sym| *sym)?;
        let alpm_list_add = __library.get(b"alpm_list_add\0").map(|sym| *sym)?;
        let alpm_list_append = __library.get(b"alpm_list_append\0").map(|sym| *sym)?;
        let alpm_list_append_strdup = __library
            .get(b"alpm_list_append_strdup\0")
            .map(|sym| *sym)?;
        let alpm_list_add_sorted = __library.get(b"alpm_list_add_sorted\0").map(|sym| *sym)?;
        let alpm_list_join = __library.get(b"alpm_list_join\0").map(|sym| *sym)?;
        let alpm_list_mmerge = __library.get(b"alpm_list_mmerge\0").map(|sym| *sym)?;
        let alpm_list_msort = __library.get(b"alpm_list_msort\0").map(|sym| *sym)?;
        let alpm_list_remove_item = __library.get(b"alpm_list_remove_item\0").map(|sym| *sym)?;
        let alpm_list_remove = __library.get(b"alpm_list_remove\0").map(|sym| *sym)?;
        let alpm_list_remove_str = __library.get(b"alpm_list_remove_str\0").map(|sym| *sym)?;
        let alpm_list_remove_dupes = __library.get(b"alpm_list_remove_dupes\0").map(|sym| *sym)?;
        let alpm_list_strdup = __library.get(b"alpm_list_strdup\0").map(|sym| *sym)?;
        let alpm_list_copy = __library.get(b"alpm_list_copy\0").map(|sym| *sym)?;
        let alpm_list_copy_data = __library.get(b"alpm_list_copy_data\0").map(|sym| *sym)?;
        let alpm_list_reverse = __library.get(b"alpm_list_reverse\0").map(|sym| *sym)?;
        let alpm_list_nth = __library.get(b"alpm_list_nth\0").map(|sym| *sym)?;
        let alpm_list_next = __library.get(b"alpm_list_next\0").map(|sym| *sym)?;
        let alpm_list_previous = __library.get(b"alpm_list_previous\0").map(|sym| *sym)?;
        let alpm_list_last = __library.get(b"alpm_list_last\0").map(|sym| *sym)?;
        let alpm_list_count = __library.get(b"alpm_list_count\0").map(|sym| *sym)?;
        let alpm_list_find = __library.get(b"alpm_list_find\0").map(|sym| *sym)?;
        let alpm_list_find_ptr = __library.get(b"alpm_list_find_ptr\0").map(|sym| *sym)?;
        let alpm_list_find_str = __library.get(b"alpm_list_find_str\0").map(|sym| *sym)?;
        let alpm_list_diff_sorted = __library.get(b"alpm_list_diff_sorted\0").map(|sym| *sym)?;
        let alpm_list_diff = __library.get(b"alpm_list_diff\0").map(|sym| *sym)?;
        let alpm_list_to_array = __library.get(b"alpm_list_to_array\0").map(|sym| *sym)?;
        let alpm_filelist_contains = __library.get(b"alpm_filelist_contains\0").map(|sym| *sym)?;
        let alpm_find_group_pkgs = __library.get(b"alpm_find_group_pkgs\0").map(|sym| *sym)?;
        let alpm_errno = __library.get(b"alpm_errno\0").map(|sym| *sym)?;
        let alpm_strerror = __library.get(b"alpm_strerror\0").map(|sym| *sym)?;
        let alpm_initialize = __library.get(b"alpm_initialize\0").map(|sym| *sym)?;
        let alpm_release = __library.get(b"alpm_release\0").map(|sym| *sym)?;
        let alpm_pkg_check_pgp_signature = __library
            .get(b"alpm_pkg_check_pgp_signature\0")
            .map(|sym| *sym)?;
        let alpm_db_check_pgp_signature = __library
            .get(b"alpm_db_check_pgp_signature\0")
            .map(|sym| *sym)?;
        let alpm_siglist_cleanup = __library.get(b"alpm_siglist_cleanup\0").map(|sym| *sym)?;
        let alpm_decode_signature = __library.get(b"alpm_decode_signature\0").map(|sym| *sym)?;
        let alpm_extract_keyid = __library.get(b"alpm_extract_keyid\0").map(|sym| *sym)?;
        let alpm_checkdeps = __library.get(b"alpm_checkdeps\0").map(|sym| *sym)?;
        let alpm_find_satisfier = __library.get(b"alpm_find_satisfier\0").map(|sym| *sym)?;
        let alpm_find_dbs_satisfier = __library
            .get(b"alpm_find_dbs_satisfier\0")
            .map(|sym| *sym)?;
        let alpm_checkconflicts = __library.get(b"alpm_checkconflicts\0").map(|sym| *sym)?;
        let alpm_dep_compute_string = __library
            .get(b"alpm_dep_compute_string\0")
            .map(|sym| *sym)?;
        let alpm_dep_from_string = __library.get(b"alpm_dep_from_string\0").map(|sym| *sym)?;
        let alpm_dep_free = __library.get(b"alpm_dep_free\0").map(|sym| *sym)?;
        let alpm_fileconflict_free = __library.get(b"alpm_fileconflict_free\0").map(|sym| *sym)?;
        let alpm_depmissing_free = __library.get(b"alpm_depmissing_free\0").map(|sym| *sym)?;
        let alpm_conflict_free = __library.get(b"alpm_conflict_free\0").map(|sym| *sym)?;
        let alpm_get_localdb = __library.get(b"alpm_get_localdb\0").map(|sym| *sym)?;
        let alpm_get_syncdbs = __library.get(b"alpm_get_syncdbs\0").map(|sym| *sym)?;
        let alpm_register_syncdb = __library.get(b"alpm_register_syncdb\0").map(|sym| *sym)?;
        let alpm_unregister_all_syncdbs = __library
            .get(b"alpm_unregister_all_syncdbs\0")
            .map(|sym| *sym)?;
        let alpm_db_unregister = __library.get(b"alpm_db_unregister\0").map(|sym| *sym)?;
        let alpm_db_get_name = __library.get(b"alpm_db_get_name\0").map(|sym| *sym)?;
        let alpm_db_get_siglevel = __library.get(b"alpm_db_get_siglevel\0").map(|sym| *sym)?;
        let alpm_db_get_valid = __library.get(b"alpm_db_get_valid\0").map(|sym| *sym)?;
        let alpm_db_get_servers = __library.get(b"alpm_db_get_servers\0").map(|sym| *sym)?;
        let alpm_db_set_servers = __library.get(b"alpm_db_set_servers\0").map(|sym| *sym)?;
        let alpm_db_add_server = __library.get(b"alpm_db_add_server\0").map(|sym| *sym)?;
        let alpm_db_remove_server = __library.get(b"alpm_db_remove_server\0").map(|sym| *sym)?;
        let alpm_db_update = __library.get(b"alpm_db_update\0").map(|sym| *sym)?;
        let alpm_db_get_pkg = __library.get(b"alpm_db_get_pkg\0").map(|sym| *sym)?;
        let alpm_db_get_pkgcache = __library.get(b"alpm_db_get_pkgcache\0").map(|sym| *sym)?;
        let alpm_db_get_group = __library.get(b"alpm_db_get_group\0").map(|sym| *sym)?;
        let alpm_db_get_groupcache = __library.get(b"alpm_db_get_groupcache\0").map(|sym| *sym)?;
        let alpm_db_search = __library.get(b"alpm_db_search\0").map(|sym| *sym)?;
        let alpm_db_set_usage = __library.get(b"alpm_db_set_usage\0").map(|sym| *sym)?;
        let alpm_db_get_usage = __library.get(b"alpm_db_get_usage\0").map(|sym| *sym)?;
        let alpm_logaction = __library.get(b"alpm_logaction\0").map(|sym| *sym)?;
        let alpm_option_get_logcb = __library.get(b"alpm_option_get_logcb\0").map(|sym| *sym)?;
        let alpm_option_get_logcb_ctx = __library
            .get(b"alpm_option_get_logcb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_logcb = __library.get(b"alpm_option_set_logcb\0").map(|sym| *sym)?;
        let alpm_option_get_dlcb = __library.get(b"alpm_option_get_dlcb\0").map(|sym| *sym)?;
        let alpm_option_get_dlcb_ctx = __library
            .get(b"alpm_option_get_dlcb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_dlcb = __library.get(b"alpm_option_set_dlcb\0").map(|sym| *sym)?;
        let alpm_option_get_fetchcb = __library
            .get(b"alpm_option_get_fetchcb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_fetchcb_ctx = __library
            .get(b"alpm_option_get_fetchcb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_fetchcb = __library
            .get(b"alpm_option_set_fetchcb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_eventcb = __library
            .get(b"alpm_option_get_eventcb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_eventcb_ctx = __library
            .get(b"alpm_option_get_eventcb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_eventcb = __library
            .get(b"alpm_option_set_eventcb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_questioncb = __library
            .get(b"alpm_option_get_questioncb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_questioncb_ctx = __library
            .get(b"alpm_option_get_questioncb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_questioncb = __library
            .get(b"alpm_option_set_questioncb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_progresscb = __library
            .get(b"alpm_option_get_progresscb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_progresscb_ctx = __library
            .get(b"alpm_option_get_progresscb_ctx\0")
            .map(|sym| *sym)?;
        let alpm_option_set_progresscb = __library
            .get(b"alpm_option_set_progresscb\0")
            .map(|sym| *sym)?;
        let alpm_option_get_root = __library.get(b"alpm_option_get_root\0").map(|sym| *sym)?;
        let alpm_option_get_dbpath = __library.get(b"alpm_option_get_dbpath\0").map(|sym| *sym)?;
        let alpm_option_get_lockfile = __library
            .get(b"alpm_option_get_lockfile\0")
            .map(|sym| *sym)?;
        let alpm_option_get_cachedirs = __library
            .get(b"alpm_option_get_cachedirs\0")
            .map(|sym| *sym)?;
        let alpm_option_set_cachedirs = __library
            .get(b"alpm_option_set_cachedirs\0")
            .map(|sym| *sym)?;
        let alpm_option_add_cachedir = __library
            .get(b"alpm_option_add_cachedir\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_cachedir = __library
            .get(b"alpm_option_remove_cachedir\0")
            .map(|sym| *sym)?;
        let alpm_option_get_hookdirs = __library
            .get(b"alpm_option_get_hookdirs\0")
            .map(|sym| *sym)?;
        let alpm_option_set_hookdirs = __library
            .get(b"alpm_option_set_hookdirs\0")
            .map(|sym| *sym)?;
        let alpm_option_add_hookdir = __library
            .get(b"alpm_option_add_hookdir\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_hookdir = __library
            .get(b"alpm_option_remove_hookdir\0")
            .map(|sym| *sym)?;
        let alpm_option_get_overwrite_files = __library
            .get(b"alpm_option_get_overwrite_files\0")
            .map(|sym| *sym)?;
        let alpm_option_set_overwrite_files = __library
            .get(b"alpm_option_set_overwrite_files\0")
            .map(|sym| *sym)?;
        let alpm_option_add_overwrite_file = __library
            .get(b"alpm_option_add_overwrite_file\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_overwrite_file = __library
            .get(b"alpm_option_remove_overwrite_file\0")
            .map(|sym| *sym)?;
        let alpm_option_get_logfile = __library
            .get(b"alpm_option_get_logfile\0")
            .map(|sym| *sym)?;
        let alpm_option_set_logfile = __library
            .get(b"alpm_option_set_logfile\0")
            .map(|sym| *sym)?;
        let alpm_option_get_gpgdir = __library.get(b"alpm_option_get_gpgdir\0").map(|sym| *sym)?;
        let alpm_option_set_gpgdir = __library.get(b"alpm_option_set_gpgdir\0").map(|sym| *sym)?;
        let alpm_option_get_usesyslog = __library
            .get(b"alpm_option_get_usesyslog\0")
            .map(|sym| *sym)?;
        let alpm_option_set_usesyslog = __library
            .get(b"alpm_option_set_usesyslog\0")
            .map(|sym| *sym)?;
        let alpm_option_get_noupgrades = __library
            .get(b"alpm_option_get_noupgrades\0")
            .map(|sym| *sym)?;
        let alpm_option_add_noupgrade = __library
            .get(b"alpm_option_add_noupgrade\0")
            .map(|sym| *sym)?;
        let alpm_option_set_noupgrades = __library
            .get(b"alpm_option_set_noupgrades\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_noupgrade = __library
            .get(b"alpm_option_remove_noupgrade\0")
            .map(|sym| *sym)?;
        let alpm_option_match_noupgrade = __library
            .get(b"alpm_option_match_noupgrade\0")
            .map(|sym| *sym)?;
        let alpm_option_get_noextracts = __library
            .get(b"alpm_option_get_noextracts\0")
            .map(|sym| *sym)?;
        let alpm_option_add_noextract = __library
            .get(b"alpm_option_add_noextract\0")
            .map(|sym| *sym)?;
        let alpm_option_set_noextracts = __library
            .get(b"alpm_option_set_noextracts\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_noextract = __library
            .get(b"alpm_option_remove_noextract\0")
            .map(|sym| *sym)?;
        let alpm_option_match_noextract = __library
            .get(b"alpm_option_match_noextract\0")
            .map(|sym| *sym)?;
        let alpm_option_get_ignorepkgs = __library
            .get(b"alpm_option_get_ignorepkgs\0")
            .map(|sym| *sym)?;
        let alpm_option_add_ignorepkg = __library
            .get(b"alpm_option_add_ignorepkg\0")
            .map(|sym| *sym)?;
        let alpm_option_set_ignorepkgs = __library
            .get(b"alpm_option_set_ignorepkgs\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_ignorepkg = __library
            .get(b"alpm_option_remove_ignorepkg\0")
            .map(|sym| *sym)?;
        let alpm_option_get_ignoregroups = __library
            .get(b"alpm_option_get_ignoregroups\0")
            .map(|sym| *sym)?;
        let alpm_option_add_ignoregroup = __library
            .get(b"alpm_option_add_ignoregroup\0")
            .map(|sym| *sym)?;
        let alpm_option_set_ignoregroups = __library
            .get(b"alpm_option_set_ignoregroups\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_ignoregroup = __library
            .get(b"alpm_option_remove_ignoregroup\0")
            .map(|sym| *sym)?;
        let alpm_option_get_assumeinstalled = __library
            .get(b"alpm_option_get_assumeinstalled\0")
            .map(|sym| *sym)?;
        let alpm_option_add_assumeinstalled = __library
            .get(b"alpm_option_add_assumeinstalled\0")
            .map(|sym| *sym)?;
        let alpm_option_set_assumeinstalled = __library
            .get(b"alpm_option_set_assumeinstalled\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_assumeinstalled = __library
            .get(b"alpm_option_remove_assumeinstalled\0")
            .map(|sym| *sym)?;
        let alpm_option_get_architectures = __library
            .get(b"alpm_option_get_architectures\0")
            .map(|sym| *sym)?;
        let alpm_option_add_architecture = __library
            .get(b"alpm_option_add_architecture\0")
            .map(|sym| *sym)?;
        let alpm_option_set_architectures = __library
            .get(b"alpm_option_set_architectures\0")
            .map(|sym| *sym)?;
        let alpm_option_remove_architecture = __library
            .get(b"alpm_option_remove_architecture\0")
            .map(|sym| *sym)?;
        let alpm_option_get_checkspace = __library
            .get(b"alpm_option_get_checkspace\0")
            .map(|sym| *sym)?;
        let alpm_option_set_checkspace = __library
            .get(b"alpm_option_set_checkspace\0")
            .map(|sym| *sym)?;
        let alpm_option_get_dbext = __library.get(b"alpm_option_get_dbext\0").map(|sym| *sym)?;
        let alpm_option_set_dbext = __library.get(b"alpm_option_set_dbext\0").map(|sym| *sym)?;
        let alpm_option_get_default_siglevel = __library
            .get(b"alpm_option_get_default_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_set_default_siglevel = __library
            .get(b"alpm_option_set_default_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_get_local_file_siglevel = __library
            .get(b"alpm_option_get_local_file_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_set_local_file_siglevel = __library
            .get(b"alpm_option_set_local_file_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_get_remote_file_siglevel = __library
            .get(b"alpm_option_get_remote_file_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_set_remote_file_siglevel = __library
            .get(b"alpm_option_set_remote_file_siglevel\0")
            .map(|sym| *sym)?;
        let alpm_option_set_disable_dl_timeout = __library
            .get(b"alpm_option_set_disable_dl_timeout\0")
            .map(|sym| *sym)?;
        let alpm_option_get_parallel_downloads = __library
            .get(b"alpm_option_get_parallel_downloads\0")
            .map(|sym| *sym)?;
        let alpm_option_set_parallel_downloads = __library
            .get(b"alpm_option_set_parallel_downloads\0")
            .map(|sym| *sym)?;
        let alpm_pkg_load = __library.get(b"alpm_pkg_load\0").map(|sym| *sym)?;
        let alpm_fetch_pkgurl = __library.get(b"alpm_fetch_pkgurl\0").map(|sym| *sym)?;
        let alpm_pkg_find = __library.get(b"alpm_pkg_find\0").map(|sym| *sym)?;
        let alpm_pkg_free = __library.get(b"alpm_pkg_free\0").map(|sym| *sym)?;
        let alpm_pkg_checkmd5sum = __library.get(b"alpm_pkg_checkmd5sum\0").map(|sym| *sym)?;
        let alpm_pkg_vercmp = __library.get(b"alpm_pkg_vercmp\0").map(|sym| *sym)?;
        let alpm_pkg_compute_requiredby = __library
            .get(b"alpm_pkg_compute_requiredby\0")
            .map(|sym| *sym)?;
        let alpm_pkg_compute_optionalfor = __library
            .get(b"alpm_pkg_compute_optionalfor\0")
            .map(|sym| *sym)?;
        let alpm_pkg_should_ignore = __library.get(b"alpm_pkg_should_ignore\0").map(|sym| *sym)?;
        let alpm_pkg_get_filename = __library.get(b"alpm_pkg_get_filename\0").map(|sym| *sym)?;
        let alpm_pkg_get_base = __library.get(b"alpm_pkg_get_base\0").map(|sym| *sym)?;
        let alpm_pkg_get_name = __library.get(b"alpm_pkg_get_name\0").map(|sym| *sym)?;
        let alpm_pkg_get_version = __library.get(b"alpm_pkg_get_version\0").map(|sym| *sym)?;
        let alpm_pkg_get_origin = __library.get(b"alpm_pkg_get_origin\0").map(|sym| *sym)?;
        let alpm_pkg_get_desc = __library.get(b"alpm_pkg_get_desc\0").map(|sym| *sym)?;
        let alpm_pkg_get_url = __library.get(b"alpm_pkg_get_url\0").map(|sym| *sym)?;
        let alpm_pkg_get_builddate = __library.get(b"alpm_pkg_get_builddate\0").map(|sym| *sym)?;
        let alpm_pkg_get_installdate = __library
            .get(b"alpm_pkg_get_installdate\0")
            .map(|sym| *sym)?;
        let alpm_pkg_get_packager = __library.get(b"alpm_pkg_get_packager\0").map(|sym| *sym)?;
        let alpm_pkg_get_md5sum = __library.get(b"alpm_pkg_get_md5sum\0").map(|sym| *sym)?;
        let alpm_pkg_get_sha256sum = __library.get(b"alpm_pkg_get_sha256sum\0").map(|sym| *sym)?;
        let alpm_pkg_get_arch = __library.get(b"alpm_pkg_get_arch\0").map(|sym| *sym)?;
        let alpm_pkg_get_size = __library.get(b"alpm_pkg_get_size\0").map(|sym| *sym)?;
        let alpm_pkg_get_isize = __library.get(b"alpm_pkg_get_isize\0").map(|sym| *sym)?;
        let alpm_pkg_get_reason = __library.get(b"alpm_pkg_get_reason\0").map(|sym| *sym)?;
        let alpm_pkg_get_licenses = __library.get(b"alpm_pkg_get_licenses\0").map(|sym| *sym)?;
        let alpm_pkg_get_groups = __library.get(b"alpm_pkg_get_groups\0").map(|sym| *sym)?;
        let alpm_pkg_get_depends = __library.get(b"alpm_pkg_get_depends\0").map(|sym| *sym)?;
        let alpm_pkg_get_optdepends = __library
            .get(b"alpm_pkg_get_optdepends\0")
            .map(|sym| *sym)?;
        let alpm_pkg_get_checkdepends = __library
            .get(b"alpm_pkg_get_checkdepends\0")
            .map(|sym| *sym)?;
        let alpm_pkg_get_makedepends = __library
            .get(b"alpm_pkg_get_makedepends\0")
            .map(|sym| *sym)?;
        let alpm_pkg_get_conflicts = __library.get(b"alpm_pkg_get_conflicts\0").map(|sym| *sym)?;
        let alpm_pkg_get_provides = __library.get(b"alpm_pkg_get_provides\0").map(|sym| *sym)?;
        let alpm_pkg_get_replaces = __library.get(b"alpm_pkg_get_replaces\0").map(|sym| *sym)?;
        let alpm_pkg_get_files = __library.get(b"alpm_pkg_get_files\0").map(|sym| *sym)?;
        let alpm_pkg_get_backup = __library.get(b"alpm_pkg_get_backup\0").map(|sym| *sym)?;
        let alpm_pkg_get_db = __library.get(b"alpm_pkg_get_db\0").map(|sym| *sym)?;
        let alpm_pkg_get_base64_sig = __library
            .get(b"alpm_pkg_get_base64_sig\0")
            .map(|sym| *sym)?;
        let alpm_pkg_get_sig = __library.get(b"alpm_pkg_get_sig\0").map(|sym| *sym)?;
        let alpm_pkg_get_validation = __library
            .get(b"alpm_pkg_get_validation\0")
            .map(|sym| *sym)?;
        let alpm_pkg_has_scriptlet = __library.get(b"alpm_pkg_has_scriptlet\0").map(|sym| *sym)?;
        let alpm_pkg_download_size = __library.get(b"alpm_pkg_download_size\0").map(|sym| *sym)?;
        let alpm_pkg_set_reason = __library.get(b"alpm_pkg_set_reason\0").map(|sym| *sym)?;
        let alpm_pkg_changelog_open = __library
            .get(b"alpm_pkg_changelog_open\0")
            .map(|sym| *sym)?;
        let alpm_pkg_changelog_read = __library
            .get(b"alpm_pkg_changelog_read\0")
            .map(|sym| *sym)?;
        let alpm_pkg_changelog_close = __library
            .get(b"alpm_pkg_changelog_close\0")
            .map(|sym| *sym)?;
        let alpm_pkg_mtree_open = __library.get(b"alpm_pkg_mtree_open\0").map(|sym| *sym)?;
        let alpm_pkg_mtree_next = __library.get(b"alpm_pkg_mtree_next\0").map(|sym| *sym)?;
        let alpm_pkg_mtree_close = __library.get(b"alpm_pkg_mtree_close\0").map(|sym| *sym)?;
        let alpm_trans_get_flags = __library.get(b"alpm_trans_get_flags\0").map(|sym| *sym)?;
        let alpm_trans_get_add = __library.get(b"alpm_trans_get_add\0").map(|sym| *sym)?;
        let alpm_trans_get_remove = __library.get(b"alpm_trans_get_remove\0").map(|sym| *sym)?;
        let alpm_trans_init = __library.get(b"alpm_trans_init\0").map(|sym| *sym)?;
        let alpm_trans_prepare = __library.get(b"alpm_trans_prepare\0").map(|sym| *sym)?;
        let alpm_trans_commit = __library.get(b"alpm_trans_commit\0").map(|sym| *sym)?;
        let alpm_trans_interrupt = __library.get(b"alpm_trans_interrupt\0").map(|sym| *sym)?;
        let alpm_trans_release = __library.get(b"alpm_trans_release\0").map(|sym| *sym)?;
        let alpm_sync_sysupgrade = __library.get(b"alpm_sync_sysupgrade\0").map(|sym| *sym)?;
        let alpm_add_pkg = __library.get(b"alpm_add_pkg\0").map(|sym| *sym)?;
        let alpm_remove_pkg = __library.get(b"alpm_remove_pkg\0").map(|sym| *sym)?;
        let alpm_sync_get_new_version = __library
            .get(b"alpm_sync_get_new_version\0")
            .map(|sym| *sym)?;
        let alpm_compute_md5sum = __library.get(b"alpm_compute_md5sum\0").map(|sym| *sym)?;
        let alpm_compute_sha256sum = __library.get(b"alpm_compute_sha256sum\0").map(|sym| *sym)?;
        let alpm_unlock = __library.get(b"alpm_unlock\0").map(|sym| *sym)?;
        let alpm_version = __library.get(b"alpm_version\0").map(|sym| *sym)?;
        let alpm_capabilities = __library.get(b"alpm_capabilities\0").map(|sym| *sym)?;
        Ok(libalpm {
            __library,
            alpm_list_free,
            alpm_list_free_inner,
            alpm_list_add,
            alpm_list_append,
            alpm_list_append_strdup,
            alpm_list_add_sorted,
            alpm_list_join,
            alpm_list_mmerge,
            alpm_list_msort,
            alpm_list_remove_item,
            alpm_list_remove,
            alpm_list_remove_str,
            alpm_list_remove_dupes,
            alpm_list_strdup,
            alpm_list_copy,
            alpm_list_copy_data,
            alpm_list_reverse,
            alpm_list_nth,
            alpm_list_next,
            alpm_list_previous,
            alpm_list_last,
            alpm_list_count,
            alpm_list_find,
            alpm_list_find_ptr,
            alpm_list_find_str,
            alpm_list_diff_sorted,
            alpm_list_diff,
            alpm_list_to_array,
            alpm_filelist_contains,
            alpm_find_group_pkgs,
            alpm_errno,
            alpm_strerror,
            alpm_initialize,
            alpm_release,
            alpm_pkg_check_pgp_signature,
            alpm_db_check_pgp_signature,
            alpm_siglist_cleanup,
            alpm_decode_signature,
            alpm_extract_keyid,
            alpm_checkdeps,
            alpm_find_satisfier,
            alpm_find_dbs_satisfier,
            alpm_checkconflicts,
            alpm_dep_compute_string,
            alpm_dep_from_string,
            alpm_dep_free,
            alpm_fileconflict_free,
            alpm_depmissing_free,
            alpm_conflict_free,
            alpm_get_localdb,
            alpm_get_syncdbs,
            alpm_register_syncdb,
            alpm_unregister_all_syncdbs,
            alpm_db_unregister,
            alpm_db_get_name,
            alpm_db_get_siglevel,
            alpm_db_get_valid,
            alpm_db_get_servers,
            alpm_db_set_servers,
            alpm_db_add_server,
            alpm_db_remove_server,
            alpm_db_update,
            alpm_db_get_pkg,
            alpm_db_get_pkgcache,
            alpm_db_get_group,
            alpm_db_get_groupcache,
            alpm_db_search,
            alpm_db_set_usage,
            alpm_db_get_usage,
            alpm_logaction,
            alpm_option_get_logcb,
            alpm_option_get_logcb_ctx,
            alpm_option_set_logcb,
            alpm_option_get_dlcb,
            alpm_option_get_dlcb_ctx,
            alpm_option_set_dlcb,
            alpm_option_get_fetchcb,
            alpm_option_get_fetchcb_ctx,
            alpm_option_set_fetchcb,
            alpm_option_get_eventcb,
            alpm_option_get_eventcb_ctx,
            alpm_option_set_eventcb,
            alpm_option_get_questioncb,
            alpm_option_get_questioncb_ctx,
            alpm_option_set_questioncb,
            alpm_option_get_progresscb,
            alpm_option_get_progresscb_ctx,
            alpm_option_set_progresscb,
            alpm_option_get_root,
            alpm_option_get_dbpath,
            alpm_option_get_lockfile,
            alpm_option_get_cachedirs,
            alpm_option_set_cachedirs,
            alpm_option_add_cachedir,
            alpm_option_remove_cachedir,
            alpm_option_get_hookdirs,
            alpm_option_set_hookdirs,
            alpm_option_add_hookdir,
            alpm_option_remove_hookdir,
            alpm_option_get_overwrite_files,
            alpm_option_set_overwrite_files,
            alpm_option_add_overwrite_file,
            alpm_option_remove_overwrite_file,
            alpm_option_get_logfile,
            alpm_option_set_logfile,
            alpm_option_get_gpgdir,
            alpm_option_set_gpgdir,
            alpm_option_get_usesyslog,
            alpm_option_set_usesyslog,
            alpm_option_get_noupgrades,
            alpm_option_add_noupgrade,
            alpm_option_set_noupgrades,
            alpm_option_remove_noupgrade,
            alpm_option_match_noupgrade,
            alpm_option_get_noextracts,
            alpm_option_add_noextract,
            alpm_option_set_noextracts,
            alpm_option_remove_noextract,
            alpm_option_match_noextract,
            alpm_option_get_ignorepkgs,
            alpm_option_add_ignorepkg,
            alpm_option_set_ignorepkgs,
            alpm_option_remove_ignorepkg,
            alpm_option_get_ignoregroups,
            alpm_option_add_ignoregroup,
            alpm_option_set_ignoregroups,
            alpm_option_remove_ignoregroup,
            alpm_option_get_assumeinstalled,
            alpm_option_add_assumeinstalled,
            alpm_option_set_assumeinstalled,
            alpm_option_remove_assumeinstalled,
            alpm_option_get_architectures,
            alpm_option_add_architecture,
            alpm_option_set_architectures,
            alpm_option_remove_architecture,
            alpm_option_get_checkspace,
            alpm_option_set_checkspace,
            alpm_option_get_dbext,
            alpm_option_set_dbext,
            alpm_option_get_default_siglevel,
            alpm_option_set_default_siglevel,
            alpm_option_get_local_file_siglevel,
            alpm_option_set_local_file_siglevel,
            alpm_option_get_remote_file_siglevel,
            alpm_option_set_remote_file_siglevel,
            alpm_option_set_disable_dl_timeout,
            alpm_option_get_parallel_downloads,
            alpm_option_set_parallel_downloads,
            alpm_pkg_load,
            alpm_fetch_pkgurl,
            alpm_pkg_find,
            alpm_pkg_free,
            alpm_pkg_checkmd5sum,
            alpm_pkg_vercmp,
            alpm_pkg_compute_requiredby,
            alpm_pkg_compute_optionalfor,
            alpm_pkg_should_ignore,
            alpm_pkg_get_filename,
            alpm_pkg_get_base,
            alpm_pkg_get_name,
            alpm_pkg_get_version,
            alpm_pkg_get_origin,
            alpm_pkg_get_desc,
            alpm_pkg_get_url,
            alpm_pkg_get_builddate,
            alpm_pkg_get_installdate,
            alpm_pkg_get_packager,
            alpm_pkg_get_md5sum,
            alpm_pkg_get_sha256sum,
            alpm_pkg_get_arch,
            alpm_pkg_get_size,
            alpm_pkg_get_isize,
            alpm_pkg_get_reason,
            alpm_pkg_get_licenses,
            alpm_pkg_get_groups,
            alpm_pkg_get_depends,
            alpm_pkg_get_optdepends,
            alpm_pkg_get_checkdepends,
            alpm_pkg_get_makedepends,
            alpm_pkg_get_conflicts,
            alpm_pkg_get_provides,
            alpm_pkg_get_replaces,
            alpm_pkg_get_files,
            alpm_pkg_get_backup,
            alpm_pkg_get_db,
            alpm_pkg_get_base64_sig,
            alpm_pkg_get_sig,
            alpm_pkg_get_validation,
            alpm_pkg_has_scriptlet,
            alpm_pkg_download_size,
            alpm_pkg_set_reason,
            alpm_pkg_changelog_open,
            alpm_pkg_changelog_read,
            alpm_pkg_changelog_close,
            alpm_pkg_mtree_open,
            alpm_pkg_mtree_next,
            alpm_pkg_mtree_close,
            alpm_trans_get_flags,
            alpm_trans_get_add,
            alpm_trans_get_remove,
            alpm_trans_init,
            alpm_trans_prepare,
            alpm_trans_commit,
            alpm_trans_interrupt,
            alpm_trans_release,
            alpm_sync_sysupgrade,
            alpm_add_pkg,
            alpm_remove_pkg,
            alpm_sync_get_new_version,
            alpm_compute_md5sum,
            alpm_compute_sha256sum,
            alpm_unlock,
            alpm_version,
            alpm_capabilities,
        })
    }
    pub unsafe fn alpm_list_free(&self, list: *mut alpm_list_t) -> () {
        (self.alpm_list_free)(list)
    }
    pub unsafe fn alpm_list_free_inner(
        &self,
        list: *mut alpm_list_t,
        fn_: alpm_list_fn_free,
    ) -> () {
        (self.alpm_list_free_inner)(list, fn_)
    }
    pub unsafe fn alpm_list_add(
        &self,
        list: *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t {
        (self.alpm_list_add)(list, data)
    }
    pub unsafe fn alpm_list_append(
        &self,
        list: *mut *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t {
        (self.alpm_list_append)(list, data)
    }
    pub unsafe fn alpm_list_append_strdup(
        &self,
        list: *mut *mut alpm_list_t,
        data: *const ::std::os::raw::c_char,
    ) -> *mut alpm_list_t {
        (self.alpm_list_append_strdup)(list, data)
    }
    pub unsafe fn alpm_list_add_sorted(
        &self,
        list: *mut alpm_list_t,
        data: *mut ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t {
        (self.alpm_list_add_sorted)(list, data, fn_)
    }
    pub unsafe fn alpm_list_join(
        &self,
        first: *mut alpm_list_t,
        second: *mut alpm_list_t,
    ) -> *mut alpm_list_t {
        (self.alpm_list_join)(first, second)
    }
    pub unsafe fn alpm_list_mmerge(
        &self,
        left: *mut alpm_list_t,
        right: *mut alpm_list_t,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t {
        (self.alpm_list_mmerge)(left, right, fn_)
    }
    pub unsafe fn alpm_list_msort(
        &self,
        list: *mut alpm_list_t,
        n: usize,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t {
        (self.alpm_list_msort)(list, n, fn_)
    }
    pub unsafe fn alpm_list_remove_item(
        &self,
        haystack: *mut alpm_list_t,
        item: *mut alpm_list_t,
    ) -> *mut alpm_list_t {
        (self.alpm_list_remove_item)(haystack, item)
    }
    pub unsafe fn alpm_list_remove(
        &self,
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
        data: *mut *mut ::std::os::raw::c_void,
    ) -> *mut alpm_list_t {
        (self.alpm_list_remove)(haystack, needle, fn_, data)
    }
    pub unsafe fn alpm_list_remove_str(
        &self,
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_char,
        data: *mut *mut ::std::os::raw::c_char,
    ) -> *mut alpm_list_t {
        (self.alpm_list_remove_str)(haystack, needle, data)
    }
    pub unsafe fn alpm_list_remove_dupes(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_remove_dupes)(list)
    }
    pub unsafe fn alpm_list_strdup(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_strdup)(list)
    }
    pub unsafe fn alpm_list_copy(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_copy)(list)
    }
    pub unsafe fn alpm_list_copy_data(
        &self,
        list: *const alpm_list_t,
        size: usize,
    ) -> *mut alpm_list_t {
        (self.alpm_list_copy_data)(list, size)
    }
    pub unsafe fn alpm_list_reverse(&self, list: *mut alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_reverse)(list)
    }
    pub unsafe fn alpm_list_nth(&self, list: *const alpm_list_t, n: usize) -> *mut alpm_list_t {
        (self.alpm_list_nth)(list, n)
    }
    pub unsafe fn alpm_list_next(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_next)(list)
    }
    pub unsafe fn alpm_list_previous(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_previous)(list)
    }
    pub unsafe fn alpm_list_last(&self, list: *const alpm_list_t) -> *mut alpm_list_t {
        (self.alpm_list_last)(list)
    }
    pub unsafe fn alpm_list_count(&self, list: *const alpm_list_t) -> usize {
        (self.alpm_list_count)(list)
    }
    pub unsafe fn alpm_list_find(
        &self,
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_void,
        fn_: alpm_list_fn_cmp,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_list_find)(haystack, needle, fn_)
    }
    pub unsafe fn alpm_list_find_ptr(
        &self,
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_list_find_ptr)(haystack, needle)
    }
    pub unsafe fn alpm_list_find_str(
        &self,
        haystack: *const alpm_list_t,
        needle: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char {
        (self.alpm_list_find_str)(haystack, needle)
    }
    pub unsafe fn alpm_list_diff_sorted(
        &self,
        left: *const alpm_list_t,
        right: *const alpm_list_t,
        fn_: alpm_list_fn_cmp,
        onlyleft: *mut *mut alpm_list_t,
        onlyright: *mut *mut alpm_list_t,
    ) -> () {
        (self.alpm_list_diff_sorted)(left, right, fn_, onlyleft, onlyright)
    }
    pub unsafe fn alpm_list_diff(
        &self,
        lhs: *const alpm_list_t,
        rhs: *const alpm_list_t,
        fn_: alpm_list_fn_cmp,
    ) -> *mut alpm_list_t {
        (self.alpm_list_diff)(lhs, rhs, fn_)
    }
    pub unsafe fn alpm_list_to_array(
        &self,
        list: *const alpm_list_t,
        n: usize,
        size: usize,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_list_to_array)(list, n, size)
    }
    #[doc = " Determines whether a package filelist contains a given path."]
    #[doc = " The provided path should be relative to the install root with no leading"]
    #[doc = " slashes, e.g. \"etc/localtime\". When searching for directories, the path must"]
    #[doc = " have a trailing slash."]
    #[doc = " @param filelist a pointer to a package filelist"]
    #[doc = " @param path the path to search for in the package"]
    #[doc = " @return a pointer to the matching file or NULL if not found"]
    pub unsafe fn alpm_filelist_contains(
        &self,
        filelist: *mut alpm_filelist_t,
        path: *const ::std::os::raw::c_char,
    ) -> *mut alpm_file_t {
        (self.alpm_filelist_contains)(filelist, path)
    }
    #[doc = " Find group members across a list of databases."]
    #[doc = " If a member exists in several databases, only the first database is used."]
    #[doc = " IgnorePkg is also handled."]
    #[doc = " @param dbs the list of alpm_db_t *"]
    #[doc = " @param name the name of the group"]
    #[doc = " @return the list of alpm_pkg_t * (caller is responsible for alpm_list_free)"]
    pub unsafe fn alpm_find_group_pkgs(
        &self,
        dbs: *mut alpm_list_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_list_t {
        (self.alpm_find_group_pkgs)(dbs, name)
    }
    #[doc = " Returns the current error code from the handle."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the current error code of the handle"]
    pub unsafe fn alpm_errno(&self, handle: *mut alpm_handle_t) -> alpm_errno_t {
        (self.alpm_errno)(handle)
    }
    #[doc = " Returns the string corresponding to an error number."]
    #[doc = " @param err the error code to get the string for"]
    #[doc = " @return the string relating to the given error code"]
    pub unsafe fn alpm_strerror(&self, err: alpm_errno_t) -> *const ::std::os::raw::c_char {
        (self.alpm_strerror)(err)
    }
    #[doc = " Initializes the library."]
    #[doc = " Creates handle, connects to database and creates lockfile."]
    #[doc = " This must be called before any other functions are called."]
    #[doc = " @param root the root path for all filesystem operations"]
    #[doc = " @param dbpath the absolute path to the libalpm database"]
    #[doc = " @param err an optional variable to hold any error return codes"]
    #[doc = " @return a context handle on success, NULL on error, err will be set if provided"]
    pub unsafe fn alpm_initialize(
        &self,
        root: *const ::std::os::raw::c_char,
        dbpath: *const ::std::os::raw::c_char,
        err: *mut alpm_errno_t,
    ) -> *mut alpm_handle_t {
        (self.alpm_initialize)(root, dbpath, err)
    }
    #[doc = " Release the library."]
    #[doc = " Disconnects from the database, removes handle and lockfile"]
    #[doc = " This should be the last alpm call you make."]
    #[doc = " After this returns, handle should be considered invalid and cannot be reused"]
    #[doc = " in any way."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error"]
    pub unsafe fn alpm_release(&self, handle: *mut alpm_handle_t) -> ::std::os::raw::c_int {
        (self.alpm_release)(handle)
    }
    #[doc = " Check the PGP signature for the given package file."]
    #[doc = " @param pkg the package to check"]
    #[doc = " @param siglist a pointer to storage for signature results"]
    #[doc = " @return a int value : 0 (valid), 1 (invalid), -1 (an error occurred)"]
    pub unsafe fn alpm_pkg_check_pgp_signature(
        &self,
        pkg: *mut alpm_pkg_t,
        siglist: *mut alpm_siglist_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_check_pgp_signature)(pkg, siglist)
    }
    #[doc = " Check the PGP signature for the given database."]
    #[doc = " @param db the database to check"]
    #[doc = " @param siglist a pointer to storage for signature results"]
    #[doc = " @return a int value : 0 (valid), 1 (invalid), -1 (an error occurred)"]
    pub unsafe fn alpm_db_check_pgp_signature(
        &self,
        db: *mut alpm_db_t,
        siglist: *mut alpm_siglist_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_check_pgp_signature)(db, siglist)
    }
    #[doc = " Clean up and free a signature result list."]
    #[doc = " Note that this does not free the siglist object itself in case that"]
    #[doc = " was allocated on the stack; this is the responsibility of the caller."]
    #[doc = " @param siglist a pointer to storage for signature results"]
    #[doc = " @return 0 on success, -1 on error"]
    pub unsafe fn alpm_siglist_cleanup(
        &self,
        siglist: *mut alpm_siglist_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_siglist_cleanup)(siglist)
    }
    #[doc = " Decode a loaded signature in base64 form."]
    #[doc = " @param base64_data the signature to attempt to decode"]
    #[doc = " @param data the decoded data; must be freed by the caller"]
    #[doc = " @param data_len the length of the returned data"]
    #[doc = " @return 0 on success, -1 on failure to properly decode"]
    pub unsafe fn alpm_decode_signature(
        &self,
        base64_data: *const ::std::os::raw::c_char,
        data: *mut *mut ::std::os::raw::c_uchar,
        data_len: *mut usize,
    ) -> ::std::os::raw::c_int {
        (self.alpm_decode_signature)(base64_data, data, data_len)
    }
    #[doc = " Extract the Issuer Key ID from a signature"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param identifier the identifier of the key."]
    #[doc = " This may be the name of the package or the path to the package."]
    #[doc = " @param sig PGP signature"]
    #[doc = " @param len length of signature"]
    #[doc = " @param keys a pointer to storage for key IDs"]
    #[doc = " @return 0 on success, -1 on error"]
    pub unsafe fn alpm_extract_keyid(
        &self,
        handle: *mut alpm_handle_t,
        identifier: *const ::std::os::raw::c_char,
        sig: *const ::std::os::raw::c_uchar,
        len: usize,
        keys: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_extract_keyid)(handle, identifier, sig, len, keys)
    }
    #[doc = " Checks dependencies and returns missing ones in a list."]
    #[doc = " Dependencies can include versions with depmod operators."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkglist the list of local packages"]
    #[doc = " @param remove an alpm_list_t* of packages to be removed"]
    #[doc = " @param upgrade an alpm_list_t* of packages to be upgraded (remove-then-upgrade)"]
    #[doc = " @param reversedeps handles the backward dependencies"]
    #[doc = " @return an alpm_list_t* of alpm_depmissing_t pointers."]
    pub unsafe fn alpm_checkdeps(
        &self,
        handle: *mut alpm_handle_t,
        pkglist: *mut alpm_list_t,
        remove: *mut alpm_list_t,
        upgrade: *mut alpm_list_t,
        reversedeps: ::std::os::raw::c_int,
    ) -> *mut alpm_list_t {
        (self.alpm_checkdeps)(handle, pkglist, remove, upgrade, reversedeps)
    }
    #[doc = " Find a package satisfying a specified dependency."]
    #[doc = " The dependency can include versions with depmod operators."]
    #[doc = " @param pkgs an alpm_list_t* of alpm_pkg_t where the satisfyer will be searched"]
    #[doc = " @param depstring package or provision name, versioned or not"]
    #[doc = " @return a alpm_pkg_t* satisfying depstring"]
    pub unsafe fn alpm_find_satisfier(
        &self,
        pkgs: *mut alpm_list_t,
        depstring: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t {
        (self.alpm_find_satisfier)(pkgs, depstring)
    }
    #[doc = " Find a package satisfying a specified dependency."]
    #[doc = " First look for a literal, going through each db one by one. Then look for"]
    #[doc = " providers. The first satisfyer that belongs to an installed package is"]
    #[doc = " returned. If no providers belong to an installed package then an"]
    #[doc = " alpm_question_select_provider_t is created to select the provider."]
    #[doc = " The dependency can include versions with depmod operators."]
    #[doc = ""]
    #[doc = " @param handle the context handle"]
    #[doc = " @param dbs an alpm_list_t* of alpm_db_t where the satisfyer will be searched"]
    #[doc = " @param depstring package or provision name, versioned or not"]
    #[doc = " @return a alpm_pkg_t* satisfying depstring"]
    pub unsafe fn alpm_find_dbs_satisfier(
        &self,
        handle: *mut alpm_handle_t,
        dbs: *mut alpm_list_t,
        depstring: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t {
        (self.alpm_find_dbs_satisfier)(handle, dbs, depstring)
    }
    #[doc = " Check the package conflicts in a database"]
    #[doc = ""]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkglist the list of packages to check"]
    #[doc = ""]
    #[doc = " @return an alpm_list_t of alpm_conflict_t"]
    pub unsafe fn alpm_checkconflicts(
        &self,
        handle: *mut alpm_handle_t,
        pkglist: *mut alpm_list_t,
    ) -> *mut alpm_list_t {
        (self.alpm_checkconflicts)(handle, pkglist)
    }
    #[doc = " Returns a newly allocated string representing the dependency information."]
    #[doc = " @param dep a dependency info structure"]
    #[doc = " @return a formatted string, e.g. \"glibc>=2.12\""]
    pub unsafe fn alpm_dep_compute_string(
        &self,
        dep: *const alpm_depend_t,
    ) -> *mut ::std::os::raw::c_char {
        (self.alpm_dep_compute_string)(dep)
    }
    #[doc = " Return a newly allocated dependency information parsed from a string"]
    #[doc = "\\link alpm_dep_free should be used to free the dependency \\endlink"]
    #[doc = " @param depstring a formatted string, e.g. \"glibc=2.12\""]
    #[doc = " @return a dependency info structure"]
    pub unsafe fn alpm_dep_from_string(
        &self,
        depstring: *const ::std::os::raw::c_char,
    ) -> *mut alpm_depend_t {
        (self.alpm_dep_from_string)(depstring)
    }
    #[doc = " Free a dependency info structure"]
    #[doc = " @param dep struct to free"]
    pub unsafe fn alpm_dep_free(&self, dep: *mut alpm_depend_t) -> () {
        (self.alpm_dep_free)(dep)
    }
    #[doc = " Free a fileconflict and its members."]
    #[doc = " @param conflict the fileconflict to free"]
    pub unsafe fn alpm_fileconflict_free(&self, conflict: *mut alpm_fileconflict_t) -> () {
        (self.alpm_fileconflict_free)(conflict)
    }
    #[doc = " Free a depmissing and its members"]
    #[doc = " @param miss the depmissing to free"]
    pub unsafe fn alpm_depmissing_free(&self, miss: *mut alpm_depmissing_t) -> () {
        (self.alpm_depmissing_free)(miss)
    }
    #[doc = " Free a conflict and its members."]
    #[doc = " @param conflict the conflict to free"]
    pub unsafe fn alpm_conflict_free(&self, conflict: *mut alpm_conflict_t) -> () {
        (self.alpm_conflict_free)(conflict)
    }
    #[doc = " Get the database of locally installed packages."]
    #[doc = " The returned pointer points to an internal structure"]
    #[doc = " of libalpm which should only be manipulated through"]
    #[doc = " libalpm functions."]
    #[doc = " @return a reference to the local database"]
    pub unsafe fn alpm_get_localdb(&self, handle: *mut alpm_handle_t) -> *mut alpm_db_t {
        (self.alpm_get_localdb)(handle)
    }
    #[doc = " Get the list of sync databases."]
    #[doc = " Returns a list of alpm_db_t structures, one for each registered"]
    #[doc = " sync database."]
    #[doc = ""]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a reference to an internal list of alpm_db_t structures"]
    pub unsafe fn alpm_get_syncdbs(&self, handle: *mut alpm_handle_t) -> *mut alpm_list_t {
        (self.alpm_get_syncdbs)(handle)
    }
    #[doc = " Register a sync database of packages."]
    #[doc = " Databases can not be registered when there is an active transaction."]
    #[doc = ""]
    #[doc = " @param handle the context handle"]
    #[doc = " @param treename the name of the sync repository"]
    #[doc = " @param level what level of signature checking to perform on the"]
    #[doc = " database; note that this must be a '.sig' file type verification"]
    #[doc = " @return an alpm_db_t* on success (the value), NULL on error"]
    pub unsafe fn alpm_register_syncdb(
        &self,
        handle: *mut alpm_handle_t,
        treename: *const ::std::os::raw::c_char,
        level: ::std::os::raw::c_int,
    ) -> *mut alpm_db_t {
        (self.alpm_register_syncdb)(handle, treename, level)
    }
    #[doc = " Unregister all package databases."]
    #[doc = " Databases can not be unregistered while there is an active transaction."]
    #[doc = ""]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_unregister_all_syncdbs(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_unregister_all_syncdbs)(handle)
    }
    #[doc = " Unregister a package database."]
    #[doc = " Databases can not be unregistered when there is an active transaction."]
    #[doc = ""]
    #[doc = " @param db pointer to the package database to unregister"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_db_unregister(&self, db: *mut alpm_db_t) -> ::std::os::raw::c_int {
        (self.alpm_db_unregister)(db)
    }
    #[doc = " Get the name of a package database."]
    #[doc = " @param db pointer to the package database"]
    #[doc = " @return the name of the package database, NULL on error"]
    pub unsafe fn alpm_db_get_name(&self, db: *const alpm_db_t) -> *const ::std::os::raw::c_char {
        (self.alpm_db_get_name)(db)
    }
    #[doc = " Get the signature verification level for a database."]
    #[doc = " Will return the default verification level if this database is set up"]
    #[doc = " with ALPM_SIG_USE_DEFAULT."]
    #[doc = " @param db pointer to the package database"]
    #[doc = " @return the signature verification level"]
    pub unsafe fn alpm_db_get_siglevel(&self, db: *mut alpm_db_t) -> ::std::os::raw::c_int {
        (self.alpm_db_get_siglevel)(db)
    }
    #[doc = " Check the validity of a database."]
    #[doc = " This is most useful for sync databases and verifying signature status."]
    #[doc = " If invalid, the handle error code will be set accordingly."]
    #[doc = " @param db pointer to the package database"]
    #[doc = " @return 0 if valid, -1 if invalid (pm_errno is set accordingly)"]
    pub unsafe fn alpm_db_get_valid(&self, db: *mut alpm_db_t) -> ::std::os::raw::c_int {
        (self.alpm_db_get_valid)(db)
    }
    #[doc = " Get the list of servers assigned to this db."]
    #[doc = " @param db pointer to the database to get the servers from"]
    #[doc = " @return a char* list of servers"]
    pub unsafe fn alpm_db_get_servers(&self, db: *const alpm_db_t) -> *mut alpm_list_t {
        (self.alpm_db_get_servers)(db)
    }
    #[doc = " Sets the list of servers for the database to use."]
    #[doc = " @param db the database to set the servers. The list will be duped and"]
    #[doc = " the original will still need to be freed by the caller."]
    #[doc = " @param servers a char* list of servers."]
    pub unsafe fn alpm_db_set_servers(
        &self,
        db: *mut alpm_db_t,
        servers: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_set_servers)(db, servers)
    }
    #[doc = " Add a download server to a database."]
    #[doc = " @param db database pointer"]
    #[doc = " @param url url of the server"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_db_add_server(
        &self,
        db: *mut alpm_db_t,
        url: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_add_server)(db, url)
    }
    #[doc = " Remove a download server from a database."]
    #[doc = " @param db database pointer"]
    #[doc = " @param url url of the server"]
    #[doc = " @return 0 on success, 1 on server not present,"]
    #[doc = " -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_db_remove_server(
        &self,
        db: *mut alpm_db_t,
        url: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_remove_server)(db, url)
    }
    #[doc = " Update package databases."]
    #[doc = ""]
    #[doc = " An update of the package databases in the list \\a dbs will be attempted."]
    #[doc = " Unless \\a force is true, the update will only be performed if the remote"]
    #[doc = " databases were modified since the last update."]
    #[doc = ""]
    #[doc = " This operation requires a database lock, and will return an applicable error"]
    #[doc = " if the lock could not be obtained."]
    #[doc = ""]
    #[doc = " Example:"]
    #[doc = " @code"]
    #[doc = " alpm_list_t *dbs = alpm_get_syncdbs(config->handle);"]
    #[doc = " ret = alpm_db_update(config->handle, dbs, force);"]
    #[doc = " if(ret < 0) {"]
    #[doc = "     pm_printf(ALPM_LOG_ERROR, _(\"failed to synchronize all databases (%s)\\n\"),"]
    #[doc = "         alpm_strerror(alpm_errno(config->handle)));"]
    #[doc = " }"]
    #[doc = " @endcode"]
    #[doc = ""]
    #[doc = " @note After a successful update, the \\link alpm_db_get_pkgcache()"]
    #[doc = " package cache \\endlink will be invalidated"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param dbs list of package databases to update"]
    #[doc = " @param force if true, then forces the update, otherwise update only in case"]
    #[doc = " the databases aren't up to date"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly),"]
    #[doc = " 1 if all databases are up to to date"]
    pub unsafe fn alpm_db_update(
        &self,
        handle: *mut alpm_handle_t,
        dbs: *mut alpm_list_t,
        force: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_update)(handle, dbs, force)
    }
    #[doc = " Get a package entry from a package database."]
    #[doc = " Looking up a package is O(1) and will be significantly faster than"]
    #[doc = " iterating over the pkgcahe."]
    #[doc = " @param db pointer to the package database to get the package from"]
    #[doc = " @param name of the package"]
    #[doc = " @return the package entry on success, NULL on error"]
    pub unsafe fn alpm_db_get_pkg(
        &self,
        db: *mut alpm_db_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t {
        (self.alpm_db_get_pkg)(db, name)
    }
    #[doc = " Get the package cache of a package database."]
    #[doc = " This is a list of all packages the db contains."]
    #[doc = " @param db pointer to the package database to get the package from"]
    #[doc = " @return the list of packages on success, NULL on error"]
    pub unsafe fn alpm_db_get_pkgcache(&self, db: *mut alpm_db_t) -> *mut alpm_list_t {
        (self.alpm_db_get_pkgcache)(db)
    }
    #[doc = " Get a group entry from a package database."]
    #[doc = " Looking up a group is O(1) and will be significantly faster than"]
    #[doc = " iterating over the groupcahe."]
    #[doc = " @param db pointer to the package database to get the group from"]
    #[doc = " @param name of the group"]
    #[doc = " @return the groups entry on success, NULL on error"]
    pub unsafe fn alpm_db_get_group(
        &self,
        db: *mut alpm_db_t,
        name: *const ::std::os::raw::c_char,
    ) -> *mut alpm_group_t {
        (self.alpm_db_get_group)(db, name)
    }
    #[doc = " Get the group cache of a package database."]
    #[doc = " @param db pointer to the package database to get the group from"]
    #[doc = " @return the list of groups on success, NULL on error"]
    pub unsafe fn alpm_db_get_groupcache(&self, db: *mut alpm_db_t) -> *mut alpm_list_t {
        (self.alpm_db_get_groupcache)(db)
    }
    #[doc = " Searches a database with regular expressions."]
    #[doc = " @param db pointer to the package database to search in"]
    #[doc = " @param needles a list of regular expressions to search for"]
    #[doc = " @param ret pointer to list for storing packages matching all"]
    #[doc = " regular expressions - must point to an empty (NULL) alpm_list_t *."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_db_search(
        &self,
        db: *mut alpm_db_t,
        needles: *const alpm_list_t,
        ret: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_search)(db, needles, ret)
    }
    #[doc = " Sets the usage of a database."]
    #[doc = " @param db pointer to the package database to set the status for"]
    #[doc = " @param usage a bitmask of alpm_db_usage_t values"]
    #[doc = " @return 0 on success, or -1 on error"]
    pub unsafe fn alpm_db_set_usage(
        &self,
        db: *mut alpm_db_t,
        usage: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_set_usage)(db, usage)
    }
    #[doc = " Gets the usage of a database."]
    #[doc = " @param db pointer to the package database to get the status of"]
    #[doc = " @param usage pointer to an alpm_db_usage_t to store db's status"]
    #[doc = " @return 0 on success, or -1 on error"]
    pub unsafe fn alpm_db_get_usage(
        &self,
        db: *mut alpm_db_t,
        usage: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_db_get_usage)(db, usage)
    }
    #[doc = " Returns the callback used for logging."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set log callback"]
    pub unsafe fn alpm_option_get_logcb(&self, handle: *mut alpm_handle_t) -> alpm_cb_log {
        (self.alpm_option_get_logcb)(handle)
    }
    #[doc = " Returns the callback used for logging."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set log callback context"]
    pub unsafe fn alpm_option_get_logcb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_logcb_ctx)(handle)
    }
    #[doc = " Sets the callback used for logging."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_logcb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_log,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_logcb)(handle, cb, ctx)
    }
    #[doc = " Returns the callback used to report download progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set download callback"]
    pub unsafe fn alpm_option_get_dlcb(&self, handle: *mut alpm_handle_t) -> alpm_cb_download {
        (self.alpm_option_get_dlcb)(handle)
    }
    #[doc = " Returns the callback used to report download progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set download callback context"]
    pub unsafe fn alpm_option_get_dlcb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_dlcb_ctx)(handle)
    }
    #[doc = " Sets the callback used to report download progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_dlcb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_download,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_dlcb)(handle, cb, ctx)
    }
    #[doc = " Returns the downloading callback."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set fetch callback"]
    pub unsafe fn alpm_option_get_fetchcb(&self, handle: *mut alpm_handle_t) -> alpm_cb_fetch {
        (self.alpm_option_get_fetchcb)(handle)
    }
    #[doc = " Returns the downloading callback."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set fetch callback context"]
    pub unsafe fn alpm_option_get_fetchcb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_fetchcb_ctx)(handle)
    }
    #[doc = " Sets the downloading callback."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_fetchcb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_fetch,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_fetchcb)(handle, cb, ctx)
    }
    #[doc = " Returns the callback used for events."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set event callback"]
    pub unsafe fn alpm_option_get_eventcb(&self, handle: *mut alpm_handle_t) -> alpm_cb_event {
        (self.alpm_option_get_eventcb)(handle)
    }
    #[doc = " Returns the callback used for events."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set event callback context"]
    pub unsafe fn alpm_option_get_eventcb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_eventcb_ctx)(handle)
    }
    #[doc = " Sets the callback used for events."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_eventcb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_event,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_eventcb)(handle, cb, ctx)
    }
    #[doc = " Returns the callback used for questions."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set question callback"]
    pub unsafe fn alpm_option_get_questioncb(
        &self,
        handle: *mut alpm_handle_t,
    ) -> alpm_cb_question {
        (self.alpm_option_get_questioncb)(handle)
    }
    #[doc = " Returns the callback used for questions."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set question callback context"]
    pub unsafe fn alpm_option_get_questioncb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_questioncb_ctx)(handle)
    }
    #[doc = " Sets the callback used for questions."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_questioncb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_question,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_questioncb)(handle, cb, ctx)
    }
    #[doc = "Returns the callback used for operation progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set progress callback"]
    pub unsafe fn alpm_option_get_progresscb(
        &self,
        handle: *mut alpm_handle_t,
    ) -> alpm_cb_progress {
        (self.alpm_option_get_progresscb)(handle)
    }
    #[doc = "Returns the callback used for operation progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the currently set progress callback context"]
    pub unsafe fn alpm_option_get_progresscb_ctx(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_option_get_progresscb_ctx)(handle)
    }
    #[doc = " Sets the callback used for operation progress."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cb the cb to use"]
    #[doc = " @param ctx user-provided context to pass to cb"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_progresscb(
        &self,
        handle: *mut alpm_handle_t,
        cb: alpm_cb_progress,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_progresscb)(handle, cb, ctx)
    }
    #[doc = " Returns the root path. Read-only."]
    #[doc = " @param handle the context handle"]
    pub unsafe fn alpm_option_get_root(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_root)(handle)
    }
    #[doc = " Returns the path to the database directory. Read-only."]
    #[doc = " @param handle the context handle"]
    pub unsafe fn alpm_option_get_dbpath(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_dbpath)(handle)
    }
    #[doc = " Get the name of the database lock file. Read-only."]
    #[doc = " This is the name that the lockfile would have. It does not"]
    #[doc = " matter if the lockfile actually exists on disk."]
    #[doc = " @param handle the context handle"]
    pub unsafe fn alpm_option_get_lockfile(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_lockfile)(handle)
    }
    #[doc = " Gets the currently configured cachedirs,"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a char* list of cache directories"]
    pub unsafe fn alpm_option_get_cachedirs(&self, handle: *mut alpm_handle_t) -> *mut alpm_list_t {
        (self.alpm_option_get_cachedirs)(handle)
    }
    #[doc = " Sets the cachedirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cachedirs a char* list of cachdirs. The list will be duped and"]
    #[doc = " the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_cachedirs(
        &self,
        handle: *mut alpm_handle_t,
        cachedirs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_cachedirs)(handle, cachedirs)
    }
    #[doc = " Append a cachedir to the configured cachedirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cachedir the cachedir to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_cachedir(
        &self,
        handle: *mut alpm_handle_t,
        cachedir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_cachedir)(handle, cachedir)
    }
    #[doc = " Remove a cachedir from the configured cachedirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param cachedir the cachedir to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_cachedir(
        &self,
        handle: *mut alpm_handle_t,
        cachedir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_cachedir)(handle, cachedir)
    }
    #[doc = " Gets the currently configured hookdirs,"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a char* list of hook directories"]
    pub unsafe fn alpm_option_get_hookdirs(&self, handle: *mut alpm_handle_t) -> *mut alpm_list_t {
        (self.alpm_option_get_hookdirs)(handle)
    }
    #[doc = " Sets the hookdirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param hookdirs a char* list of hookdirs. The list will be duped and"]
    #[doc = " the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_hookdirs(
        &self,
        handle: *mut alpm_handle_t,
        hookdirs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_hookdirs)(handle, hookdirs)
    }
    #[doc = " Append a hookdir to the configured hookdirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param hookdir the hookdir to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_hookdir(
        &self,
        handle: *mut alpm_handle_t,
        hookdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_hookdir)(handle, hookdir)
    }
    #[doc = " Remove a hookdir from the configured hookdirs."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param hookdir the hookdir to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_hookdir(
        &self,
        handle: *mut alpm_handle_t,
        hookdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_hookdir)(handle, hookdir)
    }
    #[doc = " Gets the currently configured overwritable files,"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a char* list of overwritable file globs"]
    pub unsafe fn alpm_option_get_overwrite_files(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_overwrite_files)(handle)
    }
    #[doc = " Sets the overwritable files."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param globs a char* list of overwritable file globs. The list will be duped and"]
    #[doc = " the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_overwrite_files(
        &self,
        handle: *mut alpm_handle_t,
        globs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_overwrite_files)(handle, globs)
    }
    #[doc = " Append an overwritable file to the configured overwritable files."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param glob the file glob to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_overwrite_file(
        &self,
        handle: *mut alpm_handle_t,
        glob: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_overwrite_file)(handle, glob)
    }
    #[doc = " Remove a file glob from the configured overwritable files globs."]
    #[doc = " @note The overwritable file list contains a list of globs. The glob to"]
    #[doc = " remove must exactly match the entry to remove. There is no glob expansion."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param glob the file glob to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_overwrite_file(
        &self,
        handle: *mut alpm_handle_t,
        glob: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_overwrite_file)(handle, glob)
    }
    #[doc = " Gets the filepath to the currently set logfile."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the path to the logfile"]
    pub unsafe fn alpm_option_get_logfile(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_logfile)(handle)
    }
    #[doc = " Sets the logfile path."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param logfile path to the new location of the logfile"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_logfile(
        &self,
        handle: *mut alpm_handle_t,
        logfile: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_logfile)(handle, logfile)
    }
    #[doc = " Returns the path to libalpm's GnuPG home directory."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the path to libalpms's GnuPG home directory"]
    pub unsafe fn alpm_option_get_gpgdir(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_gpgdir)(handle)
    }
    #[doc = " Sets the path to libalpm's GnuPG home directory."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param gpgdir the gpgdir to set"]
    pub unsafe fn alpm_option_set_gpgdir(
        &self,
        handle: *mut alpm_handle_t,
        gpgdir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_gpgdir)(handle, gpgdir)
    }
    #[doc = " Returns whether to use syslog (0 is FALSE, TRUE otherwise)."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_get_usesyslog(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_usesyslog)(handle)
    }
    #[doc = " Sets whether to use syslog (0 is FALSE, TRUE otherwise)."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param usesyslog whether to use the syslog (0 is FALSE, TRUE otherwise)"]
    pub unsafe fn alpm_option_set_usesyslog(
        &self,
        handle: *mut alpm_handle_t,
        usesyslog: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_usesyslog)(handle, usesyslog)
    }
    #[doc = " Get the list of no-upgrade files"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the char* list of no-upgrade files"]
    pub unsafe fn alpm_option_get_noupgrades(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_noupgrades)(handle)
    }
    #[doc = " Add a file to the no-upgrade list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_noupgrade(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_noupgrade)(handle, path)
    }
    #[doc = " Sets the list of no-upgrade files"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param noupgrade a char* list of file to not upgrade."]
    #[doc = " The list will be duped and the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_noupgrades(
        &self,
        handle: *mut alpm_handle_t,
        noupgrade: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_noupgrades)(handle, noupgrade)
    }
    #[doc = " Remove an entry from the no-upgrade list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_noupgrade(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_noupgrade)(handle, path)
    }
    #[doc = " Test if a path matches any of the globs in the no-upgrade list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to test"]
    #[doc = " @return 0 is the path matches a glob, negative if there is no match and"]
    #[doc = " positive is the  match was inverted"]
    pub unsafe fn alpm_option_match_noupgrade(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_match_noupgrade)(handle, path)
    }
    #[doc = " Get the list of no-extract files"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the char* list of no-extract files"]
    pub unsafe fn alpm_option_get_noextracts(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_noextracts)(handle)
    }
    #[doc = " Add a file to the no-extract list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_noextract(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_noextract)(handle, path)
    }
    #[doc = " Sets the list of no-extract files"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param noextract a char* list of file to not extract."]
    #[doc = " The list will be duped and the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_noextracts(
        &self,
        handle: *mut alpm_handle_t,
        noextract: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_noextracts)(handle, noextract)
    }
    #[doc = " Remove an entry from the no-extract list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_noextract(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_noextract)(handle, path)
    }
    #[doc = " Test if a path matches any of the globs in the no-extract list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param path the path to test"]
    #[doc = " @return 0 is the path matches a glob, negative if there is no match and"]
    #[doc = " positive is the  match was inverted"]
    pub unsafe fn alpm_option_match_noextract(
        &self,
        handle: *mut alpm_handle_t,
        path: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_match_noextract)(handle, path)
    }
    #[doc = " Get the list of ignored packages"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the char* list of ignored packages"]
    pub unsafe fn alpm_option_get_ignorepkgs(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_ignorepkgs)(handle)
    }
    #[doc = " Add a file to the ignored package list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkg the package to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_ignorepkg(
        &self,
        handle: *mut alpm_handle_t,
        pkg: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_ignorepkg)(handle, pkg)
    }
    #[doc = " Sets the list of packages to ignore"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param ignorepkgs a char* list of packages to ignore"]
    #[doc = " The list will be duped and the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_ignorepkgs(
        &self,
        handle: *mut alpm_handle_t,
        ignorepkgs: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_ignorepkgs)(handle, ignorepkgs)
    }
    #[doc = " Remove an entry from the ignorepkg list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkg the package to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_ignorepkg(
        &self,
        handle: *mut alpm_handle_t,
        pkg: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_ignorepkg)(handle, pkg)
    }
    #[doc = " Get the list of ignored groups"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the char* list of ignored groups"]
    pub unsafe fn alpm_option_get_ignoregroups(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_ignoregroups)(handle)
    }
    #[doc = " Add a file to the ignored group list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param grp the group to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_ignoregroup(
        &self,
        handle: *mut alpm_handle_t,
        grp: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_ignoregroup)(handle, grp)
    }
    #[doc = " Sets the list of groups to ignore"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param ignoregrps a char* list of groups to ignore"]
    #[doc = " The list will be duped and the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_ignoregroups(
        &self,
        handle: *mut alpm_handle_t,
        ignoregrps: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_ignoregroups)(handle, ignoregrps)
    }
    #[doc = " Remove an entry from the ignoregroup list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param grp the group to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_ignoregroup(
        &self,
        handle: *mut alpm_handle_t,
        grp: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_ignoregroup)(handle, grp)
    }
    #[doc = " Gets the list of dependencies that are assumed to be met"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a list of alpm_depend_t*"]
    pub unsafe fn alpm_option_get_assumeinstalled(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_assumeinstalled)(handle)
    }
    #[doc = " Add a depend to the assumed installed list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param dep the dependency to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_add_assumeinstalled(
        &self,
        handle: *mut alpm_handle_t,
        dep: *const alpm_depend_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_assumeinstalled)(handle, dep)
    }
    #[doc = " Sets the list of dependencies that are assumed to be met"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param deps a list of *alpm_depend_t"]
    #[doc = " The list will be duped and the original will still need to be freed by the caller."]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_assumeinstalled(
        &self,
        handle: *mut alpm_handle_t,
        deps: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_assumeinstalled)(handle, deps)
    }
    #[doc = " Remove an entry from the assume installed list"]
    #[doc = " @param handle the context handle"]
    #[doc = " @param dep the dep to remove"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_remove_assumeinstalled(
        &self,
        handle: *mut alpm_handle_t,
        dep: *const alpm_depend_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_assumeinstalled)(handle, dep)
    }
    #[doc = " Returns the allowed package architecture."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the configured package architectures"]
    pub unsafe fn alpm_option_get_architectures(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *mut alpm_list_t {
        (self.alpm_option_get_architectures)(handle)
    }
    #[doc = " Adds an allowed package architecture."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param arch the architecture to set"]
    pub unsafe fn alpm_option_add_architecture(
        &self,
        handle: *mut alpm_handle_t,
        arch: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_add_architecture)(handle, arch)
    }
    #[doc = " Sets the allowed package architecture."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param arches the architecture to set"]
    pub unsafe fn alpm_option_set_architectures(
        &self,
        handle: *mut alpm_handle_t,
        arches: *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_architectures)(handle, arches)
    }
    #[doc = " Removes an allowed package architecture."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param arch the architecture to remove"]
    pub unsafe fn alpm_option_remove_architecture(
        &self,
        handle: *mut alpm_handle_t,
        arch: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_remove_architecture)(handle, arch)
    }
    #[doc = " Get whether or not checking for free space before installing packages is enabled."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 if disabled, 1 if enabled"]
    pub unsafe fn alpm_option_get_checkspace(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_checkspace)(handle)
    }
    #[doc = " Enable/disable checking free space before installing packages."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param checkspace 0 for disabled, 1 for enabled"]
    pub unsafe fn alpm_option_set_checkspace(
        &self,
        handle: *mut alpm_handle_t,
        checkspace: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_checkspace)(handle, checkspace)
    }
    #[doc = " Gets the configured database extension."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the configured database extension"]
    pub unsafe fn alpm_option_get_dbext(
        &self,
        handle: *mut alpm_handle_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_option_get_dbext)(handle)
    }
    #[doc = " Sets the database extension."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param dbext the database extension to use"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_dbext(
        &self,
        handle: *mut alpm_handle_t,
        dbext: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_dbext)(handle, dbext)
    }
    #[doc = " Get the default siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a \\link alpm_siglevel_t \\endlink bitfield of the siglevel"]
    pub unsafe fn alpm_option_get_default_siglevel(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_default_siglevel)(handle)
    }
    #[doc = " Set the default siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param level a \\link alpm_siglevel_t \\endlink bitfield of the level to set"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_default_siglevel(
        &self,
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_default_siglevel)(handle, level)
    }
    #[doc = " Get the configured local file siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a \\link alpm_siglevel_t \\endlink bitfield of the siglevel"]
    pub unsafe fn alpm_option_get_local_file_siglevel(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_local_file_siglevel)(handle)
    }
    #[doc = " Set the local file siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param level a \\link alpm_siglevel_t \\endlink bitfield of the level to set"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_local_file_siglevel(
        &self,
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_local_file_siglevel)(handle, level)
    }
    #[doc = " Get the configured remote file siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a \\link alpm_siglevel_t \\endlink bitfield of the siglevel"]
    pub unsafe fn alpm_option_get_remote_file_siglevel(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_remote_file_siglevel)(handle)
    }
    #[doc = " Set the remote file siglevel."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param level a \\link alpm_siglevel_t \\endlink bitfield of the level to set"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_remote_file_siglevel(
        &self,
        handle: *mut alpm_handle_t,
        level: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_remote_file_siglevel)(handle, level)
    }
    #[doc = " Enables/disables the download timeout."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param disable_dl_timeout 0 for enabled, 1 for disabled"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_option_set_disable_dl_timeout(
        &self,
        handle: *mut alpm_handle_t,
        disable_dl_timeout: ::std::os::raw::c_ushort,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_disable_dl_timeout)(handle, disable_dl_timeout)
    }
    #[doc = " Gets the number of parallel streams to download database and package files."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the number of parallel streams to download database and package files"]
    pub unsafe fn alpm_option_get_parallel_downloads(
        &self,
        handle: *mut alpm_handle_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_get_parallel_downloads)(handle)
    }
    #[doc = " Sets number of parallel streams to download database and package files."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param num_streams number of parallel download streams"]
    #[doc = " @return 0 on success, -1 on error"]
    pub unsafe fn alpm_option_set_parallel_downloads(
        &self,
        handle: *mut alpm_handle_t,
        num_streams: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self.alpm_option_set_parallel_downloads)(handle, num_streams)
    }
    #[doc = " Create a package from a file."]
    #[doc = " If full is false, the archive is read only until all necessary"]
    #[doc = " metadata is found. If it is true, the entire archive is read, which"]
    #[doc = " serves as a verification of integrity and the filelist can be created."]
    #[doc = " The allocated structure should be freed using alpm_pkg_free()."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param filename location of the package tarball"]
    #[doc = " @param full whether to stop the load after metadata is read or continue"]
    #[doc = " through the full archive"]
    #[doc = " @param level what level of package signature checking to perform on the"]
    #[doc = " package; note that this must be a '.sig' file type verification"]
    #[doc = " @param pkg address of the package pointer"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_pkg_load(
        &self,
        handle: *mut alpm_handle_t,
        filename: *const ::std::os::raw::c_char,
        full: ::std::os::raw::c_int,
        level: ::std::os::raw::c_int,
        pkg: *mut *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_load)(handle, filename, full, level, pkg)
    }
    #[doc = " Fetch a list of remote packages."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param urls list of package URLs to download"]
    #[doc = " @param fetched list of filepaths to the fetched packages, each item"]
    #[doc = "    corresponds to one in `urls` list. This is an output parameter,"]
    #[doc = "    the caller should provide a pointer to an empty list"]
    #[doc = "    (*fetched === NULL) and the callee fills the list with data."]
    #[doc = " @return 0 on success or -1 on failure"]
    pub unsafe fn alpm_fetch_pkgurl(
        &self,
        handle: *mut alpm_handle_t,
        urls: *const alpm_list_t,
        fetched: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_fetch_pkgurl)(handle, urls, fetched)
    }
    #[doc = " Find a package in a list by name."]
    #[doc = " @param haystack a list of alpm_pkg_t"]
    #[doc = " @param needle the package name"]
    #[doc = " @return a pointer to the package if found or NULL"]
    pub unsafe fn alpm_pkg_find(
        &self,
        haystack: *mut alpm_list_t,
        needle: *const ::std::os::raw::c_char,
    ) -> *mut alpm_pkg_t {
        (self.alpm_pkg_find)(haystack, needle)
    }
    #[doc = " Free a package."]
    #[doc = " Only packages loaded with \\link alpm_pkg_load \\endlink can be freed."]
    #[doc = " Packages from databases will be freed by libalpm when they are unregistered."]
    #[doc = " @param pkg package pointer to free"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_pkg_free(&self, pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int {
        (self.alpm_pkg_free)(pkg)
    }
    #[doc = " Check the integrity (with md5) of a package from the sync cache."]
    #[doc = " @param pkg package pointer"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_pkg_checkmd5sum(&self, pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int {
        (self.alpm_pkg_checkmd5sum)(pkg)
    }
    #[doc = " Compare two version strings and determine which one is 'newer'."]
    #[doc = " Returns a value comparable to the way strcmp works. Returns 1"]
    #[doc = " if a is newer than b, 0 if a and b are the same version, or -1"]
    #[doc = " if b is newer than a."]
    #[doc = ""]
    #[doc = " Different epoch values for version strings will override any further"]
    #[doc = " comparison. If no epoch is provided, 0 is assumed."]
    #[doc = ""]
    #[doc = " Keep in mind that the pkgrel is only compared if it is available"]
    #[doc = " on both versions handed to this function. For example, comparing"]
    #[doc = " 1.5-1 and 1.5 will yield 0; comparing 1.5-1 and 1.5-2 will yield"]
    #[doc = " -1 as expected. This is mainly for supporting versioned dependencies"]
    #[doc = " that do not include the pkgrel."]
    pub unsafe fn alpm_pkg_vercmp(
        &self,
        a: *const ::std::os::raw::c_char,
        b: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_vercmp)(a, b)
    }
    #[doc = " Computes the list of packages requiring a given package."]
    #[doc = " The return value of this function is a newly allocated"]
    #[doc = " list of package names (char*), it should be freed by the caller."]
    #[doc = " @param pkg a package"]
    #[doc = " @return the list of packages requiring pkg"]
    pub unsafe fn alpm_pkg_compute_requiredby(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_compute_requiredby)(pkg)
    }
    #[doc = " Computes the list of packages optionally requiring a given package."]
    #[doc = " The return value of this function is a newly allocated"]
    #[doc = " list of package names (char*), it should be freed by the caller."]
    #[doc = " @param pkg a package"]
    #[doc = " @return the list of packages optionally requiring pkg"]
    pub unsafe fn alpm_pkg_compute_optionalfor(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_compute_optionalfor)(pkg)
    }
    #[doc = " Test if a package should be ignored."]
    #[doc = " Checks if the package is ignored via IgnorePkg, or if the package is"]
    #[doc = " in a group ignored via IgnoreGroup."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkg the package to test"]
    #[doc = " @return 1 if the package should be ignored, 0 otherwise"]
    pub unsafe fn alpm_pkg_should_ignore(
        &self,
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_should_ignore)(handle, pkg)
    }
    #[doc = " Gets the name of the file from which the package was loaded."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_filename(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_filename)(pkg)
    }
    #[doc = " Returns the package base name."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_base(&self, pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_base)(pkg)
    }
    #[doc = " Returns the package name."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_name(&self, pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_name)(pkg)
    }
    #[doc = " Returns the package version as a string."]
    #[doc = " This includes all available epoch, version, and pkgrel components. Use"]
    #[doc = " alpm_pkg_vercmp() to compare version strings if necessary."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_version(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_version)(pkg)
    }
    #[doc = " Returns the origin of the package."]
    #[doc = " @return an alpm_pkgfrom_t constant, -1 on error"]
    pub unsafe fn alpm_pkg_get_origin(&self, pkg: *mut alpm_pkg_t) -> alpm_pkgfrom_t {
        (self.alpm_pkg_get_origin)(pkg)
    }
    #[doc = " Returns the package description."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_desc(&self, pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_desc)(pkg)
    }
    #[doc = " Returns the package URL."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_url(&self, pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_url)(pkg)
    }
    #[doc = " Returns the build timestamp of the package."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return the timestamp of the build time"]
    pub unsafe fn alpm_pkg_get_builddate(&self, pkg: *mut alpm_pkg_t) -> alpm_time_t {
        (self.alpm_pkg_get_builddate)(pkg)
    }
    #[doc = " Returns the install timestamp of the package."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return the timestamp of the install time"]
    pub unsafe fn alpm_pkg_get_installdate(&self, pkg: *mut alpm_pkg_t) -> alpm_time_t {
        (self.alpm_pkg_get_installdate)(pkg)
    }
    #[doc = " Returns the packager's name."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_packager(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_packager)(pkg)
    }
    #[doc = " Returns the package's MD5 checksum as a string."]
    #[doc = " The returned string is a sequence of 32 lowercase hexadecimal digits."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_md5sum(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_md5sum)(pkg)
    }
    #[doc = " Returns the package's SHA256 checksum as a string."]
    #[doc = " The returned string is a sequence of 64 lowercase hexadecimal digits."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_sha256sum(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_sha256sum)(pkg)
    }
    #[doc = " Returns the architecture for which the package was built."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_arch(&self, pkg: *mut alpm_pkg_t) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_arch)(pkg)
    }
    #[doc = " Returns the size of the package. This is only available for sync database"]
    #[doc = " packages and package files, not those loaded from the local database."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return the size of the package in bytes."]
    pub unsafe fn alpm_pkg_get_size(&self, pkg: *mut alpm_pkg_t) -> off_t {
        (self.alpm_pkg_get_size)(pkg)
    }
    #[doc = " Returns the installed size of the package."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return the total size of files installed by the package."]
    pub unsafe fn alpm_pkg_get_isize(&self, pkg: *mut alpm_pkg_t) -> off_t {
        (self.alpm_pkg_get_isize)(pkg)
    }
    #[doc = " Returns the package installation reason."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return an enum member giving the install reason."]
    pub unsafe fn alpm_pkg_get_reason(&self, pkg: *mut alpm_pkg_t) -> alpm_pkgreason_t {
        (self.alpm_pkg_get_reason)(pkg)
    }
    #[doc = " Returns the list of package licenses."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a pointer to an internal list of strings."]
    pub unsafe fn alpm_pkg_get_licenses(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_licenses)(pkg)
    }
    #[doc = " Returns the list of package groups."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a pointer to an internal list of strings."]
    pub unsafe fn alpm_pkg_get_groups(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_groups)(pkg)
    }
    #[doc = " Returns the list of package dependencies as alpm_depend_t."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_depends(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_depends)(pkg)
    }
    #[doc = " Returns the list of package optional dependencies."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_optdepends(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_optdepends)(pkg)
    }
    #[doc = " Returns a list of package check dependencies"]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_checkdepends(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_checkdepends)(pkg)
    }
    #[doc = " Returns a list of package make dependencies"]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_makedepends(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_makedepends)(pkg)
    }
    #[doc = " Returns the list of packages conflicting with pkg."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_conflicts(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_conflicts)(pkg)
    }
    #[doc = " Returns the list of packages provided by pkg."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_provides(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_provides)(pkg)
    }
    #[doc = " Returns the list of packages to be replaced by pkg."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal list of alpm_depend_t structures."]
    pub unsafe fn alpm_pkg_get_replaces(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_replaces)(pkg)
    }
    #[doc = " Returns the list of files installed by pkg."]
    #[doc = " The filenames are relative to the install root,"]
    #[doc = " and do not include leading slashes."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a pointer to a filelist object containing a count and an array of"]
    #[doc = " package file objects"]
    pub unsafe fn alpm_pkg_get_files(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_filelist_t {
        (self.alpm_pkg_get_files)(pkg)
    }
    #[doc = " Returns the list of files backed up when installing pkg."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to a list of alpm_backup_t objects"]
    pub unsafe fn alpm_pkg_get_backup(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_list_t {
        (self.alpm_pkg_get_backup)(pkg)
    }
    #[doc = " Returns the database containing pkg."]
    #[doc = " Returns a pointer to the alpm_db_t structure the package is"]
    #[doc = " originating from, or NULL if the package was loaded from a file."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a pointer to the DB containing pkg, or NULL."]
    pub unsafe fn alpm_pkg_get_db(&self, pkg: *mut alpm_pkg_t) -> *mut alpm_db_t {
        (self.alpm_pkg_get_db)(pkg)
    }
    #[doc = " Returns the base64 encoded package signature."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return a reference to an internal string"]
    pub unsafe fn alpm_pkg_get_base64_sig(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *const ::std::os::raw::c_char {
        (self.alpm_pkg_get_base64_sig)(pkg)
    }
    #[doc = " Extracts package signature either from embedded package signature"]
    #[doc = " or if it is absent then reads data from detached signature file."]
    #[doc = " @param pkg a pointer to package."]
    #[doc = " @param sig output parameter for signature data. Callee function allocates"]
    #[doc = " a buffer needed for the signature data. Caller is responsible for"]
    #[doc = " freeing this buffer."]
    #[doc = " @param sig_len output parameter for the signature data length."]
    #[doc = " @return 0 on success, negative number on error."]
    pub unsafe fn alpm_pkg_get_sig(
        &self,
        pkg: *mut alpm_pkg_t,
        sig: *mut *mut ::std::os::raw::c_uchar,
        sig_len: *mut usize,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_get_sig)(pkg, sig, sig_len)
    }
    #[doc = " Returns the method used to validate a package during install."]
    #[doc = " @param pkg a pointer to package"]
    #[doc = " @return an enum member giving the validation method"]
    pub unsafe fn alpm_pkg_get_validation(&self, pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int {
        (self.alpm_pkg_get_validation)(pkg)
    }
    #[doc = " Returns whether the package has an install scriptlet."]
    #[doc = " @return 0 if FALSE, TRUE otherwise"]
    pub unsafe fn alpm_pkg_has_scriptlet(&self, pkg: *mut alpm_pkg_t) -> ::std::os::raw::c_int {
        (self.alpm_pkg_has_scriptlet)(pkg)
    }
    #[doc = " Returns the size of the files that will be downloaded to install a"]
    #[doc = " package."]
    #[doc = " @param newpkg the new package to upgrade to"]
    #[doc = " @return the size of the download"]
    pub unsafe fn alpm_pkg_download_size(&self, newpkg: *mut alpm_pkg_t) -> off_t {
        (self.alpm_pkg_download_size)(newpkg)
    }
    #[doc = " Set install reason for a package in the local database."]
    #[doc = " The provided package object must be from the local database or this method"]
    #[doc = " will fail. The write to the local database is performed immediately."]
    #[doc = " @param pkg the package to update"]
    #[doc = " @param reason the new install reason"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_pkg_set_reason(
        &self,
        pkg: *mut alpm_pkg_t,
        reason: alpm_pkgreason_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_set_reason)(pkg, reason)
    }
    #[doc = " Open a package changelog for reading."]
    #[doc = " Similar to fopen in functionality, except that the returned 'file"]
    #[doc = " stream' could really be from an archive as well as from the database."]
    #[doc = " @param pkg the package to read the changelog of (either file or db)"]
    #[doc = " @return a 'file stream' to the package changelog"]
    pub unsafe fn alpm_pkg_changelog_open(
        &self,
        pkg: *mut alpm_pkg_t,
    ) -> *mut ::std::os::raw::c_void {
        (self.alpm_pkg_changelog_open)(pkg)
    }
    #[doc = " Read data from an open changelog 'file stream'."]
    #[doc = " Similar to fread in functionality, this function takes a buffer and"]
    #[doc = " amount of data to read. If an error occurs pm_errno will be set."]
    #[doc = " @param ptr a buffer to fill with raw changelog data"]
    #[doc = " @param size the size of the buffer"]
    #[doc = " @param pkg the package that the changelog is being read from"]
    #[doc = " @param fp a 'file stream' to the package changelog"]
    #[doc = " @return the number of characters read, or 0 if there is no more data or an"]
    #[doc = " error occurred."]
    pub unsafe fn alpm_pkg_changelog_read(
        &self,
        ptr: *mut ::std::os::raw::c_void,
        size: usize,
        pkg: *const alpm_pkg_t,
        fp: *mut ::std::os::raw::c_void,
    ) -> usize {
        (self.alpm_pkg_changelog_read)(ptr, size, pkg, fp)
    }
    #[doc = " Close a package changelog for reading."]
    #[doc = " @param pkg the package to close the changelog of (either file or db)"]
    #[doc = " @param fp the 'file stream' to the package changelog to close"]
    #[doc = " @return 0 on success, -1 on error"]
    pub unsafe fn alpm_pkg_changelog_close(
        &self,
        pkg: *const alpm_pkg_t,
        fp: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_changelog_close)(pkg, fp)
    }
    #[doc = " Open a package mtree file for reading."]
    #[doc = " @param pkg the local package to read the mtree of"]
    #[doc = " @return an archive structure for the package mtree file"]
    pub unsafe fn alpm_pkg_mtree_open(&self, pkg: *mut alpm_pkg_t) -> *mut archive {
        (self.alpm_pkg_mtree_open)(pkg)
    }
    #[doc = " Read next entry from a package mtree file."]
    #[doc = " @param pkg the package that the mtree file is being read from"]
    #[doc = " @param archive the archive structure reading from the mtree file"]
    #[doc = " @param entry an archive_entry to store the entry header information"]
    #[doc = " @return 0 on success, 1 if end of archive is reached, -1 otherwise."]
    pub unsafe fn alpm_pkg_mtree_next(
        &self,
        pkg: *const alpm_pkg_t,
        archive: *mut archive,
        entry: *mut *mut archive_entry,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_mtree_next)(pkg, archive, entry)
    }
    #[doc = " Close a package mtree file."]
    #[doc = " @param pkg the local package to close the mtree of"]
    #[doc = " @param archive the archive to close"]
    pub unsafe fn alpm_pkg_mtree_close(
        &self,
        pkg: *const alpm_pkg_t,
        archive: *mut archive,
    ) -> ::std::os::raw::c_int {
        (self.alpm_pkg_mtree_close)(pkg, archive)
    }
    #[doc = " Returns the bitfield of flags for the current transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return the bitfield of transaction flags"]
    pub unsafe fn alpm_trans_get_flags(&self, handle: *mut alpm_handle_t) -> ::std::os::raw::c_int {
        (self.alpm_trans_get_flags)(handle)
    }
    #[doc = " Returns a list of packages added by the transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a list of alpm_pkg_t structures"]
    pub unsafe fn alpm_trans_get_add(&self, handle: *mut alpm_handle_t) -> *mut alpm_list_t {
        (self.alpm_trans_get_add)(handle)
    }
    #[doc = " Returns the list of packages removed by the transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return a list of alpm_pkg_t structures"]
    pub unsafe fn alpm_trans_get_remove(&self, handle: *mut alpm_handle_t) -> *mut alpm_list_t {
        (self.alpm_trans_get_remove)(handle)
    }
    #[doc = " Initialize the transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param flags flags of the transaction (like nodeps, etc; see alpm_transflag_t)"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_trans_init(
        &self,
        handle: *mut alpm_handle_t,
        flags: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_trans_init)(handle, flags)
    }
    #[doc = " Prepare a transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param data the address of an alpm_list where a list"]
    #[doc = " of alpm_depmissing_t objects is dumped (conflicting packages)"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_trans_prepare(
        &self,
        handle: *mut alpm_handle_t,
        data: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_trans_prepare)(handle, data)
    }
    #[doc = " Commit a transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param data the address of an alpm_list where detailed description"]
    #[doc = " of an error can be dumped (i.e. list of conflicting files)"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_trans_commit(
        &self,
        handle: *mut alpm_handle_t,
        data: *mut *mut alpm_list_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_trans_commit)(handle, data)
    }
    #[doc = " Interrupt a transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_trans_interrupt(&self, handle: *mut alpm_handle_t) -> ::std::os::raw::c_int {
        (self.alpm_trans_interrupt)(handle)
    }
    #[doc = " Release a transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_trans_release(&self, handle: *mut alpm_handle_t) -> ::std::os::raw::c_int {
        (self.alpm_trans_release)(handle)
    }
    #[doc = " Search for packages to upgrade and add them to the transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param enable_downgrade allow downgrading of packages if the remote version is lower"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_sync_sysupgrade(
        &self,
        handle: *mut alpm_handle_t,
        enable_downgrade: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self.alpm_sync_sysupgrade)(handle, enable_downgrade)
    }
    #[doc = " Add a package to the transaction."]
    #[doc = " If the package was loaded by alpm_pkg_load(), it will be freed upon"]
    #[doc = " \\link alpm_trans_release \\endlink invocation."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkg the package to add"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_add_pkg(
        &self,
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_add_pkg)(handle, pkg)
    }
    #[doc = " Add a package removal to the transaction."]
    #[doc = " @param handle the context handle"]
    #[doc = " @param pkg the package to uninstall"]
    #[doc = " @return 0 on success, -1 on error (pm_errno is set accordingly)"]
    pub unsafe fn alpm_remove_pkg(
        &self,
        handle: *mut alpm_handle_t,
        pkg: *mut alpm_pkg_t,
    ) -> ::std::os::raw::c_int {
        (self.alpm_remove_pkg)(handle, pkg)
    }
    #[doc = " Check for new version of pkg in syncdbs."]
    #[doc = ""]
    #[doc = " If the same package appears multiple dbs only the first will be checked"]
    #[doc = ""]
    #[doc = " This only checks the syncdb for a newer version. It does not access the network at all."]
    #[doc = " See \\link alpm_db_update \\endlink to update a database."]
    pub unsafe fn alpm_sync_get_new_version(
        &self,
        pkg: *mut alpm_pkg_t,
        dbs_sync: *mut alpm_list_t,
    ) -> *mut alpm_pkg_t {
        (self.alpm_sync_get_new_version)(pkg, dbs_sync)
    }
    #[doc = " Get the md5 sum of file."]
    #[doc = " @param filename name of the file"]
    #[doc = " @return the checksum on success, NULL on error"]
    pub unsafe fn alpm_compute_md5sum(
        &self,
        filename: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char {
        (self.alpm_compute_md5sum)(filename)
    }
    #[doc = " Get the sha256 sum of file."]
    #[doc = " @param filename name of the file"]
    #[doc = " @return the checksum on success, NULL on error"]
    pub unsafe fn alpm_compute_sha256sum(
        &self,
        filename: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char {
        (self.alpm_compute_sha256sum)(filename)
    }
    #[doc = " Remove the database lock file"]
    #[doc = " @param handle the context handle"]
    #[doc = " @return 0 on success, -1 on error"]
    #[doc = ""]
    #[doc = " @note Safe to call from inside signal handlers."]
    pub unsafe fn alpm_unlock(&self, handle: *mut alpm_handle_t) -> ::std::os::raw::c_int {
        (self.alpm_unlock)(handle)
    }
    #[doc = " Get the version of library."]
    #[doc = " @return the library version, e.g. \"6.0.4\""]
    pub unsafe fn alpm_version(&self) -> *const ::std::os::raw::c_char {
        (self.alpm_version)()
    }
    #[doc = " Get the capabilities of the library."]
    #[doc = " @return a bitmask of the capabilities"]
    pub unsafe fn alpm_capabilities(&self) -> ::std::os::raw::c_int {
        (self.alpm_capabilities)()
    }
}