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

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

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_Isolate {
    _unused: [u8; 0],
}
pub type Dart_Isolate = *mut _Dart_Isolate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_IsolateGroup {
    _unused: [u8; 0],
}
pub type Dart_IsolateGroup = *mut _Dart_IsolateGroup;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_Handle {
    _unused: [u8; 0],
}
pub type Dart_Handle = *mut _Dart_Handle;
pub type Dart_PersistentHandle = Dart_Handle;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_WeakPersistentHandle {
    _unused: [u8; 0],
}
pub type Dart_WeakPersistentHandle = *mut _Dart_WeakPersistentHandle;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_FinalizableHandle {
    _unused: [u8; 0],
}
pub type Dart_FinalizableHandle = *mut _Dart_FinalizableHandle;
pub type Dart_HandleFinalizer = ::core::option::Option<
    unsafe extern "C" fn(isolate_callback_data: *mut libc::c_void, peer: *mut libc::c_void),
>;
extern "C" {
    pub fn Dart_IsError(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsApiError(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsUnhandledExceptionError(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsCompilationError(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsFatalError(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_GetError(handle: Dart_Handle) -> *const libc::c_char;
}
extern "C" {
    pub fn Dart_ErrorHasException(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_ErrorGetException(handle: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ErrorGetStackTrace(handle: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewApiError(error: *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewCompilationError(error: *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewUnhandledExceptionError(exception: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_PropagateError(handle: Dart_Handle);
}
extern "C" {
    pub fn Dart_ToString(object: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IdentityEquals(obj1: Dart_Handle, obj2: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_HandleFromPersistent(object: Dart_PersistentHandle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_HandleFromWeakPersistent(object: Dart_WeakPersistentHandle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewPersistentHandle(object: Dart_Handle) -> Dart_PersistentHandle;
}
extern "C" {
    pub fn Dart_SetPersistentHandle(obj1: Dart_PersistentHandle, obj2: Dart_Handle);
}
extern "C" {
    pub fn Dart_DeletePersistentHandle(object: Dart_PersistentHandle);
}
extern "C" {
    pub fn Dart_NewWeakPersistentHandle(
        object: Dart_Handle,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_WeakPersistentHandle;
}
extern "C" {
    pub fn Dart_DeleteWeakPersistentHandle(object: Dart_WeakPersistentHandle);
}
extern "C" {
    pub fn Dart_UpdateExternalSize(
        object: Dart_WeakPersistentHandle,
        external_allocation_size: isize,
    );
}
extern "C" {
    pub fn Dart_NewFinalizableHandle(
        object: Dart_Handle,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_FinalizableHandle;
}
extern "C" {
    pub fn Dart_DeleteFinalizableHandle(
        object: Dart_FinalizableHandle,
        strong_ref_to_object: Dart_Handle,
    );
}
extern "C" {
    pub fn Dart_UpdateFinalizableExternalSize(
        object: Dart_FinalizableHandle,
        strong_ref_to_object: Dart_Handle,
        external_allocation_size: isize,
    );
}
extern "C" {
    pub fn Dart_VersionString() -> *const libc::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_IsolateFlags {
    pub version: i32,
    pub enable_asserts: bool,
    pub use_field_guards: bool,
    pub use_osr: bool,
    pub obfuscate: bool,
    pub load_vmservice_library: bool,
    pub copy_parent_code: bool,
    pub null_safety: bool,
    pub is_system_isolate: bool,
    pub snapshot_is_dontneed_safe: bool,
    pub branch_coverage: bool,
}
extern "C" {
    pub fn Dart_IsolateFlagsInitialize(flags: *mut Dart_IsolateFlags);
}
pub type Dart_IsolateGroupCreateCallback = ::core::option::Option<
    unsafe extern "C" fn(
        script_uri: *const libc::c_char,
        main: *const libc::c_char,
        package_root: *const libc::c_char,
        package_config: *const libc::c_char,
        flags: *mut Dart_IsolateFlags,
        isolate_data: *mut libc::c_void,
        error: *mut *mut libc::c_char,
    ) -> Dart_Isolate,
>;
pub type Dart_InitializeIsolateCallback = ::core::option::Option<
    unsafe extern "C" fn(
        child_isolate_data: *mut *mut libc::c_void,
        error: *mut *mut libc::c_char,
    ) -> bool,
>;
pub type Dart_IsolateShutdownCallback = ::core::option::Option<
    unsafe extern "C" fn(isolate_group_data: *mut libc::c_void, isolate_data: *mut libc::c_void),
>;
pub type Dart_IsolateCleanupCallback = ::core::option::Option<
    unsafe extern "C" fn(isolate_group_data: *mut libc::c_void, isolate_data: *mut libc::c_void),
>;
pub type Dart_IsolateGroupCleanupCallback =
    ::core::option::Option<unsafe extern "C" fn(isolate_group_data: *mut libc::c_void)>;
pub type Dart_ThreadStartCallback = ::core::option::Option<unsafe extern "C" fn()>;
pub type Dart_ThreadExitCallback = ::core::option::Option<unsafe extern "C" fn()>;
pub type Dart_FileOpenCallback = ::core::option::Option<
    unsafe extern "C" fn(name: *const libc::c_char, write: bool) -> *mut libc::c_void,
>;
pub type Dart_FileReadCallback = ::core::option::Option<
    unsafe extern "C" fn(data: *mut *mut u8, file_length: *mut isize, stream: *mut libc::c_void),
>;
pub type Dart_FileWriteCallback = ::core::option::Option<
    unsafe extern "C" fn(data: *const libc::c_void, length: isize, stream: *mut libc::c_void),
>;
pub type Dart_FileCloseCallback =
    ::core::option::Option<unsafe extern "C" fn(stream: *mut libc::c_void)>;
pub type Dart_EntropySource =
    ::core::option::Option<unsafe extern "C" fn(buffer: *mut u8, length: isize) -> bool>;
pub type Dart_GetVMServiceAssetsArchive =
    ::core::option::Option<unsafe extern "C" fn() -> Dart_Handle>;
pub type Dart_OnNewCodeCallback = ::core::option::Option<
    unsafe extern "C" fn(
        observer: *mut Dart_CodeObserver,
        name: *const libc::c_char,
        base: usize,
        size: usize,
    ),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_CodeObserver {
    pub data: *mut libc::c_void,
    pub on_new_code: Dart_OnNewCodeCallback,
}
pub type Dart_RegisterKernelBlobCallback = ::core::option::Option<
    unsafe extern "C" fn(
        kernel_buffer: *const u8,
        kernel_buffer_size: isize,
    ) -> *const libc::c_char,
>;
pub type Dart_UnregisterKernelBlobCallback =
    ::core::option::Option<unsafe extern "C" fn(kernel_blob_uri: *const libc::c_char)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_InitializeParams {
    pub version: i32,
    pub vm_snapshot_data: *const u8,
    pub vm_snapshot_instructions: *const u8,
    pub create_group: Dart_IsolateGroupCreateCallback,
    pub initialize_isolate: Dart_InitializeIsolateCallback,
    pub shutdown_isolate: Dart_IsolateShutdownCallback,
    pub cleanup_isolate: Dart_IsolateCleanupCallback,
    pub cleanup_group: Dart_IsolateGroupCleanupCallback,
    pub thread_start: Dart_ThreadStartCallback,
    pub thread_exit: Dart_ThreadExitCallback,
    pub file_open: Dart_FileOpenCallback,
    pub file_read: Dart_FileReadCallback,
    pub file_write: Dart_FileWriteCallback,
    pub file_close: Dart_FileCloseCallback,
    pub entropy_source: Dart_EntropySource,
    pub get_service_assets: Dart_GetVMServiceAssetsArchive,
    pub start_kernel_isolate: bool,
    pub code_observer: *mut Dart_CodeObserver,
    pub register_kernel_blob: Dart_RegisterKernelBlobCallback,
    pub unregister_kernel_blob: Dart_UnregisterKernelBlobCallback,
}
extern "C" {
    pub fn Dart_Initialize(params: *mut Dart_InitializeParams) -> *mut libc::c_char;
}
extern "C" {
    pub fn Dart_Cleanup() -> *mut libc::c_char;
}
extern "C" {
    pub fn Dart_SetVMFlags(argc: libc::c_int, argv: *mut *const libc::c_char) -> *mut libc::c_char;
}
extern "C" {
    pub fn Dart_IsVMFlagSet(flag_name: *const libc::c_char) -> bool;
}
extern "C" {
    pub fn Dart_CreateIsolateGroup(
        script_uri: *const libc::c_char,
        name: *const libc::c_char,
        isolate_snapshot_data: *const u8,
        isolate_snapshot_instructions: *const u8,
        flags: *mut Dart_IsolateFlags,
        isolate_group_data: *mut libc::c_void,
        isolate_data: *mut libc::c_void,
        error: *mut *mut libc::c_char,
    ) -> Dart_Isolate;
}
extern "C" {
    pub fn Dart_CreateIsolateInGroup(
        group_member: Dart_Isolate,
        name: *const libc::c_char,
        shutdown_callback: Dart_IsolateShutdownCallback,
        cleanup_callback: Dart_IsolateCleanupCallback,
        child_isolate_data: *mut libc::c_void,
        error: *mut *mut libc::c_char,
    ) -> Dart_Isolate;
}
extern "C" {
    pub fn Dart_CreateIsolateGroupFromKernel(
        script_uri: *const libc::c_char,
        name: *const libc::c_char,
        kernel_buffer: *const u8,
        kernel_buffer_size: isize,
        flags: *mut Dart_IsolateFlags,
        isolate_group_data: *mut libc::c_void,
        isolate_data: *mut libc::c_void,
        error: *mut *mut libc::c_char,
    ) -> Dart_Isolate;
}
extern "C" {
    pub fn Dart_ShutdownIsolate();
}
extern "C" {
    pub fn Dart_CurrentIsolate() -> Dart_Isolate;
}
extern "C" {
    pub fn Dart_CurrentIsolateData() -> *mut libc::c_void;
}
extern "C" {
    pub fn Dart_IsolateData(isolate: Dart_Isolate) -> *mut libc::c_void;
}
extern "C" {
    pub fn Dart_CurrentIsolateGroup() -> Dart_IsolateGroup;
}
extern "C" {
    pub fn Dart_CurrentIsolateGroupData() -> *mut libc::c_void;
}
pub type Dart_IsolateGroupId = i64;
extern "C" {
    pub fn Dart_CurrentIsolateGroupId() -> Dart_IsolateGroupId;
}
extern "C" {
    pub fn Dart_IsolateGroupData(isolate: Dart_Isolate) -> *mut libc::c_void;
}
extern "C" {
    pub fn Dart_DebugName() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsolateServiceId(isolate: Dart_Isolate) -> *const libc::c_char;
}
extern "C" {
    pub fn Dart_EnterIsolate(isolate: Dart_Isolate);
}
extern "C" {
    pub fn Dart_KillIsolate(isolate: Dart_Isolate);
}
extern "C" {
    pub fn Dart_NotifyIdle(deadline: i64);
}
pub type Dart_HeapSamplingCallback = ::core::option::Option<
    unsafe extern "C" fn(
        isolate_group_data: *mut libc::c_void,
        cls_name: Dart_Handle,
        obj: Dart_WeakPersistentHandle,
        size: usize,
    ),
>;
extern "C" {
    pub fn Dart_EnableHeapSampling();
}
extern "C" {
    pub fn Dart_DisableHeapSampling();
}
extern "C" {
    pub fn Dart_RegisterHeapSamplingCallback(callback: Dart_HeapSamplingCallback);
}
extern "C" {
    pub fn Dart_SetHeapSamplingPeriod(bytes: isize);
}
extern "C" {
    pub fn Dart_NotifyDestroyed();
}
extern "C" {
    pub fn Dart_NotifyLowMemory();
}
pub const Dart_PerformanceMode_Dart_PerformanceMode_Default: Dart_PerformanceMode = 0;
pub const Dart_PerformanceMode_Dart_PerformanceMode_Latency: Dart_PerformanceMode = 1;
pub const Dart_PerformanceMode_Dart_PerformanceMode_Throughput: Dart_PerformanceMode = 2;
pub const Dart_PerformanceMode_Dart_PerformanceMode_Memory: Dart_PerformanceMode = 3;
pub type Dart_PerformanceMode = libc::c_int;
extern "C" {
    pub fn Dart_SetPerformanceMode(mode: Dart_PerformanceMode) -> Dart_PerformanceMode;
}
extern "C" {
    pub fn Dart_StartProfiling();
}
extern "C" {
    pub fn Dart_StopProfiling();
}
extern "C" {
    pub fn Dart_ThreadDisableProfiling();
}
extern "C" {
    pub fn Dart_ThreadEnableProfiling();
}
extern "C" {
    pub fn Dart_AddSymbols(
        dso_name: *const libc::c_char,
        buffer: *mut libc::c_void,
        buffer_size: isize,
    );
}
extern "C" {
    pub fn Dart_ExitIsolate();
}
extern "C" {
    pub fn Dart_CreateSnapshot(
        vm_snapshot_data_buffer: *mut *mut u8,
        vm_snapshot_data_size: *mut isize,
        isolate_snapshot_data_buffer: *mut *mut u8,
        isolate_snapshot_data_size: *mut isize,
        is_core: bool,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsKernel(buffer: *const u8, buffer_size: isize) -> bool;
}
extern "C" {
    pub fn Dart_IsolateMakeRunnable(isolate: Dart_Isolate) -> *mut libc::c_char;
}
pub type Dart_Port = i64;
pub type Dart_MessageNotifyCallback =
    ::core::option::Option<unsafe extern "C" fn(destination_isolate: Dart_Isolate)>;
extern "C" {
    pub fn Dart_SetMessageNotifyCallback(message_notify_callback: Dart_MessageNotifyCallback);
}
extern "C" {
    pub fn Dart_GetMessageNotifyCallback() -> Dart_MessageNotifyCallback;
}
extern "C" {
    pub fn Dart_ShouldPauseOnStart() -> bool;
}
extern "C" {
    pub fn Dart_SetShouldPauseOnStart(should_pause: bool);
}
extern "C" {
    pub fn Dart_IsPausedOnStart() -> bool;
}
extern "C" {
    pub fn Dart_SetPausedOnStart(paused: bool);
}
extern "C" {
    pub fn Dart_ShouldPauseOnExit() -> bool;
}
extern "C" {
    pub fn Dart_SetShouldPauseOnExit(should_pause: bool);
}
extern "C" {
    pub fn Dart_IsPausedOnExit() -> bool;
}
extern "C" {
    pub fn Dart_SetPausedOnExit(paused: bool);
}
extern "C" {
    pub fn Dart_SetStickyError(error: Dart_Handle);
}
extern "C" {
    pub fn Dart_HasStickyError() -> bool;
}
extern "C" {
    pub fn Dart_GetStickyError() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_HandleMessage() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_WaitForEvent(timeout_millis: i64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_HandleServiceMessages() -> bool;
}
extern "C" {
    pub fn Dart_HasServiceMessages() -> bool;
}
extern "C" {
    pub fn Dart_RunLoop() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_RunLoopAsync(
        errors_are_fatal: bool,
        on_error_port: Dart_Port,
        on_exit_port: Dart_Port,
        error: *mut *mut libc::c_char,
    ) -> bool;
}
extern "C" {
    pub fn Dart_GetMainPortId() -> Dart_Port;
}
extern "C" {
    pub fn Dart_HasLivePorts() -> bool;
}
extern "C" {
    pub fn Dart_Post(port_id: Dart_Port, object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_NewSendPort(port_id: Dart_Port) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SendPortGetId(port: Dart_Handle, port_id: *mut Dart_Port) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_EnterScope();
}
extern "C" {
    pub fn Dart_ExitScope();
}
extern "C" {
    pub fn Dart_ScopeAllocate(size: isize) -> *mut u8;
}
extern "C" {
    pub fn Dart_Null() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsNull(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_EmptyString() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypeDynamic() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypeVoid() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypeNever() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ObjectEquals(obj1: Dart_Handle, obj2: Dart_Handle, equal: *mut bool)
        -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ObjectIsType(
        object: Dart_Handle,
        type_: Dart_Handle,
        instanceof: *mut bool,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsInstance(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsNumber(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsInteger(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsDouble(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsBoolean(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsString(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsStringLatin1(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsExternalString(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsList(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsMap(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsLibrary(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsType(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsFunction(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsVariable(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsTypeVariable(handle: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsClosure(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsTypedData(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsByteBuffer(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_IsFuture(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_InstanceGetType(instance: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ClassName(cls_type: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_FunctionName(function: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_FunctionOwner(function: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_FunctionIsStatic(function: Dart_Handle, is_static: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsTearOff(object: Dart_Handle) -> bool;
}
extern "C" {
    pub fn Dart_ClosureFunction(closure: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ClassLibrary(cls_type: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IntegerFitsIntoInt64(integer: Dart_Handle, fits: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IntegerFitsIntoUint64(integer: Dart_Handle, fits: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewInteger(value: i64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewIntegerFromUint64(value: u64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewIntegerFromHexCString(value: *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IntegerToInt64(integer: Dart_Handle, value: *mut i64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IntegerToUint64(integer: Dart_Handle, value: *mut u64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IntegerToHexCString(
        integer: Dart_Handle,
        value: *mut *const libc::c_char,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewDouble(value: f64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_DoubleValue(double_obj: Dart_Handle, value: *mut f64) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetStaticMethodClosure(
        library: Dart_Handle,
        cls_type: Dart_Handle,
        function_name: Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_True() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_False() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewBoolean(value: bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_BooleanValue(boolean_obj: Dart_Handle, value: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringLength(str_: Dart_Handle, length: *mut isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewStringFromCString(str_: *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewStringFromUTF8(utf8_array: *const u8, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewStringFromUTF16(utf16_array: *const u16, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewStringFromUTF32(utf32_array: *const i32, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewExternalLatin1String(
        latin1_array: *const u8,
        length: isize,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewExternalUTF16String(
        utf16_array: *const u16,
        length: isize,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringToCString(str_: Dart_Handle, cstr: *mut *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringToUTF8(
        str_: Dart_Handle,
        utf8_array: *mut *mut u8,
        length: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringToLatin1(
        str_: Dart_Handle,
        latin1_array: *mut u8,
        length: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringToUTF16(
        str_: Dart_Handle,
        utf16_array: *mut u16,
        length: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringStorageSize(str_: Dart_Handle, size: *mut isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_StringGetProperties(
        str_: Dart_Handle,
        char_size: *mut isize,
        str_len: *mut isize,
        peer: *mut *mut libc::c_void,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewList(length: isize) -> Dart_Handle;
}
pub const Dart_CoreType_Id_Dart_CoreType_Dynamic: Dart_CoreType_Id = 0;
pub const Dart_CoreType_Id_Dart_CoreType_Int: Dart_CoreType_Id = 1;
pub const Dart_CoreType_Id_Dart_CoreType_String: Dart_CoreType_Id = 2;
pub type Dart_CoreType_Id = libc::c_int;
extern "C" {
    pub fn Dart_NewListOf(element_type_id: Dart_CoreType_Id, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewListOfType(element_type: Dart_Handle, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewListOfTypeFilled(
        element_type: Dart_Handle,
        fill_object: Dart_Handle,
        length: isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListLength(list: Dart_Handle, length: *mut isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListGetAt(list: Dart_Handle, index: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListGetRange(
        list: Dart_Handle,
        offset: isize,
        length: isize,
        result: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListSetAt(list: Dart_Handle, index: isize, value: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListGetAsBytes(
        list: Dart_Handle,
        offset: isize,
        native_array: *mut u8,
        length: isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ListSetAsBytes(
        list: Dart_Handle,
        offset: isize,
        native_array: *const u8,
        length: isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_MapGetAt(map: Dart_Handle, key: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_MapContainsKey(map: Dart_Handle, key: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_MapKeys(map: Dart_Handle) -> Dart_Handle;
}
pub const Dart_TypedData_Type_Dart_TypedData_kByteData: Dart_TypedData_Type = 0;
pub const Dart_TypedData_Type_Dart_TypedData_kInt8: Dart_TypedData_Type = 1;
pub const Dart_TypedData_Type_Dart_TypedData_kUint8: Dart_TypedData_Type = 2;
pub const Dart_TypedData_Type_Dart_TypedData_kUint8Clamped: Dart_TypedData_Type = 3;
pub const Dart_TypedData_Type_Dart_TypedData_kInt16: Dart_TypedData_Type = 4;
pub const Dart_TypedData_Type_Dart_TypedData_kUint16: Dart_TypedData_Type = 5;
pub const Dart_TypedData_Type_Dart_TypedData_kInt32: Dart_TypedData_Type = 6;
pub const Dart_TypedData_Type_Dart_TypedData_kUint32: Dart_TypedData_Type = 7;
pub const Dart_TypedData_Type_Dart_TypedData_kInt64: Dart_TypedData_Type = 8;
pub const Dart_TypedData_Type_Dart_TypedData_kUint64: Dart_TypedData_Type = 9;
pub const Dart_TypedData_Type_Dart_TypedData_kFloat32: Dart_TypedData_Type = 10;
pub const Dart_TypedData_Type_Dart_TypedData_kFloat64: Dart_TypedData_Type = 11;
pub const Dart_TypedData_Type_Dart_TypedData_kInt32x4: Dart_TypedData_Type = 12;
pub const Dart_TypedData_Type_Dart_TypedData_kFloat32x4: Dart_TypedData_Type = 13;
pub const Dart_TypedData_Type_Dart_TypedData_kFloat64x2: Dart_TypedData_Type = 14;
pub const Dart_TypedData_Type_Dart_TypedData_kInvalid: Dart_TypedData_Type = 15;
pub type Dart_TypedData_Type = libc::c_int;
extern "C" {
    pub fn Dart_GetTypeOfTypedData(object: Dart_Handle) -> Dart_TypedData_Type;
}
extern "C" {
    pub fn Dart_GetTypeOfExternalTypedData(object: Dart_Handle) -> Dart_TypedData_Type;
}
extern "C" {
    pub fn Dart_NewTypedData(type_: Dart_TypedData_Type, length: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewExternalTypedData(
        type_: Dart_TypedData_Type,
        data: *mut libc::c_void,
        length: isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewExternalTypedDataWithFinalizer(
        type_: Dart_TypedData_Type,
        data: *mut libc::c_void,
        length: isize,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewUnmodifiableExternalTypedDataWithFinalizer(
        type_: Dart_TypedData_Type,
        data: *const libc::c_void,
        length: isize,
        peer: *mut libc::c_void,
        external_allocation_size: isize,
        callback: Dart_HandleFinalizer,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewByteBuffer(typed_data: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypedDataAcquireData(
        object: Dart_Handle,
        type_: *mut Dart_TypedData_Type,
        data: *mut *mut libc::c_void,
        len: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypedDataReleaseData(object: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetDataFromByteBuffer(byte_buffer: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_New(
        type_: Dart_Handle,
        constructor_name: Dart_Handle,
        number_of_arguments: libc::c_int,
        arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_Allocate(type_: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_AllocateWithNativeFields(
        type_: Dart_Handle,
        num_native_fields: isize,
        native_fields: *const isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_Invoke(
        target: Dart_Handle,
        name: Dart_Handle,
        number_of_arguments: libc::c_int,
        arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_InvokeClosure(
        closure: Dart_Handle,
        number_of_arguments: libc::c_int,
        arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_InvokeConstructor(
        object: Dart_Handle,
        name: Dart_Handle,
        number_of_arguments: libc::c_int,
        arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetField(container: Dart_Handle, name: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetField(
        container: Dart_Handle,
        name: Dart_Handle,
        value: Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ThrowException(exception: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ReThrowException(exception: Dart_Handle, stacktrace: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeInstanceFieldCount(
        obj: Dart_Handle,
        count: *mut libc::c_int,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeInstanceField(
        obj: Dart_Handle,
        index: libc::c_int,
        value: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetNativeInstanceField(
        obj: Dart_Handle,
        index: libc::c_int,
        value: isize,
    ) -> Dart_Handle;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_NativeArguments {
    _unused: [u8; 0],
}
pub type Dart_NativeArguments = *mut _Dart_NativeArguments;
extern "C" {
    pub fn Dart_GetNativeIsolateGroupData(args: Dart_NativeArguments) -> *mut libc::c_void;
}
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kBool: Dart_NativeArgument_Type = 0;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInt32: Dart_NativeArgument_Type = 1;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kUint32: Dart_NativeArgument_Type = 2;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInt64: Dart_NativeArgument_Type = 3;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kUint64: Dart_NativeArgument_Type = 4;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kDouble: Dart_NativeArgument_Type = 5;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kString: Dart_NativeArgument_Type = 6;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInstance: Dart_NativeArgument_Type = 7;
pub const Dart_NativeArgument_Type_Dart_NativeArgument_kNativeFields: Dart_NativeArgument_Type = 8;
pub type Dart_NativeArgument_Type = libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_NativeArgument_Descriptor {
    pub type_: u8,
    pub index: u8,
}
pub type Dart_NativeArgument_Descriptor = _Dart_NativeArgument_Descriptor;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _Dart_NativeArgument_Value {
    pub as_bool: bool,
    pub as_int32: i32,
    pub as_uint32: u32,
    pub as_int64: i64,
    pub as_uint64: u64,
    pub as_double: f64,
    pub as_string: _Dart_NativeArgument_Value__bindgen_ty_1,
    pub as_native_fields: _Dart_NativeArgument_Value__bindgen_ty_2,
    pub as_instance: Dart_Handle,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_NativeArgument_Value__bindgen_ty_1 {
    pub dart_str: Dart_Handle,
    pub peer: *mut libc::c_void,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_NativeArgument_Value__bindgen_ty_2 {
    pub num_fields: isize,
    pub values: *mut isize,
}
pub type Dart_NativeArgument_Value = _Dart_NativeArgument_Value;
extern "C" {
    pub fn Dart_GetNativeArguments(
        args: Dart_NativeArguments,
        num_arguments: libc::c_int,
        arg_descriptors: *const Dart_NativeArgument_Descriptor,
        arg_values: *mut Dart_NativeArgument_Value,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeArgument(args: Dart_NativeArguments, index: libc::c_int) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeArgumentCount(args: Dart_NativeArguments) -> libc::c_int;
}
extern "C" {
    pub fn Dart_GetNativeFieldsOfArgument(
        args: Dart_NativeArguments,
        arg_index: libc::c_int,
        num_fields: libc::c_int,
        field_values: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeReceiver(args: Dart_NativeArguments, value: *mut isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeStringArgument(
        args: Dart_NativeArguments,
        arg_index: libc::c_int,
        peer: *mut *mut libc::c_void,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeIntegerArgument(
        args: Dart_NativeArguments,
        index: libc::c_int,
        value: *mut i64,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeBooleanArgument(
        args: Dart_NativeArguments,
        index: libc::c_int,
        value: *mut bool,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeDoubleArgument(
        args: Dart_NativeArguments,
        index: libc::c_int,
        value: *mut f64,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetReturnValue(args: Dart_NativeArguments, retval: Dart_Handle);
}
extern "C" {
    pub fn Dart_SetWeakHandleReturnValue(
        args: Dart_NativeArguments,
        rval: Dart_WeakPersistentHandle,
    );
}
extern "C" {
    pub fn Dart_SetBooleanReturnValue(args: Dart_NativeArguments, retval: bool);
}
extern "C" {
    pub fn Dart_SetIntegerReturnValue(args: Dart_NativeArguments, retval: i64);
}
extern "C" {
    pub fn Dart_SetDoubleReturnValue(args: Dart_NativeArguments, retval: f64);
}
pub type Dart_NativeFunction =
    ::core::option::Option<unsafe extern "C" fn(arguments: Dart_NativeArguments)>;
pub type Dart_NativeEntryResolver = ::core::option::Option<
    unsafe extern "C" fn(
        name: Dart_Handle,
        num_of_arguments: libc::c_int,
        auto_setup_scope: *mut bool,
    ) -> Dart_NativeFunction,
>;
pub type Dart_NativeEntrySymbol =
    ::core::option::Option<unsafe extern "C" fn(nf: Dart_NativeFunction) -> *const u8>;
pub type Dart_FfiNativeResolver = ::core::option::Option<
    unsafe extern "C" fn(name: *const libc::c_char, args_n: usize) -> *mut libc::c_void,
>;
pub type Dart_EnvironmentCallback =
    ::core::option::Option<unsafe extern "C" fn(name: Dart_Handle) -> Dart_Handle>;
extern "C" {
    pub fn Dart_SetEnvironmentCallback(callback: Dart_EnvironmentCallback) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetNativeResolver(
        library: Dart_Handle,
        resolver: Dart_NativeEntryResolver,
        symbol: Dart_NativeEntrySymbol,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeResolver(
        library: Dart_Handle,
        resolver: *mut Dart_NativeEntryResolver,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNativeSymbol(
        library: Dart_Handle,
        resolver: *mut Dart_NativeEntrySymbol,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetFfiNativeResolver(
        library: Dart_Handle,
        resolver: Dart_FfiNativeResolver,
    ) -> Dart_Handle;
}
pub const Dart_LibraryTag_Dart_kCanonicalizeUrl: Dart_LibraryTag = 0;
pub const Dart_LibraryTag_Dart_kImportTag: Dart_LibraryTag = 1;
pub const Dart_LibraryTag_Dart_kKernelTag: Dart_LibraryTag = 2;
pub type Dart_LibraryTag = libc::c_int;
pub type Dart_LibraryTagHandler = ::core::option::Option<
    unsafe extern "C" fn(
        tag: Dart_LibraryTag,
        library_or_package_map_url: Dart_Handle,
        url: Dart_Handle,
    ) -> Dart_Handle,
>;
extern "C" {
    pub fn Dart_SetLibraryTagHandler(handler: Dart_LibraryTagHandler) -> Dart_Handle;
}
pub type Dart_DeferredLoadHandler =
    ::core::option::Option<unsafe extern "C" fn(loading_unit_id: isize) -> Dart_Handle>;
extern "C" {
    pub fn Dart_SetDeferredLoadHandler(handler: Dart_DeferredLoadHandler) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_DeferredLoadComplete(
        loading_unit_id: isize,
        snapshot_data: *const u8,
        snapshot_instructions: *const u8,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_DeferredLoadCompleteError(
        loading_unit_id: isize,
        error_message: *const libc::c_char,
        transient: bool,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_DefaultCanonicalizeUrl(base_url: Dart_Handle, url: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LoadScriptFromKernel(kernel_buffer: *const u8, kernel_size: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_RootLibrary() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetRootLibrary(library: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetType(
        library: Dart_Handle,
        class_name: Dart_Handle,
        number_of_type_arguments: isize,
        type_arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNullableType(
        library: Dart_Handle,
        class_name: Dart_Handle,
        number_of_type_arguments: isize,
        type_arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetNonNullableType(
        library: Dart_Handle,
        class_name: Dart_Handle,
        number_of_type_arguments: isize,
        type_arguments: *mut Dart_Handle,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypeToNullableType(type_: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_TypeToNonNullableType(type_: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsNullableType(type_: Dart_Handle, result: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsNonNullableType(type_: Dart_Handle, result: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsLegacyType(type_: Dart_Handle, result: *mut bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetClass(library: Dart_Handle, class_name: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LibraryUrl(library: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LibraryResolvedUrl(library: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetLoadedLibraries() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LookupLibrary(url: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LibraryHandleError(library: Dart_Handle, error: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_LoadLibraryFromKernel(
        kernel_buffer: *const u8,
        kernel_buffer_size: isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_FinalizeLoading(complete_futures: bool) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetPeer(object: Dart_Handle, peer: *mut *mut libc::c_void) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetPeer(object: Dart_Handle, peer: *mut libc::c_void) -> Dart_Handle;
}
pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Unknown:
    Dart_KernelCompilationStatus = -1;
pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Ok:
    Dart_KernelCompilationStatus = 0;
pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Error:
    Dart_KernelCompilationStatus = 1;
pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Crash:
    Dart_KernelCompilationStatus = 2;
pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_MsgFailed:
    Dart_KernelCompilationStatus = 3;
pub type Dart_KernelCompilationStatus = libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_KernelCompilationResult {
    pub status: Dart_KernelCompilationStatus,
    pub null_safety: bool,
    pub error: *mut libc::c_char,
    pub kernel: *mut u8,
    pub kernel_size: isize,
}
pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Error:
    Dart_KernelCompilationVerbosityLevel = 0;
pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Warning:
    Dart_KernelCompilationVerbosityLevel = 1;
pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Info:
    Dart_KernelCompilationVerbosityLevel = 2;
pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_All:
    Dart_KernelCompilationVerbosityLevel = 3;
pub type Dart_KernelCompilationVerbosityLevel = libc::c_int;
extern "C" {
    pub fn Dart_IsKernelIsolate(isolate: Dart_Isolate) -> bool;
}
extern "C" {
    pub fn Dart_KernelIsolateIsRunning() -> bool;
}
extern "C" {
    pub fn Dart_KernelPort() -> Dart_Port;
}
extern "C" {
    pub fn Dart_CompileToKernel(
        script_uri: *const libc::c_char,
        platform_kernel: *const u8,
        platform_kernel_size: isize,
        incremental_compile: bool,
        snapshot_compile: bool,
        package_config: *const libc::c_char,
        verbosity: Dart_KernelCompilationVerbosityLevel,
    ) -> Dart_KernelCompilationResult;
}
extern "C" {
    pub fn Dart_CompileToKernelWithGivenNullsafety(
        script_uri: *const libc::c_char,
        platform_kernel: *const u8,
        platform_kernel_size: isize,
        snapshot_compile: bool,
        package_config: *const libc::c_char,
        null_safety: bool,
        verbosity: Dart_KernelCompilationVerbosityLevel,
    ) -> Dart_KernelCompilationResult;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_SourceFile {
    pub uri: *const libc::c_char,
    pub source: *const libc::c_char,
}
extern "C" {
    pub fn Dart_KernelListDependencies() -> Dart_KernelCompilationResult;
}
extern "C" {
    pub fn Dart_SetDartLibrarySourcesKernel(
        platform_kernel: *const u8,
        platform_kernel_size: isize,
    );
}
extern "C" {
    pub fn Dart_DetectNullSafety(
        script_uri: *const libc::c_char,
        package_config: *const libc::c_char,
        original_working_directory: *const libc::c_char,
        snapshot_data: *const u8,
        snapshot_instructions: *const u8,
        kernel_buffer: *const u8,
        kernel_buffer_size: isize,
    ) -> bool;
}
extern "C" {
    pub fn Dart_IsServiceIsolate(isolate: Dart_Isolate) -> bool;
}
extern "C" {
    pub fn Dart_WriteProfileToTimeline(main_port: Dart_Port, error: *mut *mut libc::c_char)
        -> bool;
}
extern "C" {
    pub fn Dart_Precompile() -> Dart_Handle;
}
pub type Dart_CreateLoadingUnitCallback = ::core::option::Option<
    unsafe extern "C" fn(
        callback_data: *mut libc::c_void,
        loading_unit_id: isize,
        write_callback_data: *mut *mut libc::c_void,
        write_debug_callback_data: *mut *mut libc::c_void,
    ),
>;
pub type Dart_StreamingWriteCallback = ::core::option::Option<
    unsafe extern "C" fn(callback_data: *mut libc::c_void, buffer: *const u8, size: isize),
>;
pub type Dart_StreamingCloseCallback =
    ::core::option::Option<unsafe extern "C" fn(callback_data: *mut libc::c_void)>;
extern "C" {
    pub fn Dart_LoadingUnitLibraryUris(loading_unit_id: isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateAppAOTSnapshotAsAssembly(
        callback: Dart_StreamingWriteCallback,
        callback_data: *mut libc::c_void,
        stripped: bool,
        debug_callback_data: *mut libc::c_void,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateAppAOTSnapshotAsAssemblies(
        next_callback: Dart_CreateLoadingUnitCallback,
        next_callback_data: *mut libc::c_void,
        stripped: bool,
        write_callback: Dart_StreamingWriteCallback,
        close_callback: Dart_StreamingCloseCallback,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateAppAOTSnapshotAsElf(
        callback: Dart_StreamingWriteCallback,
        callback_data: *mut libc::c_void,
        stripped: bool,
        debug_callback_data: *mut libc::c_void,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateAppAOTSnapshotAsElfs(
        next_callback: Dart_CreateLoadingUnitCallback,
        next_callback_data: *mut libc::c_void,
        stripped: bool,
        write_callback: Dart_StreamingWriteCallback,
        close_callback: Dart_StreamingCloseCallback,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateVMAOTSnapshotAsAssembly(
        callback: Dart_StreamingWriteCallback,
        callback_data: *mut libc::c_void,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SortClasses() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateAppJITSnapshotAsBlobs(
        isolate_snapshot_data_buffer: *mut *mut u8,
        isolate_snapshot_data_size: *mut isize,
        isolate_snapshot_instructions_buffer: *mut *mut u8,
        isolate_snapshot_instructions_size: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_CreateCoreJITSnapshotAsBlobs(
        vm_snapshot_data_buffer: *mut *mut u8,
        vm_snapshot_data_size: *mut isize,
        vm_snapshot_instructions_buffer: *mut *mut u8,
        vm_snapshot_instructions_size: *mut isize,
        isolate_snapshot_data_buffer: *mut *mut u8,
        isolate_snapshot_data_size: *mut isize,
        isolate_snapshot_instructions_buffer: *mut *mut u8,
        isolate_snapshot_instructions_size: *mut isize,
    ) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetObfuscationMap(buffer: *mut *mut u8, buffer_length: *mut isize) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_IsPrecompiledRuntime() -> bool;
}
extern "C" {
    pub fn Dart_DumpNativeStackTrace(context: *mut libc::c_void);
}
extern "C" {
    pub fn Dart_PrepareToAbort();
}
pub const Dart_CObject_Type_Dart_CObject_kNull: Dart_CObject_Type = 0;
pub const Dart_CObject_Type_Dart_CObject_kBool: Dart_CObject_Type = 1;
pub const Dart_CObject_Type_Dart_CObject_kInt32: Dart_CObject_Type = 2;
pub const Dart_CObject_Type_Dart_CObject_kInt64: Dart_CObject_Type = 3;
pub const Dart_CObject_Type_Dart_CObject_kDouble: Dart_CObject_Type = 4;
pub const Dart_CObject_Type_Dart_CObject_kString: Dart_CObject_Type = 5;
pub const Dart_CObject_Type_Dart_CObject_kArray: Dart_CObject_Type = 6;
pub const Dart_CObject_Type_Dart_CObject_kTypedData: Dart_CObject_Type = 7;
pub const Dart_CObject_Type_Dart_CObject_kExternalTypedData: Dart_CObject_Type = 8;
pub const Dart_CObject_Type_Dart_CObject_kUnmodifiableExternalTypedData: Dart_CObject_Type = 9;
pub const Dart_CObject_Type_Dart_CObject_kSendPort: Dart_CObject_Type = 10;
pub const Dart_CObject_Type_Dart_CObject_kCapability: Dart_CObject_Type = 11;
pub const Dart_CObject_Type_Dart_CObject_kNativePointer: Dart_CObject_Type = 12;
pub const Dart_CObject_Type_Dart_CObject_kUnsupported: Dart_CObject_Type = 13;
pub const Dart_CObject_Type_Dart_CObject_kNumberOfTypes: Dart_CObject_Type = 14;
pub type Dart_CObject_Type = libc::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _Dart_CObject {
    pub type_: Dart_CObject_Type,
    pub value: _Dart_CObject__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _Dart_CObject__bindgen_ty_1 {
    pub as_bool: bool,
    pub as_int32: i32,
    pub as_int64: i64,
    pub as_double: f64,
    pub as_string: *mut libc::c_char,
    pub as_send_port: _Dart_CObject__bindgen_ty_1__bindgen_ty_1,
    pub as_capability: _Dart_CObject__bindgen_ty_1__bindgen_ty_2,
    pub as_array: _Dart_CObject__bindgen_ty_1__bindgen_ty_3,
    pub as_typed_data: _Dart_CObject__bindgen_ty_1__bindgen_ty_4,
    pub as_external_typed_data: _Dart_CObject__bindgen_ty_1__bindgen_ty_5,
    pub as_native_pointer: _Dart_CObject__bindgen_ty_1__bindgen_ty_6,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_1 {
    pub id: Dart_Port,
    pub origin_id: Dart_Port,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_2 {
    pub id: i64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_3 {
    pub length: isize,
    pub values: *mut *mut _Dart_CObject,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_4 {
    pub type_: Dart_TypedData_Type,
    pub length: isize,
    pub values: *const u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_5 {
    pub type_: Dart_TypedData_Type,
    pub length: isize,
    pub data: *mut u8,
    pub peer: *mut libc::c_void,
    pub callback: Dart_HandleFinalizer,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_6 {
    pub ptr: isize,
    pub size: isize,
    pub callback: Dart_HandleFinalizer,
}
pub type Dart_CObject = _Dart_CObject;
extern "C" {
    pub fn Dart_PostCObject(port_id: Dart_Port, message: *mut Dart_CObject) -> bool;
}
extern "C" {
    pub fn Dart_PostInteger(port_id: Dart_Port, message: i64) -> bool;
}
pub type Dart_NativeMessageHandler = ::core::option::Option<
    unsafe extern "C" fn(dest_port_id: Dart_Port, message: *mut Dart_CObject),
>;
extern "C" {
    pub fn Dart_NewNativePort(
        name: *const libc::c_char,
        handler: Dart_NativeMessageHandler,
        handle_concurrently: bool,
    ) -> Dart_Port;
}
extern "C" {
    pub fn Dart_CloseNativePort(native_port_id: Dart_Port) -> bool;
}
extern "C" {
    pub fn Dart_CompileAll() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_FinalizeAllClasses() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_ExecuteInternalCommand(
        command: *const libc::c_char,
        arg: *mut libc::c_void,
    ) -> *mut libc::c_void;
}
pub type Dart_ServiceRequestCallback = ::core::option::Option<
    unsafe extern "C" fn(
        method: *const libc::c_char,
        param_keys: *mut *const libc::c_char,
        param_values: *mut *const libc::c_char,
        num_params: isize,
        user_data: *mut libc::c_void,
        json_object: *mut *const libc::c_char,
    ) -> bool,
>;
extern "C" {
    pub fn Dart_RegisterIsolateServiceRequestCallback(
        method: *const libc::c_char,
        callback: Dart_ServiceRequestCallback,
        user_data: *mut libc::c_void,
    );
}
extern "C" {
    pub fn Dart_RegisterRootServiceRequestCallback(
        method: *const libc::c_char,
        callback: Dart_ServiceRequestCallback,
        user_data: *mut libc::c_void,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_EmbedderInformation {
    pub version: i32,
    pub name: *const libc::c_char,
    pub current_rss: i64,
    pub max_rss: i64,
}
pub type Dart_EmbedderInformationCallback =
    ::core::option::Option<unsafe extern "C" fn(info: *mut Dart_EmbedderInformation)>;
extern "C" {
    pub fn Dart_SetEmbedderInformationCallback(callback: Dart_EmbedderInformationCallback);
}
extern "C" {
    pub fn Dart_InvokeVMServiceMethod(
        request_json: *mut u8,
        request_json_length: isize,
        response_json: *mut *mut u8,
        response_json_length: *mut isize,
        error: *mut *mut libc::c_char,
    ) -> bool;
}
pub type Dart_ServiceStreamListenCallback =
    ::core::option::Option<unsafe extern "C" fn(stream_id: *const libc::c_char) -> bool>;
pub type Dart_ServiceStreamCancelCallback =
    ::core::option::Option<unsafe extern "C" fn(stream_id: *const libc::c_char)>;
extern "C" {
    pub fn Dart_SetServiceStreamCallbacks(
        listen_callback: Dart_ServiceStreamListenCallback,
        cancel_callback: Dart_ServiceStreamCancelCallback,
    ) -> *mut libc::c_char;
}
extern "C" {
    pub fn Dart_ServiceSendDataEvent(
        stream_id: *const libc::c_char,
        event_kind: *const libc::c_char,
        bytes: *const u8,
        bytes_length: isize,
    ) -> *mut libc::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_GCStats {
    pub used: isize,
    pub capacity: isize,
    pub external: isize,
    pub collections: isize,
    pub time: f64,
    pub avg_collection_period: f64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_GCEvent {
    pub type_: *const libc::c_char,
    pub reason: *const libc::c_char,
    pub isolate_group_id: Dart_IsolateGroupId,
    pub new_space: Dart_GCStats,
    pub old_space: Dart_GCStats,
}
pub type Dart_GCEventCallback =
    ::core::option::Option<unsafe extern "C" fn(event: *mut Dart_GCEvent)>;
extern "C" {
    pub fn Dart_SetGCEventCallback(callback: Dart_GCEventCallback);
}
pub type Dart_FileModifiedCallback =
    ::core::option::Option<unsafe extern "C" fn(url: *const libc::c_char, since: i64) -> bool>;
extern "C" {
    pub fn Dart_SetFileModifiedCallback(
        file_modified_callback: Dart_FileModifiedCallback,
    ) -> *mut libc::c_char;
}
extern "C" {
    pub fn Dart_IsReloading() -> bool;
}
extern "C" {
    pub fn Dart_SetEnabledTimelineCategory(categories: *const libc::c_char) -> bool;
}
extern "C" {
    pub fn Dart_TimelineGetMicros() -> i64;
}
extern "C" {
    pub fn Dart_TimelineGetTicks() -> i64;
}
extern "C" {
    pub fn Dart_TimelineGetTicksFrequency() -> i64;
}
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Begin: Dart_Timeline_Event_Type = 0;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_End: Dart_Timeline_Event_Type = 1;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Instant: Dart_Timeline_Event_Type = 2;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Duration: Dart_Timeline_Event_Type = 3;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Begin: Dart_Timeline_Event_Type = 4;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_End: Dart_Timeline_Event_Type = 5;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Instant: Dart_Timeline_Event_Type = 6;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Counter: Dart_Timeline_Event_Type = 7;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Begin: Dart_Timeline_Event_Type = 8;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Step: Dart_Timeline_Event_Type = 9;
pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_End: Dart_Timeline_Event_Type = 10;
pub type Dart_Timeline_Event_Type = libc::c_int;
extern "C" {
    pub fn Dart_TimelineEvent(
        label: *const libc::c_char,
        timestamp0: i64,
        timestamp1_or_async_id: i64,
        type_: Dart_Timeline_Event_Type,
        argument_count: isize,
        argument_names: *mut *const libc::c_char,
        argument_values: *mut *const libc::c_char,
    );
}
extern "C" {
    pub fn Dart_SetThreadName(name: *const libc::c_char);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_TimelineRecorderEvent_Argument {
    pub name: *const libc::c_char,
    pub value: *const libc::c_char,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Dart_TimelineRecorderEvent {
    pub version: i32,
    pub type_: Dart_Timeline_Event_Type,
    pub timestamp0: i64,
    pub timestamp1_or_async_id: i64,
    pub isolate: Dart_Port,
    pub isolate_group: Dart_IsolateGroupId,
    pub label: *const libc::c_char,
    pub stream: *const libc::c_char,
    pub argument_count: isize,
    pub arguments: *mut Dart_TimelineRecorderEvent_Argument,
}
pub type Dart_TimelineRecorderCallback =
    ::core::option::Option<unsafe extern "C" fn(event: *mut Dart_TimelineRecorderEvent)>;
extern "C" {
    pub fn Dart_SetTimelineRecorderCallback(callback: Dart_TimelineRecorderCallback);
}
extern "C" {
    pub fn Dart_VMIsolateCountMetric() -> i64;
}
extern "C" {
    pub fn Dart_VMCurrentRSSMetric() -> i64;
}
extern "C" {
    pub fn Dart_VMPeakRSSMetric() -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapOldUsedMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapOldUsedMaxMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapOldCapacityMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapOldCapacityMaxMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapOldExternalMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapNewUsedMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapNewUsedMaxMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapNewCapacityMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapNewCapacityMaxMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapNewExternalMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapGlobalUsedMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateGroupHeapGlobalUsedMaxMetric(group: Dart_IsolateGroup) -> i64;
}
extern "C" {
    pub fn Dart_IsolateRunnableLatencyMetric(isolate: Dart_Isolate) -> i64;
}
extern "C" {
    pub fn Dart_IsolateRunnableHeapSizeMetric(isolate: Dart_Isolate) -> i64;
}
extern "C" {
    pub fn Dart_GetCurrentUserTag() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetDefaultUserTag() -> Dart_Handle;
}
extern "C" {
    pub fn Dart_NewUserTag(label: *const libc::c_char) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_SetCurrentUserTag(user_tag: Dart_Handle) -> Dart_Handle;
}
extern "C" {
    pub fn Dart_GetUserTagLabel(user_tag: Dart_Handle) -> *mut libc::c_char;
}