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
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff+)
// from gir-files (https://github.com/gtk-rs/gir-files @ b215ee8)
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

extern crate libc;
#[macro_use] extern crate bitflags;
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
extern crate gio_sys as gio;

#[allow(unused_imports)]
use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
    c_short, c_ushort, c_long, c_ulong,
    c_void, size_t, ssize_t, intptr_t, uintptr_t, time_t, FILE};

#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType, Volatile};

mod manual;
pub use manual::*;

// Enums
pub type GMimeAddressType = c_int;
pub const GMIME_ADDRESS_TYPE_SENDER: GMimeAddressType = 0;
pub const GMIME_ADDRESS_TYPE_FROM: GMimeAddressType = 1;
pub const GMIME_ADDRESS_TYPE_REPLY_TO: GMimeAddressType = 2;
pub const GMIME_ADDRESS_TYPE_TO: GMimeAddressType = 3;
pub const GMIME_ADDRESS_TYPE_CC: GMimeAddressType = 4;
pub const GMIME_ADDRESS_TYPE_BCC: GMimeAddressType = 5;

pub type GMimeAutocryptPreferEncrypt = c_int;
pub const GMIME_AUTOCRYPT_PREFER_ENCRYPT_NONE: GMimeAutocryptPreferEncrypt = 0;
pub const GMIME_AUTOCRYPT_PREFER_ENCRYPT_MUTUAL: GMimeAutocryptPreferEncrypt = 1;

pub type GMimeCipherAlgo = c_int;
pub const GMIME_CIPHER_ALGO_DEFAULT: GMimeCipherAlgo = 0;
pub const GMIME_CIPHER_ALGO_IDEA: GMimeCipherAlgo = 1;
pub const GMIME_CIPHER_ALGO_3DES: GMimeCipherAlgo = 2;
pub const GMIME_CIPHER_ALGO_CAST5: GMimeCipherAlgo = 3;
pub const GMIME_CIPHER_ALGO_BLOWFISH: GMimeCipherAlgo = 4;
pub const GMIME_CIPHER_ALGO_AES: GMimeCipherAlgo = 7;
pub const GMIME_CIPHER_ALGO_AES192: GMimeCipherAlgo = 8;
pub const GMIME_CIPHER_ALGO_AES256: GMimeCipherAlgo = 9;
pub const GMIME_CIPHER_ALGO_TWOFISH: GMimeCipherAlgo = 10;
pub const GMIME_CIPHER_ALGO_CAMELLIA128: GMimeCipherAlgo = 11;
pub const GMIME_CIPHER_ALGO_CAMELLIA192: GMimeCipherAlgo = 12;
pub const GMIME_CIPHER_ALGO_CAMELLIA256: GMimeCipherAlgo = 13;

pub type GMimeContentEncoding = c_int;
pub const GMIME_CONTENT_ENCODING_DEFAULT: GMimeContentEncoding = 0;
pub const GMIME_CONTENT_ENCODING_7BIT: GMimeContentEncoding = 1;
pub const GMIME_CONTENT_ENCODING_8BIT: GMimeContentEncoding = 2;
pub const GMIME_CONTENT_ENCODING_BINARY: GMimeContentEncoding = 3;
pub const GMIME_CONTENT_ENCODING_BASE64: GMimeContentEncoding = 4;
pub const GMIME_CONTENT_ENCODING_QUOTEDPRINTABLE: GMimeContentEncoding = 5;
pub const GMIME_CONTENT_ENCODING_UUENCODE: GMimeContentEncoding = 6;

pub type GMimeDigestAlgo = c_int;
pub const GMIME_DIGEST_ALGO_DEFAULT: GMimeDigestAlgo = 0;
pub const GMIME_DIGEST_ALGO_MD5: GMimeDigestAlgo = 1;
pub const GMIME_DIGEST_ALGO_SHA1: GMimeDigestAlgo = 2;
pub const GMIME_DIGEST_ALGO_RIPEMD160: GMimeDigestAlgo = 3;
pub const GMIME_DIGEST_ALGO_MD2: GMimeDigestAlgo = 5;
pub const GMIME_DIGEST_ALGO_TIGER192: GMimeDigestAlgo = 6;
pub const GMIME_DIGEST_ALGO_HAVAL5160: GMimeDigestAlgo = 7;
pub const GMIME_DIGEST_ALGO_SHA256: GMimeDigestAlgo = 8;
pub const GMIME_DIGEST_ALGO_SHA384: GMimeDigestAlgo = 9;
pub const GMIME_DIGEST_ALGO_SHA512: GMimeDigestAlgo = 10;
pub const GMIME_DIGEST_ALGO_SHA224: GMimeDigestAlgo = 11;
pub const GMIME_DIGEST_ALGO_MD4: GMimeDigestAlgo = 301;
pub const GMIME_DIGEST_ALGO_CRC32: GMimeDigestAlgo = 302;
pub const GMIME_DIGEST_ALGO_CRC32_RFC1510: GMimeDigestAlgo = 303;
pub const GMIME_DIGEST_ALGO_CRC32_RFC2440: GMimeDigestAlgo = 304;

pub type GMimeEncodingConstraint = c_int;
pub const GMIME_ENCODING_CONSTRAINT_7BIT: GMimeEncodingConstraint = 0;
pub const GMIME_ENCODING_CONSTRAINT_8BIT: GMimeEncodingConstraint = 1;
pub const GMIME_ENCODING_CONSTRAINT_BINARY: GMimeEncodingConstraint = 2;

pub type GMimeEncryptFlags = c_int;
pub const GMIME_ENCRYPT_NONE: GMimeEncryptFlags = 0;
pub const GMIME_ENCRYPT_ALWAYS_TRUST: GMimeEncryptFlags = 1;
pub const GMIME_ENCRYPT_NO_COMPRESS: GMimeEncryptFlags = 16;
pub const GMIME_ENCRYPT_SYMMETRIC: GMimeEncryptFlags = 32;
pub const GMIME_ENCRYPT_THROW_KEYIDS: GMimeEncryptFlags = 64;

pub type GMimeFilterFromMode = c_int;
pub const GMIME_FILTER_FROM_MODE_DEFAULT: GMimeFilterFromMode = 0;
pub const GMIME_FILTER_FROM_MODE_ARMOR: GMimeFilterFromMode = 1;

pub type GMimeFilterGZipMode = c_int;
pub const GMIME_FILTER_GZIP_MODE_ZIP: GMimeFilterGZipMode = 0;
pub const GMIME_FILTER_GZIP_MODE_UNZIP: GMimeFilterGZipMode = 1;

pub type GMimeFormat = c_int;
pub const GMIME_FORMAT_MESSAGE: GMimeFormat = 0;
pub const GMIME_FORMAT_MBOX: GMimeFormat = 1;
pub const GMIME_FORMAT_MMDF: GMimeFormat = 2;

pub type GMimeNewLineFormat = c_int;
pub const GMIME_NEWLINE_FORMAT_UNIX: GMimeNewLineFormat = 0;
pub const GMIME_NEWLINE_FORMAT_DOS: GMimeNewLineFormat = 1;

pub type GMimeOpenPGPData = c_int;
pub const GMIME_OPENPGP_DATA_NONE: GMimeOpenPGPData = 0;
pub const GMIME_OPENPGP_DATA_ENCRYPTED: GMimeOpenPGPData = 1;
pub const GMIME_OPENPGP_DATA_SIGNED: GMimeOpenPGPData = 2;
pub const GMIME_OPENPGP_DATA_PUBLIC_KEY: GMimeOpenPGPData = 3;
pub const GMIME_OPENPGP_DATA_PRIVATE_KEY: GMimeOpenPGPData = 4;

pub type GMimeParamEncodingMethod = c_int;
pub const GMIME_PARAM_ENCODING_METHOD_DEFAULT: GMimeParamEncodingMethod = 0;
pub const GMIME_PARAM_ENCODING_METHOD_RFC2231: GMimeParamEncodingMethod = 1;
pub const GMIME_PARAM_ENCODING_METHOD_RFC2047: GMimeParamEncodingMethod = 2;

pub type GMimeParserWarning = c_int;
pub const GMIME_WARN_DUPLICATED_CONTENT_HDR: GMimeParserWarning = 1;
pub const GMIME_WARN_DUPLICATED_PARAMETER: GMimeParserWarning = 2;
pub const GMIME_WARN_UNENCODED_8BIT_HEADER: GMimeParserWarning = 3;
pub const GMIME_WARN_INVALID_CONTENT_TYPE: GMimeParserWarning = 4;
pub const GMIME_WARN_INVALID_HEADER: GMimeParserWarning = 5;
pub const GMIME_WARN_MALFORMED_MULTIPART: GMimeParserWarning = 6;
pub const GMIME_WARN_TRUNCATED_MESSAGE: GMimeParserWarning = 7;
pub const GMIME_WARN_MALFORMED_MESSAGE: GMimeParserWarning = 8;
pub const GMIME_CRIT_CONFLICTING_CONTENT_HDR: GMimeParserWarning = 9;
pub const GMIME_CRIT_CONFLICTING_PARAMETER: GMimeParserWarning = 10;
pub const GMIME_CRIT_MULTIPART_WITHOUT_BOUNDARY: GMimeParserWarning = 11;

pub type GMimePubKeyAlgo = c_int;
pub const GMIME_PUBKEY_ALGO_DEFAULT: GMimePubKeyAlgo = 0;
pub const GMIME_PUBKEY_ALGO_RSA: GMimePubKeyAlgo = 1;
pub const GMIME_PUBKEY_ALGO_RSA_E: GMimePubKeyAlgo = 2;
pub const GMIME_PUBKEY_ALGO_RSA_S: GMimePubKeyAlgo = 3;
pub const GMIME_PUBKEY_ALGO_ELG_E: GMimePubKeyAlgo = 16;
pub const GMIME_PUBKEY_ALGO_DSA: GMimePubKeyAlgo = 17;
pub const GMIME_PUBKEY_ALGO_ECC: GMimePubKeyAlgo = 18;
pub const GMIME_PUBKEY_ALGO_ELG: GMimePubKeyAlgo = 20;
pub const GMIME_PUBKEY_ALGO_ECDSA: GMimePubKeyAlgo = 301;
pub const GMIME_PUBKEY_ALGO_ECDH: GMimePubKeyAlgo = 302;
pub const GMIME_PUBKEY_ALGO_EDDSA: GMimePubKeyAlgo = 303;

pub type GMimeRfcComplianceMode = c_int;
pub const GMIME_RFC_COMPLIANCE_LOOSE: GMimeRfcComplianceMode = 0;
pub const GMIME_RFC_COMPLIANCE_STRICT: GMimeRfcComplianceMode = 1;

pub type GMimeSecureMimeType = c_int;
pub const GMIME_SECURE_MIME_TYPE_COMPRESSED_DATA: GMimeSecureMimeType = 0;
pub const GMIME_SECURE_MIME_TYPE_ENVELOPED_DATA: GMimeSecureMimeType = 1;
pub const GMIME_SECURE_MIME_TYPE_SIGNED_DATA: GMimeSecureMimeType = 2;
pub const GMIME_SECURE_MIME_TYPE_CERTS_ONLY: GMimeSecureMimeType = 3;
pub const GMIME_SECURE_MIME_TYPE_UNKNOWN: GMimeSecureMimeType = 4;

pub type GMimeSeekWhence = c_int;
pub const GMIME_STREAM_SEEK_SET: GMimeSeekWhence = 0;
pub const GMIME_STREAM_SEEK_CUR: GMimeSeekWhence = 1;
pub const GMIME_STREAM_SEEK_END: GMimeSeekWhence = 2;

pub type GMimeSignatureStatus = c_int;
pub const GMIME_SIGNATURE_STATUS_VALID: GMimeSignatureStatus = 1;
pub const GMIME_SIGNATURE_STATUS_GREEN: GMimeSignatureStatus = 2;
pub const GMIME_SIGNATURE_STATUS_RED: GMimeSignatureStatus = 4;
pub const GMIME_SIGNATURE_STATUS_KEY_REVOKED: GMimeSignatureStatus = 16;
pub const GMIME_SIGNATURE_STATUS_KEY_EXPIRED: GMimeSignatureStatus = 32;
pub const GMIME_SIGNATURE_STATUS_SIG_EXPIRED: GMimeSignatureStatus = 64;
pub const GMIME_SIGNATURE_STATUS_KEY_MISSING: GMimeSignatureStatus = 128;
pub const GMIME_SIGNATURE_STATUS_CRL_MISSING: GMimeSignatureStatus = 256;
pub const GMIME_SIGNATURE_STATUS_CRL_TOO_OLD: GMimeSignatureStatus = 512;
pub const GMIME_SIGNATURE_STATUS_BAD_POLICY: GMimeSignatureStatus = 1024;
pub const GMIME_SIGNATURE_STATUS_SYS_ERROR: GMimeSignatureStatus = 2048;
pub const GMIME_SIGNATURE_STATUS_TOFU_CONFLICT: GMimeSignatureStatus = 4096;

pub type GMimeStreamBufferMode = c_int;
pub const GMIME_STREAM_BUFFER_BLOCK_READ: GMimeStreamBufferMode = 0;
pub const GMIME_STREAM_BUFFER_BLOCK_WRITE: GMimeStreamBufferMode = 1;

pub type GMimeTrust = c_int;
pub const GMIME_TRUST_UNKNOWN: GMimeTrust = 0;
pub const GMIME_TRUST_UNDEFINED: GMimeTrust = 1;
pub const GMIME_TRUST_NEVER: GMimeTrust = 2;
pub const GMIME_TRUST_MARGINAL: GMimeTrust = 3;
pub const GMIME_TRUST_FULL: GMimeTrust = 4;
pub const GMIME_TRUST_ULTIMATE: GMimeTrust = 5;

pub type GMimeValidity = c_int;
pub const GMIME_VALIDITY_UNKNOWN: GMimeValidity = 0;
pub const GMIME_VALIDITY_UNDEFINED: GMimeValidity = 1;
pub const GMIME_VALIDITY_NEVER: GMimeValidity = 2;
pub const GMIME_VALIDITY_MARGINAL: GMimeValidity = 3;
pub const GMIME_VALIDITY_FULL: GMimeValidity = 4;
pub const GMIME_VALIDITY_ULTIMATE: GMimeValidity = 5;

pub type VerifyFlags = c_int;
pub const GMIME_VERIFY_NONE: VerifyFlags = 0;
pub type GMimeVerifyFlags = VerifyFlags;

// Constants
pub const GMIME_BINARY_AGE: c_int = 200;
pub const GMIME_DISPOSITION_ATTACHMENT: *const c_char = b"attachment\0" as *const u8 as *const c_char;
pub const GMIME_DISPOSITION_INLINE: *const c_char = b"inline\0" as *const u8 as *const c_char;
pub const GMIME_FILTER_ENRICHED_IS_RICHTEXT: c_int = 1;
pub const GMIME_FILTER_HTML_BLOCKQUOTE_CITATION: c_int = 256;
pub const GMIME_FILTER_HTML_CITE: c_int = 128;
pub const GMIME_FILTER_HTML_CONVERT_ADDRESSES: c_int = 32;
pub const GMIME_FILTER_HTML_CONVERT_NL: c_int = 2;
pub const GMIME_FILTER_HTML_CONVERT_SPACES: c_int = 4;
pub const GMIME_FILTER_HTML_CONVERT_URLS: c_int = 8;
pub const GMIME_FILTER_HTML_ESCAPE_8BIT: c_int = 64;
pub const GMIME_FILTER_HTML_MARK_CITATION: c_int = 16;
pub const GMIME_FILTER_HTML_PRE: c_int = 1;
pub const GMIME_INTERFACE_AGE: c_int = 0;
pub const GMIME_MAJOR_VERSION: c_int = 3;
pub const GMIME_MICRO_VERSION: c_int = 0;
pub const GMIME_MINOR_VERSION: c_int = 2;
pub const GMIME_SIGNATURE_STATUS_ERROR_MASK: c_int = -1;
pub const GMIME_UUDECODE_STATE_BEGIN: c_int = 65536;
pub const GMIME_UUDECODE_STATE_END: c_int = 131072;
pub const GMIME_UUDECODE_STATE_INIT: c_int = 0;
pub const GMIME_UUDECODE_STATE_MASK: c_int = 0;
pub const GMIME_YDECODE_STATE_BEGIN: c_int = 4096;
pub const GMIME_YDECODE_STATE_DECODE: c_int = 16384;
pub const GMIME_YDECODE_STATE_END: c_int = 32768;
pub const GMIME_YDECODE_STATE_EOLN: c_int = 256;
pub const GMIME_YDECODE_STATE_ESCAPE: c_int = 512;
pub const GMIME_YDECODE_STATE_INIT: c_int = 0;
pub const GMIME_YDECODE_STATE_PART: c_int = 8192;
pub const GMIME_YENCODE_CRC_INIT: c_int = -1;
pub const GMIME_YENCODE_STATE_INIT: c_int = 0;

