maplibre-native-ffi-sys 0.202611.0

Raw declarations for the MapLibre Native C API, and the native library they link.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
// Generated from C headers by tools/bindgen. Do not edit.
use super::*;

pub const MLN_C_VERSION: u32 = 0;
pub const MLN_DIAGNOSTIC_MESSAGE_CAPACITY: u32 = 4096;
pub const MLN_FRAME_DEMAND_TOKEN_STILL_IMAGE: u64 = 18446744073709551615;
pub const MLN_HANDLE_NULL: u64 = 0;
pub const MLN_TEXTURE_RING_MAX_DEPTH: u32 = 8;
pub const MLN_VULKAN_NON_DISPATCHABLE_HANDLE_NULL: u64 = 0;
pub type mln_anchored_momentum_field = u32;
pub const MLN_ANCHORED_MOMENTUM_VELOCITY: mln_anchored_momentum_field = 1;
pub const MLN_ANCHORED_MOMENTUM_ANCHOR: mln_anchored_momentum_field = 2;
pub const MLN_ANCHORED_MOMENTUM_SNAP: mln_anchored_momentum_field = 4;
pub type mln_animation_option_field = u32;
pub const MLN_ANIMATION_OPTION_DURATION: mln_animation_option_field = 1;
pub const MLN_ANIMATION_OPTION_VELOCITY: mln_animation_option_field = 2;
pub const MLN_ANIMATION_OPTION_MIN_ZOOM: mln_animation_option_field = 4;
pub const MLN_ANIMATION_OPTION_EASING: mln_animation_option_field = 8;
pub const MLN_ANIMATION_OPTION_TRANSITION_ID: mln_animation_option_field = 16;
pub type mln_bound_option_field = u32;
pub const MLN_BOUND_OPTION_BOUNDS: mln_bound_option_field = 1;
pub const MLN_BOUND_OPTION_MIN_ZOOM: mln_bound_option_field = 2;
pub const MLN_BOUND_OPTION_MAX_ZOOM: mln_bound_option_field = 4;
pub const MLN_BOUND_OPTION_MIN_PITCH: mln_bound_option_field = 8;
pub const MLN_BOUND_OPTION_MAX_PITCH: mln_bound_option_field = 16;
pub const MLN_BOUND_OPTION_UNBOUNDED: mln_bound_option_field = 32;
pub type mln_cache_database_operation = u32;
pub const MLN_CACHE_DATABASE_OPERATION_CLEAR: mln_cache_database_operation = 1;
pub const MLN_CACHE_DATABASE_OPERATION_INVALIDATE: mln_cache_database_operation = 2;
pub const MLN_CACHE_DATABASE_OPERATION_PACK: mln_cache_database_operation = 3;
pub const MLN_CACHE_DATABASE_OPERATION_RESET: mln_cache_database_operation = 4;
pub type mln_camera_change_mode = u32;
pub const MLN_CAMERA_CHANGE_MODE_IMMEDIATE: mln_camera_change_mode = 0;
pub const MLN_CAMERA_CHANGE_MODE_ANIMATED: mln_camera_change_mode = 1;
pub type mln_camera_change_source = u32;
pub const MLN_CAMERA_CHANGE_SOURCE_COMMAND: mln_camera_change_source = 0;
pub const MLN_CAMERA_CHANGE_SOURCE_GESTURE: mln_camera_change_source = 1;
pub const MLN_CAMERA_CHANGE_SOURCE_MOMENTUM: mln_camera_change_source = 2;
pub type mln_camera_delta_field = u32;
pub const MLN_CAMERA_DELTA_OFFSET: mln_camera_delta_field = 1;
pub const MLN_CAMERA_DELTA_SCALE: mln_camera_delta_field = 2;
pub const MLN_CAMERA_DELTA_BEARING: mln_camera_delta_field = 4;
pub const MLN_CAMERA_DELTA_PITCH: mln_camera_delta_field = 8;
pub const MLN_CAMERA_DELTA_ANCHOR: mln_camera_delta_field = 16;
pub const MLN_CAMERA_DELTA_MOMENTUM: mln_camera_delta_field = 32;
pub type mln_camera_fit_option_field = u32;
pub const MLN_CAMERA_FIT_OPTION_PADDING: mln_camera_fit_option_field = 1;
pub const MLN_CAMERA_FIT_OPTION_BEARING: mln_camera_fit_option_field = 2;
pub const MLN_CAMERA_FIT_OPTION_PITCH: mln_camera_fit_option_field = 4;
pub type mln_camera_option_field = u32;
pub const MLN_CAMERA_OPTION_CENTER: mln_camera_option_field = 1;
pub const MLN_CAMERA_OPTION_ZOOM: mln_camera_option_field = 2;
pub const MLN_CAMERA_OPTION_BEARING: mln_camera_option_field = 4;
pub const MLN_CAMERA_OPTION_PITCH: mln_camera_option_field = 8;
pub const MLN_CAMERA_OPTION_CENTER_ALTITUDE: mln_camera_option_field = 16;
pub const MLN_CAMERA_OPTION_PADDING: mln_camera_option_field = 32;
pub const MLN_CAMERA_OPTION_ANCHOR: mln_camera_option_field = 64;
pub const MLN_CAMERA_OPTION_ROLL: mln_camera_option_field = 128;
pub const MLN_CAMERA_OPTION_FOV: mln_camera_option_field = 256;
pub type mln_camera_transition_outcome = u32;
pub const MLN_CAMERA_TRANSITION_OUTCOME_COMPLETED: mln_camera_transition_outcome = 0;
pub const MLN_CAMERA_TRANSITION_OUTCOME_CANCELLED: mln_camera_transition_outcome = 1;
pub const MLN_CAMERA_TRANSITION_OUTCOME_CLOSED: mln_camera_transition_outcome = 2;
pub const MLN_CAMERA_TRANSITION_OUTCOME_REPLACED: mln_camera_transition_outcome = 3;
pub type mln_camera_update_mode = u32;
pub const MLN_CAMERA_UPDATE_MODE_JUMP: mln_camera_update_mode = 0;
pub const MLN_CAMERA_UPDATE_MODE_EASE: mln_camera_update_mode = 1;
pub const MLN_CAMERA_UPDATE_MODE_FLY: mln_camera_update_mode = 2;
pub type mln_constrain_mode = u32;
pub const MLN_CONSTRAIN_MODE_NONE: mln_constrain_mode = 0;
pub const MLN_CONSTRAIN_MODE_HEIGHT_ONLY: mln_constrain_mode = 1;
pub const MLN_CONSTRAIN_MODE_WIDTH_AND_HEIGHT: mln_constrain_mode = 2;
pub const MLN_CONSTRAIN_MODE_SCREEN: mln_constrain_mode = 3;
pub type mln_custom_geometry_source_option_field = u32;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM: mln_custom_geometry_source_option_field = 1;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM: mln_custom_geometry_source_option_field = 2;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE: mln_custom_geometry_source_option_field = 4;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE: mln_custom_geometry_source_option_field = 8;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER: mln_custom_geometry_source_option_field = 16;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP: mln_custom_geometry_source_option_field = 32;
pub const MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP: mln_custom_geometry_source_option_field = 64;
pub type mln_custom_vector_source_option_field = u32;
pub const MLN_CUSTOM_VECTOR_SOURCE_OPTION_MIN_ZOOM: mln_custom_vector_source_option_field = 1;
pub const MLN_CUSTOM_VECTOR_SOURCE_OPTION_MAX_ZOOM: mln_custom_vector_source_option_field = 2;
pub type mln_feature_id_type = u32;
pub const MLN_FEATURE_ID_TYPE_STRING: mln_feature_id_type = 1;
pub const MLN_FEATURE_ID_TYPE_UINT: mln_feature_id_type = 2;
pub const MLN_FEATURE_ID_TYPE_INT: mln_feature_id_type = 3;
pub const MLN_FEATURE_ID_TYPE_DOUBLE: mln_feature_id_type = 4;
pub type mln_feature_state_selector_field = u32;
pub const MLN_FEATURE_STATE_SELECTOR_FEATURE_ID: mln_feature_state_selector_field = 1;
pub type mln_frame_demand_flag = u32;
pub const MLN_FRAME_DEMAND_FORCE: mln_frame_demand_flag = 1;
pub const MLN_FRAME_DEMAND_WAIT_FOR_UPDATE: mln_frame_demand_flag = 4;
pub type mln_frame_pacer_option_field = u32;
pub const MLN_FRAME_PACER_OPTION_MAXIMUM_FRAMES_PER_SECOND: mln_frame_pacer_option_field = 1;
pub type mln_free_camera_option_field = u32;
pub const MLN_FREE_CAMERA_OPTION_POSITION: mln_free_camera_option_field = 1;
pub const MLN_FREE_CAMERA_OPTION_ORIENTATION: mln_free_camera_option_field = 2;
pub type mln_geo_json_source_option_field = u32;
pub const MLN_GEO_JSON_SOURCE_OPTION_MIN_ZOOM: mln_geo_json_source_option_field = 1;
pub const MLN_GEO_JSON_SOURCE_OPTION_MAX_ZOOM: mln_geo_json_source_option_field = 2;
pub const MLN_GEO_JSON_SOURCE_OPTION_TOLERANCE: mln_geo_json_source_option_field = 4;
pub const MLN_GEO_JSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM: mln_geo_json_source_option_field = 8;
pub const MLN_GEO_JSON_SOURCE_OPTION_BUFFER: mln_geo_json_source_option_field = 16;
pub const MLN_GEO_JSON_SOURCE_OPTION_CLUSTER_RADIUS: mln_geo_json_source_option_field = 32;
pub const MLN_GEO_JSON_SOURCE_OPTION_CLUSTER_MIN_POINTS: mln_geo_json_source_option_field = 64;
pub const MLN_GEO_JSON_SOURCE_OPTION_LINE_METRICS: mln_geo_json_source_option_field = 128;
pub const MLN_GEO_JSON_SOURCE_OPTION_CLUSTER: mln_geo_json_source_option_field = 256;
pub type mln_gesture_phase = u32;
pub const MLN_GESTURE_PHASE_NONE: mln_gesture_phase = 0;
pub const MLN_GESTURE_PHASE_BEGIN: mln_gesture_phase = 1;
pub const MLN_GESTURE_PHASE_UPDATE: mln_gesture_phase = 2;
pub const MLN_GESTURE_PHASE_END: mln_gesture_phase = 3;
pub const MLN_GESTURE_PHASE_CANCEL: mln_gesture_phase = 4;
pub type mln_gpu_sync_kind = u32;
pub const MLN_GPU_SYNC_CPU_COMPLETE: mln_gpu_sync_kind = 0;
pub const MLN_GPU_SYNC_OPEN_GL_FENCE: mln_gpu_sync_kind = 1;
pub const MLN_GPU_SYNC_QUEUE_ORDER: mln_gpu_sync_kind = 2;
pub const MLN_GPU_SYNC_VULKAN_TIMELINE_SEMAPHORE: mln_gpu_sync_kind = 3;
pub const MLN_GPU_SYNC_SYNC_FD: mln_gpu_sync_kind = 4;
pub const MLN_GPU_SYNC_METAL_SHARED_EVENT: mln_gpu_sync_kind = 5;
pub const MLN_GPU_SYNC_D3D12_FENCE: mln_gpu_sync_kind = 6;
pub type mln_gpu_sync_kind_flag = u32;
pub const MLN_GPU_SYNC_KIND_FLAG_CPU_COMPLETE: mln_gpu_sync_kind_flag = 1;
pub const MLN_GPU_SYNC_KIND_FLAG_OPEN_GL_FENCE: mln_gpu_sync_kind_flag = 2;
pub const MLN_GPU_SYNC_KIND_FLAG_QUEUE_ORDER: mln_gpu_sync_kind_flag = 4;
pub const MLN_GPU_SYNC_KIND_FLAG_VULKAN_TIMELINE_SEMAPHORE: mln_gpu_sync_kind_flag = 8;
pub const MLN_GPU_SYNC_KIND_FLAG_SYNC_FD: mln_gpu_sync_kind_flag = 16;
pub const MLN_GPU_SYNC_KIND_FLAG_METAL_SHARED_EVENT: mln_gpu_sync_kind_flag = 32;
pub const MLN_GPU_SYNC_KIND_FLAG_D3D12_FENCE: mln_gpu_sync_kind_flag = 64;
pub type mln_log_event = u32;
pub const MLN_LOG_EVENT_GENERAL: mln_log_event = 0;
pub const MLN_LOG_EVENT_SETUP: mln_log_event = 1;
pub const MLN_LOG_EVENT_SHADER: mln_log_event = 2;
pub const MLN_LOG_EVENT_PARSE_STYLE: mln_log_event = 3;
pub const MLN_LOG_EVENT_PARSE_TILE: mln_log_event = 4;
pub const MLN_LOG_EVENT_RENDER: mln_log_event = 5;
pub const MLN_LOG_EVENT_STYLE: mln_log_event = 6;
pub const MLN_LOG_EVENT_DATABASE: mln_log_event = 7;
pub const MLN_LOG_EVENT_HTTP_REQUEST: mln_log_event = 8;
pub const MLN_LOG_EVENT_SPRITE: mln_log_event = 9;
pub const MLN_LOG_EVENT_IMAGE: mln_log_event = 10;
pub const MLN_LOG_EVENT_GRAPHICS_BACKEND: mln_log_event = 11;
pub const MLN_LOG_EVENT_JNI: mln_log_event = 12;
pub const MLN_LOG_EVENT_ANDROID: mln_log_event = 13;
pub const MLN_LOG_EVENT_CRASH: mln_log_event = 14;
pub const MLN_LOG_EVENT_GLYPH: mln_log_event = 15;
pub const MLN_LOG_EVENT_TIMING: mln_log_event = 16;
pub type mln_log_severity = u32;
pub const MLN_LOG_SEVERITY_INFO: mln_log_severity = 1;
pub const MLN_LOG_SEVERITY_WARNING: mln_log_severity = 2;
pub const MLN_LOG_SEVERITY_ERROR: mln_log_severity = 3;
pub type mln_log_severity_flag = u32;
pub const MLN_LOG_SEVERITY_FLAG_INFO: mln_log_severity_flag = 2;
pub const MLN_LOG_SEVERITY_FLAG_WARNING: mln_log_severity_flag = 4;
pub const MLN_LOG_SEVERITY_FLAG_ERROR: mln_log_severity_flag = 8;
pub const MLN_LOG_SEVERITY_FLAG_DEFAULT: mln_log_severity_flag = 6;
pub const MLN_LOG_SEVERITY_FLAG_ALL: mln_log_severity_flag = 14;
pub type mln_map_debug_flag = u32;
pub const MLN_MAP_DEBUG_TILE_BORDERS: mln_map_debug_flag = 2;
pub const MLN_MAP_DEBUG_PARSE_STATUS: mln_map_debug_flag = 4;
pub const MLN_MAP_DEBUG_TIMESTAMPS: mln_map_debug_flag = 8;
pub const MLN_MAP_DEBUG_COLLISION: mln_map_debug_flag = 16;
pub const MLN_MAP_DEBUG_OVERDRAW: mln_map_debug_flag = 32;
pub const MLN_MAP_DEBUG_STENCIL_CLIP: mln_map_debug_flag = 64;
pub const MLN_MAP_DEBUG_DEPTH_BUFFER: mln_map_debug_flag = 128;
pub type mln_map_load_error = u32;
pub const MLN_MAP_LOAD_ERROR_UNKNOWN: mln_map_load_error = 0;
pub const MLN_MAP_LOAD_ERROR_STYLE_PARSE: mln_map_load_error = 1;
pub const MLN_MAP_LOAD_ERROR_STYLE_LOAD: mln_map_load_error = 2;
pub type mln_map_mode = u32;
pub const MLN_MAP_MODE_CONTINUOUS: mln_map_mode = 0;
pub const MLN_MAP_MODE_STATIC: mln_map_mode = 1;
pub const MLN_MAP_MODE_TILE: mln_map_mode = 2;
pub type mln_map_option_field = u32;
pub const MLN_MAP_OPTION_EVENT_MASK: mln_map_option_field = 1;
pub const MLN_MAP_OPTION_TILE_CACHE_ENABLED: mln_map_option_field = 2;
pub type mln_map_tile_option_field = u32;
pub const MLN_MAP_TILE_OPTION_PREFETCH_ZOOM_DELTA: mln_map_tile_option_field = 1;
pub const MLN_MAP_TILE_OPTION_LOD_MIN_RADIUS: mln_map_tile_option_field = 2;
pub const MLN_MAP_TILE_OPTION_LOD_SCALE: mln_map_tile_option_field = 4;
pub const MLN_MAP_TILE_OPTION_LOD_PITCH_THRESHOLD: mln_map_tile_option_field = 8;
pub const MLN_MAP_TILE_OPTION_LOD_ZOOM_SHIFT: mln_map_tile_option_field = 16;
pub const MLN_MAP_TILE_OPTION_LOD_MODE: mln_map_tile_option_field = 32;
pub type mln_map_viewport_option_field = u32;
pub const MLN_MAP_VIEWPORT_OPTION_NORTH_ORIENTATION: mln_map_viewport_option_field = 1;
pub const MLN_MAP_VIEWPORT_OPTION_CONSTRAIN_MODE: mln_map_viewport_option_field = 2;
pub const MLN_MAP_VIEWPORT_OPTION_VIEWPORT_MODE: mln_map_viewport_option_field = 4;
pub const MLN_MAP_VIEWPORT_OPTION_FRUSTUM_OFFSET: mln_map_viewport_option_field = 8;
pub type mln_momentum_decay_field = u32;
pub const MLN_MOMENTUM_DECAY_MODEL: mln_momentum_decay_field = 1;
pub const MLN_MOMENTUM_DECAY_HALF_LIFE_MS: mln_momentum_decay_field = 2;
pub const MLN_MOMENTUM_DECAY_STOP_SPEED: mln_momentum_decay_field = 4;
pub const MLN_MOMENTUM_DECAY_DISTANCE: mln_momentum_decay_field = 8;
pub const MLN_MOMENTUM_DECAY_DURATION_MS: mln_momentum_decay_field = 16;
pub const MLN_MOMENTUM_DECAY_EASING: mln_momentum_decay_field = 32;
pub const MLN_MOMENTUM_DECAY_MIN_SPEED: mln_momentum_decay_field = 64;
pub const MLN_MOMENTUM_DECAY_MAX_SPEED: mln_momentum_decay_field = 128;
pub const MLN_MOMENTUM_DECAY_MAX_DISTANCE: mln_momentum_decay_field = 256;
pub type mln_momentum_decay_model = u32;
pub const MLN_MOMENTUM_DECAY_MODEL_FRICTION: mln_momentum_decay_model = 0;
pub const MLN_MOMENTUM_DECAY_MODEL_EASE: mln_momentum_decay_model = 1;
pub type mln_momentum_snap_field = u32;
pub const MLN_MOMENTUM_SNAP_SPACING: mln_momentum_snap_field = 1;
pub const MLN_MOMENTUM_SNAP_OFFSET: mln_momentum_snap_field = 2;
pub const MLN_MOMENTUM_SNAP_TOLERANCE: mln_momentum_snap_field = 4;
pub const MLN_MOMENTUM_SNAP_DURATION_MS: mln_momentum_snap_field = 8;
pub type mln_network_status = u32;
pub const MLN_NETWORK_STATUS_ONLINE: mln_network_status = 1;
pub const MLN_NETWORK_STATUS_OFFLINE: mln_network_status = 2;
pub type mln_north_orientation = u32;
pub const MLN_NORTH_ORIENTATION_UP: mln_north_orientation = 0;
pub const MLN_NORTH_ORIENTATION_RIGHT: mln_north_orientation = 1;
pub const MLN_NORTH_ORIENTATION_DOWN: mln_north_orientation = 2;
pub const MLN_NORTH_ORIENTATION_LEFT: mln_north_orientation = 3;
pub type mln_offline_region_definition_type = u32;
pub const MLN_OFFLINE_REGION_DEFINITION_TILE_PYRAMID: mln_offline_region_definition_type = 1;
pub const MLN_OFFLINE_REGION_DEFINITION_GEOMETRY: mln_offline_region_definition_type = 2;
pub type mln_offline_region_download_state = u32;
pub const MLN_OFFLINE_REGION_DOWNLOAD_INACTIVE: mln_offline_region_download_state = 0;
pub const MLN_OFFLINE_REGION_DOWNLOAD_ACTIVE: mln_offline_region_download_state = 1;
pub type mln_offscreen_device_option_field = u32;
pub const MLN_OFFSCREEN_DEVICE_OPTION_ADAPTER_INDEX: mln_offscreen_device_option_field = 1;
pub const MLN_OFFSCREEN_DEVICE_OPTION_SINGLE_CONTEXT: mln_offscreen_device_option_field = 2;
pub const MLN_OFFSCREEN_DEVICE_OPTION_CLIENT_API: mln_offscreen_device_option_field = 4;
pub type mln_open_gl_client_api = u32;
pub const MLN_OPEN_GL_CLIENT_API_UNSPECIFIED: mln_open_gl_client_api = 0;
pub const MLN_OPEN_GL_CLIENT_API_GL: mln_open_gl_client_api = 1;
pub const MLN_OPEN_GL_CLIENT_API_GLES: mln_open_gl_client_api = 2;
pub type mln_open_gl_context_ownership = u32;
pub const MLN_OPEN_GL_CONTEXT_OWNERSHIP_SHARED: mln_open_gl_context_ownership = 0;
pub const MLN_OPEN_GL_CONTEXT_OWNERSHIP_DEDICATED: mln_open_gl_context_ownership = 1;
pub type mln_open_gl_context_platform = u32;
pub const MLN_OPEN_GL_CONTEXT_PLATFORM_UNSPECIFIED: mln_open_gl_context_platform = 0;
pub const MLN_OPEN_GL_CONTEXT_PLATFORM_WGL: mln_open_gl_context_platform = 1;
pub const MLN_OPEN_GL_CONTEXT_PLATFORM_EGL: mln_open_gl_context_platform = 2;
pub const MLN_OPEN_GL_CONTEXT_PLATFORM_WEB_GL: mln_open_gl_context_platform = 3;
pub type mln_open_gl_context_provider_flag = u32;
pub const MLN_OPEN_GL_CONTEXT_PROVIDER_FLAG_WGL: mln_open_gl_context_provider_flag = 1;
pub const MLN_OPEN_GL_CONTEXT_PROVIDER_FLAG_EGL: mln_open_gl_context_provider_flag = 2;
pub const MLN_OPEN_GL_CONTEXT_PROVIDER_FLAG_WEB_GL: mln_open_gl_context_provider_flag = 4;
pub type mln_pan_momentum_field = u32;
pub const MLN_PAN_MOMENTUM_VELOCITY: mln_pan_momentum_field = 1;
pub type mln_projection_mode_option_field = u32;
pub const MLN_PROJECTION_MODE_OPTION_AXONOMETRIC: mln_projection_mode_option_field = 1;
pub const MLN_PROJECTION_MODE_OPTION_X_SKEW: mln_projection_mode_option_field = 2;
pub const MLN_PROJECTION_MODE_OPTION_Y_SKEW: mln_projection_mode_option_field = 4;
pub type mln_render_abandon_disposition = u32;
pub const MLN_RENDER_ABANDON_DISPOSITION_CLEAN: mln_render_abandon_disposition = 0;
pub const MLN_RENDER_ABANDON_DISPOSITION_QUARANTINED: mln_render_abandon_disposition = 1;
pub type mln_render_backend_flag = u32;
pub const MLN_RENDER_BACKEND_FLAG_METAL: mln_render_backend_flag = 1;
pub const MLN_RENDER_BACKEND_FLAG_VULKAN: mln_render_backend_flag = 2;
pub const MLN_RENDER_BACKEND_FLAG_OPEN_GL: mln_render_backend_flag = 4;
pub const MLN_RENDER_BACKEND_FLAG_WEB_GPU: mln_render_backend_flag = 8;
pub type mln_render_driver_kind = u32;
pub const MLN_RENDER_DRIVER_CORE_WORKER: mln_render_driver_kind = 1;
pub const MLN_RENDER_DRIVER_CALLER_GRAPHICS_THREAD: mln_render_driver_kind = 2;
pub type mln_render_mode = u32;
pub const MLN_RENDER_MODE_PARTIAL: mln_render_mode = 0;
pub const MLN_RENDER_MODE_FULL: mln_render_mode = 1;
pub type mln_render_result = u32;
pub const MLN_RENDER_RESULT_RENDERED: mln_render_result = 0;
pub const MLN_RENDER_RESULT_NO_UPDATE: mln_render_result = 1;
pub const MLN_RENDER_RESULT_TARGET_NOT_READY: mln_render_result = 2;
pub const MLN_RENDER_RESULT_SUPERSEDED: mln_render_result = 3;
pub const MLN_RENDER_RESULT_FAILED: mln_render_result = 4;
pub type mln_render_session_capability_flag = u32;
pub const MLN_RENDER_SESSION_CAPABILITY_FRAME_ACQUISITION: mln_render_session_capability_flag = 1;
pub const MLN_RENDER_SESSION_CAPABILITY_READBACK: mln_render_session_capability_flag = 2;
pub const MLN_RENDER_SESSION_CAPABILITY_PRESENTATION: mln_render_session_capability_flag = 4;
pub type mln_render_session_state = u32;
pub const MLN_RENDER_SESSION_STATE_ATTACHING: mln_render_session_state = 1;
pub const MLN_RENDER_SESSION_STATE_ATTACHED: mln_render_session_state = 2;
pub const MLN_RENDER_SESSION_STATE_DETACHING: mln_render_session_state = 3;
pub const MLN_RENDER_SESSION_STATE_DETACHED: mln_render_session_state = 4;
pub const MLN_RENDER_SESSION_STATE_FAILED: mln_render_session_state = 5;
pub const MLN_RENDER_SESSION_STATE_ABANDONED: mln_render_session_state = 6;
pub type mln_rendered_feature_query_option_field = u32;
pub const MLN_RENDERED_FEATURE_QUERY_OPTION_LAYER_IDS: mln_rendered_feature_query_option_field = 1;
pub type mln_rendered_query_geometry_type = u32;
pub const MLN_RENDERED_QUERY_GEOMETRY_TYPE_POINT: mln_rendered_query_geometry_type = 1;
pub const MLN_RENDERED_QUERY_GEOMETRY_TYPE_BOX: mln_rendered_query_geometry_type = 2;
pub const MLN_RENDERED_QUERY_GEOMETRY_TYPE_LINE_STRING: mln_rendered_query_geometry_type = 3;
pub type mln_resource_error_reason = u32;
pub const MLN_RESOURCE_ERROR_REASON_OTHER: mln_resource_error_reason = 0;
pub const MLN_RESOURCE_ERROR_REASON_NOT_FOUND: mln_resource_error_reason = 1;
pub const MLN_RESOURCE_ERROR_REASON_SERVER: mln_resource_error_reason = 2;
pub const MLN_RESOURCE_ERROR_REASON_CONNECTION: mln_resource_error_reason = 3;
pub const MLN_RESOURCE_ERROR_REASON_RATE_LIMIT: mln_resource_error_reason = 4;
pub type mln_resource_kind = u32;
pub const MLN_RESOURCE_KIND_UNKNOWN: mln_resource_kind = 0;
pub const MLN_RESOURCE_KIND_STYLE: mln_resource_kind = 1;
pub const MLN_RESOURCE_KIND_SOURCE: mln_resource_kind = 2;
pub const MLN_RESOURCE_KIND_TILE: mln_resource_kind = 3;
pub const MLN_RESOURCE_KIND_GLYPHS: mln_resource_kind = 4;
pub const MLN_RESOURCE_KIND_SPRITE_IMAGE: mln_resource_kind = 5;
pub const MLN_RESOURCE_KIND_SPRITE_JSON: mln_resource_kind = 6;
pub const MLN_RESOURCE_KIND_IMAGE: mln_resource_kind = 7;
pub type mln_resource_kind_flag = u32;
pub const MLN_RESOURCE_KIND_FLAG_UNKNOWN: mln_resource_kind_flag = 1;
pub const MLN_RESOURCE_KIND_FLAG_STYLE: mln_resource_kind_flag = 2;
pub const MLN_RESOURCE_KIND_FLAG_SOURCE: mln_resource_kind_flag = 4;
pub const MLN_RESOURCE_KIND_FLAG_TILE: mln_resource_kind_flag = 8;
pub const MLN_RESOURCE_KIND_FLAG_GLYPHS: mln_resource_kind_flag = 16;
pub const MLN_RESOURCE_KIND_FLAG_SPRITE_IMAGE: mln_resource_kind_flag = 32;
pub const MLN_RESOURCE_KIND_FLAG_SPRITE_JSON: mln_resource_kind_flag = 64;
pub const MLN_RESOURCE_KIND_FLAG_IMAGE: mln_resource_kind_flag = 128;
pub const MLN_RESOURCE_KIND_FLAG_ALL: mln_resource_kind_flag = 255;
pub type mln_resource_loading_method = u32;
pub const MLN_RESOURCE_LOADING_METHOD_ALL: mln_resource_loading_method = 0;
pub const MLN_RESOURCE_LOADING_METHOD_CACHE_ONLY: mln_resource_loading_method = 1;
pub const MLN_RESOURCE_LOADING_METHOD_NETWORK_ONLY: mln_resource_loading_method = 2;
pub type mln_resource_priority = u32;
pub const MLN_RESOURCE_PRIORITY_REGULAR: mln_resource_priority = 0;
pub const MLN_RESOURCE_PRIORITY_LOW: mln_resource_priority = 1;
pub type mln_resource_request_field = u32;
pub const MLN_RESOURCE_REQUEST_RANGE: mln_resource_request_field = 1;
pub const MLN_RESOURCE_REQUEST_PRIOR_MODIFIED: mln_resource_request_field = 2;
pub const MLN_RESOURCE_REQUEST_PRIOR_EXPIRES: mln_resource_request_field = 4;
pub type mln_resource_response_field = u32;
pub const MLN_RESOURCE_RESPONSE_MODIFIED: mln_resource_response_field = 1;
pub const MLN_RESOURCE_RESPONSE_EXPIRES: mln_resource_response_field = 2;
pub const MLN_RESOURCE_RESPONSE_RETRY_AFTER: mln_resource_response_field = 4;
pub type mln_resource_response_status = u32;
pub const MLN_RESOURCE_RESPONSE_STATUS_OK: mln_resource_response_status = 0;
pub const MLN_RESOURCE_RESPONSE_STATUS_ERROR: mln_resource_response_status = 1;
pub const MLN_RESOURCE_RESPONSE_STATUS_NO_CONTENT: mln_resource_response_status = 2;
pub const MLN_RESOURCE_RESPONSE_STATUS_NOT_MODIFIED: mln_resource_response_status = 3;
pub type mln_resource_storage_policy = u32;
pub const MLN_RESOURCE_STORAGE_POLICY_PERMANENT: mln_resource_storage_policy = 0;
pub const MLN_RESOURCE_STORAGE_POLICY_VOLATILE: mln_resource_storage_policy = 1;
pub type mln_resource_transform_error_field = u32;
pub const MLN_RESOURCE_TRANSFORM_ERROR_RETRY_AFTER: mln_resource_transform_error_field = 1;
pub type mln_resource_usage = u32;
pub const MLN_RESOURCE_USAGE_ONLINE: mln_resource_usage = 0;
pub const MLN_RESOURCE_USAGE_OFFLINE: mln_resource_usage = 1;
pub type mln_runtime_event_flag = u64;
pub const MLN_RUNTIME_EVENT_FLAG_NONE: mln_runtime_event_flag = 0;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_WILL_CHANGE: mln_runtime_event_flag = 2;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_IS_CHANGING: mln_runtime_event_flag = 4;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_DID_CHANGE: mln_runtime_event_flag = 8;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_STYLE_LOADED: mln_runtime_event_flag = 16;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_STARTED: mln_runtime_event_flag = 32;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_FINISHED: mln_runtime_event_flag = 64;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_FAILED: mln_runtime_event_flag = 128;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_IDLE: mln_runtime_event_flag = 256;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_ERROR: mln_runtime_event_flag = 512;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_FRAME_STARTED: mln_runtime_event_flag = 1024;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_FRAME_FINISHED: mln_runtime_event_flag = 2048;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_MAP_STARTED: mln_runtime_event_flag = 4096;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_MAP_FINISHED: mln_runtime_event_flag = 8192;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_STYLE_IMAGE_MISSING: mln_runtime_event_flag = 16384;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_TILE_ACTION: mln_runtime_event_flag = 32768;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_SOURCE_CHANGED: mln_runtime_event_flag = 65536;
pub const MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_STATUS_CHANGED: mln_runtime_event_flag = 131072;
pub const MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_RESPONSE_ERROR: mln_runtime_event_flag = 262144;
pub const MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED: mln_runtime_event_flag =
    524288;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_REQUESTED: mln_runtime_event_flag = 1048576;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_LOADED: mln_runtime_event_flag = 2097152;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_ERROR: mln_runtime_event_flag = 4194304;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_REQUESTED: mln_runtime_event_flag = 8388608;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_LOADED: mln_runtime_event_flag = 16777216;
pub const MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_ERROR: mln_runtime_event_flag = 33554432;
pub const MLN_RUNTIME_EVENT_FLAG_ALL_MAP_EVENTS: mln_runtime_event_flag = 66191358;
pub const MLN_RUNTIME_EVENT_FLAG_ALL_RUNTIME_EVENTS: mln_runtime_event_flag = 917504;
pub const MLN_RUNTIME_EVENT_FLAG_ALL: mln_runtime_event_flag = 67108862;
pub type mln_runtime_event_payload_type = u32;
pub const MLN_RUNTIME_EVENT_PAYLOAD_NONE: mln_runtime_event_payload_type = 0;
pub const MLN_RUNTIME_EVENT_PAYLOAD_CAMERA_CHANGE: mln_runtime_event_payload_type = 1;
pub const MLN_RUNTIME_EVENT_PAYLOAD_LOADING_FAILED: mln_runtime_event_payload_type = 2;
pub const MLN_RUNTIME_EVENT_PAYLOAD_RENDER_FRAME: mln_runtime_event_payload_type = 3;
pub const MLN_RUNTIME_EVENT_PAYLOAD_STYLE_IMAGE: mln_runtime_event_payload_type = 4;
pub const MLN_RUNTIME_EVENT_PAYLOAD_TILE_ACTION: mln_runtime_event_payload_type = 5;
pub const MLN_RUNTIME_EVENT_PAYLOAD_SOURCE_CHANGED: mln_runtime_event_payload_type = 6;
pub const MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_STATUS: mln_runtime_event_payload_type = 7;
pub const MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_RESPONSE_ERROR: mln_runtime_event_payload_type =
    8;