// Flags
bitflags! {
    #[repr(C)]
    pub struct GMimeDecryptFlags: c_uint {
        const NONE = 0;
        const EXPORT_SESSION_KEY = 1;
    }
}
pub const GMIME_DECRYPT_NONE: GMimeDecryptFlags = GMimeDecryptFlags::NONE;
pub const GMIME_DECRYPT_EXPORT_SESSION_KEY: GMimeDecryptFlags = GMimeDecryptFlags::EXPORT_SESSION_KEY;

bitflags! {
    #[repr(C)]
    pub struct GMimeFilterBestFlags: c_uint {
        const CHARSET = 1;
        const ENCODING = 2;
    }
}
pub const GMIME_FILTER_BEST_CHARSET: GMimeFilterBestFlags = GMimeFilterBestFlags::CHARSET;
pub const GMIME_FILTER_BEST_ENCODING: GMimeFilterBestFlags = GMimeFilterBestFlags::ENCODING;

bitflags! {
    #[repr(C)]
    pub struct GMimeOpenPGPState: c_uint {
        const NONE = 0;
        const BEGIN_PGP_MESSAGE = 1;
        const END_PGP_MESSAGE = 3;
        const BEGIN_PGP_SIGNED_MESSAGE = 4;
        const BEGIN_PGP_SIGNATURE = 12;
        const END_PGP_SIGNATURE = 28;
        const BEGIN_PGP_PUBLIC_KEY_BLOCK = 32;
        const END_PGP_PUBLIC_KEY_BLOCK = 96;
        const BEGIN_PGP_PRIVATE_KEY_BLOCK = 128;
        const END_PGP_PRIVATE_KEY_BLOCK = 384;
    }
}
pub const GMIME_OPENPGP_NONE: GMimeOpenPGPState = GMimeOpenPGPState::NONE;
pub const GMIME_OPENPGP_BEGIN_PGP_MESSAGE: GMimeOpenPGPState = GMimeOpenPGPState::BEGIN_PGP_MESSAGE;
pub const GMIME_OPENPGP_END_PGP_MESSAGE: GMimeOpenPGPState = GMimeOpenPGPState::END_PGP_MESSAGE;
pub const GMIME_OPENPGP_BEGIN_PGP_SIGNED_MESSAGE: GMimeOpenPGPState = GMimeOpenPGPState::BEGIN_PGP_SIGNED_MESSAGE;
pub const GMIME_OPENPGP_BEGIN_PGP_SIGNATURE: GMimeOpenPGPState = GMimeOpenPGPState::BEGIN_PGP_SIGNATURE;
pub const GMIME_OPENPGP_END_PGP_SIGNATURE: GMimeOpenPGPState = GMimeOpenPGPState::END_PGP_SIGNATURE;
pub const GMIME_OPENPGP_BEGIN_PGP_PUBLIC_KEY_BLOCK: GMimeOpenPGPState = GMimeOpenPGPState::BEGIN_PGP_PUBLIC_KEY_BLOCK;
pub const GMIME_OPENPGP_END_PGP_PUBLIC_KEY_BLOCK: GMimeOpenPGPState = GMimeOpenPGPState::END_PGP_PUBLIC_KEY_BLOCK;
pub const GMIME_OPENPGP_BEGIN_PGP_PRIVATE_KEY_BLOCK: GMimeOpenPGPState = GMimeOpenPGPState::BEGIN_PGP_PRIVATE_KEY_BLOCK;
pub const GMIME_OPENPGP_END_PGP_PRIVATE_KEY_BLOCK: GMimeOpenPGPState = GMimeOpenPGPState::END_PGP_PRIVATE_KEY_BLOCK;

// Callbacks
pub type GMimeCryptoContextNewFunc = Option<unsafe extern "C" fn() -> *mut GMimeCryptoContext>;
pub type GMimeHeaderRawValueFormatter = Option<unsafe extern "C" fn(*mut GMimeHeader, *mut GMimeFormatOptions, *const c_char, *const c_char) -> *mut c_char>;
pub type GMimeObjectForeachFunc = Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeObject, gpointer)>;
pub type GMimeParserHeaderRegexFunc = Option<unsafe extern "C" fn(*mut GMimeParser, *const c_char, *const c_char, i64, gpointer)>;
pub type GMimeParserWarningFunc = Option<unsafe extern "C" fn(i64, GMimeParserWarning, *const c_char, gpointer)>;
pub type GMimePasswordRequestFunc = Option<unsafe extern "C" fn(*mut GMimeCryptoContext, *const c_char, *const c_char, gboolean, *mut GMimeStream, *mut *mut glib::GError) -> gboolean>;

// Records
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeApplicationPkcs7MimeClass {
    pub parent_class: GMimePartClass,
}

impl ::std::fmt::Debug for GMimeApplicationPkcs7MimeClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeApplicationPkcs7MimeClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeAutocryptHeaderClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeAutocryptHeaderClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeAutocryptHeaderClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeAutocryptHeaderListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeAutocryptHeaderListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeAutocryptHeaderListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCertificateClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeCertificateClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCertificateClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCertificateListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeCertificateListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCertificateListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCharset {
    pub mask: c_uint,
    pub level: c_uint,
}

impl ::std::fmt::Debug for GMimeCharset {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCharset @ {:?}", self as *const _))
         .field("mask", &self.mask)
         .field("level", &self.level)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeContentDispositionClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeContentDispositionClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeContentDispositionClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeContentTypeClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeContentTypeClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeContentTypeClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCryptoContextClass {
    pub parent_class: gobject::GObjectClass,
    pub digest_id: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, *const c_char) -> GMimeDigestAlgo>,
    pub digest_name: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, GMimeDigestAlgo) -> *const c_char>,
    pub get_signature_protocol: Option<unsafe extern "C" fn(*mut GMimeCryptoContext) -> *const c_char>,
    pub get_encryption_protocol: Option<unsafe extern "C" fn(*mut GMimeCryptoContext) -> *const c_char>,
    pub get_key_exchange_protocol: Option<unsafe extern "C" fn(*mut GMimeCryptoContext) -> *const c_char>,
    pub sign: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, gboolean, *const c_char, *mut GMimeStream, *mut GMimeStream, *mut *mut glib::GError) -> c_int>,
    pub verify: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, GMimeVerifyFlags, *mut GMimeStream, *mut GMimeStream, *mut GMimeStream, *mut *mut glib::GError) -> *mut GMimeSignatureList>,
    pub encrypt: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, gboolean, *const c_char, GMimeEncryptFlags, *mut glib::GPtrArray, *mut GMimeStream, *mut GMimeStream, *mut *mut glib::GError) -> c_int>,
    pub decrypt: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, GMimeDecryptFlags, *const c_char, *mut GMimeStream, *mut GMimeStream, *mut *mut glib::GError) -> *mut GMimeDecryptResult>,
    pub import_keys: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, *mut GMimeStream, *mut *mut glib::GError) -> c_int>,
    pub export_keys: Option<unsafe extern "C" fn(*mut GMimeCryptoContext, *const c_char, *mut GMimeStream, *mut *mut glib::GError) -> c_int>,
}

impl ::std::fmt::Debug for GMimeCryptoContextClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCryptoContextClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("digest_id", &self.digest_id)
         .field("digest_name", &self.digest_name)
         .field("get_signature_protocol", &self.get_signature_protocol)
         .field("get_encryption_protocol", &self.get_encryption_protocol)
         .field("get_key_exchange_protocol", &self.get_key_exchange_protocol)
         .field("sign", &self.sign)
         .field("verify", &self.verify)
         .field("encrypt", &self.encrypt)
         .field("decrypt", &self.decrypt)
         .field("import_keys", &self.import_keys)
         .field("export_keys", &self.export_keys)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeDataWrapperClass {
    pub parent_class: gobject::GObjectClass,
    pub write_to_stream: Option<unsafe extern "C" fn(*mut GMimeDataWrapper, *mut GMimeStream) -> ssize_t>,
}

impl ::std::fmt::Debug for GMimeDataWrapperClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeDataWrapperClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("write_to_stream", &self.write_to_stream)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeDecryptResultClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeDecryptResultClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeDecryptResultClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeEncoding {
    pub encoding: GMimeContentEncoding,
    pub uubuf: [c_uint; 60],
    pub encode: gboolean,
    pub save: u32,
    pub state: c_int,
}

impl ::std::fmt::Debug for GMimeEncoding {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeEncoding @ {:?}", self as *const _))
         .field("encoding", &self.encoding)
         .field("encode", &self.encode)
         .field("save", &self.save)
         .field("state", &self.state)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterBasicClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterBasicClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterBasicClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterBestClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterBestClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterBestClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterCharsetClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterCharsetClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterCharsetClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterChecksumClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterChecksumClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterChecksumClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterClass {
    pub parent_class: gobject::GObjectClass,
    pub copy: Option<unsafe extern "C" fn(*mut GMimeFilter) -> *mut GMimeFilter>,
    pub filter: Option<unsafe extern "C" fn(*mut GMimeFilter, *mut u8, size_t, size_t, *mut *mut u8, *mut size_t, *mut size_t)>,
    pub complete: Option<unsafe extern "C" fn(*mut GMimeFilter, *mut u8, size_t, size_t, *mut *mut u8, *mut size_t, *mut size_t)>,
    pub reset: Option<unsafe extern "C" fn(*mut GMimeFilter)>,
}

impl ::std::fmt::Debug for GMimeFilterClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("copy", &self.copy)
         .field("filter", &self.filter)
         .field("complete", &self.complete)
         .field("reset", &self.reset)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterDos2UnixClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterDos2UnixClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterDos2UnixClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterEnrichedClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterEnrichedClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterEnrichedClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterFromClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterFromClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterFromClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterGZipClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterGZipClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterGZipClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterHTMLClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterHTMLClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterHTMLClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterOpenPGPClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterOpenPGPClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterOpenPGPClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterSmtpDataClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterSmtpDataClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterSmtpDataClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterStripClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterStripClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterStripClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterUnix2DosClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterUnix2DosClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterUnix2DosClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterWindowsClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterWindowsClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterWindowsClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterYencClass {
    pub parent_class: GMimeFilterClass,
}

impl ::std::fmt::Debug for GMimeFilterYencClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterYencClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
pub struct GMimeFormatOptions(c_void);

impl ::std::fmt::Debug for GMimeFormatOptions {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFormatOptions @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
pub struct GMimeGpgContextClass(c_void);

impl ::std::fmt::Debug for GMimeGpgContextClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeGpgContextClass @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeHeaderClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeHeaderClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeHeaderClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeHeaderListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeHeaderListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeHeaderListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessageClass {
    pub parent_class: GMimeObjectClass,
}

impl ::std::fmt::Debug for GMimeMessageClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessageClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessagePartClass {
    pub parent_class: GMimeObjectClass,
}

impl ::std::fmt::Debug for GMimeMessagePartClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessagePartClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessagePartialClass {
    pub parent_class: GMimePartClass,
}

impl ::std::fmt::Debug for GMimeMessagePartialClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessagePartialClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipartClass {
    pub parent_class: GMimeObjectClass,
    pub clear: Option<unsafe extern "C" fn(*mut GMimeMultipart)>,
    pub add: Option<unsafe extern "C" fn(*mut GMimeMultipart, *mut GMimeObject)>,
    pub insert: Option<unsafe extern "C" fn(*mut GMimeMultipart, c_int, *mut GMimeObject)>,
    pub remove: Option<unsafe extern "C" fn(*mut GMimeMultipart, *mut GMimeObject) -> gboolean>,
    pub remove_at: Option<unsafe extern "C" fn(*mut GMimeMultipart, c_int) -> *mut GMimeObject>,
    pub get_part: Option<unsafe extern "C" fn(*mut GMimeMultipart, c_int) -> *mut GMimeObject>,
    pub contains: Option<unsafe extern "C" fn(*mut GMimeMultipart, *mut GMimeObject) -> gboolean>,
    pub index_of: Option<unsafe extern "C" fn(*mut GMimeMultipart, *mut GMimeObject) -> c_int>,
    pub get_count: Option<unsafe extern "C" fn(*mut GMimeMultipart) -> c_int>,
    pub set_boundary: Option<unsafe extern "C" fn(*mut GMimeMultipart, *const c_char)>,
    pub get_boundary: Option<unsafe extern "C" fn(*mut GMimeMultipart) -> *const c_char>,
}

impl ::std::fmt::Debug for GMimeMultipartClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipartClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("clear", &self.clear)
         .field("add", &self.add)
         .field("insert", &self.insert)
         .field("remove", &self.remove)
         .field("remove_at", &self.remove_at)
         .field("get_part", &self.get_part)
         .field("contains", &self.contains)
         .field("index_of", &self.index_of)
         .field("get_count", &self.get_count)
         .field("set_boundary", &self.set_boundary)
         .field("get_boundary", &self.get_boundary)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipartEncryptedClass {
    pub parent_class: GMimeMultipartClass,
}

impl ::std::fmt::Debug for GMimeMultipartEncryptedClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipartEncryptedClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipartSignedClass {
    pub parent_class: GMimeMultipartClass,
}

impl ::std::fmt::Debug for GMimeMultipartSignedClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipartSignedClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeObjectClass {
    pub parent_class: gobject::GObjectClass,
    pub header_added: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeHeader)>,
    pub header_changed: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeHeader)>,
    pub header_removed: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeHeader)>,
    pub headers_cleared: Option<unsafe extern "C" fn(*mut GMimeObject)>,
    pub set_content_type: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeContentType)>,
    pub get_headers: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeFormatOptions) -> *mut c_char>,
    pub write_to_stream: Option<unsafe extern "C" fn(*mut GMimeObject, *mut GMimeFormatOptions, gboolean, *mut GMimeStream) -> ssize_t>,
    pub encode: Option<unsafe extern "C" fn(*mut GMimeObject, GMimeEncodingConstraint)>,
}

impl ::std::fmt::Debug for GMimeObjectClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeObjectClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("header_added", &self.header_added)
         .field("header_changed", &self.header_changed)
         .field("header_removed", &self.header_removed)
         .field("headers_cleared", &self.headers_cleared)
         .field("set_content_type", &self.set_content_type)
         .field("get_headers", &self.get_headers)
         .field("write_to_stream", &self.write_to_stream)
         .field("encode", &self.encode)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeOpenPGPMarker {
    pub marker: *const c_char,
    pub len: size_t,
    pub before: GMimeOpenPGPState,
    pub after: GMimeOpenPGPState,
    pub is_end_marker: gboolean,
}

impl ::std::fmt::Debug for GMimeOpenPGPMarker {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeOpenPGPMarker @ {:?}", self as *const _))
         .field("marker", &self.marker)
         .field("len", &self.len)
         .field("before", &self.before)
         .field("after", &self.after)
         .field("is_end_marker", &self.is_end_marker)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParamClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeParamClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParamClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParamListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeParamListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParamListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParserClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeParserClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParserClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
pub struct GMimeParserOptions(c_void);

impl ::std::fmt::Debug for GMimeParserOptions {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParserOptions @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimePartClass {
    pub parent_class: GMimeObjectClass,
    pub set_content: Option<unsafe extern "C" fn(*mut GMimePart, *mut GMimeDataWrapper)>,
}

impl ::std::fmt::Debug for GMimePartClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimePartClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("set_content", &self.set_content)
         .finish()
    }
}

#[repr(C)]
pub struct GMimePartIter(c_void);

impl ::std::fmt::Debug for GMimePartIter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimePartIter @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
pub struct GMimePkcs7ContextClass(c_void);