pub const MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_TILE_COUNT_LIMIT:
    mln_runtime_event_payload_type = 9;
pub const MLN_RUNTIME_EVENT_PAYLOAD_GLYPHS: mln_runtime_event_payload_type = 10;
pub const MLN_RUNTIME_EVENT_PAYLOAD_SPRITE: mln_runtime_event_payload_type = 11;
pub type mln_runtime_event_source_type = u32;
pub const MLN_RUNTIME_EVENT_SOURCE_RUNTIME: mln_runtime_event_source_type = 0;
pub const MLN_RUNTIME_EVENT_SOURCE_MAP: mln_runtime_event_source_type = 1;
pub type mln_runtime_event_type = u32;
pub const MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE: mln_runtime_event_type = 1;
pub const MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING: mln_runtime_event_type = 2;
pub const MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE: mln_runtime_event_type = 3;
pub const MLN_RUNTIME_EVENT_MAP_STYLE_LOADED: mln_runtime_event_type = 4;
pub const MLN_RUNTIME_EVENT_MAP_LOADING_STARTED: mln_runtime_event_type = 5;
pub const MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED: mln_runtime_event_type = 6;
pub const MLN_RUNTIME_EVENT_MAP_LOADING_FAILED: mln_runtime_event_type = 7;
pub const MLN_RUNTIME_EVENT_MAP_IDLE: mln_runtime_event_type = 8;
pub const MLN_RUNTIME_EVENT_MAP_RENDER_ERROR: mln_runtime_event_type = 9;
pub const MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED: mln_runtime_event_type = 10;
pub const MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED: mln_runtime_event_type = 11;
pub const MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED: mln_runtime_event_type = 12;
pub const MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED: mln_runtime_event_type = 13;
pub const MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING: mln_runtime_event_type = 14;
pub const MLN_RUNTIME_EVENT_MAP_TILE_ACTION: mln_runtime_event_type = 15;
pub const MLN_RUNTIME_EVENT_MAP_SOURCE_CHANGED: mln_runtime_event_type = 16;
pub const MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED: mln_runtime_event_type = 17;
pub const MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR: mln_runtime_event_type = 18;
pub const MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED: mln_runtime_event_type = 19;
pub const MLN_RUNTIME_EVENT_MAP_GLYPHS_REQUESTED: mln_runtime_event_type = 20;
pub const MLN_RUNTIME_EVENT_MAP_GLYPHS_LOADED: mln_runtime_event_type = 21;
pub const MLN_RUNTIME_EVENT_MAP_GLYPHS_ERROR: mln_runtime_event_type = 22;
pub const MLN_RUNTIME_EVENT_MAP_SPRITE_REQUESTED: mln_runtime_event_type = 23;
pub const MLN_RUNTIME_EVENT_MAP_SPRITE_LOADED: mln_runtime_event_type = 24;
pub const MLN_RUNTIME_EVENT_MAP_SPRITE_ERROR: mln_runtime_event_type = 25;
pub type mln_source_feature_query_option_field = u32;
pub const MLN_SOURCE_FEATURE_QUERY_OPTION_SOURCE_LAYER_IDS: mln_source_feature_query_option_field =
    1;
pub type mln_status = i32;
pub const MLN_STATUS_OK: mln_status = 0;
pub const MLN_STATUS_INVALID_ARGUMENT: mln_status = -1;
pub const MLN_STATUS_INVALID_STATE: mln_status = -2;
pub const MLN_STATUS_WRONG_THREAD: mln_status = -3;
pub const MLN_STATUS_UNSUPPORTED: mln_status = -4;
pub const MLN_STATUS_NATIVE_ERROR: mln_status = -5;
pub const MLN_STATUS_CANCELLED: mln_status = -6;
pub const MLN_STATUS_BUSY: mln_status = -7;
pub const MLN_STATUS_TARGET_LOST: mln_status = -8;
pub const MLN_STATUS_NOT_FOUND: mln_status = -10;
pub const MLN_STATUS_ALREADY_EXISTS: mln_status = -11;
pub type mln_style_expression_input_field = u32;
pub const MLN_STYLE_EXPRESSION_INPUT_ZOOM: mln_style_expression_input_field = 1;
pub const MLN_STYLE_EXPRESSION_INPUT_COLOR_RAMP_PARAMETER: mln_style_expression_input_field = 2;
pub const MLN_STYLE_EXPRESSION_INPUT_CANONICAL_TILE_ID: mln_style_expression_input_field = 8;
pub type mln_style_expression_option_field = u32;
pub const MLN_STYLE_EXPRESSION_OPTION_EXPECTED_TYPE: mln_style_expression_option_field = 1;
pub type mln_style_expression_type_kind = u32;
pub const MLN_STYLE_EXPRESSION_TYPE_VALUE: mln_style_expression_type_kind = 0;
pub const MLN_STYLE_EXPRESSION_TYPE_NUMBER: mln_style_expression_type_kind = 1;
pub const MLN_STYLE_EXPRESSION_TYPE_STRING: mln_style_expression_type_kind = 2;
pub const MLN_STYLE_EXPRESSION_TYPE_BOOLEAN: mln_style_expression_type_kind = 3;
pub const MLN_STYLE_EXPRESSION_TYPE_COLOR: mln_style_expression_type_kind = 4;
pub const MLN_STYLE_EXPRESSION_TYPE_OBJECT: mln_style_expression_type_kind = 5;
pub const MLN_STYLE_EXPRESSION_TYPE_FORMATTED: mln_style_expression_type_kind = 6;
pub const MLN_STYLE_EXPRESSION_TYPE_IMAGE: mln_style_expression_type_kind = 7;
pub const MLN_STYLE_EXPRESSION_TYPE_PADDING: mln_style_expression_type_kind = 8;
pub const MLN_STYLE_EXPRESSION_TYPE_VARIABLE_ANCHOR_OFFSET_COLLECTION:
    mln_style_expression_type_kind = 9;
pub const MLN_STYLE_EXPRESSION_TYPE_ARRAY: mln_style_expression_type_kind = 10;
pub type mln_style_image_info_field = u32;
pub const MLN_STYLE_IMAGE_INFO_CONTENT: mln_style_image_info_field = 1;
pub const MLN_STYLE_IMAGE_INFO_TEXT_FIT_WIDTH: mln_style_image_info_field = 2;
pub const MLN_STYLE_IMAGE_INFO_TEXT_FIT_HEIGHT: mln_style_image_info_field = 4;
pub type mln_style_image_option_field = u32;
pub const MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO: mln_style_image_option_field = 1;
pub const MLN_STYLE_IMAGE_OPTION_SDF: mln_style_image_option_field = 2;
pub const MLN_STYLE_IMAGE_OPTION_STRETCH_X: mln_style_image_option_field = 4;
pub const MLN_STYLE_IMAGE_OPTION_STRETCH_Y: mln_style_image_option_field = 8;
pub const MLN_STYLE_IMAGE_OPTION_CONTENT: mln_style_image_option_field = 16;
pub const MLN_STYLE_IMAGE_OPTION_TEXT_FIT_WIDTH: mln_style_image_option_field = 32;
pub const MLN_STYLE_IMAGE_OPTION_TEXT_FIT_HEIGHT: mln_style_image_option_field = 64;
pub const MLN_STYLE_IMAGE_OPTION_KEEP_UNUSED: mln_style_image_option_field = 128;
pub type mln_style_image_text_fit = u32;
pub const MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_OR_SHRINK: mln_style_image_text_fit = 0;
pub const MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_ONLY: mln_style_image_text_fit = 1;
pub const MLN_STYLE_IMAGE_TEXT_FIT_PROPORTIONAL: mln_style_image_text_fit = 2;
pub type mln_style_layer_visibility = u32;
pub const MLN_STYLE_LAYER_VISIBILITY_VISIBLE: mln_style_layer_visibility = 0;
pub const MLN_STYLE_LAYER_VISIBILITY_NONE: mln_style_layer_visibility = 1;
pub type mln_style_raster_dem_encoding = u32;
pub const MLN_STYLE_RASTER_DEM_ENCODING_MAPBOX: mln_style_raster_dem_encoding = 0;
pub const MLN_STYLE_RASTER_DEM_ENCODING_TERRARIUM: mln_style_raster_dem_encoding = 1;
pub type mln_style_source_info_field = u32;
pub const MLN_STYLE_SOURCE_INFO_TILE_JSON: mln_style_source_info_field = 1;
pub const MLN_STYLE_SOURCE_INFO_BOUNDS: mln_style_source_info_field = 2;
pub const MLN_STYLE_SOURCE_INFO_TILE_SIZE: mln_style_source_info_field = 4;
pub const MLN_STYLE_SOURCE_INFO_VECTOR_ENCODING: mln_style_source_info_field = 8;
pub const MLN_STYLE_SOURCE_INFO_RASTER_ENCODING: mln_style_source_info_field = 16;
pub const MLN_STYLE_SOURCE_INFO_GEO_JSON: mln_style_source_info_field = 32;
pub type mln_style_source_type = u32;
pub const MLN_STYLE_SOURCE_TYPE_UNKNOWN: mln_style_source_type = 0;
pub const MLN_STYLE_SOURCE_TYPE_VECTOR: mln_style_source_type = 1;
pub const MLN_STYLE_SOURCE_TYPE_RASTER: mln_style_source_type = 2;
pub const MLN_STYLE_SOURCE_TYPE_RASTER_DEM: mln_style_source_type = 3;
pub const MLN_STYLE_SOURCE_TYPE_GEO_JSON: mln_style_source_type = 4;
pub const MLN_STYLE_SOURCE_TYPE_IMAGE: mln_style_source_type = 5;
pub const MLN_STYLE_SOURCE_TYPE_VIDEO: mln_style_source_type = 6;
pub const MLN_STYLE_SOURCE_TYPE_ANNOTATIONS: mln_style_source_type = 7;
pub const MLN_STYLE_SOURCE_TYPE_CUSTOM_GEOMETRY: mln_style_source_type = 8;
pub const MLN_STYLE_SOURCE_TYPE_CUSTOM_VECTOR: mln_style_source_type = 9;
pub type mln_style_tile_scheme = u32;
pub const MLN_STYLE_TILE_SCHEME_XYZ: mln_style_tile_scheme = 0;
pub const MLN_STYLE_TILE_SCHEME_TMS: mln_style_tile_scheme = 1;
pub type mln_style_transition_option_field = u32;
pub const MLN_STYLE_TRANSITION_OPTION_DURATION: mln_style_transition_option_field = 1;
pub const MLN_STYLE_TRANSITION_OPTION_DELAY: mln_style_transition_option_field = 2;
pub const MLN_STYLE_TRANSITION_OPTION_ENABLE_PLACEMENT_TRANSITIONS:
    mln_style_transition_option_field = 4;