impl ::std::fmt::Debug for GMimePkcs7ContextClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimePkcs7ContextClass @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeReferences {
    pub array: *mut glib::GPtrArray,
}

impl ::std::fmt::Debug for GMimeReferences {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeReferences @ {:?}", self as *const _))
         .field("array", &self.array)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeSignatureClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeSignatureClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeSignatureClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeSignatureListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for GMimeSignatureListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeSignatureListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamBufferClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamBufferClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamBufferClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamCatClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamCatClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamCatClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamClass {
    pub parent_class: gobject::GObjectClass,
    pub read: Option<unsafe extern "C" fn(*mut GMimeStream, *mut u8, size_t) -> ssize_t>,
    pub write: Option<unsafe extern "C" fn(*mut GMimeStream, *const c_char, size_t) -> ssize_t>,
    pub flush: Option<unsafe extern "C" fn(*mut GMimeStream) -> c_int>,
    pub close: Option<unsafe extern "C" fn(*mut GMimeStream) -> c_int>,
    pub eos: Option<unsafe extern "C" fn(*mut GMimeStream) -> gboolean>,
    pub reset: Option<unsafe extern "C" fn(*mut GMimeStream) -> c_int>,
    pub seek: Option<unsafe extern "C" fn(*mut GMimeStream, i64, GMimeSeekWhence) -> i64>,
    pub tell: Option<unsafe extern "C" fn(*mut GMimeStream) -> i64>,
    pub length: Option<unsafe extern "C" fn(*mut GMimeStream) -> i64>,
    pub substream: Option<unsafe extern "C" fn(*mut GMimeStream, i64, i64) -> *mut GMimeStream>,
}

impl ::std::fmt::Debug for GMimeStreamClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("read", &self.read)
         .field("write", &self.write)
         .field("flush", &self.flush)
         .field("close", &self.close)
         .field("eos", &self.eos)
         .field("reset", &self.reset)
         .field("seek", &self.seek)
         .field("tell", &self.tell)
         .field("length", &self.length)
         .field("substream", &self.substream)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFileClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamFileClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFileClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFilterClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamFilterClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFilterClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFsClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamFsClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFsClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamGIOClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamGIOClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamGIOClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamIOVector {
    pub data: *mut c_void,
    pub len: size_t,
}

impl ::std::fmt::Debug for GMimeStreamIOVector {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamIOVector @ {:?}", self as *const _))
         .field("data", &self.data)
         .field("len", &self.len)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamMemClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamMemClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamMemClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamMmapClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamMmapClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamMmapClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamNullClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamNullClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamNullClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamPipeClass {
    pub parent_class: GMimeStreamClass,
}

impl ::std::fmt::Debug for GMimeStreamPipeClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamPipeClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeTextPartClass {
    pub parent_class: GMimePartClass,
}

impl ::std::fmt::Debug for GMimeTextPartClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeTextPartClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressClass {
    pub parent_class: gobject::GObjectClass,
    pub to_string: Option<unsafe extern "C" fn(*mut InternetAddress, *mut GMimeFormatOptions, u32, *mut size_t, *mut glib::GString)>,
}

impl ::std::fmt::Debug for InternetAddressClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .field("to_string", &self.to_string)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressGroupClass {
    pub parent_class: InternetAddressClass,
}

impl ::std::fmt::Debug for InternetAddressGroupClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressGroupClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressListClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for InternetAddressListClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressListClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressMailboxClass {
    pub parent_class: InternetAddressClass,
}

impl ::std::fmt::Debug for InternetAddressMailboxClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressMailboxClass @ {:?}", self as *const _))
         .field("parent_class", &self.parent_class)
         .finish()
    }
}

// Classes
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeApplicationPkcs7Mime {
    pub parent_object: GMimePart,
    pub smime_type: GMimeSecureMimeType,
}