pub type mln_style_vector_tile_encoding = u32;
pub const MLN_STYLE_VECTOR_TILE_ENCODING_MVT: mln_style_vector_tile_encoding = 0;
pub const MLN_STYLE_VECTOR_TILE_ENCODING_MLT: mln_style_vector_tile_encoding = 1;
pub type mln_tile_lod_mode = u32;
pub const MLN_TILE_LOD_MODE_DEFAULT: mln_tile_lod_mode = 0;
pub const MLN_TILE_LOD_MODE_DISTANCE: mln_tile_lod_mode = 1;
pub type mln_tile_operation = u32;
pub const MLN_TILE_OPERATION_REQUESTED_FROM_CACHE: mln_tile_operation = 0;
pub const MLN_TILE_OPERATION_REQUESTED_FROM_NETWORK: mln_tile_operation = 1;
pub const MLN_TILE_OPERATION_LOAD_FROM_NETWORK: mln_tile_operation = 2;
pub const MLN_TILE_OPERATION_LOAD_FROM_CACHE: mln_tile_operation = 3;
pub const MLN_TILE_OPERATION_START_PARSE: mln_tile_operation = 4;
pub const MLN_TILE_OPERATION_END_PARSE: mln_tile_operation = 5;
pub const MLN_TILE_OPERATION_ERROR: mln_tile_operation = 6;
pub const MLN_TILE_OPERATION_CANCELLED: mln_tile_operation = 7;
pub const MLN_TILE_OPERATION_NULL: mln_tile_operation = 8;
pub type mln_url_match_flag = u32;
pub const MLN_URL_MATCH_GLOB: mln_url_match_flag = 1;
pub type mln_viewport_mode = u32;
pub const MLN_VIEWPORT_MODE_DEFAULT: mln_viewport_mode = 0;
pub const MLN_VIEWPORT_MODE_FLIPPED_Y: mln_viewport_mode = 1;
pub type mln_vulkan_device_option_field = u32;
pub const MLN_VULKAN_DEVICE_OPTION_PRESENTATION: mln_vulkan_device_option_field = 1;
pub const MLN_VULKAN_DEVICE_OPTION_DEVICE_UUID: mln_vulkan_device_option_field = 2;
pub const MLN_VULKAN_DEVICE_OPTION_DEVICE_LUID: mln_vulkan_device_option_field = 4;
pub type mln_vulkan_image_owner = u32;
pub const MLN_VULKAN_IMAGE_OWNER_GRAPHICS_QUEUE: mln_vulkan_image_owner = 0;
pub const MLN_VULKAN_IMAGE_OWNER_EXTERNAL: mln_vulkan_image_owner = 1;
pub const MLN_VULKAN_IMAGE_OWNER_FOREIGN: mln_vulkan_image_owner = 2;
pub type mln_web_gl_context_kind = u32;
pub const MLN_WEB_GL_CONTEXT_EXISTING: mln_web_gl_context_kind = 0;
pub const MLN_WEB_GL_CONTEXT_TRANSFERRED_CANVAS: mln_web_gl_context_kind = 1;
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_anchored_momentum {
    pub fields: mln_anchored_momentum_fields,
    pub velocity: f64,
    pub anchor: mln_screen_point,
    pub decay: mln_momentum_decay,
    pub snap: mln_momentum_snap,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_android_hardware_buffer_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub buffer: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_android_hardware_buffer_ring_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub buffer_count: u32,
    pub usage: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_android_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
    pub jni_env: *mut std::ffi::c_void,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_android_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
    pub jni_env: *mut std::ffi::c_void,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_animation_options {
    pub fields: mln_animation_option_fields,
    pub duration_ms: f64,
    pub velocity: f64,
    pub min_zoom: f64,
    pub easing: mln_unit_bezier,
    pub transition_id: u64,
    pub end_handler: mln_camera_transition_handler,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_bound_options {
    pub size: u32,
    pub fields: mln_bound_option_fields,
    pub bounds: mln_lat_lng_bounds,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub min_pitch: f64,
    pub max_pitch: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_buffer_view {
    pub data: *const std::ffi::c_void,
    pub size: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera {
    pub center: mln_lat_lng,
    pub center_altitude: f64,
    pub padding: mln_edge_insets,
    pub zoom: f64,
    pub bearing: f64,
    pub pitch: f64,
    pub roll: f64,
    pub field_of_view: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_bounds {
    pub bounds: mln_lat_lng_bounds,
    pub unbounded: bool,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub min_pitch: f64,
    pub max_pitch: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_delta {
    pub size: u32,
    pub fields: mln_camera_delta_fields,
    pub offset: mln_screen_point,
    pub scale: f64,
    pub bearing: f64,
    pub pitch: f64,
    pub anchor: mln_screen_point,
    pub momentum: mln_gesture_momentum,
    pub animation: mln_animation_options,
    pub gesture_phase: mln_gesture_phase,
    pub reserved: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_fit_options {
    pub size: u32,
    pub fields: mln_camera_fit_option_fields,
    pub padding: mln_edge_insets,
    pub bearing: f64,
    pub pitch: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_fit_update {
    pub size: u32,
    pub mode: mln_camera_update_mode,
    pub fit: mln_camera_fit_options,
    pub animation: mln_animation_options,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_options {
    pub size: u32,
    pub fields: mln_camera_option_fields,
    pub center: mln_lat_lng,
    pub center_altitude: f64,
    pub padding: mln_edge_insets,
    pub anchor: mln_screen_point,
    pub zoom: f64,
    pub bearing: f64,
    pub pitch: f64,
    pub roll: f64,
    pub field_of_view: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_query_result {
    pub generation: u64,
    pub camera: mln_camera,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_transition_end {
    pub size: u32,
    pub outcome: mln_camera_transition_outcome,
    pub generation: u64,
    pub velocity: mln_camera_velocity,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_transition_handler {
    pub callback: mln_camera_transition_end_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_update {
    pub size: u32,
    pub mode: mln_camera_update_mode,
    pub camera: mln_camera_options,
    pub animation: mln_animation_options,
    pub gesture_phase: mln_gesture_phase,
    pub reserved: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_camera_velocity {
    pub pan: mln_screen_point,
    pub zoom: f64,
    pub bearing: f64,
    pub pitch: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_canonical_tile_id {
    pub z: u32,
    pub x: u32,
    pub y: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_completion {
    pub size: u32,
    pub callback: mln_completion_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_completion_result {
    pub size: u32,
    pub status: mln_status,
    pub value_size: u32,
    pub generation: u64,
    pub render_update_generation: u64,
    pub diagnostic: mln_buffer_view,
    pub value: *const std::ffi::c_void,
    pub value_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_custom_geometry_source_options {
    pub size: u32,
    pub fields: mln_custom_geometry_source_option_fields,
    pub fetch_tile: mln_custom_source_fetch_tile_callback,
    pub cancel_tile: mln_custom_source_cancel_tile_callback,
    pub user_data: *mut std::ffi::c_void,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub tolerance: f64,
    pub tile_size: u32,
    pub buffer: u32,
    pub clip: bool,
    pub wrap: bool,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_custom_vector_source_options {
    pub size: u32,
    pub fields: mln_custom_vector_source_option_fields,
    pub fetch_tile: mln_custom_source_fetch_tile_callback,
    pub cancel_tile: mln_custom_source_cancel_tile_callback,
    pub user_data: *mut std::ffi::c_void,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_delivery_queue_options {
    pub size: u32,
    pub wake: mln_wake,
    pub release_abandoned_user_data: mln_user_data_release,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_diagnostic {
    pub size: u32,
    pub message: [std::ffi::c_char; 4096],
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dma_buf_format {
    pub fourcc: u32,
    pub modifier: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dma_buf_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub fourcc: u32,
    pub modifier: u64,
    pub planes: *const mln_dma_buf_plane,
    pub plane_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dma_buf_plane {
    pub fd: i32,
    pub offset: u32,
    pub stride: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dma_buf_ring_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub buffer_count: u32,
    pub formats: *const mln_dma_buf_format,
    pub format_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dxgi_shared_texture_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub format: u32,
    pub handle: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_dxgi_shared_texture_ring_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub texture_count: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_edge_insets {
    pub top: f64,
    pub left: f64,
    pub bottom: f64,
    pub right: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_egl_context_descriptor {
    pub display: *mut std::ffi::c_void,
    pub config: *mut std::ffi::c_void,
    pub share_context: *mut std::ffi::c_void,
    pub client_api: mln_open_gl_client_api,
    pub get_proc_address: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_event_batch_view {
    pub size: u32,
    pub event_size: u32,
    pub events: *const mln_runtime_event,
    pub event_count: usize,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_feature_id {
    pub type_: mln_feature_id_type,
    pub data: mln_feature_id_data,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub union mln_feature_id_data {
    pub string_value: mln_buffer_view,
    pub uint_value: u64,
    pub int_value: i64,
    pub double_value: f64,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_feature_state_selector {
    pub size: u32,
    pub fields: mln_feature_state_selector_fields,
    pub source_id: mln_buffer_view,
    pub source_layer_id: mln_buffer_view,
    pub feature_id: mln_feature_id,
    pub state_key: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_frame_demand {
    pub size: u32,
    pub flags: mln_frame_demand_flags,
    pub token: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_frame_pacer_options {
    pub size: u32,
    pub fields: mln_frame_pacer_option_fields,
    pub maximum_frames_per_second: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_free_camera {
    pub position: mln_vec3,
    pub orientation: mln_quaternion,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_free_camera_options {
    pub size: u32,
    pub fields: mln_free_camera_option_fields,
    pub position: mln_vec3,
    pub orientation: mln_quaternion,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_geo_json_source_options {
    pub size: u32,
    pub fields: mln_geo_json_source_option_fields,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub tolerance: f64,
    pub cluster_max_zoom: f64,
    pub cluster_properties: mln_buffer_view,
    pub buffer: u32,
    pub cluster_radius: u32,
    pub cluster_min_points: u64,
    pub line_metrics: bool,
    pub cluster: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_gesture_momentum {
    pub pan: mln_pan_momentum,
    pub zoom: mln_anchored_momentum,
    pub bearing: mln_anchored_momentum,
    pub pitch: mln_anchored_momentum,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_gpu_sync {
    pub size: u32,
    pub kind: mln_gpu_sync_kind,
    pub handle: u64,
    pub value: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_http_header {
    pub name: mln_buffer_view,
    pub value: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_http_header_rule {
    pub size: u32,
    pub kinds: mln_resource_kind_flags,
    pub flags: mln_url_match_flags,
    pub url: mln_buffer_view,
    pub headers: *const mln_http_header,
    pub header_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_http_header_transform {
    pub size: u32,
    pub callback: mln_http_header_transform_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub rules: *const mln_http_header_rule,
    pub rule_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_http_header_transform_response {
    pub size: u32,
    pub context: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_image_content {
    pub left: f32,
    pub top: f32,
    pub right: f32,
    pub bottom: f32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_image_stretch {
    pub from: f32,
    pub to: f32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_io_surface_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_io_surface_ring_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub buffer_count: u32,
    pub context: mln_metal_context_descriptor,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_lat_lng {
    pub latitude: f64,
    pub longitude: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_lat_lng_bounds {
    pub southwest: mln_lat_lng,
    pub northeast: mln_lat_lng,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_log_handler {
    pub size: u32,
    pub callback: mln_log_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
    pub platform_severities: mln_log_severity_flags,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_logical_extent {
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_logical_size {
    pub width: u32,
    pub height: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_options {
    pub size: u32,
    pub fields: mln_map_option_fields,
    pub initial_extent: mln_logical_extent,
    pub map_mode: mln_map_mode,
    pub fast_pfor_enabled: bool,
    pub event_mask: mln_runtime_event_flags,
    pub tile_cache_enabled: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_projection_camera_result {
    pub size: u32,
    pub camera: mln_camera,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_snapshot {
    pub size: u32,
    pub debug_flags: mln_map_debug_flags,
    pub generation: u64,
    pub fully_loaded: bool,
    pub rendering_stats_view_enabled: bool,
    pub gesture_in_progress: bool,
    pub transition_in_progress: bool,
    pub event_mask: mln_runtime_event_flags,
    pub latest_render_update_generation: u64,
    pub tile: mln_map_tile_settings,
    pub bounds: mln_camera_bounds,
    pub free_camera: mln_free_camera,
    pub view: mln_map_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_tile_options {
    pub size: u32,
    pub fields: mln_map_tile_option_fields,
    pub prefetch_zoom_delta: u32,
    pub lod_min_radius: f64,
    pub lod_scale: f64,
    pub lod_pitch_threshold: f64,
    pub lod_zoom_shift: f64,
    pub lod_mode: mln_tile_lod_mode,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_tile_settings {
    pub prefetch_zoom_delta: u32,
    pub lod_min_radius: f64,
    pub lod_scale: f64,
    pub lod_pitch_threshold: f64,
    pub lod_zoom_shift: f64,
    pub lod_mode: mln_tile_lod_mode,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_view {
    pub size: u32,
    pub camera: mln_camera,
    pub extent: mln_logical_extent,
    pub projection_mode: mln_projection_mode,
    pub viewport: mln_map_viewport,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_viewport {
    pub north_orientation: mln_north_orientation,
    pub constrain_mode: mln_constrain_mode,
    pub viewport_mode: mln_viewport_mode,
    pub frustum_offset: mln_edge_insets,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_map_viewport_options {
    pub size: u32,
    pub fields: mln_map_viewport_option_fields,
    pub north_orientation: mln_north_orientation,
    pub constrain_mode: mln_constrain_mode,
    pub viewport_mode: mln_viewport_mode,
    pub frustum_offset: mln_edge_insets,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_borrowed_texture {
    pub texture: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_borrowed_texture_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub textures: *const mln_metal_borrowed_texture,
    pub texture_count: usize,
    pub command_queue: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_borrowed_texture_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub textures: *const mln_metal_borrowed_texture,
    pub texture_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_context_descriptor {
    pub device: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub context: mln_metal_context_descriptor,
    pub layer: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub layer: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_metal_texture_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub texture: *mut std::ffi::c_void,
    pub device: *mut std::ffi::c_void,
    pub pixel_format: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_momentum_decay {
    pub fields: mln_momentum_decay_fields,
    pub model: mln_momentum_decay_model,
    pub half_life_ms: f64,
    pub stop_speed: f64,
    pub distance: f64,
    pub duration_ms: f64,
    pub easing: mln_unit_bezier,
    pub min_speed: f64,
    pub max_speed: f64,
    pub max_distance: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_momentum_snap {
    pub fields: mln_momentum_snap_fields,
    pub spacing: f64,
    pub offset: f64,
    pub tolerance: f64,
    pub duration_ms: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_offline_geometry_region_definition {
    pub style_url: mln_buffer_view,
    pub geometry: mln_buffer_view,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub pixel_ratio: f32,
    pub include_ideographs: bool,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_offline_region_definition {
    pub size: u32,
    pub type_: mln_offline_region_definition_type,
    pub data: mln_offline_region_definition_data,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub union mln_offline_region_definition_data {
    pub tile_pyramid: mln_offline_tile_pyramid_region_definition,
    pub geometry: mln_offline_geometry_region_definition,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_offline_region_info {
    pub id: mln_offline_region_id,
    pub definition: mln_offline_region_definition,
    pub metadata: *const u8,
    pub metadata_size: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_offline_region_status {
    pub download_state: mln_offline_region_download_state,
    pub completed_resource_count: u64,
    pub completed_resource_size: u64,
    pub completed_tile_count: u64,
    pub required_tile_count: u64,
    pub completed_tile_size: u64,
    pub required_resource_count: u64,
    pub required_resource_count_is_precise: bool,
    pub complete: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_offline_tile_pyramid_region_definition {
    pub style_url: mln_buffer_view,
    pub bounds: mln_lat_lng_bounds,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub pixel_ratio: f32,
    pub include_ideographs: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_offscreen_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_offscreen_device_options {
    pub size: u32,
    pub fields: mln_offscreen_device_option_fields,
    pub adapter_index: u32,
    pub single_context: bool,
    pub client_api: mln_open_gl_client_api,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_ohos_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
    pub surface_id: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_ohos_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
    pub surface_id: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_open_gl_borrowed_texture {
    pub texture: u32,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_open_gl_borrowed_texture_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub context: mln_open_gl_context_descriptor,
    pub textures: *const mln_open_gl_borrowed_texture,
    pub texture_count: usize,
    pub target: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_open_gl_borrowed_texture_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub textures: *const mln_open_gl_borrowed_texture,
    pub texture_count: usize,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_open_gl_context_descriptor {
    pub platform: mln_open_gl_context_platform,
    pub ownership: mln_open_gl_context_ownership,
    pub data: mln_open_gl_context_descriptor_data,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub union mln_open_gl_context_descriptor_data {
    pub wgl: mln_wgl_context_descriptor,
    pub egl: mln_egl_context_descriptor,
    pub web_gl: mln_web_gl_context_descriptor,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_open_gl_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub context: mln_open_gl_context_descriptor,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_open_gl_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_open_gl_texture_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub texture: u32,
    pub target: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_pan_momentum {
    pub fields: mln_pan_momentum_fields,
    pub velocity: mln_screen_point,
    pub decay: mln_momentum_decay,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_premultiplied_rgba8_image {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub stride: u32,
    pub pixels: *const u8,
    pub byte_length: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_projected_meters {
    pub northing: f64,
    pub easting: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_projection_mode {
    pub axonometric: bool,
    pub x_skew: f64,
    pub y_skew: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_projection_mode_options {
    pub size: u32,
    pub fields: mln_projection_mode_option_fields,
    pub axonometric: bool,
    pub x_skew: f64,
    pub y_skew: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_quaternion {
    pub x: f64,
    pub y: f64,
    pub z: f64,
    pub w: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_queue_lock {
    pub lock: mln_queue_lock_callback,
    pub unlock: mln_queue_lock_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_abandon_result {
    pub size: u32,
    pub disposition: mln_render_abandon_disposition,
    pub quarantined_resource_count: u32,
    pub reserved: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_frame_batch_view {
    pub size: u32,
    pub result_size: u32,
    pub results: *const mln_render_frame_result,
    pub result_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_frame_result {
    pub size: u32,
    pub disposition: mln_render_result,
    pub token: u64,
    pub map_update_generation: u64,
    pub generation: u64,
    pub frame_generation: u64,
    pub needs_repaint: bool,
    pub view: mln_map_view,
    pub mode: mln_render_mode,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_session_attach_options {
    pub size: u32,
    pub driver: mln_render_driver_kind,
    pub producer_sync_kinds: mln_gpu_sync_kind_flags,
    pub frame_wake: mln_wake,
    pub redraw_wake: mln_wake,
    pub driver_work_wake: mln_wake,
    pub queue_lock: mln_queue_lock,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_session_capabilities {
    pub size: u32,
    pub driver: mln_render_driver_kind,
    pub texture_ring_depth: u32,
    pub flags: mln_render_session_capability_flags,
    pub producer_sync_kind: mln_gpu_sync_kind,
    pub consumer_sync_kinds: mln_gpu_sync_kind_flags,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_render_session_snapshot {
    pub size: u32,
    pub state: mln_render_session_state,
    pub extent: mln_logical_extent,
    pub generation: u64,
    pub frame_generation: u64,
    pub acquired_frame_count: u32,
    pub failure_status: mln_status,
    pub has_target: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_rendered_feature {
    pub feature: mln_buffer_view,
    pub layer_id: mln_buffer_view,
    pub source_id: mln_buffer_view,
    pub source_layer_id: mln_buffer_view,
    pub state: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_rendered_feature_query_options {
    pub size: u32,
    pub fields: mln_rendered_feature_query_option_fields,
    pub layer_ids: *const mln_buffer_view,
    pub layer_id_count: usize,
    pub filter: mln_buffer_view,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_rendered_query_geometry {
    pub size: u32,
    pub type_: mln_rendered_query_geometry_type,
    pub data: mln_rendered_query_geometry_data,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub union mln_rendered_query_geometry_data {
    pub point: mln_screen_point,
    pub box_: mln_screen_box,
    pub line_string: mln_screen_line_string,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_rendering_stats {
    pub encoding_time_ms: f64,
    pub rendering_time_ms: f64,
    pub frame_count: i64,
    pub draw_call_count: i64,
    pub total_draw_call_count: i64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_provider {
    pub size: u32,
    pub callback: mln_resource_provider_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
    pub routes: *const mln_resource_route,
    pub route_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_range {
    pub start: u64,
    pub end: u64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_request_cancel_handler {
    pub size: u32,
    pub callback: mln_resource_request_cancel_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_request_info {
    pub size: u32,
    pub fields: mln_resource_request_fields,
    pub requested_url: mln_buffer_view,
    pub resolved_url: mln_buffer_view,
    pub kind: mln_resource_kind,
    pub loading_method: mln_resource_loading_method,
    pub priority: mln_resource_priority,
    pub usage: mln_resource_usage,
    pub storage_policy: mln_resource_storage_policy,
    pub range: mln_resource_range,
    pub prior_modified_unix_ms: i64,
    pub prior_expires_unix_ms: i64,
    pub prior_etag: mln_buffer_view,
    pub prior_data: *const u8,
    pub prior_data_size: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_response {
    pub size: u32,
    pub fields: mln_resource_response_fields,
    pub status: mln_resource_response_status,
    pub error_reason: mln_resource_error_reason,
    pub bytes: *const u8,
    pub byte_count: usize,
    pub error_message: mln_buffer_view,
    pub must_revalidate: bool,
    pub modified_unix_ms: i64,
    pub expires_unix_ms: i64,
    pub etag: mln_buffer_view,
    pub retry_after_unix_ms: i64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_route {
    pub size: u32,
    pub kinds: mln_resource_kind_flags,
    pub flags: mln_url_match_flags,
    pub url: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_transform {
    pub size: u32,
    pub callback: mln_resource_transform_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
    pub rules: *const mln_resource_transform_rule,
    pub rule_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_transform_error {
    pub size: u32,
    pub fields: mln_resource_transform_error_fields,
    pub reason: mln_resource_error_reason,
    pub message: mln_buffer_view,
    pub retry_after_unix_ms: i64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_resource_transform_rule {
    pub size: u32,
    pub kinds: mln_resource_kind_flags,
    pub flags: mln_url_match_flags,
    pub url: mln_buffer_view,
    pub parameters: *const mln_url_query_parameter,
    pub parameter_count: usize,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub struct mln_runtime_event {
    pub type_: mln_runtime_event_type,
    pub source_type: mln_runtime_event_source_type,
    pub source: u64,
    pub generation: u64,
    pub payload_type: mln_runtime_event_payload_type,
    pub message: mln_buffer_view,
    pub payload: mln_runtime_event_payload,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_camera_change {
    pub mode: mln_camera_change_mode,
    pub source: mln_camera_change_source,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_glyphs {
    pub font_stack: *const mln_buffer_view,
    pub font_count: usize,
    pub first: u32,
    pub last: u32,
    pub font_face: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_handler {
    pub size: u32,
    pub callback: mln_runtime_event_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_loading_failed {
    pub error: mln_map_load_error,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_offline_region_response_error {
    pub region_id: mln_offline_region_id,
    pub reason: mln_resource_error_reason,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_offline_region_status {
    pub region_id: mln_offline_region_id,
    pub status: mln_offline_region_status,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_offline_region_tile_count_limit {
    pub region_id: mln_offline_region_id,
    pub limit: u64,
}
#[repr(C)]
#[derive(Clone, Copy)]
pub union mln_runtime_event_payload {
    pub camera_change: mln_runtime_event_camera_change,
    pub loading_failed: mln_runtime_event_loading_failed,
    pub render_frame: mln_runtime_event_render_frame,
    pub style_image: mln_runtime_event_style_image,
    pub tile_action: mln_runtime_event_tile_action,
    pub source_changed: mln_runtime_event_source_changed,
    pub offline_region_status: mln_runtime_event_offline_region_status,
    pub offline_region_response_error: mln_runtime_event_offline_region_response_error,
    pub offline_region_tile_count_limit: mln_runtime_event_offline_region_tile_count_limit,
    pub glyphs: mln_runtime_event_glyphs,
    pub sprite: mln_runtime_event_sprite,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_render_frame {
    pub mode: mln_render_mode,
    pub needs_repaint: bool,
    pub placement_changed: bool,
    pub stats: mln_rendering_stats,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_source_changed {
    pub source_id: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_sprite {
    pub id: mln_buffer_view,
    pub url: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_style_image {
    pub image_id: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_event_tile_action {
    pub source_id: mln_buffer_view,
    pub operation: mln_tile_operation,
    pub tile_id: mln_tile_id,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_runtime_options {
    pub size: u32,
    pub asset_path: mln_buffer_view,
    pub cache_path: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_screen_box {
    pub min: mln_screen_point,
    pub max: mln_screen_point,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_screen_line_string {
    pub points: *const mln_screen_point,
    pub point_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_screen_point {
    pub x: f64,
    pub y: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_source_feature {
    pub feature: mln_buffer_view,
    pub source_layer_id: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_source_feature_query_options {
    pub size: u32,
    pub fields: mln_source_feature_query_option_fields,
    pub source_layer_ids: *const mln_buffer_view,
    pub source_layer_id_count: usize,
    pub filter: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_expression_info {
    pub size: u32,
    pub is_feature_constant: bool,
    pub is_zoom_constant: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_expression_inputs {
    pub size: u32,
    pub fields: mln_style_expression_input_fields,
    pub zoom: f64,
    pub color_ramp_parameter: f64,
    pub feature: mln_buffer_view,
    pub feature_state: mln_buffer_view,
    pub global_state: mln_buffer_view,
    pub canonical_tile_id: mln_canonical_tile_id,
    pub available_images: *const mln_buffer_view,
    pub available_image_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_expression_options {
    pub size: u32,
    pub fields: mln_style_expression_option_fields,
    pub expected_type: mln_style_expression_type,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_expression_type {
    pub kind: mln_style_expression_type_kind,
    pub item_kind: mln_style_expression_type_kind,
    pub item_count: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_image_info {
    pub width: u32,
    pub height: u32,
    pub fields: mln_style_image_info_fields,
    pub pixels: mln_buffer_view,
    pub stretch_x: *const mln_image_stretch,
    pub stretch_x_count: usize,
    pub stretch_y: *const mln_image_stretch,
    pub stretch_y_count: usize,
    pub content: mln_image_content,
    pub text_fit_width: mln_style_image_text_fit,
    pub text_fit_height: mln_style_image_text_fit,
    pub pixel_ratio: f32,
    pub sdf: bool,
    pub keep_unused: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_image_options {
    pub size: u32,
    pub fields: mln_style_image_option_fields,
    pub stretch_x: *const mln_image_stretch,
    pub stretch_x_count: usize,
    pub stretch_y: *const mln_image_stretch,
    pub stretch_y_count: usize,
    pub content: mln_image_content,
    pub text_fit_width: mln_style_image_text_fit,
    pub text_fit_height: mln_style_image_text_fit,
    pub pixel_ratio: f32,
    pub sdf: bool,
    pub keep_unused: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_layer_info {
    pub id: mln_buffer_view,
    pub type_: mln_buffer_view,
    pub source_id: mln_buffer_view,
    pub source_layer: mln_buffer_view,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub visibility: mln_style_layer_visibility,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_source_info {
    pub id: mln_buffer_view,
    pub type_: mln_style_source_type,
    pub fields: mln_style_source_info_fields,
    pub is_volatile: bool,
    pub attribution: mln_buffer_view,
    pub url: mln_buffer_view,
    pub tile_json: mln_style_source_tile_info,
    pub bounds: mln_lat_lng_bounds,
    pub tile_size: u32,
    pub vector_encoding: mln_style_vector_tile_encoding,
    pub raster_encoding: mln_style_raster_dem_encoding,
    pub geo_json: mln_geo_json_source_options,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_source_tile_info {
    pub tile_urls: *const mln_buffer_view,
    pub tile_url_count: usize,
    pub min_zoom: f64,
    pub max_zoom: f64,
    pub scheme: mln_style_tile_scheme,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_style_transition_options {
    pub size: u32,
    pub fields: mln_style_transition_option_fields,
    pub duration_ms: f64,
    pub delay_ms: f64,
    pub enable_placement_transitions: bool,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_texture_image_info {
    pub width: u32,
    pub height: u32,
    pub stride: u32,
    pub byte_length: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_texture_readback_result {
    pub data: mln_buffer_view,
    pub info: mln_texture_image_info,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_tile_id {
    pub overscaled_z: u32,
    pub wrap: i32,
    pub canonical_z: u32,
    pub canonical_x: u32,
    pub canonical_y: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_unit_bezier {
    pub x1: f64,
    pub y1: f64,
    pub x2: f64,
    pub y2: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_url_query_parameter {
    pub name: mln_buffer_view,
    pub value: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vec3 {
    pub x: f64,
    pub y: f64,
    pub z: f64,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_borrowed_texture {
    pub image: mln_vulkan_non_dispatchable_handle,
    pub image_view: mln_vulkan_non_dispatchable_handle,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_borrowed_texture_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub context: mln_vulkan_context_descriptor,
    pub textures: *const mln_vulkan_borrowed_texture,
    pub texture_count: usize,
    pub format: u32,
    pub final_layout: u32,
    pub owner: mln_vulkan_image_owner,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_borrowed_texture_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub textures: *const mln_vulkan_borrowed_texture,
    pub texture_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_context_descriptor {
    pub instance: *mut std::ffi::c_void,
    pub physical_device: *mut std::ffi::c_void,
    pub device: *mut std::ffi::c_void,
    pub graphics_queue: *mut std::ffi::c_void,
    pub graphics_queue_family_index: u32,
    pub get_instance_proc_addr: *mut std::ffi::c_void,
    pub get_device_proc_addr: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_device_context_result {
    pub size: u32,
    pub context: mln_vulkan_context_descriptor,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_device_options {
    pub size: u32,
    pub fields: mln_vulkan_device_option_fields,
    pub presentation: bool,
    pub device_uuid: mln_buffer_view,
    pub device_luid: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub context: mln_vulkan_context_descriptor,
    pub surface: mln_vulkan_non_dispatchable_handle,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub surface: mln_vulkan_non_dispatchable_handle,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_vulkan_texture_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub image: mln_vulkan_non_dispatchable_handle,
    pub image_view: mln_vulkan_non_dispatchable_handle,
    pub device: *mut std::ffi::c_void,
    pub format: u32,
    pub layout: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_wake {
    pub callback: mln_wake_callback,
    pub user_data: *mut std::ffi::c_void,
    pub release_user_data: mln_user_data_release,
    pub queue: mln_delivery_queue,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_wayland_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub display: *mut std::ffi::c_void,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_wayland_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gl_context_descriptor {
    pub kind: mln_web_gl_context_kind,
    pub context: i32,
    pub canvas_selector: mln_buffer_view,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_borrowed_texture {
    pub texture: *mut std::ffi::c_void,
    pub texture_view: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_borrowed_texture_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub context: mln_web_gpu_context_descriptor,
    pub textures: *const mln_web_gpu_borrowed_texture,
    pub texture_count: usize,
    pub format: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_borrowed_texture_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub physical_width: u32,
    pub physical_height: u32,
    pub textures: *const mln_web_gpu_borrowed_texture,
    pub texture_count: usize,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_context_descriptor {
    pub instance: *mut std::ffi::c_void,
    pub device: *mut std::ffi::c_void,
    pub queue: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_surface_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub context: mln_web_gpu_context_descriptor,
    pub surface: *mut std::ffi::c_void,
    pub format: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_surface_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub surface: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_web_gpu_texture_frame {
    pub size: u32,
    pub width: u32,
    pub height: u32,
    pub scale_factor: f64,
    pub slot: u32,
    pub texture: *mut std::ffi::c_void,
    pub texture_view: *mut std::ffi::c_void,
    pub device: *mut std::ffi::c_void,
    pub format: u32,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_wgl_context_descriptor {
    pub device_context: *mut std::ffi::c_void,
    pub share_context: *mut std::ffi::c_void,
    pub get_proc_address: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_win32_window_descriptor {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct mln_win32_window_replacement {
    pub size: u32,
    pub logical_size: mln_logical_size,
    pub window: *mut std::ffi::c_void,
}
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_acquired_frame(pub u64);
pub type mln_anchored_momentum_fields = u32;
pub type mln_animation_option_fields = u32;
pub type mln_bound_option_fields = u32;
pub type mln_camera_delta_fields = u32;
pub type mln_camera_fit_option_fields = u32;
pub type mln_camera_option_fields = u32;
pub type mln_camera_transition_end_callback = Option<
    unsafe extern "C" fn(user_data: *mut std::ffi::c_void, end: *const mln_camera_transition_end),
>;
pub type mln_completion_callback = Option<
    unsafe extern "C" fn(user_data: *mut std::ffi::c_void, result: *const mln_completion_result),
>;
pub type mln_custom_geometry_source_option_fields = u32;
pub type mln_custom_source_cancel_tile_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
    ),
>;
pub type mln_custom_source_fetch_tile_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
    ),
>;
pub type mln_custom_vector_source_option_fields = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_delivery_queue(pub u64);
pub type mln_feature_state_selector_fields = u32;
pub type mln_frame_demand_flags = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_frame_pacer(pub u64);
pub type mln_frame_pacer_option_fields = u32;
pub type mln_free_camera_option_fields = u32;
pub type mln_geo_json_source_option_fields = u32;
pub type mln_gpu_sync_kind_flags = u32;
pub type mln_http_header_transform_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        kind: mln_resource_kind,
        url: mln_buffer_view,
        out_response: *mut mln_http_header_transform_response,
    ) -> mln_status,
>;
pub type mln_log_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        severity: mln_log_severity,
        event: mln_log_event,
        code: i64,
        message: mln_buffer_view,
    ),
>;
pub type mln_log_severity_flags = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_map(pub u64);
pub type mln_map_debug_flags = u32;
pub type mln_map_option_fields = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_map_projection(pub u64);
pub type mln_map_tile_option_fields = u32;
pub type mln_map_viewport_option_fields = u32;
pub type mln_momentum_decay_fields = u32;
pub type mln_momentum_snap_fields = u32;
pub type mln_offline_region_id = i64;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_offscreen_device(pub u64);
pub type mln_offscreen_device_option_fields = u32;
pub type mln_open_gl_context_provider_flags = u32;
pub type mln_pan_momentum_fields = u32;
pub type mln_projection_mode_option_fields = u32;
pub type mln_queue_lock_callback = Option<unsafe extern "C" fn(user_data: *mut std::ffi::c_void)>;
pub type mln_render_backend_flags = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_render_frame_batch(pub u64);
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_render_session(pub u64);
pub type mln_render_session_capability_flags = u32;
pub type mln_rendered_feature_query_option_fields = u32;
pub type mln_resource_kind_flags = u32;
pub type mln_resource_provider_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        request: *const mln_resource_request_info,
        handle: mln_resource_request,
    ),
>;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_resource_request(pub u64);
pub type mln_resource_request_cancel_callback =
    Option<unsafe extern "C" fn(user_data: *mut std::ffi::c_void, handle: mln_resource_request)>;
pub type mln_resource_request_fields = u32;
pub type mln_resource_response_fields = u32;
pub type mln_resource_transform_callback = Option<
    unsafe extern "C" fn(
        user_data: *mut std::ffi::c_void,
        kind: mln_resource_kind,
        url: mln_buffer_view,
        request: mln_resource_transform_request,
    ),
>;
pub type mln_resource_transform_error_fields = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_resource_transform_request(pub u64);
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_runtime(pub u64);
pub type mln_runtime_event_callback = Option<
    unsafe extern "C" fn(user_data: *mut std::ffi::c_void, events: *const mln_event_batch_view),
>;
pub type mln_runtime_event_flags = u64;
pub type mln_source_feature_query_option_fields = u32;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_style_expression(pub u64);
pub type mln_style_expression_input_fields = u32;
pub type mln_style_expression_option_fields = u32;
pub type mln_style_image_info_fields = u32;
pub type mln_style_image_option_fields = u32;
pub type mln_style_source_info_fields = u32;
pub type mln_style_transition_option_fields = u32;
pub type mln_url_match_flags = u32;
pub type mln_user_data_release = Option<unsafe extern "C" fn(user_data: *mut std::ffi::c_void)>;
#[repr(transparent)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct mln_vulkan_device(pub u64);
pub type mln_vulkan_device_option_fields = u32;
pub type mln_vulkan_non_dispatchable_handle = u64;
pub type mln_wake_callback = Option<unsafe extern "C" fn(user_data: *mut std::ffi::c_void)>;
native_handles!(
    mln_acquired_frame,
    mln_delivery_queue,
    mln_frame_pacer,
    mln_map,
    mln_map_projection,
    mln_offscreen_device,
    mln_render_frame_batch,
    mln_render_session,
    mln_resource_request,
    mln_resource_transform_request,
    mln_runtime,
    mln_style_expression,
    mln_vulkan_device
);

unsafe extern "C" {
    pub fn mln_acquired_frame_discard(
        frame: mln_acquired_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_android_hardware_buffer(
        frame: mln_acquired_frame,
        out_frame: *mut mln_android_hardware_buffer_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_dma_buf(
        frame: mln_acquired_frame,
        out_frame: *mut mln_dma_buf_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_dxgi_shared_texture(
        frame: mln_acquired_frame,
        out_frame: *mut mln_dxgi_shared_texture_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_io_surface(
        frame: mln_acquired_frame,
        out_frame: *mut mln_io_surface_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_metal_texture(
        frame: mln_acquired_frame,
        out_frame: *mut mln_metal_texture_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_open_gl_texture(
        frame: mln_acquired_frame,
        out_frame: *mut mln_open_gl_texture_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_producer_sync(
        frame: mln_acquired_frame,
        out_sync: *mut mln_gpu_sync,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_result(
        frame: mln_acquired_frame,
        out_result: *mut mln_render_frame_result,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_vulkan_texture(
        frame: mln_acquired_frame,
        out_frame: *mut mln_vulkan_texture_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_get_web_gpu_texture(
        frame: mln_acquired_frame,
        out_frame: *mut mln_web_gpu_texture_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_release(
        frame: mln_acquired_frame,
        consumer_completion: *const mln_gpu_sync,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_view_begin(
        frame: mln_acquired_frame,
        out_scope: *mut *mut std::ffi::c_void,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_acquired_frame_view_end(scope: *mut std::ffi::c_void);
    pub fn mln_android_frame_pacer_create(
        options: *const mln_frame_pacer_options,
        out_pacer: *mut mln_frame_pacer,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_android_init(
        jni_env: *mut std::ffi::c_void,
        context: *mut std::ffi::c_void,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_apple_frame_pacer_create(
        options: *const mln_frame_pacer_options,
        out_pacer: *mut mln_frame_pacer,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_binding_dart_wake_create(
        post_cobject: *mut std::ffi::c_void,
        port: i64,
        out_wake: *mut mln_wake,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_binding_owner_finalize(token: *mut std::ffi::c_void);
    pub fn mln_binding_owner_token_create(handle: u64) -> *mut std::ffi::c_void;
    pub fn mln_binding_owner_token_destroy(token: *mut std::ffi::c_void);
    pub fn mln_binding_render_session_abandon_at_exit(
        session: mln_render_session,
        out_result: *mut mln_render_abandon_result,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_c_version() -> u32;
    pub fn mln_camera_for_tile(
        tile: mln_canonical_tile_id,
        logical_size: mln_logical_size,
        out_camera: *mut mln_camera_options,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_delivery_queue_create(
        options: *const mln_delivery_queue_options,
        out_queue: *mut mln_delivery_queue,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_delivery_queue_dispatch(
        queue: mln_delivery_queue,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_delivery_queue_release(queue: mln_delivery_queue);
    pub fn mln_frame_pacer_release(pacer: mln_frame_pacer);
    pub fn mln_http_header_transform_response_set_header(
        response: *mut mln_http_header_transform_response,
        name: mln_buffer_view,
        value: mln_buffer_view,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_lat_lng_for_projected_meters(
        meters: mln_projected_meters,
        out_coordinate: *mut mln_lat_lng,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_log_clear_callback(out_diagnostic: *mut mln_diagnostic) -> mln_status;
    pub fn mln_log_set_async_severity_mask(
        mask: mln_log_severity_flags,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_log_set_callback(
        handler: *const mln_log_handler,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_logical_extent_physical_size(
        extent: mln_logical_extent,
        out_width: *mut u32,
        out_height: *mut u32,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_custom_geometry_source(
        map: mln_map,
        source_id: mln_buffer_view,
        options: *const mln_custom_geometry_source_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_custom_vector_source(
        map: mln_map,
        source_id: mln_buffer_view,
        options: *const mln_custom_vector_source_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_geo_json_source(
        map: mln_map,
        source_id: mln_buffer_view,
        options: *const mln_geo_json_source_options,
        attribution: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_image_source_image(
        map: mln_map,
        source_id: mln_buffer_view,
        coordinates: *const mln_lat_lng,
        coordinate_count: usize,
        image: *const mln_premultiplied_rgba8_image,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_style_layer_json(
        map: mln_map,
        layer_json: mln_buffer_view,
        before_layer_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_add_style_source_json(
        map: mln_map,
        source_id: mln_buffer_view,
        source_json: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_apply_camera_delta(
        map: mln_map,
        delta: *const mln_camera_delta,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_android_hardware_buffer_ring(
        map: mln_map,
        descriptor: *const mln_android_hardware_buffer_ring_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_android_surface(
        map: mln_map,
        descriptor: *const mln_android_surface_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_dma_buf_ring(
        map: mln_map,
        descriptor: *const mln_dma_buf_ring_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_dxgi_shared_texture_ring(
        map: mln_map,
        descriptor: *const mln_dxgi_shared_texture_ring_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_io_surface_ring(
        map: mln_map,
        descriptor: *const mln_io_surface_ring_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_metal_borrowed_texture(
        map: mln_map,
        descriptor: *const mln_metal_borrowed_texture_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_metal_surface(
        map: mln_map,
        descriptor: *const mln_metal_surface_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_offscreen(
        map: mln_map,
        descriptor: *const mln_offscreen_descriptor,
        options: *const mln_render_session_attach_options,
        device: mln_offscreen_device,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_ohos_surface(
        map: mln_map,
        descriptor: *const mln_ohos_surface_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_open_gl_borrowed_texture(
        map: mln_map,
        descriptor: *const mln_open_gl_borrowed_texture_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_open_gl_surface(
        map: mln_map,
        descriptor: *const mln_open_gl_surface_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_vulkan_borrowed_texture(
        map: mln_map,
        descriptor: *const mln_vulkan_borrowed_texture_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_vulkan_surface(
        map: mln_map,
        descriptor: *const mln_vulkan_surface_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_wayland_surface(
        map: mln_map,
        descriptor: *const mln_wayland_surface_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_web_gpu_borrowed_texture(
        map: mln_map,
        descriptor: *const mln_web_gpu_borrowed_texture_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_web_gpu_surface(
        map: mln_map,
        descriptor: *const mln_web_gpu_surface_descriptor,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_attach_win32_window(
        map: mln_map,
        descriptor: *const mln_win32_window_descriptor,
        device: mln_vulkan_device,
        options: *const mln_render_session_attach_options,
        out_session: *mut mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_begin_command_group(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_camera_for_geometry(
        map: mln_map,
        geometry: mln_buffer_view,
        fit_options: *const mln_camera_fit_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_camera_for_lat_lng_bounds(
        map: mln_map,
        bounds: mln_lat_lng_bounds,
        fit_options: *const mln_camera_fit_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_camera_for_lat_lngs(
        map: mln_map,
        coordinates: *const mln_lat_lng,
        coordinate_count: usize,
        fit_options: *const mln_camera_fit_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_cancel_camera_transitions(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_cancel_camera_transitions_with_id(
        map: mln_map,
        transition_id: u64,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_dispose(map: mln_map, out_diagnostic: *mut mln_diagnostic) -> mln_status;
    pub fn mln_map_dump_debug_logs(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_end_command_group(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_fit_camera_to_geometry(
        map: mln_map,
        geometry: mln_buffer_view,
        update: *const mln_camera_fit_update,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_fit_camera_to_lat_lng_bounds(
        map: mln_map,
        bounds: mln_lat_lng_bounds,
        update: *const mln_camera_fit_update,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_fit_camera_to_lat_lngs(
        map: mln_map,
        coordinates: *const mln_lat_lng,
        coordinate_count: usize,
        update: *const mln_camera_fit_update,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_camera(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_feature_state(
        map: mln_map,
        selector: *const mln_feature_state_selector,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_global_state(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_image_source_coordinates(
        map: mln_map,
        source_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_loaded_style_json(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_snapshot(
        map: mln_map,
        out_snapshot: *mut mln_map_snapshot,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_image(
        map: mln_map,
        image_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_layer(
        map: mln_map,
        layer_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_layer_json(
        map: mln_map,
        layer_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_layer_property(
        map: mln_map,
        layer_id: mln_buffer_view,
        property_name: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_light_property(
        map: mln_map,
        property_name: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_source(
        map: mln_map,
        source_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_transition_options(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_get_style_url(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_invalidate_custom_geometry_source_region(
        map: mln_map,
        source_id: mln_buffer_view,
        bounds: mln_lat_lng_bounds,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_invalidate_custom_geometry_source_tile(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_invalidate_custom_vector_source_region(
        map: mln_map,
        source_id: mln_buffer_view,
        bounds: mln_lat_lng_bounds,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_invalidate_custom_vector_source_tile(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_lat_lng_bounds_for_camera(
        map: mln_map,
        camera: *const mln_camera_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_list_style_layers(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_list_style_sources(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_move_style_layer(
        map: mln_map,
        layer_id: mln_buffer_view,
        before_layer_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_create(
        view: *const mln_map_view,
        out_projection: *mut mln_map_projection,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_get_camera(
        projection: mln_map_projection,
        out_result: *mut mln_map_projection_camera_result,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_lat_lng_for_pixel(
        projection: mln_map_projection,
        point: mln_screen_point,
        out_coordinate: *mut mln_lat_lng,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_lat_lng_for_pixel_unwrapped(
        projection: mln_map_projection,
        point: mln_screen_point,
        out_coordinate: *mut mln_lat_lng,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_lat_lngs_for_pixels(
        projection: mln_map_projection,
        points: *const mln_screen_point,
        point_count: usize,
        out_coordinates: *mut mln_lat_lng,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_lat_lngs_for_pixels_unwrapped(
        projection: mln_map_projection,
        points: *const mln_screen_point,
        point_count: usize,
        out_coordinates: *mut mln_lat_lng,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_meters_per_pixel_at_latitude(
        projection: mln_map_projection,
        latitude: f64,
        out_meters_per_pixel: *mut f64,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_pixel_for_lat_lng(
        projection: mln_map_projection,
        coordinate: mln_lat_lng,
        out_point: *mut mln_screen_point,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_pixels_for_lat_lngs(
        projection: mln_map_projection,
        coordinates: *const mln_lat_lng,
        coordinate_count: usize,
        out_points: *mut mln_screen_point,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_projection_release(projection: mln_map_projection);
    pub fn mln_map_projection_set_camera(
        projection: mln_map_projection,
        camera: *const mln_camera_options,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_release(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_remove_feature_state(
        map: mln_map,
        selector: *const mln_feature_state_selector,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_remove_style_image(
        map: mln_map,
        image_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_remove_style_layer(
        map: mln_map,
        layer_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_remove_style_source(
        map: mln_map,
        source_id: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_request_repaint(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_request_still_image(
        map: mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_resize(
        map: mln_map,
        logical_size: mln_logical_size,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_bounds(
        map: mln_map,
        options: *const mln_bound_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_custom_geometry_source_tile_data(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        data: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_custom_geometry_source_tile_error(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        message: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_custom_vector_source_tile_data(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        encoding: mln_style_vector_tile_encoding,
        data: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_custom_vector_source_tile_error(
        map: mln_map,
        source_id: mln_buffer_view,
        tile_id: mln_canonical_tile_id,
        message: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_debug_flags(
        map: mln_map,
        flags: mln_map_debug_flags,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_event_mask(
        map: mln_map,
        mask: mln_runtime_event_flags,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_feature_state(
        map: mln_map,
        selector: *const mln_feature_state_selector,
        state: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_free_camera_options(
        map: mln_map,
        options: *const mln_free_camera_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_geo_json_source_data(
        map: mln_map,
        source_id: mln_buffer_view,
        data: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_geo_json_source_synchronous_tiling(
        map: mln_map,
        source_id: mln_buffer_view,
        enabled: bool,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_geo_json_source_url(
        map: mln_map,
        source_id: mln_buffer_view,
        url: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_global_state_property(
        map: mln_map,
        property_name: mln_buffer_view,
        value: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_image_source_coordinates(
        map: mln_map,
        source_id: mln_buffer_view,
        coordinates: *const mln_lat_lng,
        coordinate_count: usize,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_image_source_image(
        map: mln_map,
        source_id: mln_buffer_view,
        image: *const mln_premultiplied_rgba8_image,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_image_source_url(
        map: mln_map,
        source_id: mln_buffer_view,
        url: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_projection_mode(
        map: mln_map,
        options: *const mln_projection_mode_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_rendering_stats_view_enabled(
        map: mln_map,
        enabled: bool,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_image(
        map: mln_map,
        image_id: mln_buffer_view,
        image: *const mln_premultiplied_rgba8_image,
        options: *const mln_style_image_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_json(
        map: mln_map,
        json: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_layer_property(
        map: mln_map,
        layer_id: mln_buffer_view,
        property_name: mln_buffer_view,
        value: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_light_json(
        map: mln_map,
        light_json: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_light_property(
        map: mln_map,
        property_name: mln_buffer_view,
        value: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_source_volatile(
        map: mln_map,
        source_id: mln_buffer_view,
        is_volatile: bool,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_transition_options(
        map: mln_map,
        options: *const mln_style_transition_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_style_url(
        map: mln_map,
        url: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_tile_options(
        map: mln_map,
        options: *const mln_map_tile_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_set_viewport_options(
        map: mln_map,
        options: *const mln_map_viewport_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_map_update_camera(
        map: mln_map,
        update: *const mln_camera_update,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_network_get_status(
        out_status: *mut mln_network_status,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_network_set_status(
        status: mln_network_status,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_offscreen_device_create(
        options: *const mln_offscreen_device_options,
        out_device: *mut mln_offscreen_device,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_offscreen_device_release(device: mln_offscreen_device);
    pub fn mln_ohos_frame_pacer_create(
        options: *const mln_frame_pacer_options,
        out_pacer: *mut mln_frame_pacer,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_open_gl_supported_context_provider_mask() -> mln_open_gl_context_provider_flags;
    pub fn mln_plugin_get_register_function_v1() -> mln_plugin_register_function_v1;
    pub fn mln_projected_meters_for_lat_lng(
        coordinate: mln_lat_lng,
        out_meters: *mut mln_projected_meters,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_frame_batch_release(batch: mln_render_frame_batch);
    pub fn mln_render_session_abandon(
        session: mln_render_session,
        out_result: *mut mln_render_abandon_result,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_acquire_frame(
        session: mln_render_session,
        out_frame: *mut mln_acquired_frame,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_barrier(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_clear_data(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_demand_frame(
        session: mln_render_session,
        demand: *const mln_frame_demand,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_detach(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_dispose(
        session: mln_render_session,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_drain_frame_results(
        session: mln_render_session,
        out_batch: *mut mln_render_frame_batch,
        out_view: *mut mln_render_frame_batch_view,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_dump_debug_logs(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_capabilities(
        session: mln_render_session,
        out_capabilities: *mut mln_render_session_capabilities,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_cluster_children(
        session: mln_render_session,
        source_id: mln_buffer_view,
        cluster_id: u32,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_cluster_expansion_zoom(
        session: mln_render_session,
        source_id: mln_buffer_view,
        cluster_id: u32,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_cluster_leaves(
        session: mln_render_session,
        source_id: mln_buffer_view,
        cluster_id: u32,
        limit: u32,
        offset: u32,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_failure(
        session: mln_render_session,
        out_message: *mut std::ffi::c_char,
        message_capacity: usize,
        out_message_length: *mut usize,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_get_snapshot(
        session: mln_render_session,
        out_snapshot: *mut mln_render_session_snapshot,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_query_rendered_features(
        session: mln_render_session,
        geometry: *const mln_rendered_query_geometry,
        options: *const mln_rendered_feature_query_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_query_source_features(
        session: mln_render_session,
        source_id: mln_buffer_view,
        options: *const mln_source_feature_query_options,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_read_texture(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_reduce_memory_use(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_release(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_release_target(
        session: mln_render_session,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_resize(
        session: mln_render_session,
        logical_size: mln_logical_size,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_service_driver_work(
        session: mln_render_session,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_android_surface_target(
        session: mln_render_session,
        replacement: *const mln_android_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_frame_pacer(
        session: mln_render_session,
        pacer: mln_frame_pacer,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_metal_borrowed_texture_target(
        session: mln_render_session,
        replacement: *const mln_metal_borrowed_texture_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_metal_surface_target(
        session: mln_render_session,
        replacement: *const mln_metal_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_ohos_surface_target(
        session: mln_render_session,
        replacement: *const mln_ohos_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_open_gl_borrowed_texture_target(
        session: mln_render_session,
        replacement: *const mln_open_gl_borrowed_texture_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_open_gl_surface_target(
        session: mln_render_session,
        replacement: *const mln_open_gl_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_vulkan_borrowed_texture_target(
        session: mln_render_session,
        replacement: *const mln_vulkan_borrowed_texture_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_vulkan_surface_target(
        session: mln_render_session,
        replacement: *const mln_vulkan_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_wayland_surface_target(
        session: mln_render_session,
        replacement: *const mln_wayland_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_web_gpu_borrowed_texture_target(
        session: mln_render_session,
        replacement: *const mln_web_gpu_borrowed_texture_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_web_gpu_surface_target(
        session: mln_render_session,
        replacement: *const mln_web_gpu_surface_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_render_session_set_win32_window_target(
        session: mln_render_session,
        replacement: *const mln_win32_window_replacement,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_request_complete(
        handle: mln_resource_request,
        response: *const mln_resource_response,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_request_is_cancelled(
        handle: mln_resource_request,
        out_cancelled: *mut bool,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_request_pass_through(
        handle: mln_resource_request,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_request_release(handle: mln_resource_request);
    pub fn mln_resource_request_set_cancel_callback(
        handle: mln_resource_request,
        handler: *const mln_resource_request_cancel_handler,
        out_cancelled: *mut bool,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_transform_request_complete(
        request: mln_resource_transform_request,
        url: mln_buffer_view,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_transform_request_fail(
        request: mln_resource_transform_request,
        error: *const mln_resource_transform_error,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_resource_transform_request_release(request: mln_resource_transform_request);
    pub fn mln_runtime_clear_event_handler(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_clear_http_header_transform(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_clear_resource_provider(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_clear_resource_transform(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_create(
        options: *const mln_runtime_options,
        out_runtime: *mut mln_runtime,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_create_map(
        runtime: mln_runtime,
        options: *const mln_map_options,
        out_map: *mut mln_map,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_create_offline_region(
        runtime: mln_runtime,
        definition: *const mln_offline_region_definition,
        metadata: *const u8,
        metadata_size: usize,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_delete_offline_region(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_dispose(
        runtime: mln_runtime,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_get_offline_region(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_get_offline_region_status(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_invalidate_offline_region(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_list_offline_regions(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_merge_offline_regions(
        runtime: mln_runtime,
        side_database_path: mln_buffer_view,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_release(
        runtime: mln_runtime,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_run_cache_database_operation(
        runtime: mln_runtime,
        operation: mln_cache_database_operation,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_event_handler(
        runtime: mln_runtime,
        handler: *const mln_runtime_event_handler,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_http_header_transform(
        runtime: mln_runtime,
        transform: *const mln_http_header_transform,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_maximum_ambient_cache_size(
        runtime: mln_runtime,
        size: u64,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_offline_region_download_state(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        state: mln_offline_region_download_state,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_offline_region_observed(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        events: mln_runtime_event_flags,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_resource_provider(
        runtime: mln_runtime,
        provider: *const mln_resource_provider,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_set_resource_transform(
        runtime: mln_runtime,
        transform: *const mln_resource_transform,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_runtime_update_offline_region_metadata(
        runtime: mln_runtime,
        region_id: mln_offline_region_id,
        metadata: *const u8,
        metadata_size: usize,
        completion: *const mln_completion,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_style_expression_create(
        expression: mln_buffer_view,
        options: *const mln_style_expression_options,
        out_expression: *mut mln_style_expression,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_style_expression_evaluate(
        expression: mln_style_expression,
        inputs: *const mln_style_expression_inputs,
        out_json: *mut std::ffi::c_char,
        json_capacity: usize,
        out_json_length: *mut usize,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_style_expression_get_info(
        expression: mln_style_expression,
        out_info: *mut mln_style_expression_info,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_style_expression_release(expression: mln_style_expression);
    pub fn mln_supported_render_backend_mask() -> mln_render_backend_flags;
    pub fn mln_vulkan_device_create(
        options: *const mln_vulkan_device_options,
        out_device: *mut mln_vulkan_device,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_vulkan_device_get_context(
        device: mln_vulkan_device,
        out_result: *mut mln_vulkan_device_context_result,
        out_diagnostic: *mut mln_diagnostic,
    ) -> mln_status;
    pub fn mln_vulkan_device_release(device: mln_vulkan_device);
}