impl ::std::fmt::Debug for GMimeApplicationPkcs7Mime {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeApplicationPkcs7Mime @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("smime_type", &self.smime_type)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeAutocryptHeader {
    pub parent_object: gobject::GObject,
    pub address: *mut InternetAddressMailbox,
    pub prefer_encrypt: GMimeAutocryptPreferEncrypt,
    pub keydata: *mut glib::GBytes,
    pub effective_date: *mut glib::GDateTime,
}

impl ::std::fmt::Debug for GMimeAutocryptHeader {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeAutocryptHeader @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("address", &self.address)
         .field("prefer_encrypt", &self.prefer_encrypt)
         .field("keydata", &self.keydata)
         .field("effective_date", &self.effective_date)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeAutocryptHeaderList {
    pub parent_object: gobject::GObject,
    pub array: *mut glib::GPtrArray,
}

impl ::std::fmt::Debug for GMimeAutocryptHeaderList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeAutocryptHeaderList @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCertificate {
    pub parent_object: gobject::GObject,
    pub pubkey_algo: GMimePubKeyAlgo,
    pub digest_algo: GMimeDigestAlgo,
    pub trust: GMimeTrust,
    pub issuer_serial: *mut c_char,
    pub issuer_name: *mut c_char,
    pub fingerprint: *mut c_char,
    pub created: c_long,
    pub expires: c_long,
    pub keyid: *mut c_char,
    pub email: *mut c_char,
    pub name: *mut c_char,
    pub user_id: *mut c_char,
    pub id_validity: GMimeValidity,
}

impl ::std::fmt::Debug for GMimeCertificate {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCertificate @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("pubkey_algo", &self.pubkey_algo)
         .field("digest_algo", &self.digest_algo)
         .field("trust", &self.trust)
         .field("issuer_serial", &self.issuer_serial)
         .field("issuer_name", &self.issuer_name)
         .field("fingerprint", &self.fingerprint)
         .field("created", &self.created)
         .field("expires", &self.expires)
         .field("keyid", &self.keyid)
         .field("email", &self.email)
         .field("name", &self.name)
         .field("user_id", &self.user_id)
         .field("id_validity", &self.id_validity)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCertificateList {
    pub parent_object: gobject::GObject,
    pub array: *mut glib::GPtrArray,
}

impl ::std::fmt::Debug for GMimeCertificateList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCertificateList @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("array", &self.array)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeContentDisposition {
    pub parent_object: gobject::GObject,
    pub disposition: *mut c_char,
    pub params: *mut GMimeParamList,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for GMimeContentDisposition {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeContentDisposition @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("disposition", &self.disposition)
         .field("params", &self.params)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeContentType {
    pub parent_object: gobject::GObject,
    pub type_: *mut c_char,
    pub subtype: *mut c_char,
    pub params: *mut GMimeParamList,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for GMimeContentType {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeContentType @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("type_", &self.type_)
         .field("subtype", &self.subtype)
         .field("params", &self.params)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeCryptoContext {
    pub parent_object: gobject::GObject,
    pub request_passwd: GMimePasswordRequestFunc,
}

impl ::std::fmt::Debug for GMimeCryptoContext {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeCryptoContext @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("request_passwd", &self.request_passwd)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeDataWrapper {
    pub parent_object: gobject::GObject,
    pub encoding: GMimeContentEncoding,
    pub stream: *mut GMimeStream,
}

impl ::std::fmt::Debug for GMimeDataWrapper {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeDataWrapper @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("encoding", &self.encoding)
         .field("stream", &self.stream)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeDecryptResult {
    pub parent_object: gobject::GObject,
    pub recipients: *mut GMimeCertificateList,
    pub signatures: *mut GMimeSignatureList,
    pub cipher: GMimeCipherAlgo,
    pub mdc: GMimeDigestAlgo,
    pub session_key: *mut c_char,
}

impl ::std::fmt::Debug for GMimeDecryptResult {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeDecryptResult @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("recipients", &self.recipients)
         .field("signatures", &self.signatures)
         .field("cipher", &self.cipher)
         .field("mdc", &self.mdc)
         .field("session_key", &self.session_key)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilter {
    pub parent_object: gobject::GObject,
    pub priv_: *mut _GMimeFilterPrivate,
    pub outreal: *mut c_char,
    pub outbuf: *mut c_char,
    pub outptr: *mut c_char,
    pub outsize: size_t,
    pub outpre: size_t,
    pub backbuf: *mut c_char,
    pub backsize: size_t,
    pub backlen: size_t,
}

impl ::std::fmt::Debug for GMimeFilter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilter @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("outreal", &self.outreal)
         .field("outbuf", &self.outbuf)
         .field("outptr", &self.outptr)
         .field("outsize", &self.outsize)
         .field("outpre", &self.outpre)
         .field("backbuf", &self.backbuf)
         .field("backsize", &self.backsize)
         .field("backlen", &self.backlen)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterBasic {
    pub parent_object: GMimeFilter,
    pub encoder: GMimeEncoding,
}

impl ::std::fmt::Debug for GMimeFilterBasic {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterBasic @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("encoder", &self.encoder)
         .finish()
    }
}

#[repr(C)]
pub struct GMimeFilterBest {
    pub parent_object: GMimeFilter,
    pub flags: GMimeFilterBestFlags,
    pub charset: GMimeCharset,
    pub count0: c_uint,
    pub count8: c_uint,
    pub total: c_uint,
    pub maxline: c_uint,
    pub linelen: c_uint,
    pub frombuf: [c_uint; 6],
    _truncated_record_marker: c_void,
    // /*Ignored*/field fromlen has incomplete type
}

impl ::std::fmt::Debug for GMimeFilterBest {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterBest @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("flags", &self.flags)
         .field("charset", &self.charset)
         .field("count0", &self.count0)
         .field("count8", &self.count8)
         .field("total", &self.total)
         .field("maxline", &self.maxline)
         .field("linelen", &self.linelen)
         .field("frombuf", &self.frombuf)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterCharset {
    pub parent_object: GMimeFilter,
    pub from_charset: *mut c_char,
    pub to_charset: *mut c_char,
    pub cd: iconv_t,
}

impl ::std::fmt::Debug for GMimeFilterCharset {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterCharset @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("from_charset", &self.from_charset)
         .field("to_charset", &self.to_charset)
         .field("cd", &self.cd)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterChecksum {
    pub parent_object: GMimeFilter,
    pub checksum: *mut glib::GChecksum,
}

impl ::std::fmt::Debug for GMimeFilterChecksum {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterChecksum @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("checksum", &self.checksum)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterDos2Unix {
    pub parent_object: GMimeFilter,
    pub ensure_newline: gboolean,
    pub pc: c_char,
}

impl ::std::fmt::Debug for GMimeFilterDos2Unix {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterDos2Unix @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("ensure_newline", &self.ensure_newline)
         .field("pc", &self.pc)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterEnriched {
    pub parent_object: GMimeFilter,
    pub flags: u32,
    pub nofill: c_int,
}

impl ::std::fmt::Debug for GMimeFilterEnriched {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterEnriched @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("flags", &self.flags)
         .field("nofill", &self.nofill)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterFrom {
    pub parent_object: GMimeFilter,
    pub mode: GMimeFilterFromMode,
    pub midline: gboolean,
}

impl ::std::fmt::Debug for GMimeFilterFrom {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterFrom @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("mode", &self.mode)
         .field("midline", &self.midline)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterGZip {
    pub parent_object: GMimeFilter,
    pub priv_: *mut _GMimeFilterGZipPrivate,
    pub mode: GMimeFilterGZipMode,
    pub level: c_int,
}

impl ::std::fmt::Debug for GMimeFilterGZip {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterGZip @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("mode", &self.mode)
         .field("level", &self.level)
         .finish()
    }
}

#[repr(C)]
pub struct GMimeFilterHTML {
    pub parent_object: GMimeFilter,
    pub scanner: *mut _UrlScanner,
    pub flags: u32,
    pub colour: u32,
    _truncated_record_marker: c_void,
    // /*Ignored*/field column has incomplete type
}

impl ::std::fmt::Debug for GMimeFilterHTML {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterHTML @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("scanner", &self.scanner)
         .field("flags", &self.flags)
         .field("colour", &self.colour)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterOpenPGP {
    pub parent_object: GMimeFilter,
    pub state: GMimeOpenPGPState,
    pub seen_end_marker: gboolean,
    pub midline: gboolean,
    pub begin_offset: i64,
    pub end_offset: i64,
    pub position: i64,
    pub next: c_uint,
}

impl ::std::fmt::Debug for GMimeFilterOpenPGP {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterOpenPGP @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterSmtpData {
    pub parent_object: GMimeFilter,
    pub bol: gboolean,
}

impl ::std::fmt::Debug for GMimeFilterSmtpData {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterSmtpData @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("bol", &self.bol)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterStrip {
    pub parent_object: GMimeFilter,
    pub lwsp: *mut c_void,
}

impl ::std::fmt::Debug for GMimeFilterStrip {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterStrip @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterUnix2Dos {
    pub parent_object: GMimeFilter,
    pub ensure_newline: gboolean,
    pub pc: c_char,
}

impl ::std::fmt::Debug for GMimeFilterUnix2Dos {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterUnix2Dos @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("ensure_newline", &self.ensure_newline)
         .field("pc", &self.pc)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterWindows {
    pub parent_object: GMimeFilter,
    pub is_windows: gboolean,
    pub claimed_charset: *mut c_char,
}

impl ::std::fmt::Debug for GMimeFilterWindows {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterWindows @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("is_windows", &self.is_windows)
         .field("claimed_charset", &self.claimed_charset)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeFilterYenc {
    pub parent_object: GMimeFilter,
    pub encode: gboolean,
    pub part: c_int,
    pub state: c_int,
    pub pcrc: u32,
    pub crc: u32,
}

impl ::std::fmt::Debug for GMimeFilterYenc {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeFilterYenc @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("encode", &self.encode)
         .field("part", &self.part)
         .field("state", &self.state)
         .field("pcrc", &self.pcrc)
         .field("crc", &self.crc)
         .finish()
    }
}

#[repr(C)]
pub struct GMimeGpgContext(c_void);

impl ::std::fmt::Debug for GMimeGpgContext {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeGpgContext @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeHeader {
    pub parent_object: gobject::GObject,
    pub name: *mut c_char,
    pub value: *mut c_char,
    pub formatter: GMimeHeaderRawValueFormatter,
    pub options: *mut GMimeParserOptions,
    pub reformat: gboolean,
    pub changed: gpointer,
    pub raw_value: *mut c_char,
    pub raw_name: *mut c_char,
    pub charset: *mut c_char,
    pub offset: i64,
}

impl ::std::fmt::Debug for GMimeHeader {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeHeader @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeHeaderList {
    pub parent_object: gobject::GObject,
    pub options: *mut GMimeParserOptions,
    pub changed: gpointer,
    pub hash: *mut glib::GHashTable,
    pub array: *mut glib::GPtrArray,
}

impl ::std::fmt::Debug for GMimeHeaderList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeHeaderList @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessage {
    pub parent_object: GMimeObject,
    pub addrlists: *mut *mut InternetAddressList,
    pub mime_part: *mut GMimeObject,
    pub message_id: *mut c_char,
    pub date: *mut glib::GDateTime,
    pub subject: *mut c_char,
    pub marker: *mut c_char,
}

impl ::std::fmt::Debug for GMimeMessage {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessage @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("addrlists", &self.addrlists)
         .field("mime_part", &self.mime_part)
         .field("message_id", &self.message_id)
         .field("date", &self.date)
         .field("subject", &self.subject)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessagePart {
    pub parent_object: GMimeObject,
    pub message: *mut GMimeMessage,
}

impl ::std::fmt::Debug for GMimeMessagePart {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessagePart @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("message", &self.message)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMessagePartial {
    pub parent_object: GMimePart,
    pub number: c_int,
    pub total: c_int,
    pub id: *mut c_char,
}

impl ::std::fmt::Debug for GMimeMessagePartial {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMessagePartial @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("number", &self.number)
         .field("total", &self.total)
         .field("id", &self.id)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipart {
    pub parent_object: GMimeObject,
    pub children: *mut glib::GPtrArray,
    pub boundary: *mut c_char,
    pub prologue: *mut c_char,
    pub epilogue: *mut c_char,
    pub write_end_boundary: gboolean,
}

impl ::std::fmt::Debug for GMimeMultipart {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipart @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("children", &self.children)
         .field("boundary", &self.boundary)
         .field("prologue", &self.prologue)
         .field("epilogue", &self.epilogue)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipartEncrypted {
    pub parent_object: GMimeMultipart,
}

impl ::std::fmt::Debug for GMimeMultipartEncrypted {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipartEncrypted @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeMultipartSigned {
    pub parent_object: GMimeMultipart,
}

impl ::std::fmt::Debug for GMimeMultipartSigned {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeMultipartSigned @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeObject {
    pub parent_object: gobject::GObject,
    pub disposition: *mut GMimeContentDisposition,
    pub content_type: *mut GMimeContentType,
    pub headers: *mut GMimeHeaderList,
    pub content_id: *mut c_char,
    pub ensure_newline: gboolean,
}

impl ::std::fmt::Debug for GMimeObject {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeObject @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("disposition", &self.disposition)
         .field("content_type", &self.content_type)
         .field("headers", &self.headers)
         .field("content_id", &self.content_id)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParam {
    pub parent_object: gobject::GObject,
    pub method: GMimeParamEncodingMethod,
    pub charset: *mut c_char,
    pub lang: *mut c_char,
    pub name: *mut c_char,
    pub value: *mut c_char,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for GMimeParam {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParam @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("method", &self.method)
         .field("charset", &self.charset)
         .field("lang", &self.lang)
         .field("name", &self.name)
         .field("value", &self.value)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParamList {
    pub parent_object: gobject::GObject,
    pub array: *mut glib::GPtrArray,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for GMimeParamList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParamList @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeParser {
    pub parent_object: gobject::GObject,
    pub priv_: *mut _GMimeParserPrivate,
}

impl ::std::fmt::Debug for GMimeParser {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeParser @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimePart {
    pub parent_object: GMimeObject,
    pub encoding: GMimeContentEncoding,
    pub openpgp: GMimeOpenPGPData,
    pub content_description: *mut c_char,
    pub content_location: *mut c_char,
    pub content_md5: *mut c_char,
    pub content: *mut GMimeDataWrapper,
}

impl ::std::fmt::Debug for GMimePart {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimePart @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("encoding", &self.encoding)
         .field("openpgp", &self.openpgp)
         .field("content_description", &self.content_description)
         .field("content_location", &self.content_location)
         .field("content_md5", &self.content_md5)
         .field("content", &self.content)
         .finish()
    }
}

#[repr(C)]
pub struct GMimePkcs7Context(c_void);

impl ::std::fmt::Debug for GMimePkcs7Context {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimePkcs7Context @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeSignature {
    pub parent_object: gobject::GObject,
    pub status: GMimeSignatureStatus,
    pub cert: *mut GMimeCertificate,
    pub created: c_long,
    pub expires: c_long,
}

impl ::std::fmt::Debug for GMimeSignature {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeSignature @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("status", &self.status)
         .field("cert", &self.cert)
         .field("created", &self.created)
         .field("expires", &self.expires)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeSignatureList {
    pub parent_object: gobject::GObject,
    pub array: *mut glib::GPtrArray,
}

impl ::std::fmt::Debug for GMimeSignatureList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeSignatureList @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStream {
    pub parent_object: gobject::GObject,
    pub super_stream: *mut GMimeStream,
    pub position: i64,
    pub bound_start: i64,
    pub bound_end: i64,
}

impl ::std::fmt::Debug for GMimeStream {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStream @ {:?}", self as *const _))
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamBuffer {
    pub parent_object: GMimeStream,
    pub mode: GMimeStreamBufferMode,
    pub source: *mut GMimeStream,
    pub buffer: *mut c_char,
    pub bufptr: *mut c_char,
    pub bufend: *mut c_char,
    pub buflen: size_t,
}

impl ::std::fmt::Debug for GMimeStreamBuffer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamBuffer @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("mode", &self.mode)
         .field("source", &self.source)
         .field("buffer", &self.buffer)
         .field("bufptr", &self.bufptr)
         .field("bufend", &self.bufend)
         .field("buflen", &self.buflen)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamCat {
    pub parent_object: GMimeStream,
    pub sources: *mut _cat_node,
    pub current: *mut _cat_node,
}

impl ::std::fmt::Debug for GMimeStreamCat {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamCat @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("sources", &self.sources)
         .field("current", &self.current)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFile {
    pub parent_object: GMimeStream,
    pub owner: gboolean,
    pub fp: *mut FILE,
}

impl ::std::fmt::Debug for GMimeStreamFile {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFile @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("owner", &self.owner)
         .field("fp", &self.fp)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFilter {
    pub parent_object: GMimeStream,
    pub priv_: *mut _GMimeStreamFilterPrivate,
    pub source: *mut GMimeStream,
    pub owner: gboolean,
}

impl ::std::fmt::Debug for GMimeStreamFilter {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFilter @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("source", &self.source)
         .field("owner", &self.owner)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamFs {
    pub parent_object: GMimeStream,
    pub owner: gboolean,
    pub eos: gboolean,
    pub fd: c_int,
}

impl ::std::fmt::Debug for GMimeStreamFs {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamFs @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("owner", &self.owner)
         .field("eos", &self.eos)
         .field("fd", &self.fd)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamGIO {
    pub parent_object: GMimeStream,
    pub ostream: *mut gio::GOutputStream,
    pub istream: *mut gio::GInputStream,
    pub file: *mut gio::GFile,
    pub owner: gboolean,
    pub eos: gboolean,
}

impl ::std::fmt::Debug for GMimeStreamGIO {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamGIO @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("ostream", &self.ostream)
         .field("istream", &self.istream)
         .field("file", &self.file)
         .field("owner", &self.owner)
         .field("eos", &self.eos)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamMem {
    pub parent_object: GMimeStream,
    pub buffer: *mut glib::GByteArray,
    pub owner: gboolean,
}

impl ::std::fmt::Debug for GMimeStreamMem {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamMem @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("buffer", &self.buffer)
         .field("owner", &self.owner)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamMmap {
    pub parent_object: GMimeStream,
    pub owner: gboolean,
    pub eos: gboolean,
    pub fd: c_int,
    pub map: *mut c_char,
    pub maplen: size_t,
}

impl ::std::fmt::Debug for GMimeStreamMmap {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamMmap @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("owner", &self.owner)
         .field("eos", &self.eos)
         .field("fd", &self.fd)
         .field("map", &self.map)
         .field("maplen", &self.maplen)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamNull {
    pub parent_object: GMimeStream,
    pub written: size_t,
    pub newlines: size_t,
    pub count_newlines: gboolean,
}

impl ::std::fmt::Debug for GMimeStreamNull {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamNull @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("written", &self.written)
         .field("newlines", &self.newlines)
         .field("count_newlines", &self.count_newlines)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeStreamPipe {
    pub parent_object: GMimeStream,
    pub owner: gboolean,
    pub eos: gboolean,
    pub fd: c_int,
}

impl ::std::fmt::Debug for GMimeStreamPipe {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeStreamPipe @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("owner", &self.owner)
         .field("eos", &self.eos)
         .field("fd", &self.fd)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct GMimeTextPart {
    pub parent_object: GMimePart,
}

impl ::std::fmt::Debug for GMimeTextPart {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("GMimeTextPart @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddress {
    pub parent_object: gobject::GObject,
    pub charset: *mut c_char,
    pub name: *mut c_char,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for InternetAddress {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddress @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("charset", &self.charset)
         .field("name", &self.name)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressGroup {
    pub parent_object: InternetAddress,
    pub members: *mut InternetAddressList,
}

impl ::std::fmt::Debug for InternetAddressGroup {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressGroup @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("members", &self.members)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressList {
    pub parent_object: gobject::GObject,
    pub array: *mut glib::GPtrArray,
    pub changed: gpointer,
}

impl ::std::fmt::Debug for InternetAddressList {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressList @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("array", &self.array)
         .finish()
    }
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct InternetAddressMailbox {
    pub parent_object: InternetAddress,
    pub idn_addr: *mut c_char,
    pub addr: *mut c_char,
    pub at: c_int,
}

impl ::std::fmt::Debug for InternetAddressMailbox {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("InternetAddressMailbox @ {:?}", self as *const _))
         .field("parent_object", &self.parent_object)
         .field("idn_addr", &self.idn_addr)
         .field("addr", &self.addr)
         .field("at", &self.at)
         .finish()
    }
}

extern "C" {

    //=========================================================================
    // GMimeCharset
    //=========================================================================
    pub fn g_mime_charset_best_name(charset: *mut GMimeCharset) -> *const c_char;
    pub fn g_mime_charset_can_encode(mask: *mut GMimeCharset, charset: *const c_char, text: *const c_char, len: size_t) -> gboolean;
    pub fn g_mime_charset_init(charset: *mut GMimeCharset);
    pub fn g_mime_charset_step(charset: *mut GMimeCharset, inbuf: *const c_char, inlen: size_t);
    pub fn g_mime_charset_best(inbuf: *const c_char, inlen: size_t) -> *const c_char;
    pub fn g_mime_charset_canon_name(charset: *const c_char) -> *const c_char;
    pub fn g_mime_charset_iconv_name(charset: *const c_char) -> *const c_char;
    pub fn g_mime_charset_iso_to_windows(isocharset: *const c_char) -> *const c_char;
    pub fn g_mime_charset_language(charset: *const c_char) -> *const c_char;
    pub fn g_mime_charset_locale_name() -> *const c_char;
    pub fn g_mime_charset_map_init();
    pub fn g_mime_charset_map_shutdown();
    pub fn g_mime_charset_name(charset: *const c_char) -> *const c_char;

    //=========================================================================
    // GMimeEncoding
    //=========================================================================
    pub fn g_mime_encoding_flush(state: *mut GMimeEncoding, inbuf: *const c_char, inlen: size_t, outbuf: *mut c_char) -> size_t;
    pub fn g_mime_encoding_init_decode(state: *mut GMimeEncoding, encoding: GMimeContentEncoding);
    pub fn g_mime_encoding_init_encode(state: *mut GMimeEncoding, encoding: GMimeContentEncoding);
    pub fn g_mime_encoding_outlen(state: *mut GMimeEncoding, inlen: size_t) -> size_t;
    pub fn g_mime_encoding_reset(state: *mut GMimeEncoding);
    pub fn g_mime_encoding_step(state: *mut GMimeEncoding, inbuf: *const c_char, inlen: size_t, outbuf: *mut c_char) -> size_t;
    pub fn g_mime_encoding_base64_decode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_base64_encode_close(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_base64_encode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_quoted_decode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_quoted_encode_close(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_quoted_encode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_uudecode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_uuencode_close(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, uubuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;
    pub fn g_mime_encoding_uuencode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, uubuf: *mut u8, state: *mut c_int, save: *mut u32) -> size_t;

    //=========================================================================
    // GMimeFormatOptions
    //=========================================================================
    pub fn g_mime_format_options_get_type() -> GType;
    pub fn g_mime_format_options_new() -> *mut GMimeFormatOptions;
    pub fn g_mime_format_options_add_hidden_header(options: *mut GMimeFormatOptions, header: *const c_char);
    pub fn g_mime_format_options_clear_hidden_headers(options: *mut GMimeFormatOptions);
    pub fn g_mime_format_options_clone(options: *mut GMimeFormatOptions) -> *mut GMimeFormatOptions;
    pub fn g_mime_format_options_create_newline_filter(options: *mut GMimeFormatOptions, ensure_newline: gboolean) -> *mut GMimeFilter;
    pub fn g_mime_format_options_free(options: *mut GMimeFormatOptions);
    pub fn g_mime_format_options_get_newline(options: *mut GMimeFormatOptions) -> *const c_char;
    pub fn g_mime_format_options_get_newline_format(options: *mut GMimeFormatOptions) -> GMimeNewLineFormat;
    pub fn g_mime_format_options_get_param_encoding_method(options: *mut GMimeFormatOptions) -> GMimeParamEncodingMethod;
    pub fn g_mime_format_options_is_hidden_header(options: *mut GMimeFormatOptions, header: *const c_char) -> gboolean;
    pub fn g_mime_format_options_remove_hidden_header(options: *mut GMimeFormatOptions, header: *const c_char);
    pub fn g_mime_format_options_set_newline_format(options: *mut GMimeFormatOptions, newline: GMimeNewLineFormat);
    pub fn g_mime_format_options_set_param_encoding_method(options: *mut GMimeFormatOptions, method: GMimeParamEncodingMethod);
    pub fn g_mime_format_options_get_default() -> *mut GMimeFormatOptions;

    //=========================================================================
    // GMimeParserOptions
    //=========================================================================
    pub fn g_mime_parser_options_get_type() -> GType;
    pub fn g_mime_parser_options_new() -> *mut GMimeParserOptions;
    pub fn g_mime_parser_options_clone(options: *mut GMimeParserOptions) -> *mut GMimeParserOptions;
    pub fn g_mime_parser_options_free(options: *mut GMimeParserOptions);
    pub fn g_mime_parser_options_get_address_compliance_mode(options: *mut GMimeParserOptions) -> GMimeRfcComplianceMode;
    pub fn g_mime_parser_options_get_allow_addresses_without_domain(options: *mut GMimeParserOptions) -> gboolean;
    pub fn g_mime_parser_options_get_fallback_charsets(options: *mut GMimeParserOptions) -> *mut *const c_char;
    pub fn g_mime_parser_options_get_parameter_compliance_mode(options: *mut GMimeParserOptions) -> GMimeRfcComplianceMode;
    pub fn g_mime_parser_options_get_rfc2047_compliance_mode(options: *mut GMimeParserOptions) -> GMimeRfcComplianceMode;
    pub fn g_mime_parser_options_get_warning_callback(options: *mut GMimeParserOptions) -> GMimeParserWarningFunc;
    pub fn g_mime_parser_options_set_address_compliance_mode(options: *mut GMimeParserOptions, mode: GMimeRfcComplianceMode);
    pub fn g_mime_parser_options_set_allow_addresses_without_domain(options: *mut GMimeParserOptions, allow: gboolean);
    pub fn g_mime_parser_options_set_fallback_charsets(options: *mut GMimeParserOptions, charsets: *mut *const c_char);
    pub fn g_mime_parser_options_set_parameter_compliance_mode(options: *mut GMimeParserOptions, mode: GMimeRfcComplianceMode);
    pub fn g_mime_parser_options_set_rfc2047_compliance_mode(options: *mut GMimeParserOptions, mode: GMimeRfcComplianceMode);
    pub fn g_mime_parser_options_set_warning_callback(options: *mut GMimeParserOptions, warning_cb: GMimeParserWarningFunc, user_data: gpointer);
    pub fn g_mime_parser_options_get_default() -> *mut GMimeParserOptions;

    //=========================================================================
    // GMimePartIter
    //=========================================================================
    pub fn g_mime_part_iter_get_type() -> GType;
    pub fn g_mime_part_iter_new(toplevel: *mut GMimeObject) -> *mut GMimePartIter;
    pub fn g_mime_part_iter_clone(iter: *mut GMimePartIter) -> *mut GMimePartIter;
    pub fn g_mime_part_iter_free(iter: *mut GMimePartIter);
    pub fn g_mime_part_iter_get_current(iter: *mut GMimePartIter) -> *mut GMimeObject;
    pub fn g_mime_part_iter_get_parent(iter: *mut GMimePartIter) -> *mut GMimeObject;
    pub fn g_mime_part_iter_get_path(iter: *mut GMimePartIter) -> *mut c_char;
    pub fn g_mime_part_iter_get_toplevel(iter: *mut GMimePartIter) -> *mut GMimeObject;
    pub fn g_mime_part_iter_is_valid(iter: *mut GMimePartIter) -> gboolean;
    pub fn g_mime_part_iter_jump_to(iter: *mut GMimePartIter, path: *const c_char) -> gboolean;
    pub fn g_mime_part_iter_next(iter: *mut GMimePartIter) -> gboolean;
    pub fn g_mime_part_iter_prev(iter: *mut GMimePartIter) -> gboolean;
    pub fn g_mime_part_iter_remove(iter: *mut GMimePartIter) -> gboolean;
    pub fn g_mime_part_iter_replace(iter: *mut GMimePartIter, replacement: *mut GMimeObject) -> gboolean;
    pub fn g_mime_part_iter_reset(iter: *mut GMimePartIter);

    //=========================================================================
    // GMimeReferences
    //=========================================================================
    pub fn g_mime_references_get_type() -> GType;
    pub fn g_mime_references_new() -> *mut GMimeReferences;
    pub fn g_mime_references_append(refs: *mut GMimeReferences, msgid: *const c_char);
    pub fn g_mime_references_clear(refs: *mut GMimeReferences);
    pub fn g_mime_references_copy(refs: *mut GMimeReferences) -> *mut GMimeReferences;
    pub fn g_mime_references_free(refs: *mut GMimeReferences);
    pub fn g_mime_references_get_message_id(refs: *mut GMimeReferences, index: c_int) -> *const c_char;
    pub fn g_mime_references_length(refs: *mut GMimeReferences) -> c_int;
    pub fn g_mime_references_set_message_id(refs: *mut GMimeReferences, index: c_int, msgid: *const c_char);
    pub fn g_mime_references_parse(options: *mut GMimeParserOptions, text: *const c_char) -> *mut GMimeReferences;

    //=========================================================================
    // GMimeApplicationPkcs7Mime
    //=========================================================================
    pub fn g_mime_application_pkcs7_mime_get_type() -> GType;
    pub fn g_mime_application_pkcs7_mime_new(type_: GMimeSecureMimeType) -> *mut GMimeApplicationPkcs7Mime;
    pub fn g_mime_application_pkcs7_mime_encrypt(entity: *mut GMimeObject, flags: GMimeEncryptFlags, recipients: *mut glib::GPtrArray, error: *mut *mut glib::GError) -> *mut GMimeApplicationPkcs7Mime;
    pub fn g_mime_application_pkcs7_mime_sign(entity: *mut GMimeObject, userid: *const c_char, error: *mut *mut glib::GError) -> *mut GMimeApplicationPkcs7Mime;
    pub fn g_mime_application_pkcs7_mime_decrypt(pkcs7_mime: *mut GMimeApplicationPkcs7Mime, flags: GMimeDecryptFlags, session_key: *const c_char, result: *mut *mut GMimeDecryptResult, error: *mut *mut glib::GError) -> *mut GMimeObject;
    pub fn g_mime_application_pkcs7_mime_get_smime_type(pkcs7_mime: *mut GMimeApplicationPkcs7Mime) -> GMimeSecureMimeType;
    pub fn g_mime_application_pkcs7_mime_verify(pkcs7_mime: *mut GMimeApplicationPkcs7Mime, flags: GMimeVerifyFlags, entity: *mut *mut GMimeObject, error: *mut *mut glib::GError) -> *mut GMimeSignatureList;

    //=========================================================================
    // GMimeAutocryptHeader
    //=========================================================================
    pub fn g_mime_autocrypt_header_get_type() -> GType;
    pub fn g_mime_autocrypt_header_new() -> *mut GMimeAutocryptHeader;
    pub fn g_mime_autocrypt_header_new_from_string(string: *const c_char) -> *mut GMimeAutocryptHeader;
    pub fn g_mime_autocrypt_header_clone(dst: *mut GMimeAutocryptHeader, src: *mut GMimeAutocryptHeader);
    pub fn g_mime_autocrypt_header_compare(ah1: *mut GMimeAutocryptHeader, ah2: *mut GMimeAutocryptHeader) -> c_int;
    pub fn g_mime_autocrypt_header_get_address(ah: *mut GMimeAutocryptHeader) -> *mut InternetAddressMailbox;
    pub fn g_mime_autocrypt_header_get_address_as_string(ah: *mut GMimeAutocryptHeader) -> *const c_char;
    pub fn g_mime_autocrypt_header_get_effective_date(ah: *mut GMimeAutocryptHeader) -> *mut glib::GDateTime;
    pub fn g_mime_autocrypt_header_get_keydata(ah: *mut GMimeAutocryptHeader) -> *mut glib::GBytes;
    pub fn g_mime_autocrypt_header_get_prefer_encrypt(ah: *mut GMimeAutocryptHeader) -> GMimeAutocryptPreferEncrypt;
    pub fn g_mime_autocrypt_header_is_complete(ah: *mut GMimeAutocryptHeader) -> gboolean;
    pub fn g_mime_autocrypt_header_set_address(ah: *mut GMimeAutocryptHeader, address: *mut InternetAddressMailbox);
    pub fn g_mime_autocrypt_header_set_address_from_string(ah: *mut GMimeAutocryptHeader, address: *const c_char);
    pub fn g_mime_autocrypt_header_set_effective_date(ah: *mut GMimeAutocryptHeader, effective_date: *mut glib::GDateTime);
    pub fn g_mime_autocrypt_header_set_keydata(ah: *mut GMimeAutocryptHeader, data: *mut glib::GBytes);
    pub fn g_mime_autocrypt_header_set_prefer_encrypt(ah: *mut GMimeAutocryptHeader, pref: GMimeAutocryptPreferEncrypt);
    pub fn g_mime_autocrypt_header_to_string(ah: *mut GMimeAutocryptHeader, gossip: gboolean) -> *mut c_char;

    //=========================================================================
    // GMimeAutocryptHeaderList
    //=========================================================================
    pub fn g_mime_autocrypt_header_list_get_type() -> GType;
    pub fn g_mime_autocrypt_header_list_new() -> *mut GMimeAutocryptHeaderList;
    pub fn g_mime_autocrypt_header_list_add(list: *mut GMimeAutocryptHeaderList, header: *mut GMimeAutocryptHeader);
    pub fn g_mime_autocrypt_header_list_add_missing_addresses(list: *mut GMimeAutocryptHeaderList, addresses: *mut InternetAddressList) -> c_uint;
    pub fn g_mime_autocrypt_header_list_get_count(list: *mut GMimeAutocryptHeaderList) -> c_uint;
    pub fn g_mime_autocrypt_header_list_get_header_at(list: *mut GMimeAutocryptHeaderList, index: c_uint) -> *mut GMimeAutocryptHeader;
    pub fn g_mime_autocrypt_header_list_get_header_for_address(list: *mut GMimeAutocryptHeaderList, mailbox: *mut InternetAddressMailbox) -> *mut GMimeAutocryptHeader;
    pub fn g_mime_autocrypt_header_list_remove_incomplete(list: *mut GMimeAutocryptHeaderList);

    //=========================================================================
    // GMimeCertificate
    //=========================================================================
    pub fn g_mime_certificate_get_type() -> GType;
    pub fn g_mime_certificate_new() -> *mut GMimeCertificate;
    pub fn g_mime_certificate_get_created(cert: *mut GMimeCertificate) -> c_long;
    pub fn g_mime_certificate_get_digest_algo(cert: *mut GMimeCertificate) -> GMimeDigestAlgo;
    pub fn g_mime_certificate_get_email(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_expires(cert: *mut GMimeCertificate) -> c_long;
    pub fn g_mime_certificate_get_fingerprint(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_id_validity(cert: *mut GMimeCertificate) -> GMimeValidity;
    pub fn g_mime_certificate_get_issuer_name(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_issuer_serial(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_key_id(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_name(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_get_pubkey_algo(cert: *mut GMimeCertificate) -> GMimePubKeyAlgo;
    pub fn g_mime_certificate_get_trust(cert: *mut GMimeCertificate) -> GMimeTrust;
    pub fn g_mime_certificate_get_user_id(cert: *mut GMimeCertificate) -> *const c_char;
    pub fn g_mime_certificate_set_created(cert: *mut GMimeCertificate, created: c_long);
    pub fn g_mime_certificate_set_digest_algo(cert: *mut GMimeCertificate, algo: GMimeDigestAlgo);
    pub fn g_mime_certificate_set_email(cert: *mut GMimeCertificate, email: *const c_char);
    pub fn g_mime_certificate_set_expires(cert: *mut GMimeCertificate, expires: c_long);
    pub fn g_mime_certificate_set_fingerprint(cert: *mut GMimeCertificate, fingerprint: *const c_char);
    pub fn g_mime_certificate_set_id_validity(cert: *mut GMimeCertificate, validity: GMimeValidity);
    pub fn g_mime_certificate_set_issuer_name(cert: *mut GMimeCertificate, issuer_name: *const c_char);
    pub fn g_mime_certificate_set_issuer_serial(cert: *mut GMimeCertificate, issuer_serial: *const c_char);
    pub fn g_mime_certificate_set_key_id(cert: *mut GMimeCertificate, key_id: *const c_char);
    pub fn g_mime_certificate_set_name(cert: *mut GMimeCertificate, name: *const c_char);
    pub fn g_mime_certificate_set_pubkey_algo(cert: *mut GMimeCertificate, algo: GMimePubKeyAlgo);
    pub fn g_mime_certificate_set_trust(cert: *mut GMimeCertificate, trust: GMimeTrust);
    pub fn g_mime_certificate_set_user_id(cert: *mut GMimeCertificate, user_id: *const c_char);

    //=========================================================================
    // GMimeCertificateList
    //=========================================================================
    pub fn g_mime_certificate_list_get_type() -> GType;
    pub fn g_mime_certificate_list_new() -> *mut GMimeCertificateList;
    pub fn g_mime_certificate_list_add(list: *mut GMimeCertificateList, cert: *mut GMimeCertificate) -> c_int;
    pub fn g_mime_certificate_list_clear(list: *mut GMimeCertificateList);
    pub fn g_mime_certificate_list_contains(list: *mut GMimeCertificateList, cert: *mut GMimeCertificate) -> gboolean;
    pub fn g_mime_certificate_list_get_certificate(list: *mut GMimeCertificateList, index: c_int) -> *mut GMimeCertificate;
    pub fn g_mime_certificate_list_index_of(list: *mut GMimeCertificateList, cert: *mut GMimeCertificate) -> c_int;
    pub fn g_mime_certificate_list_insert(list: *mut GMimeCertificateList, index: c_int, cert: *mut GMimeCertificate);
    pub fn g_mime_certificate_list_length(list: *mut GMimeCertificateList) -> c_int;
    pub fn g_mime_certificate_list_remove(list: *mut GMimeCertificateList, cert: *mut GMimeCertificate) -> gboolean;
    pub fn g_mime_certificate_list_remove_at(list: *mut GMimeCertificateList, index: c_int) -> gboolean;
    pub fn g_mime_certificate_list_set_certificate(list: *mut GMimeCertificateList, index: c_int, cert: *mut GMimeCertificate);

    //=========================================================================
    // GMimeContentDisposition
    //=========================================================================
    pub fn g_mime_content_disposition_get_type() -> GType;
    pub fn g_mime_content_disposition_new() -> *mut GMimeContentDisposition;
    pub fn g_mime_content_disposition_parse(options: *mut GMimeParserOptions, str: *const c_char) -> *mut GMimeContentDisposition;
    pub fn g_mime_content_disposition_encode(disposition: *mut GMimeContentDisposition, options: *mut GMimeFormatOptions) -> *mut c_char;
    pub fn g_mime_content_disposition_get_disposition(disposition: *mut GMimeContentDisposition) -> *const c_char;
    pub fn g_mime_content_disposition_get_parameter(disposition: *mut GMimeContentDisposition, name: *const c_char) -> *const c_char;
    pub fn g_mime_content_disposition_get_parameters(disposition: *mut GMimeContentDisposition) -> *mut GMimeParamList;
    pub fn g_mime_content_disposition_is_attachment(disposition: *mut GMimeContentDisposition) -> gboolean;
    pub fn g_mime_content_disposition_set_disposition(disposition: *mut GMimeContentDisposition, value: *const c_char);
    pub fn g_mime_content_disposition_set_parameter(disposition: *mut GMimeContentDisposition, name: *const c_char, value: *const c_char);

    //=========================================================================
    // GMimeContentType
    //=========================================================================
    pub fn g_mime_content_type_get_type() -> GType;
    pub fn g_mime_content_type_new(type_: *const c_char, subtype: *const c_char) -> *mut GMimeContentType;
    pub fn g_mime_content_type_parse(options: *mut GMimeParserOptions, str: *const c_char) -> *mut GMimeContentType;
    pub fn g_mime_content_type_encode(content_type: *mut GMimeContentType, options: *mut GMimeFormatOptions) -> *mut c_char;
    pub fn g_mime_content_type_get_media_subtype(content_type: *mut GMimeContentType) -> *const c_char;
    pub fn g_mime_content_type_get_media_type(content_type: *mut GMimeContentType) -> *const c_char;
    pub fn g_mime_content_type_get_mime_type(content_type: *mut GMimeContentType) -> *mut c_char;
    pub fn g_mime_content_type_get_parameter(content_type: *mut GMimeContentType, name: *const c_char) -> *const c_char;
    pub fn g_mime_content_type_get_parameters(content_type: *mut GMimeContentType) -> *mut GMimeParamList;
    pub fn g_mime_content_type_is_type(content_type: *mut GMimeContentType, type_: *const c_char, subtype: *const c_char) -> gboolean;
    pub fn g_mime_content_type_set_media_subtype(content_type: *mut GMimeContentType, subtype: *const c_char);
    pub fn g_mime_content_type_set_media_type(content_type: *mut GMimeContentType, type_: *const c_char);
    pub fn g_mime_content_type_set_parameter(content_type: *mut GMimeContentType, name: *const c_char, value: *const c_char);

    //=========================================================================
    // GMimeCryptoContext
    //=========================================================================
    pub fn g_mime_crypto_context_get_type() -> GType;
    pub fn g_mime_crypto_context_new(protocol: *const c_char) -> *mut GMimeCryptoContext;
    pub fn g_mime_crypto_context_register(protocol: *const c_char, callback: GMimeCryptoContextNewFunc);
    pub fn g_mime_crypto_context_decrypt(ctx: *mut GMimeCryptoContext, flags: GMimeDecryptFlags, session_key: *const c_char, istream: *mut GMimeStream, ostream: *mut GMimeStream, error: *mut *mut glib::GError) -> *mut GMimeDecryptResult;
    pub fn g_mime_crypto_context_digest_id(ctx: *mut GMimeCryptoContext, name: *const c_char) -> GMimeDigestAlgo;
    pub fn g_mime_crypto_context_digest_name(ctx: *mut GMimeCryptoContext, digest: GMimeDigestAlgo) -> *const c_char;
    pub fn g_mime_crypto_context_encrypt(ctx: *mut GMimeCryptoContext, sign: gboolean, userid: *const c_char, flags: GMimeEncryptFlags, recipients: *mut glib::GPtrArray, istream: *mut GMimeStream, ostream: *mut GMimeStream, error: *mut *mut glib::GError) -> c_int;
    pub fn g_mime_crypto_context_export_keys(ctx: *mut GMimeCryptoContext, keys: *const c_char, ostream: *mut GMimeStream, error: *mut *mut glib::GError) -> c_int;
    pub fn g_mime_crypto_context_get_encryption_protocol(ctx: *mut GMimeCryptoContext) -> *const c_char;
    pub fn g_mime_crypto_context_get_key_exchange_protocol(ctx: *mut GMimeCryptoContext) -> *const c_char;
    pub fn g_mime_crypto_context_get_signature_protocol(ctx: *mut GMimeCryptoContext) -> *const c_char;
    pub fn g_mime_crypto_context_import_keys(ctx: *mut GMimeCryptoContext, istream: *mut GMimeStream, error: *mut *mut glib::GError) -> c_int;
    pub fn g_mime_crypto_context_set_request_password(ctx: *mut GMimeCryptoContext, request_passwd: GMimePasswordRequestFunc);
    pub fn g_mime_crypto_context_sign(ctx: *mut GMimeCryptoContext, detach: gboolean, userid: *const c_char, istream: *mut GMimeStream, ostream: *mut GMimeStream, error: *mut *mut glib::GError) -> c_int;
    pub fn g_mime_crypto_context_verify(ctx: *mut GMimeCryptoContext, flags: GMimeVerifyFlags, istream: *mut GMimeStream, sigstream: *mut GMimeStream, ostream: *mut GMimeStream, error: *mut *mut glib::GError) -> *mut GMimeSignatureList;

    //=========================================================================
    // GMimeDataWrapper
    //=========================================================================
    pub fn g_mime_data_wrapper_get_type() -> GType;
    pub fn g_mime_data_wrapper_new() -> *mut GMimeDataWrapper;
    pub fn g_mime_data_wrapper_new_with_stream(stream: *mut GMimeStream, encoding: GMimeContentEncoding) -> *mut GMimeDataWrapper;
    pub fn g_mime_data_wrapper_get_encoding(wrapper: *mut GMimeDataWrapper) -> GMimeContentEncoding;
    pub fn g_mime_data_wrapper_get_stream(wrapper: *mut GMimeDataWrapper) -> *mut GMimeStream;
    pub fn g_mime_data_wrapper_set_encoding(wrapper: *mut GMimeDataWrapper, encoding: GMimeContentEncoding);
    pub fn g_mime_data_wrapper_set_stream(wrapper: *mut GMimeDataWrapper, stream: *mut GMimeStream);
    pub fn g_mime_data_wrapper_write_to_stream(wrapper: *mut GMimeDataWrapper, stream: *mut GMimeStream) -> ssize_t;

    //=========================================================================
    // GMimeDecryptResult
    //=========================================================================
    pub fn g_mime_decrypt_result_get_type() -> GType;
    pub fn g_mime_decrypt_result_new() -> *mut GMimeDecryptResult;
    pub fn g_mime_decrypt_result_get_cipher(result: *mut GMimeDecryptResult) -> GMimeCipherAlgo;
    pub fn g_mime_decrypt_result_get_mdc(result: *mut GMimeDecryptResult) -> GMimeDigestAlgo;
    pub fn g_mime_decrypt_result_get_recipients(result: *mut GMimeDecryptResult) -> *mut GMimeCertificateList;
    pub fn g_mime_decrypt_result_get_session_key(result: *mut GMimeDecryptResult) -> *const c_char;
    pub fn g_mime_decrypt_result_get_signatures(result: *mut GMimeDecryptResult) -> *mut GMimeSignatureList;
    pub fn g_mime_decrypt_result_set_cipher(result: *mut GMimeDecryptResult, cipher: GMimeCipherAlgo);
    pub fn g_mime_decrypt_result_set_mdc(result: *mut GMimeDecryptResult, mdc: GMimeDigestAlgo);
    pub fn g_mime_decrypt_result_set_recipients(result: *mut GMimeDecryptResult, recipients: *mut GMimeCertificateList);
    pub fn g_mime_decrypt_result_set_session_key(result: *mut GMimeDecryptResult, session_key: *const c_char);
    pub fn g_mime_decrypt_result_set_signatures(result: *mut GMimeDecryptResult, signatures: *mut GMimeSignatureList);

    //=========================================================================
    // GMimeFilter
    //=========================================================================
    pub fn g_mime_filter_get_type() -> GType;
    pub fn g_mime_filter_backup(filter: *mut GMimeFilter, data: *mut u8, length: size_t);
    pub fn g_mime_filter_complete(filter: *mut GMimeFilter, inbuf: *mut u8, inlen: size_t, prespace: size_t, outbuf: *mut *mut u8, outlen: *mut size_t, outprespace: *mut size_t);
    pub fn g_mime_filter_copy(filter: *mut GMimeFilter) -> *mut GMimeFilter;
    pub fn g_mime_filter_filter(filter: *mut GMimeFilter, inbuf: *mut u8, inlen: size_t, prespace: size_t, outbuf: *mut *mut u8, outlen: *mut size_t, outprespace: *mut size_t);
    pub fn g_mime_filter_reset(filter: *mut GMimeFilter);
    pub fn g_mime_filter_set_size(filter: *mut GMimeFilter, size: size_t, keep: gboolean);

    //=========================================================================
    // GMimeFilterBasic
    //=========================================================================
    pub fn g_mime_filter_basic_get_type() -> GType;
    pub fn g_mime_filter_basic_new(encoding: GMimeContentEncoding, encode: gboolean) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterBest
    //=========================================================================
    pub fn g_mime_filter_best_get_type() -> GType;
    pub fn g_mime_filter_best_new(flags: GMimeFilterBestFlags) -> *mut GMimeFilter;
    pub fn g_mime_filter_best_charset(best: *mut GMimeFilterBest) -> *const c_char;
    pub fn g_mime_filter_best_encoding(best: *mut GMimeFilterBest, constraint: GMimeEncodingConstraint) -> GMimeContentEncoding;

    //=========================================================================
    // GMimeFilterCharset
    //=========================================================================
    pub fn g_mime_filter_charset_get_type() -> GType;
    pub fn g_mime_filter_charset_new(from_charset: *const c_char, to_charset: *const c_char) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterChecksum
    //=========================================================================
    pub fn g_mime_filter_checksum_get_type() -> GType;
    pub fn g_mime_filter_checksum_new(type_: glib::GChecksumType) -> *mut GMimeFilter;
    pub fn g_mime_filter_checksum_get_digest(checksum: *mut GMimeFilterChecksum, digest: *mut u8, len: size_t) -> size_t;
    pub fn g_mime_filter_checksum_get_string(checksum: *mut GMimeFilterChecksum) -> *mut c_char;

    //=========================================================================
    // GMimeFilterDos2Unix
    //=========================================================================
    pub fn g_mime_filter_dos2unix_get_type() -> GType;
    pub fn g_mime_filter_dos2unix_new(ensure_newline: gboolean) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterEnriched
    //=========================================================================
    pub fn g_mime_filter_enriched_get_type() -> GType;
    pub fn g_mime_filter_enriched_new(flags: u32) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterFrom
    //=========================================================================
    pub fn g_mime_filter_from_get_type() -> GType;
    pub fn g_mime_filter_from_new(mode: GMimeFilterFromMode) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterGZip
    //=========================================================================
    pub fn g_mime_filter_gzip_get_type() -> GType;
    pub fn g_mime_filter_gzip_new(mode: GMimeFilterGZipMode, level: c_int) -> *mut GMimeFilter;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_gzip_get_comment(gzip: *mut GMimeFilterGZip) -> *const c_char;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_gzip_get_filename(gzip: *mut GMimeFilterGZip) -> *const c_char;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_gzip_set_comment(gzip: *mut GMimeFilterGZip, comment: *const c_char);
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_gzip_set_filename(gzip: *mut GMimeFilterGZip, filename: *const c_char);

    //=========================================================================
    // GMimeFilterHTML
    //=========================================================================
    pub fn g_mime_filter_html_get_type() -> GType;
    pub fn g_mime_filter_html_new(flags: u32, colour: u32) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterOpenPGP
    //=========================================================================
    pub fn g_mime_filter_openpgp_get_type() -> GType;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_openpgp_new() -> *mut GMimeFilter;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_openpgp_get_begin_offset(openpgp: *mut GMimeFilterOpenPGP) -> i64;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_openpgp_get_data_type(openpgp: *mut GMimeFilterOpenPGP) -> GMimeOpenPGPData;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_filter_openpgp_get_end_offset(openpgp: *mut GMimeFilterOpenPGP) -> i64;

    //=========================================================================
    // GMimeFilterSmtpData
    //=========================================================================
    pub fn g_mime_filter_smtp_data_get_type() -> GType;
    pub fn g_mime_filter_smtp_data_new() -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterStrip
    //=========================================================================
    pub fn g_mime_filter_strip_get_type() -> GType;
    pub fn g_mime_filter_strip_new() -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterUnix2Dos
    //=========================================================================
    pub fn g_mime_filter_unix2dos_get_type() -> GType;
    pub fn g_mime_filter_unix2dos_new(ensure_newline: gboolean) -> *mut GMimeFilter;

    //=========================================================================
    // GMimeFilterWindows
    //=========================================================================
    pub fn g_mime_filter_windows_get_type() -> GType;
    pub fn g_mime_filter_windows_new(claimed_charset: *const c_char) -> *mut GMimeFilter;
    pub fn g_mime_filter_windows_is_windows_charset(filter: *mut GMimeFilterWindows) -> gboolean;
    pub fn g_mime_filter_windows_real_charset(filter: *mut GMimeFilterWindows) -> *const c_char;

    //=========================================================================
    // GMimeFilterYenc
    //=========================================================================
    pub fn g_mime_filter_yenc_get_type() -> GType;
    pub fn g_mime_filter_yenc_new(encode: gboolean) -> *mut GMimeFilter;
    pub fn g_mime_filter_yenc_get_crc(yenc: *mut GMimeFilterYenc) -> u32;
    pub fn g_mime_filter_yenc_get_pcrc(yenc: *mut GMimeFilterYenc) -> u32;
    pub fn g_mime_filter_yenc_set_crc(yenc: *mut GMimeFilterYenc, crc: u32);
    pub fn g_mime_filter_yenc_set_state(yenc: *mut GMimeFilterYenc, state: c_int);

    //=========================================================================
    // GMimeGpgContext
    //=========================================================================
    pub fn g_mime_gpg_context_get_type() -> GType;
    pub fn g_mime_gpg_context_new() -> *mut GMimeCryptoContext;

    //=========================================================================
    // GMimeHeader
    //=========================================================================
    pub fn g_mime_header_get_type() -> GType;
    pub fn g_mime_header_format_addrlist(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_content_disposition(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_content_type(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_default(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_message_id(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_received(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_format_references(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_header_get_name(header: *mut GMimeHeader) -> *const c_char;
    pub fn g_mime_header_get_offset(header: *mut GMimeHeader) -> i64;
    pub fn g_mime_header_get_raw_name(header: *mut GMimeHeader) -> *const c_char;
    pub fn g_mime_header_get_raw_value(header: *mut GMimeHeader) -> *const c_char;
    pub fn g_mime_header_get_value(header: *mut GMimeHeader) -> *const c_char;
    pub fn g_mime_header_set_raw_value(header: *mut GMimeHeader, raw_value: *const c_char);
    pub fn g_mime_header_set_value(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, value: *const c_char, charset: *const c_char);
    pub fn g_mime_header_write_to_stream(header: *mut GMimeHeader, options: *mut GMimeFormatOptions, stream: *mut GMimeStream) -> ssize_t;

    //=========================================================================
    // GMimeHeaderList
    //=========================================================================
    pub fn g_mime_header_list_get_type() -> GType;
    pub fn g_mime_header_list_new(options: *mut GMimeParserOptions) -> *mut GMimeHeaderList;
    pub fn g_mime_header_list_append(headers: *mut GMimeHeaderList, name: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_header_list_clear(headers: *mut GMimeHeaderList);
    pub fn g_mime_header_list_contains(headers: *mut GMimeHeaderList, name: *const c_char) -> gboolean;
    pub fn g_mime_header_list_get_count(headers: *mut GMimeHeaderList) -> c_int;
    pub fn g_mime_header_list_get_header(headers: *mut GMimeHeaderList, name: *const c_char) -> *mut GMimeHeader;
    pub fn g_mime_header_list_get_header_at(headers: *mut GMimeHeaderList, index: c_int) -> *mut GMimeHeader;
    pub fn g_mime_header_list_prepend(headers: *mut GMimeHeaderList, name: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_header_list_remove(headers: *mut GMimeHeaderList, name: *const c_char) -> gboolean;
    pub fn g_mime_header_list_remove_at(headers: *mut GMimeHeaderList, index: c_int);
    pub fn g_mime_header_list_set(headers: *mut GMimeHeaderList, name: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_header_list_to_string(headers: *mut GMimeHeaderList, options: *mut GMimeFormatOptions) -> *mut c_char;
    pub fn g_mime_header_list_write_to_stream(headers: *mut GMimeHeaderList, options: *mut GMimeFormatOptions, stream: *mut GMimeStream) -> ssize_t;

    //=========================================================================
    // GMimeMessage
    //=========================================================================
    pub fn g_mime_message_get_type() -> GType;
    pub fn g_mime_message_new(pretty_headers: gboolean) -> *mut GMimeMessage;
    pub fn g_mime_message_add_mailbox(message: *mut GMimeMessage, type_: GMimeAddressType, name: *const c_char, addr: *const c_char);
    pub fn g_mime_message_foreach(message: *mut GMimeMessage, callback: GMimeObjectForeachFunc, user_data: gpointer);
    pub fn g_mime_message_get_addresses(message: *mut GMimeMessage, type_: GMimeAddressType) -> *mut InternetAddressList;
    pub fn g_mime_message_get_all_recipients(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_autocrypt_gossip_headers(message: *mut GMimeMessage, now: *mut glib::GDateTime, flags: GMimeDecryptFlags, session_key: *const c_char, error: *mut *mut glib::GError) -> *mut GMimeAutocryptHeaderList;
    pub fn g_mime_message_get_autocrypt_gossip_headers_from_inner_part(message: *mut GMimeMessage, now: *mut glib::GDateTime, inner_part: *mut GMimeObject) -> *mut GMimeAutocryptHeaderList;
    pub fn g_mime_message_get_autocrypt_header(message: *mut GMimeMessage, now: *mut glib::GDateTime) -> *mut GMimeAutocryptHeader;
    pub fn g_mime_message_get_bcc(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_body(message: *mut GMimeMessage) -> *mut GMimeObject;
    pub fn g_mime_message_get_cc(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_date(message: *mut GMimeMessage) -> *mut glib::GDateTime;
    pub fn g_mime_message_get_from(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_message_id(message: *mut GMimeMessage) -> *const c_char;
    pub fn g_mime_message_get_mime_part(message: *mut GMimeMessage) -> *mut GMimeObject;
    pub fn g_mime_message_get_reply_to(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_sender(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_get_subject(message: *mut GMimeMessage) -> *const c_char;
    pub fn g_mime_message_get_to(message: *mut GMimeMessage) -> *mut InternetAddressList;
    pub fn g_mime_message_partial_split_message(message: *mut GMimeMessage, max_size: size_t, nparts: *mut size_t) -> *mut *mut GMimeMessage;
    pub fn g_mime_message_set_date(message: *mut GMimeMessage, date: *mut glib::GDateTime);
    pub fn g_mime_message_set_message_id(message: *mut GMimeMessage, message_id: *const c_char);
    pub fn g_mime_message_set_mime_part(message: *mut GMimeMessage, mime_part: *mut GMimeObject);
    pub fn g_mime_message_set_subject(message: *mut GMimeMessage, subject: *const c_char, charset: *const c_char);

    //=========================================================================
    // GMimeMessagePart
    //=========================================================================
    pub fn g_mime_message_part_get_type() -> GType;
    pub fn g_mime_message_part_new(subtype: *const c_char) -> *mut GMimeMessagePart;
    pub fn g_mime_message_part_new_with_message(subtype: *const c_char, message: *mut GMimeMessage) -> *mut GMimeMessagePart;
    pub fn g_mime_message_part_get_message(part: *mut GMimeMessagePart) -> *mut GMimeMessage;
    pub fn g_mime_message_part_set_message(part: *mut GMimeMessagePart, message: *mut GMimeMessage);

    //=========================================================================
    // GMimeMessagePartial
    //=========================================================================
    pub fn g_mime_message_partial_get_type() -> GType;
    pub fn g_mime_message_partial_new(id: *const c_char, number: c_int, total: c_int) -> *mut GMimeMessagePartial;
    pub fn g_mime_message_partial_reconstruct_message(partials: *mut *mut GMimeMessagePartial, num: size_t) -> *mut GMimeMessage;
    pub fn g_mime_message_partial_get_id(partial: *mut GMimeMessagePartial) -> *const c_char;
    pub fn g_mime_message_partial_get_number(partial: *mut GMimeMessagePartial) -> c_int;
    pub fn g_mime_message_partial_get_total(partial: *mut GMimeMessagePartial) -> c_int;

    //=========================================================================
    // GMimeMultipart
    //=========================================================================
    pub fn g_mime_multipart_get_type() -> GType;
    pub fn g_mime_multipart_new() -> *mut GMimeMultipart;
    pub fn g_mime_multipart_new_with_subtype(subtype: *const c_char) -> *mut GMimeMultipart;
    pub fn g_mime_multipart_add(multipart: *mut GMimeMultipart, part: *mut GMimeObject);
    pub fn g_mime_multipart_clear(multipart: *mut GMimeMultipart);
    pub fn g_mime_multipart_contains(multipart: *mut GMimeMultipart, part: *mut GMimeObject) -> gboolean;
    pub fn g_mime_multipart_foreach(multipart: *mut GMimeMultipart, callback: GMimeObjectForeachFunc, user_data: gpointer);
    pub fn g_mime_multipart_get_boundary(multipart: *mut GMimeMultipart) -> *const c_char;
    pub fn g_mime_multipart_get_count(multipart: *mut GMimeMultipart) -> c_int;
    pub fn g_mime_multipart_get_epilogue(multipart: *mut GMimeMultipart) -> *const c_char;
    pub fn g_mime_multipart_get_part(multipart: *mut GMimeMultipart, index: c_int) -> *mut GMimeObject;
    pub fn g_mime_multipart_get_prologue(multipart: *mut GMimeMultipart) -> *const c_char;
    pub fn g_mime_multipart_get_subpart_from_content_id(multipart: *mut GMimeMultipart, content_id: *const c_char) -> *mut GMimeObject;
    pub fn g_mime_multipart_index_of(multipart: *mut GMimeMultipart, part: *mut GMimeObject) -> c_int;
    pub fn g_mime_multipart_insert(multipart: *mut GMimeMultipart, index: c_int, part: *mut GMimeObject);
    pub fn g_mime_multipart_remove(multipart: *mut GMimeMultipart, part: *mut GMimeObject) -> gboolean;
    pub fn g_mime_multipart_remove_at(multipart: *mut GMimeMultipart, index: c_int) -> *mut GMimeObject;
    pub fn g_mime_multipart_replace(multipart: *mut GMimeMultipart, index: c_int, replacement: *mut GMimeObject) -> *mut GMimeObject;
    pub fn g_mime_multipart_set_boundary(multipart: *mut GMimeMultipart, boundary: *const c_char);
    pub fn g_mime_multipart_set_epilogue(multipart: *mut GMimeMultipart, epilogue: *const c_char);
    pub fn g_mime_multipart_set_prologue(multipart: *mut GMimeMultipart, prologue: *const c_char);

    //=========================================================================
    // GMimeMultipartEncrypted
    //=========================================================================
    pub fn g_mime_multipart_encrypted_get_type() -> GType;
    pub fn g_mime_multipart_encrypted_new() -> *mut GMimeMultipartEncrypted;
    pub fn g_mime_multipart_encrypted_encrypt(ctx: *mut GMimeCryptoContext, entity: *mut GMimeObject, sign: gboolean, userid: *const c_char, flags: GMimeEncryptFlags, recipients: *mut glib::GPtrArray, error: *mut *mut glib::GError) -> *mut GMimeMultipartEncrypted;
    pub fn g_mime_multipart_encrypted_decrypt(encrypted: *mut GMimeMultipartEncrypted, flags: GMimeDecryptFlags, session_key: *const c_char, result: *mut *mut GMimeDecryptResult, error: *mut *mut glib::GError) -> *mut GMimeObject;

    //=========================================================================
    // GMimeMultipartSigned
    //=========================================================================
    pub fn g_mime_multipart_signed_get_type() -> GType;
    pub fn g_mime_multipart_signed_new() -> *mut GMimeMultipartSigned;
    pub fn g_mime_multipart_signed_sign(ctx: *mut GMimeCryptoContext, entity: *mut GMimeObject, userid: *const c_char, error: *mut *mut glib::GError) -> *mut GMimeMultipartSigned;
    pub fn g_mime_multipart_signed_verify(mps: *mut GMimeMultipartSigned, flags: GMimeVerifyFlags, error: *mut *mut glib::GError) -> *mut GMimeSignatureList;

    //=========================================================================
    // GMimeObject
    //=========================================================================
    pub fn g_mime_object_get_type() -> GType;
    pub fn g_mime_object_new(options: *mut GMimeParserOptions, content_type: *mut GMimeContentType) -> *mut GMimeObject;
    pub fn g_mime_object_new_type(options: *mut GMimeParserOptions, type_: *const c_char, subtype: *const c_char) -> *mut GMimeObject;
    pub fn g_mime_object_register_type(type_: *const c_char, subtype: *const c_char, object_type: GType);
    pub fn g_mime_object_type_registry_init();
    pub fn g_mime_object_type_registry_shutdown();
    pub fn g_mime_object_append_header(object: *mut GMimeObject, header: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_object_encode(object: *mut GMimeObject, constraint: GMimeEncodingConstraint);
    pub fn g_mime_object_get_autocrypt_headers(mime_part: *mut GMimeObject, effective_date: *mut glib::GDateTime, matchheader: *const c_char, addresses: *mut InternetAddressList, keep_incomplete: gboolean) -> *mut GMimeAutocryptHeaderList;
    pub fn g_mime_object_get_content_disposition(object: *mut GMimeObject) -> *mut GMimeContentDisposition;
    pub fn g_mime_object_get_content_disposition_parameter(object: *mut GMimeObject, name: *const c_char) -> *const c_char;
    pub fn g_mime_object_get_content_id(object: *mut GMimeObject) -> *const c_char;
    pub fn g_mime_object_get_content_type(object: *mut GMimeObject) -> *mut GMimeContentType;
    pub fn g_mime_object_get_content_type_parameter(object: *mut GMimeObject, name: *const c_char) -> *const c_char;
    pub fn g_mime_object_get_disposition(object: *mut GMimeObject) -> *const c_char;
    pub fn g_mime_object_get_header(object: *mut GMimeObject, header: *const c_char) -> *const c_char;
    pub fn g_mime_object_get_header_list(object: *mut GMimeObject) -> *mut GMimeHeaderList;
    pub fn g_mime_object_get_headers(object: *mut GMimeObject, options: *mut GMimeFormatOptions) -> *mut c_char;
    pub fn g_mime_object_prepend_header(object: *mut GMimeObject, header: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_object_remove_header(object: *mut GMimeObject, header: *const c_char) -> gboolean;
    pub fn g_mime_object_set_content_disposition(object: *mut GMimeObject, disposition: *mut GMimeContentDisposition);
    pub fn g_mime_object_set_content_disposition_parameter(object: *mut GMimeObject, name: *const c_char, value: *const c_char);
    pub fn g_mime_object_set_content_id(object: *mut GMimeObject, content_id: *const c_char);
    pub fn g_mime_object_set_content_type(object: *mut GMimeObject, content_type: *mut GMimeContentType);
    pub fn g_mime_object_set_content_type_parameter(object: *mut GMimeObject, name: *const c_char, value: *const c_char);
    pub fn g_mime_object_set_disposition(object: *mut GMimeObject, disposition: *const c_char);
    pub fn g_mime_object_set_header(object: *mut GMimeObject, header: *const c_char, value: *const c_char, charset: *const c_char);
    pub fn g_mime_object_to_string(object: *mut GMimeObject, options: *mut GMimeFormatOptions) -> *mut c_char;
    pub fn g_mime_object_write_to_stream(object: *mut GMimeObject, options: *mut GMimeFormatOptions, stream: *mut GMimeStream) -> ssize_t;

    //=========================================================================
    // GMimeParam
    //=========================================================================
    pub fn g_mime_param_get_type() -> GType;
    pub fn g_mime_param_get_charset(param: *mut GMimeParam) -> *const c_char;
    pub fn g_mime_param_get_encoding_method(param: *mut GMimeParam) -> GMimeParamEncodingMethod;
    pub fn g_mime_param_get_lang(param: *mut GMimeParam) -> *const c_char;
    pub fn g_mime_param_get_name(param: *mut GMimeParam) -> *const c_char;
    pub fn g_mime_param_get_value(param: *mut GMimeParam) -> *const c_char;
    pub fn g_mime_param_set_charset(param: *mut GMimeParam, charset: *const c_char);
    pub fn g_mime_param_set_encoding_method(param: *mut GMimeParam, method: GMimeParamEncodingMethod);
    pub fn g_mime_param_set_lang(param: *mut GMimeParam, lang: *const c_char);
    pub fn g_mime_param_set_value(param: *mut GMimeParam, value: *const c_char);

    //=========================================================================
    // GMimeParamList
    //=========================================================================
    pub fn g_mime_param_list_get_type() -> GType;
    pub fn g_mime_param_list_new() -> *mut GMimeParamList;
    pub fn g_mime_param_list_parse(options: *mut GMimeParserOptions, str: *const c_char) -> *mut GMimeParamList;
    pub fn g_mime_param_list_clear(list: *mut GMimeParamList);
    pub fn g_mime_param_list_encode(list: *mut GMimeParamList, options: *mut GMimeFormatOptions, fold: gboolean, str: *mut glib::GString);
    pub fn g_mime_param_list_get_parameter(list: *mut GMimeParamList, name: *const c_char) -> *mut GMimeParam;
    pub fn g_mime_param_list_get_parameter_at(list: *mut GMimeParamList, index: c_int) -> *mut GMimeParam;
    pub fn g_mime_param_list_length(list: *mut GMimeParamList) -> c_int;
    pub fn g_mime_param_list_remove(list: *mut GMimeParamList, name: *const c_char) -> gboolean;
    pub fn g_mime_param_list_remove_at(list: *mut GMimeParamList, index: c_int) -> gboolean;
    pub fn g_mime_param_list_set_parameter(list: *mut GMimeParamList, name: *const c_char, value: *const c_char);

    //=========================================================================
    // GMimeParser
    //=========================================================================
    pub fn g_mime_parser_get_type() -> GType;
    pub fn g_mime_parser_new() -> *mut GMimeParser;
    pub fn g_mime_parser_new_with_stream(stream: *mut GMimeStream) -> *mut GMimeParser;
    pub fn g_mime_parser_construct_message(parser: *mut GMimeParser, options: *mut GMimeParserOptions) -> *mut GMimeMessage;
    pub fn g_mime_parser_construct_part(parser: *mut GMimeParser, options: *mut GMimeParserOptions) -> *mut GMimeObject;
    pub fn g_mime_parser_eos(parser: *mut GMimeParser) -> gboolean;
    pub fn g_mime_parser_get_format(parser: *mut GMimeParser) -> GMimeFormat;
    pub fn g_mime_parser_get_headers_begin(parser: *mut GMimeParser) -> i64;
    pub fn g_mime_parser_get_headers_end(parser: *mut GMimeParser) -> i64;
    pub fn g_mime_parser_get_mbox_marker(parser: *mut GMimeParser) -> *mut c_char;
    pub fn g_mime_parser_get_mbox_marker_offset(parser: *mut GMimeParser) -> i64;
    pub fn g_mime_parser_get_persist_stream(parser: *mut GMimeParser) -> gboolean;
    pub fn g_mime_parser_get_respect_content_length(parser: *mut GMimeParser) -> gboolean;
    pub fn g_mime_parser_init_with_stream(parser: *mut GMimeParser, stream: *mut GMimeStream);
    pub fn g_mime_parser_set_format(parser: *mut GMimeParser, format: GMimeFormat);
    pub fn g_mime_parser_set_header_regex(parser: *mut GMimeParser, regex: *const c_char, header_cb: GMimeParserHeaderRegexFunc, user_data: gpointer);
    pub fn g_mime_parser_set_persist_stream(parser: *mut GMimeParser, persist: gboolean);
    pub fn g_mime_parser_set_respect_content_length(parser: *mut GMimeParser, respect_content_length: gboolean);
    pub fn g_mime_parser_tell(parser: *mut GMimeParser) -> i64;

    //=========================================================================
    // GMimePart
    //=========================================================================
    pub fn g_mime_part_get_type() -> GType;
    pub fn g_mime_part_new() -> *mut GMimePart;
    pub fn g_mime_part_new_with_type(type_: *const c_char, subtype: *const c_char) -> *mut GMimePart;
    pub fn g_mime_part_get_best_content_encoding(mime_part: *mut GMimePart, constraint: GMimeEncodingConstraint) -> GMimeContentEncoding;
    pub fn g_mime_part_get_content(mime_part: *mut GMimePart) -> *mut GMimeDataWrapper;
    pub fn g_mime_part_get_content_description(mime_part: *mut GMimePart) -> *const c_char;
    pub fn g_mime_part_get_content_encoding(mime_part: *mut GMimePart) -> GMimeContentEncoding;
    pub fn g_mime_part_get_content_id(mime_part: *mut GMimePart) -> *const c_char;
    pub fn g_mime_part_get_content_location(mime_part: *mut GMimePart) -> *const c_char;
    pub fn g_mime_part_get_content_md5(mime_part: *mut GMimePart) -> *const c_char;
    pub fn g_mime_part_get_filename(mime_part: *mut GMimePart) -> *const c_char;
    pub fn g_mime_part_get_openpgp_data(mime_part: *mut GMimePart) -> GMimeOpenPGPData;
    pub fn g_mime_part_is_attachment(mime_part: *mut GMimePart) -> gboolean;
    pub fn g_mime_part_openpgp_decrypt(mime_part: *mut GMimePart, flags: GMimeDecryptFlags, session_key: *const c_char, error: *mut *mut glib::GError) -> *mut GMimeDecryptResult;
    pub fn g_mime_part_openpgp_encrypt(mime_part: *mut GMimePart, sign: gboolean, userid: *const c_char, flags: GMimeEncryptFlags, recipients: *mut glib::GPtrArray, error: *mut *mut glib::GError) -> gboolean;
    pub fn g_mime_part_openpgp_sign(mime_part: *mut GMimePart, userid: *const c_char, error: *mut *mut glib::GError) -> gboolean;
    pub fn g_mime_part_openpgp_verify(mime_part: *mut GMimePart, flags: GMimeVerifyFlags, error: *mut *mut glib::GError) -> *mut GMimeSignatureList;
    pub fn g_mime_part_set_content(mime_part: *mut GMimePart, content: *mut GMimeDataWrapper);
    pub fn g_mime_part_set_content_description(mime_part: *mut GMimePart, description: *const c_char);
    pub fn g_mime_part_set_content_encoding(mime_part: *mut GMimePart, encoding: GMimeContentEncoding);
    pub fn g_mime_part_set_content_id(mime_part: *mut GMimePart, content_id: *const c_char);
    pub fn g_mime_part_set_content_location(mime_part: *mut GMimePart, content_location: *const c_char);
    pub fn g_mime_part_set_content_md5(mime_part: *mut GMimePart, content_md5: *const c_char);
    pub fn g_mime_part_set_filename(mime_part: *mut GMimePart, filename: *const c_char);
    pub fn g_mime_part_set_openpgp_data(mime_part: *mut GMimePart, data: GMimeOpenPGPData);
    pub fn g_mime_part_verify_content_md5(mime_part: *mut GMimePart) -> gboolean;

    //=========================================================================
    // GMimePkcs7Context
    //=========================================================================
    pub fn g_mime_pkcs7_context_get_type() -> GType;
    pub fn g_mime_pkcs7_context_new() -> *mut GMimeCryptoContext;

    //=========================================================================
    // GMimeSignature
    //=========================================================================
    pub fn g_mime_signature_get_type() -> GType;
    pub fn g_mime_signature_new() -> *mut GMimeSignature;
    pub fn g_mime_signature_get_certificate(sig: *mut GMimeSignature) -> *mut GMimeCertificate;
    pub fn g_mime_signature_get_created(sig: *mut GMimeSignature) -> c_long;
    pub fn g_mime_signature_get_expires(sig: *mut GMimeSignature) -> c_long;
    pub fn g_mime_signature_get_status(sig: *mut GMimeSignature) -> GMimeSignatureStatus;
    pub fn g_mime_signature_set_certificate(sig: *mut GMimeSignature, cert: *mut GMimeCertificate);
    pub fn g_mime_signature_set_created(sig: *mut GMimeSignature, created: c_long);
    pub fn g_mime_signature_set_expires(sig: *mut GMimeSignature, expires: c_long);
    pub fn g_mime_signature_set_status(sig: *mut GMimeSignature, status: GMimeSignatureStatus);

    //=========================================================================
    // GMimeSignatureList
    //=========================================================================
    pub fn g_mime_signature_list_get_type() -> GType;
    pub fn g_mime_signature_list_new() -> *mut GMimeSignatureList;
    pub fn g_mime_signature_list_add(list: *mut GMimeSignatureList, sig: *mut GMimeSignature) -> c_int;
    pub fn g_mime_signature_list_clear(list: *mut GMimeSignatureList);
    pub fn g_mime_signature_list_contains(list: *mut GMimeSignatureList, sig: *mut GMimeSignature) -> gboolean;
    pub fn g_mime_signature_list_get_signature(list: *mut GMimeSignatureList, index: c_int) -> *mut GMimeSignature;
    pub fn g_mime_signature_list_index_of(list: *mut GMimeSignatureList, sig: *mut GMimeSignature) -> c_int;
    pub fn g_mime_signature_list_insert(list: *mut GMimeSignatureList, index: c_int, sig: *mut GMimeSignature);
    pub fn g_mime_signature_list_length(list: *mut GMimeSignatureList) -> c_int;
    pub fn g_mime_signature_list_remove(list: *mut GMimeSignatureList, sig: *mut GMimeSignature) -> gboolean;
    pub fn g_mime_signature_list_remove_at(list: *mut GMimeSignatureList, index: c_int) -> gboolean;
    pub fn g_mime_signature_list_set_signature(list: *mut GMimeSignatureList, index: c_int, sig: *mut GMimeSignature);

    //=========================================================================
    // GMimeStream
    //=========================================================================
    pub fn g_mime_stream_get_type() -> GType;
    pub fn g_mime_stream_buffer_gets(stream: *mut GMimeStream, buf: *mut c_char, max: size_t) -> ssize_t;
    pub fn g_mime_stream_buffer_readln(stream: *mut GMimeStream, buffer: *mut glib::GByteArray);
    pub fn g_mime_stream_close(stream: *mut GMimeStream) -> c_int;
    pub fn g_mime_stream_construct(stream: *mut GMimeStream, start: i64, end: i64);
    pub fn g_mime_stream_eos(stream: *mut GMimeStream) -> gboolean;
    pub fn g_mime_stream_flush(stream: *mut GMimeStream) -> c_int;
    pub fn g_mime_stream_length(stream: *mut GMimeStream) -> i64;
    pub fn g_mime_stream_printf(stream: *mut GMimeStream, fmt: *const c_char, ...) -> ssize_t;
    pub fn g_mime_stream_read(stream: *mut GMimeStream, buf: *mut u8, len: size_t) -> ssize_t;
    pub fn g_mime_stream_reset(stream: *mut GMimeStream) -> c_int;
    pub fn g_mime_stream_seek(stream: *mut GMimeStream, offset: i64, whence: GMimeSeekWhence) -> i64;
    pub fn g_mime_stream_set_bounds(stream: *mut GMimeStream, start: i64, end: i64);
    pub fn g_mime_stream_substream(stream: *mut GMimeStream, start: i64, end: i64) -> *mut GMimeStream;
    pub fn g_mime_stream_tell(stream: *mut GMimeStream) -> i64;
    pub fn g_mime_stream_write(stream: *mut GMimeStream, buf: *const c_char, len: size_t) -> ssize_t;
    pub fn g_mime_stream_write_string(stream: *mut GMimeStream, str: *const c_char) -> ssize_t;
    pub fn g_mime_stream_write_to_stream(src: *mut GMimeStream, dest: *mut GMimeStream) -> i64;
    pub fn g_mime_stream_writev(stream: *mut GMimeStream, vector: *mut GMimeStreamIOVector, count: size_t) -> i64;

    //=========================================================================
    // GMimeStreamBuffer
    //=========================================================================
    pub fn g_mime_stream_buffer_get_type() -> GType;
    pub fn g_mime_stream_buffer_new(source: *mut GMimeStream, mode: GMimeStreamBufferMode) -> *mut GMimeStream;

    //=========================================================================
    // GMimeStreamCat
    //=========================================================================
    pub fn g_mime_stream_cat_get_type() -> GType;
    pub fn g_mime_stream_cat_new() -> *mut GMimeStream;
    pub fn g_mime_stream_cat_add_source(cat: *mut GMimeStreamCat, source: *mut GMimeStream) -> c_int;

    //=========================================================================
    // GMimeStreamFile
    //=========================================================================
    pub fn g_mime_stream_file_get_type() -> GType;
    pub fn g_mime_stream_file_new(fp: *mut FILE) -> *mut GMimeStream;
    pub fn g_mime_stream_file_new_with_bounds(fp: *mut FILE, start: i64, end: i64) -> *mut GMimeStream;
    pub fn g_mime_stream_file_open(path: *const c_char, mode: *const c_char, error: *mut *mut glib::GError) -> *mut GMimeStream;
    pub fn g_mime_stream_file_get_owner(stream: *mut GMimeStreamFile) -> gboolean;
    pub fn g_mime_stream_file_set_owner(stream: *mut GMimeStreamFile, owner: gboolean);

    //=========================================================================
    // GMimeStreamFilter
    //=========================================================================
    pub fn g_mime_stream_filter_get_type() -> GType;
    pub fn g_mime_stream_filter_new(stream: *mut GMimeStream) -> *mut GMimeStream;
    pub fn g_mime_stream_filter_add(stream: *mut GMimeStreamFilter, filter: *mut GMimeFilter) -> c_int;
    pub fn g_mime_stream_filter_get_owner(stream: *mut GMimeStreamFilter) -> gboolean;
    pub fn g_mime_stream_filter_remove(stream: *mut GMimeStreamFilter, id: c_int);
    pub fn g_mime_stream_filter_set_owner(stream: *mut GMimeStreamFilter, owner: gboolean);

    //=========================================================================
    // GMimeStreamFs
    //=========================================================================
    pub fn g_mime_stream_fs_get_type() -> GType;
    pub fn g_mime_stream_fs_new(fd: c_int) -> *mut GMimeStream;
    pub fn g_mime_stream_fs_new_with_bounds(fd: c_int, start: i64, end: i64) -> *mut GMimeStream;
    pub fn g_mime_stream_fs_open(path: *const c_char, flags: c_int, mode: c_int, error: *mut *mut glib::GError) -> *mut GMimeStream;
    pub fn g_mime_stream_fs_get_owner(stream: *mut GMimeStreamFs) -> gboolean;
    pub fn g_mime_stream_fs_set_owner(stream: *mut GMimeStreamFs, owner: gboolean);

    //=========================================================================
    // GMimeStreamGIO
    //=========================================================================
    pub fn g_mime_stream_gio_get_type() -> GType;
    pub fn g_mime_stream_gio_new(file: *mut gio::GFile) -> *mut GMimeStream;
    pub fn g_mime_stream_gio_new_with_bounds(file: *mut gio::GFile, start: i64, end: i64) -> *mut GMimeStream;
    pub fn g_mime_stream_gio_get_owner(stream: *mut GMimeStreamGIO) -> gboolean;
    pub fn g_mime_stream_gio_set_owner(stream: *mut GMimeStreamGIO, owner: gboolean);

    //=========================================================================
    // GMimeStreamMem
    //=========================================================================
    pub fn g_mime_stream_mem_get_type() -> GType;
    pub fn g_mime_stream_mem_new() -> *mut GMimeStream;
    pub fn g_mime_stream_mem_new_with_buffer(buffer: *mut u8, len: size_t) -> *mut GMimeStream;
    pub fn g_mime_stream_mem_new_with_byte_array(array: *mut glib::GByteArray) -> *mut GMimeStream;
    pub fn g_mime_stream_mem_get_byte_array(mem: *mut GMimeStreamMem) -> *mut glib::GByteArray;
    pub fn g_mime_stream_mem_get_owner(mem: *mut GMimeStreamMem) -> gboolean;
    pub fn g_mime_stream_mem_set_byte_array(mem: *mut GMimeStreamMem, array: *mut glib::GByteArray);
    pub fn g_mime_stream_mem_set_owner(mem: *mut GMimeStreamMem, owner: gboolean);

    //=========================================================================
    // GMimeStreamMmap
    //=========================================================================
    pub fn g_mime_stream_mmap_get_type() -> GType;
    pub fn g_mime_stream_mmap_new(fd: c_int, prot: c_int, flags: c_int) -> *mut GMimeStream;
    pub fn g_mime_stream_mmap_new_with_bounds(fd: c_int, prot: c_int, flags: c_int, start: i64, end: i64) -> *mut GMimeStream;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_stream_mmap_get_owner(stream: *mut GMimeStreamMmap) -> gboolean;
    #[cfg(any(feature = "v3_2", feature = "dox"))]
    pub fn g_mime_stream_mmap_set_owner(stream: *mut GMimeStreamMmap, owner: gboolean);

    //=========================================================================
    // GMimeStreamNull
    //=========================================================================
    pub fn g_mime_stream_null_get_type() -> GType;
    pub fn g_mime_stream_null_new() -> *mut GMimeStream;
    pub fn g_mime_stream_null_get_count_newlines(stream: *mut GMimeStreamNull) -> gboolean;
    pub fn g_mime_stream_null_set_count_newlines(stream: *mut GMimeStreamNull, count: gboolean);

    //=========================================================================
    // GMimeStreamPipe
    //=========================================================================
    pub fn g_mime_stream_pipe_get_type() -> GType;
    pub fn g_mime_stream_pipe_new(fd: c_int) -> *mut GMimeStream;
    pub fn g_mime_stream_pipe_get_owner(stream: *mut GMimeStreamPipe) -> gboolean;
    pub fn g_mime_stream_pipe_set_owner(stream: *mut GMimeStreamPipe, owner: gboolean);

    //=========================================================================
    // GMimeTextPart
    //=========================================================================
    pub fn g_mime_text_part_get_type() -> GType;
    pub fn g_mime_text_part_new() -> *mut GMimeTextPart;
    pub fn g_mime_text_part_new_with_subtype(subtype: *const c_char) -> *mut GMimeTextPart;
    pub fn g_mime_text_part_get_charset(mime_part: *mut GMimeTextPart) -> *const c_char;
    pub fn g_mime_text_part_get_text(mime_part: *mut GMimeTextPart) -> *mut c_char;
    pub fn g_mime_text_part_set_charset(mime_part: *mut GMimeTextPart, charset: *const c_char);
    pub fn g_mime_text_part_set_text(mime_part: *mut GMimeTextPart, text: *const c_char);

    //=========================================================================
    // InternetAddress
    //=========================================================================
    pub fn internet_address_get_type() -> GType;
    pub fn internet_address_get_charset(ia: *mut InternetAddress) -> *const c_char;
    pub fn internet_address_get_name(ia: *mut InternetAddress) -> *const c_char;
    pub fn internet_address_set_charset(ia: *mut InternetAddress, charset: *const c_char);
    pub fn internet_address_set_name(ia: *mut InternetAddress, name: *const c_char);
    pub fn internet_address_to_string(ia: *mut InternetAddress, options: *mut GMimeFormatOptions, encode: gboolean) -> *mut c_char;

    //=========================================================================
    // InternetAddressGroup
    //=========================================================================
    pub fn internet_address_group_get_type() -> GType;
    pub fn internet_address_group_new(name: *const c_char) -> *mut InternetAddress;
    pub fn internet_address_group_add_member(group: *mut InternetAddressGroup, member: *mut InternetAddress) -> c_int;
    pub fn internet_address_group_get_members(group: *mut InternetAddressGroup) -> *mut InternetAddressList;
    pub fn internet_address_group_set_members(group: *mut InternetAddressGroup, members: *mut InternetAddressList);

    //=========================================================================
    // InternetAddressList
    //=========================================================================
    pub fn internet_address_list_get_type() -> GType;
    pub fn internet_address_list_new() -> *mut InternetAddressList;
    pub fn internet_address_list_parse(options: *mut GMimeParserOptions, str: *const c_char) -> *mut InternetAddressList;
    pub fn internet_address_list_add(list: *mut InternetAddressList, ia: *mut InternetAddress) -> c_int;
    pub fn internet_address_list_append(list: *mut InternetAddressList, append: *mut InternetAddressList);
    pub fn internet_address_list_clear(list: *mut InternetAddressList);
    pub fn internet_address_list_contains(list: *mut InternetAddressList, ia: *mut InternetAddress) -> gboolean;
    pub fn internet_address_list_encode(list: *mut InternetAddressList, options: *mut GMimeFormatOptions, str: *mut glib::GString);
    pub fn internet_address_list_get_address(list: *mut InternetAddressList, index: c_int) -> *mut InternetAddress;
    pub fn internet_address_list_index_of(list: *mut InternetAddressList, ia: *mut InternetAddress) -> c_int;
    pub fn internet_address_list_insert(list: *mut InternetAddressList, index: c_int, ia: *mut InternetAddress);
    pub fn internet_address_list_length(list: *mut InternetAddressList) -> c_int;
    pub fn internet_address_list_prepend(list: *mut InternetAddressList, prepend: *mut InternetAddressList);
    pub fn internet_address_list_remove(list: *mut InternetAddressList, ia: *mut InternetAddress) -> gboolean;
    pub fn internet_address_list_remove_at(list: *mut InternetAddressList, index: c_int) -> gboolean;
    pub fn internet_address_list_set_address(list: *mut InternetAddressList, index: c_int, ia: *mut InternetAddress);
    pub fn internet_address_list_to_string(list: *mut InternetAddressList, options: *mut GMimeFormatOptions, encode: gboolean) -> *mut c_char;

    //=========================================================================
    // InternetAddressMailbox
    //=========================================================================
    pub fn internet_address_mailbox_get_type() -> GType;
    pub fn internet_address_mailbox_new(name: *const c_char, addr: *const c_char) -> *mut InternetAddress;
    pub fn internet_address_mailbox_get_addr(mailbox: *mut InternetAddressMailbox) -> *const c_char;
    pub fn internet_address_mailbox_get_idn_addr(mailbox: *mut InternetAddressMailbox) -> *const c_char;
    pub fn internet_address_mailbox_set_addr(mailbox: *mut InternetAddressMailbox, addr: *const c_char);

    //=========================================================================
    // Other functions
    //=========================================================================
    pub fn g_mime_check_version(major: c_uint, minor: c_uint, micro: c_uint) -> gboolean;
    pub fn g_mime_content_encoding_from_string(str: *const c_char) -> GMimeContentEncoding;
    pub fn g_mime_content_encoding_to_string(encoding: GMimeContentEncoding) -> *const c_char;
    pub fn g_mime_iconv_close(cd: iconv_t) -> c_int;
    pub fn g_mime_iconv_locale_to_utf8(str: *const c_char) -> *mut c_char;
    pub fn g_mime_iconv_locale_to_utf8_length(str: *const c_char, n: size_t) -> *mut c_char;
    pub fn g_mime_iconv_open(to: *const c_char, from: *const c_char) -> iconv_t;
    pub fn g_mime_iconv_strdup(cd: iconv_t, str: *const c_char) -> *mut c_char;
    pub fn g_mime_iconv_strndup(cd: iconv_t, str: *const c_char, n: size_t) -> *mut c_char;
    pub fn g_mime_iconv_utf8_to_locale(str: *const c_char) -> *mut c_char;
    pub fn g_mime_iconv_utf8_to_locale_length(str: *const c_char, n: size_t) -> *mut c_char;
    pub fn g_mime_init();
    pub fn g_mime_locale_charset() -> *const c_char;
    pub fn g_mime_locale_language() -> *const c_char;
    pub fn g_mime_shutdown();
    pub fn g_mime_utils_best_encoding(text: *mut u8, len: size_t) -> GMimeContentEncoding;
    pub fn g_mime_utils_decode_8bit(options: *mut GMimeParserOptions, text: *mut u8, len: size_t) -> *mut c_char;
    pub fn g_mime_utils_decode_message_id(message_id: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_generate_message_id(fqdn: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_header_decode_date(str: *const c_char) -> *mut glib::GDateTime;
    pub fn g_mime_utils_header_decode_phrase(options: *mut GMimeParserOptions, phrase: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_header_decode_text(options: *mut GMimeParserOptions, text: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_header_encode_phrase(options: *mut GMimeFormatOptions, phrase: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_header_encode_text(options: *mut GMimeFormatOptions, text: *const c_char, charset: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_header_format_date(date: *mut glib::GDateTime) -> *mut c_char;
    pub fn g_mime_utils_header_printf(options: *mut GMimeParserOptions, format: *mut GMimeFormatOptions, text: *const c_char, ...) -> *mut c_char;
    pub fn g_mime_utils_header_unfold(value: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_quote_string(str: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_structured_header_fold(options: *mut GMimeParserOptions, format: *mut GMimeFormatOptions, header: *const c_char) -> *mut c_char;
    pub fn g_mime_utils_text_is_8bit(text: *mut u8, len: size_t) -> gboolean;
    pub fn g_mime_utils_unquote_string(str: *mut c_char);
    pub fn g_mime_utils_unstructured_header_fold(options: *mut GMimeParserOptions, format: *mut GMimeFormatOptions, header: *const c_char) -> *mut c_char;
    pub fn g_mime_ydecode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, pcrc: *mut u32, crc: *mut u32) -> size_t;
    pub fn g_mime_yencode_close(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, pcrc: *mut u32, crc: *mut u32) -> size_t;
    pub fn g_mime_yencode_step(inbuf: *const u8, inlen: size_t, outbuf: *mut u8, state: *mut c_int, pcrc: *mut u32, crc: *mut u32) -> size_t;

}