dart_sdk_sys/
lib.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3#![no_std]
4#![allow(non_upper_case_globals)]
5#![allow(non_camel_case_types)]
6#![allow(non_snake_case)]
7
8#[repr(C)]
9#[derive(Debug, Copy, Clone)]
10pub struct _Dart_Isolate {
11    _unused: [u8; 0],
12}
13pub type Dart_Isolate = *mut _Dart_Isolate;
14#[repr(C)]
15#[derive(Debug, Copy, Clone)]
16pub struct _Dart_IsolateGroup {
17    _unused: [u8; 0],
18}
19pub type Dart_IsolateGroup = *mut _Dart_IsolateGroup;
20#[repr(C)]
21#[derive(Debug, Copy, Clone)]
22pub struct _Dart_Handle {
23    _unused: [u8; 0],
24}
25pub type Dart_Handle = *mut _Dart_Handle;
26pub type Dart_PersistentHandle = Dart_Handle;
27#[repr(C)]
28#[derive(Debug, Copy, Clone)]
29pub struct _Dart_WeakPersistentHandle {
30    _unused: [u8; 0],
31}
32pub type Dart_WeakPersistentHandle = *mut _Dart_WeakPersistentHandle;
33#[repr(C)]
34#[derive(Debug, Copy, Clone)]
35pub struct _Dart_FinalizableHandle {
36    _unused: [u8; 0],
37}
38pub type Dart_FinalizableHandle = *mut _Dart_FinalizableHandle;
39pub type Dart_HandleFinalizer = ::core::option::Option<
40    unsafe extern "C" fn(isolate_callback_data: *mut libc::c_void, peer: *mut libc::c_void),
41>;
42unsafe extern "C" {
43    pub fn Dart_IsError(handle: Dart_Handle) -> bool;
44}
45unsafe extern "C" {
46    pub fn Dart_IsApiError(handle: Dart_Handle) -> bool;
47}
48unsafe extern "C" {
49    pub fn Dart_IsUnhandledExceptionError(handle: Dart_Handle) -> bool;
50}
51unsafe extern "C" {
52    pub fn Dart_IsCompilationError(handle: Dart_Handle) -> bool;
53}
54unsafe extern "C" {
55    pub fn Dart_IsFatalError(handle: Dart_Handle) -> bool;
56}
57unsafe extern "C" {
58    pub fn Dart_GetError(handle: Dart_Handle) -> *const libc::c_char;
59}
60unsafe extern "C" {
61    pub fn Dart_ErrorHasException(handle: Dart_Handle) -> bool;
62}
63unsafe extern "C" {
64    pub fn Dart_ErrorGetException(handle: Dart_Handle) -> Dart_Handle;
65}
66unsafe extern "C" {
67    pub fn Dart_ErrorGetStackTrace(handle: Dart_Handle) -> Dart_Handle;
68}
69unsafe extern "C" {
70    pub fn Dart_NewApiError(error: *const libc::c_char) -> Dart_Handle;
71}
72unsafe extern "C" {
73    pub fn Dart_NewCompilationError(error: *const libc::c_char) -> Dart_Handle;
74}
75unsafe extern "C" {
76    pub fn Dart_NewUnhandledExceptionError(exception: Dart_Handle) -> Dart_Handle;
77}
78unsafe extern "C" {
79    pub fn Dart_PropagateError(handle: Dart_Handle);
80}
81unsafe extern "C" {
82    pub fn Dart_ToString(object: Dart_Handle) -> Dart_Handle;
83}
84unsafe extern "C" {
85    pub fn Dart_IdentityEquals(obj1: Dart_Handle, obj2: Dart_Handle) -> bool;
86}
87unsafe extern "C" {
88    pub fn Dart_HandleFromPersistent(object: Dart_PersistentHandle) -> Dart_Handle;
89}
90unsafe extern "C" {
91    pub fn Dart_HandleFromWeakPersistent(object: Dart_WeakPersistentHandle) -> Dart_Handle;
92}
93unsafe extern "C" {
94    pub fn Dart_NewPersistentHandle(object: Dart_Handle) -> Dart_PersistentHandle;
95}
96unsafe extern "C" {
97    pub fn Dart_SetPersistentHandle(obj1: Dart_PersistentHandle, obj2: Dart_Handle);
98}
99unsafe extern "C" {
100    pub fn Dart_DeletePersistentHandle(object: Dart_PersistentHandle);
101}
102unsafe extern "C" {
103    pub fn Dart_NewWeakPersistentHandle(
104        object: Dart_Handle,
105        peer: *mut libc::c_void,
106        external_allocation_size: isize,
107        callback: Dart_HandleFinalizer,
108    ) -> Dart_WeakPersistentHandle;
109}
110unsafe extern "C" {
111    pub fn Dart_DeleteWeakPersistentHandle(object: Dart_WeakPersistentHandle);
112}
113unsafe extern "C" {
114    pub fn Dart_NewFinalizableHandle(
115        object: Dart_Handle,
116        peer: *mut libc::c_void,
117        external_allocation_size: isize,
118        callback: Dart_HandleFinalizer,
119    ) -> Dart_FinalizableHandle;
120}
121unsafe extern "C" {
122    pub fn Dart_DeleteFinalizableHandle(
123        object: Dart_FinalizableHandle,
124        strong_ref_to_object: Dart_Handle,
125    );
126}
127unsafe extern "C" {
128    pub fn Dart_VersionString() -> *const libc::c_char;
129}
130#[repr(C)]
131#[derive(Debug, Copy, Clone)]
132pub struct Dart_IsolateFlags {
133    pub version: i32,
134    pub enable_asserts: bool,
135    pub use_field_guards: bool,
136    pub use_osr: bool,
137    pub obfuscate: bool,
138    pub load_vmservice_library: bool,
139    pub null_safety: bool,
140    pub is_system_isolate: bool,
141    pub is_service_isolate: bool,
142    pub is_kernel_isolate: bool,
143    pub snapshot_is_dontneed_safe: bool,
144    pub branch_coverage: bool,
145    pub coverage: bool,
146}
147unsafe extern "C" {
148    pub fn Dart_IsolateFlagsInitialize(flags: *mut Dart_IsolateFlags);
149}
150pub type Dart_IsolateGroupCreateCallback = ::core::option::Option<
151    unsafe extern "C" fn(
152        script_uri: *const libc::c_char,
153        main: *const libc::c_char,
154        package_root: *const libc::c_char,
155        package_config: *const libc::c_char,
156        flags: *mut Dart_IsolateFlags,
157        isolate_data: *mut libc::c_void,
158        error: *mut *mut libc::c_char,
159    ) -> Dart_Isolate,
160>;
161pub type Dart_InitializeIsolateCallback = ::core::option::Option<
162    unsafe extern "C" fn(
163        child_isolate_data: *mut *mut libc::c_void,
164        error: *mut *mut libc::c_char,
165    ) -> bool,
166>;
167pub type Dart_IsolateShutdownCallback = ::core::option::Option<
168    unsafe extern "C" fn(isolate_group_data: *mut libc::c_void, isolate_data: *mut libc::c_void),
169>;
170pub type Dart_IsolateCleanupCallback = ::core::option::Option<
171    unsafe extern "C" fn(isolate_group_data: *mut libc::c_void, isolate_data: *mut libc::c_void),
172>;
173pub type Dart_IsolateGroupCleanupCallback =
174    ::core::option::Option<unsafe extern "C" fn(isolate_group_data: *mut libc::c_void)>;
175pub type Dart_ThreadStartCallback = ::core::option::Option<unsafe extern "C" fn()>;
176pub type Dart_ThreadExitCallback = ::core::option::Option<unsafe extern "C" fn()>;
177pub type Dart_FileOpenCallback = ::core::option::Option<
178    unsafe extern "C" fn(name: *const libc::c_char, write: bool) -> *mut libc::c_void,
179>;
180pub type Dart_FileReadCallback = ::core::option::Option<
181    unsafe extern "C" fn(data: *mut *mut u8, file_length: *mut isize, stream: *mut libc::c_void),
182>;
183pub type Dart_FileWriteCallback = ::core::option::Option<
184    unsafe extern "C" fn(data: *const libc::c_void, length: isize, stream: *mut libc::c_void),
185>;
186pub type Dart_FileCloseCallback =
187    ::core::option::Option<unsafe extern "C" fn(stream: *mut libc::c_void)>;
188pub type Dart_EntropySource =
189    ::core::option::Option<unsafe extern "C" fn(buffer: *mut u8, length: isize) -> bool>;
190pub type Dart_GetVMServiceAssetsArchive =
191    ::core::option::Option<unsafe extern "C" fn() -> Dart_Handle>;
192pub type Dart_OnNewCodeCallback = ::core::option::Option<
193    unsafe extern "C" fn(
194        observer: *mut Dart_CodeObserver,
195        name: *const libc::c_char,
196        base: usize,
197        size: usize,
198    ),
199>;
200#[repr(C)]
201#[derive(Debug, Copy, Clone)]
202pub struct Dart_CodeObserver {
203    pub data: *mut libc::c_void,
204    pub on_new_code: Dart_OnNewCodeCallback,
205}
206#[repr(C)]
207#[derive(Debug, Copy, Clone)]
208pub struct Dart_InitializeParams {
209    pub version: i32,
210    pub vm_snapshot_data: *const u8,
211    pub vm_snapshot_instructions: *const u8,
212    pub create_group: Dart_IsolateGroupCreateCallback,
213    pub initialize_isolate: Dart_InitializeIsolateCallback,
214    pub shutdown_isolate: Dart_IsolateShutdownCallback,
215    pub cleanup_isolate: Dart_IsolateCleanupCallback,
216    pub cleanup_group: Dart_IsolateGroupCleanupCallback,
217    pub thread_start: Dart_ThreadStartCallback,
218    pub thread_exit: Dart_ThreadExitCallback,
219    pub file_open: Dart_FileOpenCallback,
220    pub file_read: Dart_FileReadCallback,
221    pub file_write: Dart_FileWriteCallback,
222    pub file_close: Dart_FileCloseCallback,
223    pub entropy_source: Dart_EntropySource,
224    pub get_service_assets: Dart_GetVMServiceAssetsArchive,
225    pub start_kernel_isolate: bool,
226    pub code_observer: *mut Dart_CodeObserver,
227}
228unsafe extern "C" {
229    pub fn Dart_Initialize(params: *mut Dart_InitializeParams) -> *mut libc::c_char;
230}
231unsafe extern "C" {
232    pub fn Dart_Cleanup() -> *mut libc::c_char;
233}
234unsafe extern "C" {
235    pub fn Dart_SetVMFlags(argc: libc::c_int, argv: *mut *const libc::c_char) -> *mut libc::c_char;
236}
237unsafe extern "C" {
238    pub fn Dart_IsVMFlagSet(flag_name: *const libc::c_char) -> bool;
239}
240unsafe extern "C" {
241    pub fn Dart_CreateIsolateGroup(
242        script_uri: *const libc::c_char,
243        name: *const libc::c_char,
244        isolate_snapshot_data: *const u8,
245        isolate_snapshot_instructions: *const u8,
246        flags: *mut Dart_IsolateFlags,
247        isolate_group_data: *mut libc::c_void,
248        isolate_data: *mut libc::c_void,
249        error: *mut *mut libc::c_char,
250    ) -> Dart_Isolate;
251}
252unsafe extern "C" {
253    pub fn Dart_CreateIsolateInGroup(
254        group_member: Dart_Isolate,
255        name: *const libc::c_char,
256        shutdown_callback: Dart_IsolateShutdownCallback,
257        cleanup_callback: Dart_IsolateCleanupCallback,
258        child_isolate_data: *mut libc::c_void,
259        error: *mut *mut libc::c_char,
260    ) -> Dart_Isolate;
261}
262unsafe extern "C" {
263    pub fn Dart_CreateIsolateGroupFromKernel(
264        script_uri: *const libc::c_char,
265        name: *const libc::c_char,
266        kernel_buffer: *const u8,
267        kernel_buffer_size: isize,
268        flags: *mut Dart_IsolateFlags,
269        isolate_group_data: *mut libc::c_void,
270        isolate_data: *mut libc::c_void,
271        error: *mut *mut libc::c_char,
272    ) -> Dart_Isolate;
273}
274unsafe extern "C" {
275    pub fn Dart_ShutdownIsolate();
276}
277unsafe extern "C" {
278    pub fn Dart_CurrentIsolate() -> Dart_Isolate;
279}
280unsafe extern "C" {
281    pub fn Dart_CurrentIsolateData() -> *mut libc::c_void;
282}
283unsafe extern "C" {
284    pub fn Dart_IsolateData(isolate: Dart_Isolate) -> *mut libc::c_void;
285}
286unsafe extern "C" {
287    pub fn Dart_CurrentIsolateGroup() -> Dart_IsolateGroup;
288}
289unsafe extern "C" {
290    pub fn Dart_CurrentIsolateGroupData() -> *mut libc::c_void;
291}
292pub type Dart_IsolateGroupId = i64;
293unsafe extern "C" {
294    pub fn Dart_CurrentIsolateGroupId() -> Dart_IsolateGroupId;
295}
296unsafe extern "C" {
297    pub fn Dart_IsolateGroupData(isolate: Dart_Isolate) -> *mut libc::c_void;
298}
299unsafe extern "C" {
300    pub fn Dart_DebugName() -> Dart_Handle;
301}
302unsafe extern "C" {
303    pub fn Dart_DebugNameToCString() -> *const libc::c_char;
304}
305unsafe extern "C" {
306    pub fn Dart_IsolateServiceId(isolate: Dart_Isolate) -> *const libc::c_char;
307}
308unsafe extern "C" {
309    pub fn Dart_EnterIsolate(isolate: Dart_Isolate);
310}
311unsafe extern "C" {
312    pub fn Dart_KillIsolate(isolate: Dart_Isolate);
313}
314unsafe extern "C" {
315    pub fn Dart_NotifyIdle(deadline: i64);
316}
317pub type Dart_HeapSamplingReportCallback = ::core::option::Option<
318    unsafe extern "C" fn(context: *mut libc::c_void, data: *mut libc::c_void),
319>;
320pub type Dart_HeapSamplingCreateCallback = ::core::option::Option<
321    unsafe extern "C" fn(
322        isolate: Dart_Isolate,
323        isolate_group: Dart_IsolateGroup,
324        cls_name: *const libc::c_char,
325        allocation_size: isize,
326    ) -> *mut libc::c_void,
327>;
328pub type Dart_HeapSamplingDeleteCallback =
329    ::core::option::Option<unsafe extern "C" fn(data: *mut libc::c_void)>;
330unsafe extern "C" {
331    pub fn Dart_EnableHeapSampling();
332}
333unsafe extern "C" {
334    pub fn Dart_DisableHeapSampling();
335}
336unsafe extern "C" {
337    pub fn Dart_RegisterHeapSamplingCallback(
338        create_callback: Dart_HeapSamplingCreateCallback,
339        delete_callback: Dart_HeapSamplingDeleteCallback,
340    );
341}
342unsafe extern "C" {
343    pub fn Dart_ReportSurvivingAllocations(
344        callback: Dart_HeapSamplingReportCallback,
345        context: *mut libc::c_void,
346        force_gc: bool,
347    );
348}
349unsafe extern "C" {
350    pub fn Dart_SetHeapSamplingPeriod(bytes: isize);
351}
352unsafe extern "C" {
353    pub fn Dart_NotifyDestroyed();
354}
355unsafe extern "C" {
356    pub fn Dart_NotifyLowMemory();
357}
358pub const Dart_PerformanceMode_Dart_PerformanceMode_Default: Dart_PerformanceMode = 0;
359pub const Dart_PerformanceMode_Dart_PerformanceMode_Latency: Dart_PerformanceMode = 1;
360pub const Dart_PerformanceMode_Dart_PerformanceMode_Throughput: Dart_PerformanceMode = 2;
361pub const Dart_PerformanceMode_Dart_PerformanceMode_Memory: Dart_PerformanceMode = 3;
362pub type Dart_PerformanceMode = libc::c_uint;
363unsafe extern "C" {
364    pub fn Dart_SetPerformanceMode(mode: Dart_PerformanceMode) -> Dart_PerformanceMode;
365}
366unsafe extern "C" {
367    pub fn Dart_StartProfiling();
368}
369unsafe extern "C" {
370    pub fn Dart_StopProfiling();
371}
372unsafe extern "C" {
373    pub fn Dart_ThreadDisableProfiling();
374}
375unsafe extern "C" {
376    pub fn Dart_ThreadEnableProfiling();
377}
378unsafe extern "C" {
379    pub fn Dart_AddSymbols(
380        dso_name: *const libc::c_char,
381        buffer: *mut libc::c_void,
382        buffer_size: isize,
383    );
384}
385unsafe extern "C" {
386    pub fn Dart_ExitIsolate();
387}
388unsafe extern "C" {
389    pub fn Dart_CreateSnapshot(
390        vm_snapshot_data_buffer: *mut *mut u8,
391        vm_snapshot_data_size: *mut isize,
392        isolate_snapshot_data_buffer: *mut *mut u8,
393        isolate_snapshot_data_size: *mut isize,
394        is_core: bool,
395    ) -> Dart_Handle;
396}
397unsafe extern "C" {
398    pub fn Dart_IsKernel(buffer: *const u8, buffer_size: isize) -> bool;
399}
400unsafe extern "C" {
401    pub fn Dart_IsolateMakeRunnable(isolate: Dart_Isolate) -> *mut libc::c_char;
402}
403pub type Dart_Port = i64;
404#[repr(C)]
405#[derive(Debug, Copy, Clone)]
406pub struct Dart_PortEx {
407    pub port_id: i64,
408    pub origin_id: i64,
409}
410pub type Dart_MessageNotifyCallback =
411    ::core::option::Option<unsafe extern "C" fn(destination_isolate: Dart_Isolate)>;
412unsafe extern "C" {
413    pub fn Dart_SetMessageNotifyCallback(message_notify_callback: Dart_MessageNotifyCallback);
414}
415unsafe extern "C" {
416    pub fn Dart_GetMessageNotifyCallback() -> Dart_MessageNotifyCallback;
417}
418unsafe extern "C" {
419    pub fn Dart_ShouldPauseOnStart() -> bool;
420}
421unsafe extern "C" {
422    pub fn Dart_SetShouldPauseOnStart(should_pause: bool);
423}
424unsafe extern "C" {
425    pub fn Dart_IsPausedOnStart() -> bool;
426}
427unsafe extern "C" {
428    pub fn Dart_SetPausedOnStart(paused: bool);
429}
430unsafe extern "C" {
431    pub fn Dart_ShouldPauseOnExit() -> bool;
432}
433unsafe extern "C" {
434    pub fn Dart_SetShouldPauseOnExit(should_pause: bool);
435}
436unsafe extern "C" {
437    pub fn Dart_IsPausedOnExit() -> bool;
438}
439unsafe extern "C" {
440    pub fn Dart_SetPausedOnExit(paused: bool);
441}
442unsafe extern "C" {
443    pub fn Dart_SetStickyError(error: Dart_Handle);
444}
445unsafe extern "C" {
446    pub fn Dart_HasStickyError() -> bool;
447}
448unsafe extern "C" {
449    pub fn Dart_GetStickyError() -> Dart_Handle;
450}
451unsafe extern "C" {
452    pub fn Dart_HandleMessage() -> Dart_Handle;
453}
454unsafe extern "C" {
455    pub fn Dart_HandleServiceMessages() -> bool;
456}
457unsafe extern "C" {
458    pub fn Dart_HasServiceMessages() -> bool;
459}
460unsafe extern "C" {
461    pub fn Dart_RunLoop() -> Dart_Handle;
462}
463unsafe extern "C" {
464    pub fn Dart_RunLoopAsync(
465        errors_are_fatal: bool,
466        on_error_port: Dart_Port,
467        on_exit_port: Dart_Port,
468        error: *mut *mut libc::c_char,
469    ) -> bool;
470}
471unsafe extern "C" {
472    pub fn Dart_GetMainPortId() -> Dart_Port;
473}
474unsafe extern "C" {
475    pub fn Dart_HasLivePorts() -> bool;
476}
477unsafe extern "C" {
478    pub fn Dart_Post(port_id: Dart_Port, object: Dart_Handle) -> bool;
479}
480unsafe extern "C" {
481    pub fn Dart_NewSendPort(port_id: Dart_Port) -> Dart_Handle;
482}
483unsafe extern "C" {
484    pub fn Dart_NewSendPortEx(portex_id: Dart_PortEx) -> Dart_Handle;
485}
486unsafe extern "C" {
487    pub fn Dart_SendPortGetId(port: Dart_Handle, port_id: *mut Dart_Port) -> Dart_Handle;
488}
489unsafe extern "C" {
490    pub fn Dart_SendPortGetIdEx(port: Dart_Handle, portex_id: *mut Dart_PortEx) -> Dart_Handle;
491}
492unsafe extern "C" {
493    pub fn Dart_SetCurrentThreadOwnsIsolate();
494}
495unsafe extern "C" {
496    pub fn Dart_GetCurrentThreadOwnsIsolate(port: Dart_Port) -> bool;
497}
498unsafe extern "C" {
499    pub fn Dart_EnterScope();
500}
501unsafe extern "C" {
502    pub fn Dart_ExitScope();
503}
504unsafe extern "C" {
505    pub fn Dart_ScopeAllocate(size: isize) -> *mut u8;
506}
507unsafe extern "C" {
508    pub fn Dart_Null() -> Dart_Handle;
509}
510unsafe extern "C" {
511    pub fn Dart_IsNull(object: Dart_Handle) -> bool;
512}
513unsafe extern "C" {
514    pub fn Dart_EmptyString() -> Dart_Handle;
515}
516unsafe extern "C" {
517    pub fn Dart_TypeDynamic() -> Dart_Handle;
518}
519unsafe extern "C" {
520    pub fn Dart_TypeVoid() -> Dart_Handle;
521}
522unsafe extern "C" {
523    pub fn Dart_TypeNever() -> Dart_Handle;
524}
525unsafe extern "C" {
526    pub fn Dart_ObjectEquals(obj1: Dart_Handle, obj2: Dart_Handle, equal: *mut bool)
527        -> Dart_Handle;
528}
529unsafe extern "C" {
530    pub fn Dart_ObjectIsType(
531        object: Dart_Handle,
532        type_: Dart_Handle,
533        instanceof: *mut bool,
534    ) -> Dart_Handle;
535}
536unsafe extern "C" {
537    pub fn Dart_IsInstance(object: Dart_Handle) -> bool;
538}
539unsafe extern "C" {
540    pub fn Dart_IsNumber(object: Dart_Handle) -> bool;
541}
542unsafe extern "C" {
543    pub fn Dart_IsInteger(object: Dart_Handle) -> bool;
544}
545unsafe extern "C" {
546    pub fn Dart_IsDouble(object: Dart_Handle) -> bool;
547}
548unsafe extern "C" {
549    pub fn Dart_IsBoolean(object: Dart_Handle) -> bool;
550}
551unsafe extern "C" {
552    pub fn Dart_IsString(object: Dart_Handle) -> bool;
553}
554unsafe extern "C" {
555    pub fn Dart_IsStringLatin1(object: Dart_Handle) -> bool;
556}
557unsafe extern "C" {
558    pub fn Dart_IsList(object: Dart_Handle) -> bool;
559}
560unsafe extern "C" {
561    pub fn Dart_IsMap(object: Dart_Handle) -> bool;
562}
563unsafe extern "C" {
564    pub fn Dart_IsLibrary(object: Dart_Handle) -> bool;
565}
566unsafe extern "C" {
567    pub fn Dart_IsType(handle: Dart_Handle) -> bool;
568}
569unsafe extern "C" {
570    pub fn Dart_IsFunction(handle: Dart_Handle) -> bool;
571}
572unsafe extern "C" {
573    pub fn Dart_IsVariable(handle: Dart_Handle) -> bool;
574}
575unsafe extern "C" {
576    pub fn Dart_IsTypeVariable(handle: Dart_Handle) -> bool;
577}
578unsafe extern "C" {
579    pub fn Dart_IsClosure(object: Dart_Handle) -> bool;
580}
581unsafe extern "C" {
582    pub fn Dart_IsTypedData(object: Dart_Handle) -> bool;
583}
584unsafe extern "C" {
585    pub fn Dart_IsByteBuffer(object: Dart_Handle) -> bool;
586}
587unsafe extern "C" {
588    pub fn Dart_IsFuture(object: Dart_Handle) -> bool;
589}
590unsafe extern "C" {
591    pub fn Dart_InstanceGetType(instance: Dart_Handle) -> Dart_Handle;
592}
593unsafe extern "C" {
594    pub fn Dart_ClassName(cls_type: Dart_Handle) -> Dart_Handle;
595}
596unsafe extern "C" {
597    pub fn Dart_FunctionName(function: Dart_Handle) -> Dart_Handle;
598}
599unsafe extern "C" {
600    pub fn Dart_FunctionOwner(function: Dart_Handle) -> Dart_Handle;
601}
602unsafe extern "C" {
603    pub fn Dart_FunctionIsStatic(function: Dart_Handle, is_static: *mut bool) -> Dart_Handle;
604}
605unsafe extern "C" {
606    pub fn Dart_IsTearOff(object: Dart_Handle) -> bool;
607}
608unsafe extern "C" {
609    pub fn Dart_ClosureFunction(closure: Dart_Handle) -> Dart_Handle;
610}
611unsafe extern "C" {
612    pub fn Dart_ClassLibrary(cls_type: Dart_Handle) -> Dart_Handle;
613}
614unsafe extern "C" {
615    pub fn Dart_IntegerFitsIntoInt64(integer: Dart_Handle, fits: *mut bool) -> Dart_Handle;
616}
617unsafe extern "C" {
618    pub fn Dart_IntegerFitsIntoUint64(integer: Dart_Handle, fits: *mut bool) -> Dart_Handle;
619}
620unsafe extern "C" {
621    pub fn Dart_NewInteger(value: i64) -> Dart_Handle;
622}
623unsafe extern "C" {
624    pub fn Dart_NewIntegerFromUint64(value: u64) -> Dart_Handle;
625}
626unsafe extern "C" {
627    pub fn Dart_NewIntegerFromHexCString(value: *const libc::c_char) -> Dart_Handle;
628}
629unsafe extern "C" {
630    pub fn Dart_IntegerToInt64(integer: Dart_Handle, value: *mut i64) -> Dart_Handle;
631}
632unsafe extern "C" {
633    pub fn Dart_IntegerToUint64(integer: Dart_Handle, value: *mut u64) -> Dart_Handle;
634}
635unsafe extern "C" {
636    pub fn Dart_IntegerToHexCString(
637        integer: Dart_Handle,
638        value: *mut *const libc::c_char,
639    ) -> Dart_Handle;
640}
641unsafe extern "C" {
642    pub fn Dart_NewDouble(value: f64) -> Dart_Handle;
643}
644unsafe extern "C" {
645    pub fn Dart_DoubleValue(double_obj: Dart_Handle, value: *mut f64) -> Dart_Handle;
646}
647unsafe extern "C" {
648    pub fn Dart_GetStaticMethodClosure(
649        library: Dart_Handle,
650        cls_type: Dart_Handle,
651        function_name: Dart_Handle,
652    ) -> Dart_Handle;
653}
654unsafe extern "C" {
655    pub fn Dart_True() -> Dart_Handle;
656}
657unsafe extern "C" {
658    pub fn Dart_False() -> Dart_Handle;
659}
660unsafe extern "C" {
661    pub fn Dart_NewBoolean(value: bool) -> Dart_Handle;
662}
663unsafe extern "C" {
664    pub fn Dart_BooleanValue(boolean_obj: Dart_Handle, value: *mut bool) -> Dart_Handle;
665}
666unsafe extern "C" {
667    pub fn Dart_StringLength(str_: Dart_Handle, length: *mut isize) -> Dart_Handle;
668}
669unsafe extern "C" {
670    pub fn Dart_StringUTF8Length(str_: Dart_Handle, length: *mut isize) -> Dart_Handle;
671}
672unsafe extern "C" {
673    pub fn Dart_NewStringFromCString(str_: *const libc::c_char) -> Dart_Handle;
674}
675unsafe extern "C" {
676    pub fn Dart_NewStringFromUTF8(utf8_array: *const u8, length: isize) -> Dart_Handle;
677}
678unsafe extern "C" {
679    pub fn Dart_NewStringFromUTF16(utf16_array: *const u16, length: isize) -> Dart_Handle;
680}
681unsafe extern "C" {
682    pub fn Dart_NewStringFromUTF32(utf32_array: *const i32, length: isize) -> Dart_Handle;
683}
684unsafe extern "C" {
685    pub fn Dart_StringToCString(str_: Dart_Handle, cstr: *mut *const libc::c_char) -> Dart_Handle;
686}
687unsafe extern "C" {
688    pub fn Dart_StringToUTF8(
689        str_: Dart_Handle,
690        utf8_array: *mut *mut u8,
691        length: *mut isize,
692    ) -> Dart_Handle;
693}
694unsafe extern "C" {
695    pub fn Dart_CopyUTF8EncodingOfString(
696        str_: Dart_Handle,
697        utf8_array: *mut u8,
698        length: isize,
699    ) -> Dart_Handle;
700}
701unsafe extern "C" {
702    pub fn Dart_StringToLatin1(
703        str_: Dart_Handle,
704        latin1_array: *mut u8,
705        length: *mut isize,
706    ) -> Dart_Handle;
707}
708unsafe extern "C" {
709    pub fn Dart_StringToUTF16(
710        str_: Dart_Handle,
711        utf16_array: *mut u16,
712        length: *mut isize,
713    ) -> Dart_Handle;
714}
715unsafe extern "C" {
716    pub fn Dart_StringStorageSize(str_: Dart_Handle, size: *mut isize) -> Dart_Handle;
717}
718unsafe extern "C" {
719    pub fn Dart_StringGetProperties(
720        str_: Dart_Handle,
721        char_size: *mut isize,
722        str_len: *mut isize,
723        peer: *mut *mut libc::c_void,
724    ) -> Dart_Handle;
725}
726unsafe extern "C" {
727    pub fn Dart_NewList(length: isize) -> Dart_Handle;
728}
729unsafe extern "C" {
730    pub fn Dart_NewListOfType(element_type: Dart_Handle, length: isize) -> Dart_Handle;
731}
732unsafe extern "C" {
733    pub fn Dart_NewListOfTypeFilled(
734        element_type: Dart_Handle,
735        fill_object: Dart_Handle,
736        length: isize,
737    ) -> Dart_Handle;
738}
739unsafe extern "C" {
740    pub fn Dart_ListLength(list: Dart_Handle, length: *mut isize) -> Dart_Handle;
741}
742unsafe extern "C" {
743    pub fn Dart_ListGetAt(list: Dart_Handle, index: isize) -> Dart_Handle;
744}
745unsafe extern "C" {
746    pub fn Dart_ListGetRange(
747        list: Dart_Handle,
748        offset: isize,
749        length: isize,
750        result: *mut Dart_Handle,
751    ) -> Dart_Handle;
752}
753unsafe extern "C" {
754    pub fn Dart_ListSetAt(list: Dart_Handle, index: isize, value: Dart_Handle) -> Dart_Handle;
755}
756unsafe extern "C" {
757    pub fn Dart_ListGetAsBytes(
758        list: Dart_Handle,
759        offset: isize,
760        native_array: *mut u8,
761        length: isize,
762    ) -> Dart_Handle;
763}
764unsafe extern "C" {
765    pub fn Dart_ListSetAsBytes(
766        list: Dart_Handle,
767        offset: isize,
768        native_array: *const u8,
769        length: isize,
770    ) -> Dart_Handle;
771}
772unsafe extern "C" {
773    pub fn Dart_MapGetAt(map: Dart_Handle, key: Dart_Handle) -> Dart_Handle;
774}
775unsafe extern "C" {
776    pub fn Dart_MapContainsKey(map: Dart_Handle, key: Dart_Handle) -> Dart_Handle;
777}
778unsafe extern "C" {
779    pub fn Dart_MapKeys(map: Dart_Handle) -> Dart_Handle;
780}
781pub const Dart_TypedData_Type_Dart_TypedData_kByteData: Dart_TypedData_Type = 0;
782pub const Dart_TypedData_Type_Dart_TypedData_kInt8: Dart_TypedData_Type = 1;
783pub const Dart_TypedData_Type_Dart_TypedData_kUint8: Dart_TypedData_Type = 2;
784pub const Dart_TypedData_Type_Dart_TypedData_kUint8Clamped: Dart_TypedData_Type = 3;
785pub const Dart_TypedData_Type_Dart_TypedData_kInt16: Dart_TypedData_Type = 4;
786pub const Dart_TypedData_Type_Dart_TypedData_kUint16: Dart_TypedData_Type = 5;
787pub const Dart_TypedData_Type_Dart_TypedData_kInt32: Dart_TypedData_Type = 6;
788pub const Dart_TypedData_Type_Dart_TypedData_kUint32: Dart_TypedData_Type = 7;
789pub const Dart_TypedData_Type_Dart_TypedData_kInt64: Dart_TypedData_Type = 8;
790pub const Dart_TypedData_Type_Dart_TypedData_kUint64: Dart_TypedData_Type = 9;
791pub const Dart_TypedData_Type_Dart_TypedData_kFloat32: Dart_TypedData_Type = 10;
792pub const Dart_TypedData_Type_Dart_TypedData_kFloat64: Dart_TypedData_Type = 11;
793pub const Dart_TypedData_Type_Dart_TypedData_kInt32x4: Dart_TypedData_Type = 12;
794pub const Dart_TypedData_Type_Dart_TypedData_kFloat32x4: Dart_TypedData_Type = 13;
795pub const Dart_TypedData_Type_Dart_TypedData_kFloat64x2: Dart_TypedData_Type = 14;
796pub const Dart_TypedData_Type_Dart_TypedData_kInvalid: Dart_TypedData_Type = 15;
797pub type Dart_TypedData_Type = libc::c_uint;
798unsafe extern "C" {
799    pub fn Dart_GetTypeOfTypedData(object: Dart_Handle) -> Dart_TypedData_Type;
800}
801unsafe extern "C" {
802    pub fn Dart_GetTypeOfExternalTypedData(object: Dart_Handle) -> Dart_TypedData_Type;
803}
804unsafe extern "C" {
805    pub fn Dart_NewTypedData(type_: Dart_TypedData_Type, length: isize) -> Dart_Handle;
806}
807unsafe extern "C" {
808    pub fn Dart_NewExternalTypedData(
809        type_: Dart_TypedData_Type,
810        data: *mut libc::c_void,
811        length: isize,
812    ) -> Dart_Handle;
813}
814unsafe extern "C" {
815    pub fn Dart_NewExternalTypedDataWithFinalizer(
816        type_: Dart_TypedData_Type,
817        data: *mut libc::c_void,
818        length: isize,
819        peer: *mut libc::c_void,
820        external_allocation_size: isize,
821        callback: Dart_HandleFinalizer,
822    ) -> Dart_Handle;
823}
824unsafe extern "C" {
825    pub fn Dart_NewUnmodifiableExternalTypedDataWithFinalizer(
826        type_: Dart_TypedData_Type,
827        data: *const libc::c_void,
828        length: isize,
829        peer: *mut libc::c_void,
830        external_allocation_size: isize,
831        callback: Dart_HandleFinalizer,
832    ) -> Dart_Handle;
833}
834unsafe extern "C" {
835    pub fn Dart_NewByteBuffer(typed_data: Dart_Handle) -> Dart_Handle;
836}
837unsafe extern "C" {
838    pub fn Dart_TypedDataAcquireData(
839        object: Dart_Handle,
840        type_: *mut Dart_TypedData_Type,
841        data: *mut *mut libc::c_void,
842        len: *mut isize,
843    ) -> Dart_Handle;
844}
845unsafe extern "C" {
846    pub fn Dart_TypedDataReleaseData(object: Dart_Handle) -> Dart_Handle;
847}
848unsafe extern "C" {
849    pub fn Dart_GetDataFromByteBuffer(byte_buffer: Dart_Handle) -> Dart_Handle;
850}
851unsafe extern "C" {
852    pub fn Dart_New(
853        type_: Dart_Handle,
854        constructor_name: Dart_Handle,
855        number_of_arguments: libc::c_int,
856        arguments: *mut Dart_Handle,
857    ) -> Dart_Handle;
858}
859unsafe extern "C" {
860    pub fn Dart_Allocate(type_: Dart_Handle) -> Dart_Handle;
861}
862unsafe extern "C" {
863    pub fn Dart_AllocateWithNativeFields(
864        type_: Dart_Handle,
865        num_native_fields: isize,
866        native_fields: *const isize,
867    ) -> Dart_Handle;
868}
869unsafe extern "C" {
870    pub fn Dart_Invoke(
871        target: Dart_Handle,
872        name: Dart_Handle,
873        number_of_arguments: libc::c_int,
874        arguments: *mut Dart_Handle,
875    ) -> Dart_Handle;
876}
877unsafe extern "C" {
878    pub fn Dart_InvokeClosure(
879        closure: Dart_Handle,
880        number_of_arguments: libc::c_int,
881        arguments: *mut Dart_Handle,
882    ) -> Dart_Handle;
883}
884unsafe extern "C" {
885    pub fn Dart_InvokeConstructor(
886        object: Dart_Handle,
887        name: Dart_Handle,
888        number_of_arguments: libc::c_int,
889        arguments: *mut Dart_Handle,
890    ) -> Dart_Handle;
891}
892unsafe extern "C" {
893    pub fn Dart_GetField(container: Dart_Handle, name: Dart_Handle) -> Dart_Handle;
894}
895unsafe extern "C" {
896    pub fn Dart_SetField(
897        container: Dart_Handle,
898        name: Dart_Handle,
899        value: Dart_Handle,
900    ) -> Dart_Handle;
901}
902unsafe extern "C" {
903    pub fn Dart_ThrowException(exception: Dart_Handle) -> Dart_Handle;
904}
905unsafe extern "C" {
906    pub fn Dart_ReThrowException(exception: Dart_Handle, stacktrace: Dart_Handle) -> Dart_Handle;
907}
908unsafe extern "C" {
909    pub fn Dart_GetNativeInstanceFieldCount(
910        obj: Dart_Handle,
911        count: *mut libc::c_int,
912    ) -> Dart_Handle;
913}
914unsafe extern "C" {
915    pub fn Dart_GetNativeInstanceField(
916        obj: Dart_Handle,
917        index: libc::c_int,
918        value: *mut isize,
919    ) -> Dart_Handle;
920}
921unsafe extern "C" {
922    pub fn Dart_SetNativeInstanceField(
923        obj: Dart_Handle,
924        index: libc::c_int,
925        value: isize,
926    ) -> Dart_Handle;
927}
928#[repr(C)]
929#[derive(Debug, Copy, Clone)]
930pub struct _Dart_NativeArguments {
931    _unused: [u8; 0],
932}
933pub type Dart_NativeArguments = *mut _Dart_NativeArguments;
934unsafe extern "C" {
935    pub fn Dart_GetNativeIsolateGroupData(args: Dart_NativeArguments) -> *mut libc::c_void;
936}
937pub const Dart_NativeArgument_Type_Dart_NativeArgument_kBool: Dart_NativeArgument_Type = 0;
938pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInt32: Dart_NativeArgument_Type = 1;
939pub const Dart_NativeArgument_Type_Dart_NativeArgument_kUint32: Dart_NativeArgument_Type = 2;
940pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInt64: Dart_NativeArgument_Type = 3;
941pub const Dart_NativeArgument_Type_Dart_NativeArgument_kUint64: Dart_NativeArgument_Type = 4;
942pub const Dart_NativeArgument_Type_Dart_NativeArgument_kDouble: Dart_NativeArgument_Type = 5;
943pub const Dart_NativeArgument_Type_Dart_NativeArgument_kString: Dart_NativeArgument_Type = 6;
944pub const Dart_NativeArgument_Type_Dart_NativeArgument_kInstance: Dart_NativeArgument_Type = 7;
945pub const Dart_NativeArgument_Type_Dart_NativeArgument_kNativeFields: Dart_NativeArgument_Type = 8;
946pub type Dart_NativeArgument_Type = libc::c_uint;
947#[repr(C)]
948#[derive(Debug, Copy, Clone)]
949pub struct _Dart_NativeArgument_Descriptor {
950    pub type_: u8,
951    pub index: u8,
952}
953pub type Dart_NativeArgument_Descriptor = _Dart_NativeArgument_Descriptor;
954#[repr(C)]
955#[derive(Copy, Clone)]
956pub union _Dart_NativeArgument_Value {
957    pub as_bool: bool,
958    pub as_int32: i32,
959    pub as_uint32: u32,
960    pub as_int64: i64,
961    pub as_uint64: u64,
962    pub as_double: f64,
963    pub as_string: _Dart_NativeArgument_Value__bindgen_ty_1,
964    pub as_native_fields: _Dart_NativeArgument_Value__bindgen_ty_2,
965    pub as_instance: Dart_Handle,
966}
967#[repr(C)]
968#[derive(Debug, Copy, Clone)]
969pub struct _Dart_NativeArgument_Value__bindgen_ty_1 {
970    pub dart_str: Dart_Handle,
971    pub peer: *mut libc::c_void,
972}
973#[repr(C)]
974#[derive(Debug, Copy, Clone)]
975pub struct _Dart_NativeArgument_Value__bindgen_ty_2 {
976    pub num_fields: isize,
977    pub values: *mut isize,
978}
979pub type Dart_NativeArgument_Value = _Dart_NativeArgument_Value;
980unsafe extern "C" {
981    pub fn Dart_GetNativeArguments(
982        args: Dart_NativeArguments,
983        num_arguments: libc::c_int,
984        arg_descriptors: *const Dart_NativeArgument_Descriptor,
985        arg_values: *mut Dart_NativeArgument_Value,
986    ) -> Dart_Handle;
987}
988unsafe extern "C" {
989    pub fn Dart_GetNativeArgument(args: Dart_NativeArguments, index: libc::c_int) -> Dart_Handle;
990}
991unsafe extern "C" {
992    pub fn Dart_GetNativeArgumentCount(args: Dart_NativeArguments) -> libc::c_int;
993}
994unsafe extern "C" {
995    pub fn Dart_GetNativeFieldsOfArgument(
996        args: Dart_NativeArguments,
997        arg_index: libc::c_int,
998        num_fields: libc::c_int,
999        field_values: *mut isize,
1000    ) -> Dart_Handle;
1001}
1002unsafe extern "C" {
1003    pub fn Dart_GetNativeReceiver(args: Dart_NativeArguments, value: *mut isize) -> Dart_Handle;
1004}
1005unsafe extern "C" {
1006    pub fn Dart_GetNativeStringArgument(
1007        args: Dart_NativeArguments,
1008        arg_index: libc::c_int,
1009        peer: *mut *mut libc::c_void,
1010    ) -> Dart_Handle;
1011}
1012unsafe extern "C" {
1013    pub fn Dart_GetNativeIntegerArgument(
1014        args: Dart_NativeArguments,
1015        index: libc::c_int,
1016        value: *mut i64,
1017    ) -> Dart_Handle;
1018}
1019unsafe extern "C" {
1020    pub fn Dart_GetNativeBooleanArgument(
1021        args: Dart_NativeArguments,
1022        index: libc::c_int,
1023        value: *mut bool,
1024    ) -> Dart_Handle;
1025}
1026unsafe extern "C" {
1027    pub fn Dart_GetNativeDoubleArgument(
1028        args: Dart_NativeArguments,
1029        index: libc::c_int,
1030        value: *mut f64,
1031    ) -> Dart_Handle;
1032}
1033unsafe extern "C" {
1034    pub fn Dart_SetReturnValue(args: Dart_NativeArguments, retval: Dart_Handle);
1035}
1036unsafe extern "C" {
1037    pub fn Dart_SetWeakHandleReturnValue(
1038        args: Dart_NativeArguments,
1039        rval: Dart_WeakPersistentHandle,
1040    );
1041}
1042unsafe extern "C" {
1043    pub fn Dart_SetBooleanReturnValue(args: Dart_NativeArguments, retval: bool);
1044}
1045unsafe extern "C" {
1046    pub fn Dart_SetIntegerReturnValue(args: Dart_NativeArguments, retval: i64);
1047}
1048unsafe extern "C" {
1049    pub fn Dart_SetDoubleReturnValue(args: Dart_NativeArguments, retval: f64);
1050}
1051pub type Dart_NativeFunction =
1052    ::core::option::Option<unsafe extern "C" fn(arguments: Dart_NativeArguments)>;
1053pub type Dart_NativeEntryResolver = ::core::option::Option<
1054    unsafe extern "C" fn(
1055        name: Dart_Handle,
1056        num_of_arguments: libc::c_int,
1057        auto_setup_scope: *mut bool,
1058    ) -> Dart_NativeFunction,
1059>;
1060pub type Dart_NativeEntrySymbol =
1061    ::core::option::Option<unsafe extern "C" fn(nf: Dart_NativeFunction) -> *const u8>;
1062pub type Dart_FfiNativeResolver = ::core::option::Option<
1063    unsafe extern "C" fn(name: *const libc::c_char, args_n: usize) -> *mut libc::c_void,
1064>;
1065pub type Dart_EnvironmentCallback =
1066    ::core::option::Option<unsafe extern "C" fn(name: Dart_Handle) -> Dart_Handle>;
1067unsafe extern "C" {
1068    pub fn Dart_SetEnvironmentCallback(callback: Dart_EnvironmentCallback) -> Dart_Handle;
1069}
1070unsafe extern "C" {
1071    pub fn Dart_SetNativeResolver(
1072        library: Dart_Handle,
1073        resolver: Dart_NativeEntryResolver,
1074        symbol: Dart_NativeEntrySymbol,
1075    ) -> Dart_Handle;
1076}
1077unsafe extern "C" {
1078    pub fn Dart_GetNativeResolver(
1079        library: Dart_Handle,
1080        resolver: *mut Dart_NativeEntryResolver,
1081    ) -> Dart_Handle;
1082}
1083unsafe extern "C" {
1084    pub fn Dart_GetNativeSymbol(
1085        library: Dart_Handle,
1086        resolver: *mut Dart_NativeEntrySymbol,
1087    ) -> Dart_Handle;
1088}
1089unsafe extern "C" {
1090    pub fn Dart_SetFfiNativeResolver(
1091        library: Dart_Handle,
1092        resolver: Dart_FfiNativeResolver,
1093    ) -> Dart_Handle;
1094}
1095pub type Dart_NativeAssetsDlopenCallback = ::core::option::Option<
1096    unsafe extern "C" fn(
1097        path: *const libc::c_char,
1098        error: *mut *mut libc::c_char,
1099    ) -> *mut libc::c_void,
1100>;
1101pub type Dart_NativeAssetsDlopenCallbackNoPath = ::core::option::Option<
1102    unsafe extern "C" fn(error: *mut *mut libc::c_char) -> *mut libc::c_void,
1103>;
1104pub type Dart_NativeAssetsDlopenAssetId = ::core::option::Option<
1105    unsafe extern "C" fn(
1106        asset_id: *const libc::c_char,
1107        error: *mut *mut libc::c_char,
1108    ) -> *mut libc::c_void,
1109>;
1110pub type Dart_NativeAssetsAvailableAssets =
1111    ::core::option::Option<unsafe extern "C" fn() -> *mut libc::c_char>;
1112pub type Dart_NativeAssetsDlsymCallback = ::core::option::Option<
1113    unsafe extern "C" fn(
1114        handle: *mut libc::c_void,
1115        symbol: *const libc::c_char,
1116        error: *mut *mut libc::c_char,
1117    ) -> *mut libc::c_void,
1118>;
1119#[repr(C)]
1120#[derive(Debug, Copy, Clone)]
1121pub struct NativeAssetsApi {
1122    pub dlopen_absolute: Dart_NativeAssetsDlopenCallback,
1123    pub dlopen_relative: Dart_NativeAssetsDlopenCallback,
1124    pub dlopen_system: Dart_NativeAssetsDlopenCallback,
1125    pub dlopen_process: Dart_NativeAssetsDlopenCallbackNoPath,
1126    pub dlopen_executable: Dart_NativeAssetsDlopenCallbackNoPath,
1127    pub dlsym: Dart_NativeAssetsDlsymCallback,
1128    pub dlopen: Dart_NativeAssetsDlopenAssetId,
1129    pub available_assets: Dart_NativeAssetsAvailableAssets,
1130}
1131unsafe extern "C" {
1132    pub fn Dart_InitializeNativeAssetsResolver(native_assets_api: *mut NativeAssetsApi);
1133}
1134pub const Dart_LibraryTag_Dart_kCanonicalizeUrl: Dart_LibraryTag = 0;
1135pub const Dart_LibraryTag_Dart_kImportTag: Dart_LibraryTag = 1;
1136pub const Dart_LibraryTag_Dart_kKernelTag: Dart_LibraryTag = 2;
1137pub type Dart_LibraryTag = libc::c_uint;
1138pub type Dart_LibraryTagHandler = ::core::option::Option<
1139    unsafe extern "C" fn(
1140        tag: Dart_LibraryTag,
1141        library_or_package_map_url: Dart_Handle,
1142        url: Dart_Handle,
1143    ) -> Dart_Handle,
1144>;
1145unsafe extern "C" {
1146    pub fn Dart_SetLibraryTagHandler(handler: Dart_LibraryTagHandler) -> Dart_Handle;
1147}
1148pub type Dart_DeferredLoadHandler =
1149    ::core::option::Option<unsafe extern "C" fn(loading_unit_id: isize) -> Dart_Handle>;
1150unsafe extern "C" {
1151    pub fn Dart_SetDeferredLoadHandler(handler: Dart_DeferredLoadHandler) -> Dart_Handle;
1152}
1153unsafe extern "C" {
1154    pub fn Dart_DeferredLoadComplete(
1155        loading_unit_id: isize,
1156        snapshot_data: *const u8,
1157        snapshot_instructions: *const u8,
1158    ) -> Dart_Handle;
1159}
1160unsafe extern "C" {
1161    pub fn Dart_DeferredLoadCompleteError(
1162        loading_unit_id: isize,
1163        error_message: *const libc::c_char,
1164        transient: bool,
1165    ) -> Dart_Handle;
1166}
1167unsafe extern "C" {
1168    pub fn Dart_LoadScriptFromKernel(kernel_buffer: *const u8, kernel_size: isize) -> Dart_Handle;
1169}
1170unsafe extern "C" {
1171    pub fn Dart_RootLibrary() -> Dart_Handle;
1172}
1173unsafe extern "C" {
1174    pub fn Dart_SetRootLibrary(library: Dart_Handle) -> Dart_Handle;
1175}
1176unsafe extern "C" {
1177    pub fn Dart_GetType(
1178        library: Dart_Handle,
1179        class_name: Dart_Handle,
1180        number_of_type_arguments: isize,
1181        type_arguments: *mut Dart_Handle,
1182    ) -> Dart_Handle;
1183}
1184unsafe extern "C" {
1185    pub fn Dart_GetNullableType(
1186        library: Dart_Handle,
1187        class_name: Dart_Handle,
1188        number_of_type_arguments: isize,
1189        type_arguments: *mut Dart_Handle,
1190    ) -> Dart_Handle;
1191}
1192unsafe extern "C" {
1193    pub fn Dart_GetNonNullableType(
1194        library: Dart_Handle,
1195        class_name: Dart_Handle,
1196        number_of_type_arguments: isize,
1197        type_arguments: *mut Dart_Handle,
1198    ) -> Dart_Handle;
1199}
1200unsafe extern "C" {
1201    pub fn Dart_TypeToNullableType(type_: Dart_Handle) -> Dart_Handle;
1202}
1203unsafe extern "C" {
1204    pub fn Dart_TypeToNonNullableType(type_: Dart_Handle) -> Dart_Handle;
1205}
1206unsafe extern "C" {
1207    pub fn Dart_IsNullableType(type_: Dart_Handle, result: *mut bool) -> Dart_Handle;
1208}
1209unsafe extern "C" {
1210    pub fn Dart_IsNonNullableType(type_: Dart_Handle, result: *mut bool) -> Dart_Handle;
1211}
1212unsafe extern "C" {
1213    pub fn Dart_GetClass(library: Dart_Handle, class_name: Dart_Handle) -> Dart_Handle;
1214}
1215unsafe extern "C" {
1216    pub fn Dart_LibraryUrl(library: Dart_Handle) -> Dart_Handle;
1217}
1218unsafe extern "C" {
1219    pub fn Dart_LibraryResolvedUrl(library: Dart_Handle) -> Dart_Handle;
1220}
1221unsafe extern "C" {
1222    pub fn Dart_GetLoadedLibraries() -> Dart_Handle;
1223}
1224unsafe extern "C" {
1225    pub fn Dart_LookupLibrary(url: Dart_Handle) -> Dart_Handle;
1226}
1227unsafe extern "C" {
1228    pub fn Dart_LibraryHandleError(library: Dart_Handle, error: Dart_Handle) -> Dart_Handle;
1229}
1230unsafe extern "C" {
1231    pub fn Dart_LoadLibraryFromKernel(
1232        kernel_buffer: *const u8,
1233        kernel_buffer_size: isize,
1234    ) -> Dart_Handle;
1235}
1236unsafe extern "C" {
1237    pub fn Dart_LoadLibrary(kernel_buffer: Dart_Handle) -> Dart_Handle;
1238}
1239unsafe extern "C" {
1240    pub fn Dart_FinalizeLoading(complete_futures: bool) -> Dart_Handle;
1241}
1242unsafe extern "C" {
1243    pub fn Dart_GetPeer(object: Dart_Handle, peer: *mut *mut libc::c_void) -> Dart_Handle;
1244}
1245unsafe extern "C" {
1246    pub fn Dart_SetPeer(object: Dart_Handle, peer: *mut libc::c_void) -> Dart_Handle;
1247}
1248pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Unknown:
1249    Dart_KernelCompilationStatus = -1;
1250pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Ok:
1251    Dart_KernelCompilationStatus = 0;
1252pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Error:
1253    Dart_KernelCompilationStatus = 1;
1254pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Crash:
1255    Dart_KernelCompilationStatus = 2;
1256pub const Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_MsgFailed:
1257    Dart_KernelCompilationStatus = 3;
1258pub type Dart_KernelCompilationStatus = libc::c_int;
1259#[repr(C)]
1260#[derive(Debug, Copy, Clone)]
1261pub struct Dart_KernelCompilationResult {
1262    pub status: Dart_KernelCompilationStatus,
1263    pub error: *mut libc::c_char,
1264    pub kernel: *mut u8,
1265    pub kernel_size: isize,
1266}
1267pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Error:
1268    Dart_KernelCompilationVerbosityLevel = 0;
1269pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Warning:
1270    Dart_KernelCompilationVerbosityLevel = 1;
1271pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Info:
1272    Dart_KernelCompilationVerbosityLevel = 2;
1273pub const Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_All:
1274    Dart_KernelCompilationVerbosityLevel = 3;
1275pub type Dart_KernelCompilationVerbosityLevel = libc::c_uint;
1276unsafe extern "C" {
1277    pub fn Dart_IsKernelIsolate(isolate: Dart_Isolate) -> bool;
1278}
1279unsafe extern "C" {
1280    pub fn Dart_KernelIsolateIsRunning() -> bool;
1281}
1282unsafe extern "C" {
1283    pub fn Dart_KernelPort() -> Dart_Port;
1284}
1285unsafe extern "C" {
1286    pub fn Dart_CompileToKernel(
1287        script_uri: *const libc::c_char,
1288        platform_kernel: *const u8,
1289        platform_kernel_size: isize,
1290        incremental_compile: bool,
1291        snapshot_compile: bool,
1292        embed_sources: bool,
1293        package_config: *const libc::c_char,
1294        verbosity: Dart_KernelCompilationVerbosityLevel,
1295    ) -> Dart_KernelCompilationResult;
1296}
1297#[repr(C)]
1298#[derive(Debug, Copy, Clone)]
1299pub struct Dart_SourceFile {
1300    pub uri: *const libc::c_char,
1301    pub source: *const libc::c_char,
1302}
1303unsafe extern "C" {
1304    pub fn Dart_KernelListDependencies() -> Dart_KernelCompilationResult;
1305}
1306unsafe extern "C" {
1307    pub fn Dart_SetDartLibrarySourcesKernel(
1308        platform_kernel: *const u8,
1309        platform_kernel_size: isize,
1310    );
1311}
1312unsafe extern "C" {
1313    pub fn Dart_DetectNullSafety(
1314        script_uri: *const libc::c_char,
1315        package_config: *const libc::c_char,
1316        original_working_directory: *const libc::c_char,
1317        snapshot_data: *const u8,
1318        snapshot_instructions: *const u8,
1319        kernel_buffer: *const u8,
1320        kernel_buffer_size: isize,
1321    ) -> bool;
1322}
1323unsafe extern "C" {
1324    pub fn Dart_IsServiceIsolate(isolate: Dart_Isolate) -> bool;
1325}
1326unsafe extern "C" {
1327    pub fn Dart_WriteProfileToTimeline(main_port: Dart_Port, error: *mut *mut libc::c_char)
1328        -> bool;
1329}
1330unsafe extern "C" {
1331    pub fn Dart_Precompile() -> Dart_Handle;
1332}
1333pub type Dart_CreateLoadingUnitCallback = ::core::option::Option<
1334    unsafe extern "C" fn(
1335        callback_data: *mut libc::c_void,
1336        loading_unit_id: isize,
1337        write_callback_data: *mut *mut libc::c_void,
1338        write_debug_callback_data: *mut *mut libc::c_void,
1339    ),
1340>;
1341pub type Dart_StreamingWriteCallback = ::core::option::Option<
1342    unsafe extern "C" fn(callback_data: *mut libc::c_void, buffer: *const u8, size: isize),
1343>;
1344pub type Dart_StreamingCloseCallback =
1345    ::core::option::Option<unsafe extern "C" fn(callback_data: *mut libc::c_void)>;
1346unsafe extern "C" {
1347    pub fn Dart_LoadingUnitLibraryUris(loading_unit_id: isize) -> Dart_Handle;
1348}
1349unsafe extern "C" {
1350    pub fn Dart_CreateAppAOTSnapshotAsAssembly(
1351        callback: Dart_StreamingWriteCallback,
1352        callback_data: *mut libc::c_void,
1353        stripped: bool,
1354        debug_callback_data: *mut libc::c_void,
1355    ) -> Dart_Handle;
1356}
1357unsafe extern "C" {
1358    pub fn Dart_CreateAppAOTSnapshotAsAssemblies(
1359        next_callback: Dart_CreateLoadingUnitCallback,
1360        next_callback_data: *mut libc::c_void,
1361        stripped: bool,
1362        write_callback: Dart_StreamingWriteCallback,
1363        close_callback: Dart_StreamingCloseCallback,
1364    ) -> Dart_Handle;
1365}
1366unsafe extern "C" {
1367    pub fn Dart_CreateAppAOTSnapshotAsElf(
1368        callback: Dart_StreamingWriteCallback,
1369        callback_data: *mut libc::c_void,
1370        stripped: bool,
1371        debug_callback_data: *mut libc::c_void,
1372    ) -> Dart_Handle;
1373}
1374unsafe extern "C" {
1375    pub fn Dart_CreateAppAOTSnapshotAsElfs(
1376        next_callback: Dart_CreateLoadingUnitCallback,
1377        next_callback_data: *mut libc::c_void,
1378        stripped: bool,
1379        write_callback: Dart_StreamingWriteCallback,
1380        close_callback: Dart_StreamingCloseCallback,
1381    ) -> Dart_Handle;
1382}
1383unsafe extern "C" {
1384    pub fn Dart_CreateVMAOTSnapshotAsAssembly(
1385        callback: Dart_StreamingWriteCallback,
1386        callback_data: *mut libc::c_void,
1387    ) -> Dart_Handle;
1388}
1389unsafe extern "C" {
1390    pub fn Dart_SortClasses() -> Dart_Handle;
1391}
1392unsafe extern "C" {
1393    pub fn Dart_CreateAppJITSnapshotAsBlobs(
1394        isolate_snapshot_data_buffer: *mut *mut u8,
1395        isolate_snapshot_data_size: *mut isize,
1396        isolate_snapshot_instructions_buffer: *mut *mut u8,
1397        isolate_snapshot_instructions_size: *mut isize,
1398    ) -> Dart_Handle;
1399}
1400unsafe extern "C" {
1401    pub fn Dart_GetObfuscationMap(buffer: *mut *mut u8, buffer_length: *mut isize) -> Dart_Handle;
1402}
1403unsafe extern "C" {
1404    pub fn Dart_IsPrecompiledRuntime() -> bool;
1405}
1406unsafe extern "C" {
1407    pub fn Dart_DumpNativeStackTrace(context: *mut libc::c_void);
1408}
1409unsafe extern "C" {
1410    pub fn Dart_PrepareToAbort();
1411}
1412pub type Dart_DwarfStackTraceFootnoteCallback = ::core::option::Option<
1413    unsafe extern "C" fn(addresses: *mut *mut libc::c_void, count: isize) -> *mut libc::c_char,
1414>;
1415unsafe extern "C" {
1416    pub fn Dart_SetDwarfStackTraceFootnoteCallback(callback: Dart_DwarfStackTraceFootnoteCallback);
1417}
1418pub const Dart_CObject_Type_Dart_CObject_kNull: Dart_CObject_Type = 0;
1419pub const Dart_CObject_Type_Dart_CObject_kBool: Dart_CObject_Type = 1;
1420pub const Dart_CObject_Type_Dart_CObject_kInt32: Dart_CObject_Type = 2;
1421pub const Dart_CObject_Type_Dart_CObject_kInt64: Dart_CObject_Type = 3;
1422pub const Dart_CObject_Type_Dart_CObject_kDouble: Dart_CObject_Type = 4;
1423pub const Dart_CObject_Type_Dart_CObject_kString: Dart_CObject_Type = 5;
1424pub const Dart_CObject_Type_Dart_CObject_kArray: Dart_CObject_Type = 6;
1425pub const Dart_CObject_Type_Dart_CObject_kTypedData: Dart_CObject_Type = 7;
1426pub const Dart_CObject_Type_Dart_CObject_kExternalTypedData: Dart_CObject_Type = 8;
1427pub const Dart_CObject_Type_Dart_CObject_kSendPort: Dart_CObject_Type = 9;
1428pub const Dart_CObject_Type_Dart_CObject_kCapability: Dart_CObject_Type = 10;
1429pub const Dart_CObject_Type_Dart_CObject_kNativePointer: Dart_CObject_Type = 11;
1430pub const Dart_CObject_Type_Dart_CObject_kUnsupported: Dart_CObject_Type = 12;
1431pub const Dart_CObject_Type_Dart_CObject_kUnmodifiableExternalTypedData: Dart_CObject_Type = 13;
1432pub const Dart_CObject_Type_Dart_CObject_kNumberOfTypes: Dart_CObject_Type = 14;
1433pub type Dart_CObject_Type = libc::c_uint;
1434#[repr(C)]
1435#[derive(Copy, Clone)]
1436pub struct _Dart_CObject {
1437    pub type_: Dart_CObject_Type,
1438    pub value: _Dart_CObject__bindgen_ty_1,
1439}
1440#[repr(C)]
1441#[derive(Copy, Clone)]
1442pub union _Dart_CObject__bindgen_ty_1 {
1443    pub as_bool: bool,
1444    pub as_int32: i32,
1445    pub as_int64: i64,
1446    pub as_double: f64,
1447    pub as_string: *const libc::c_char,
1448    pub as_send_port: _Dart_CObject__bindgen_ty_1__bindgen_ty_1,
1449    pub as_capability: _Dart_CObject__bindgen_ty_1__bindgen_ty_2,
1450    pub as_array: _Dart_CObject__bindgen_ty_1__bindgen_ty_3,
1451    pub as_typed_data: _Dart_CObject__bindgen_ty_1__bindgen_ty_4,
1452    pub as_external_typed_data: _Dart_CObject__bindgen_ty_1__bindgen_ty_5,
1453    pub as_native_pointer: _Dart_CObject__bindgen_ty_1__bindgen_ty_6,
1454}
1455#[repr(C)]
1456#[derive(Debug, Copy, Clone)]
1457pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_1 {
1458    pub id: Dart_Port,
1459    pub origin_id: Dart_Port,
1460}
1461#[repr(C)]
1462#[derive(Debug, Copy, Clone)]
1463pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_2 {
1464    pub id: i64,
1465}
1466#[repr(C)]
1467#[derive(Debug, Copy, Clone)]
1468pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_3 {
1469    pub length: isize,
1470    pub values: *mut *mut _Dart_CObject,
1471}
1472#[repr(C)]
1473#[derive(Debug, Copy, Clone)]
1474pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_4 {
1475    pub type_: Dart_TypedData_Type,
1476    pub length: isize,
1477    pub values: *const u8,
1478}
1479#[repr(C)]
1480#[derive(Debug, Copy, Clone)]
1481pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_5 {
1482    pub type_: Dart_TypedData_Type,
1483    pub length: isize,
1484    pub data: *mut u8,
1485    pub peer: *mut libc::c_void,
1486    pub callback: Dart_HandleFinalizer,
1487}
1488#[repr(C)]
1489#[derive(Debug, Copy, Clone)]
1490pub struct _Dart_CObject__bindgen_ty_1__bindgen_ty_6 {
1491    pub ptr: isize,
1492    pub size: isize,
1493    pub callback: Dart_HandleFinalizer,
1494}
1495pub type Dart_CObject = _Dart_CObject;
1496unsafe extern "C" {
1497    pub fn Dart_PostCObject(port_id: Dart_Port, message: *mut Dart_CObject) -> bool;
1498}
1499unsafe extern "C" {
1500    pub fn Dart_PostInteger(port_id: Dart_Port, message: i64) -> bool;
1501}
1502pub type Dart_NativeMessageHandler = ::core::option::Option<
1503    unsafe extern "C" fn(dest_port_id: Dart_Port, message: *mut Dart_CObject),
1504>;
1505unsafe extern "C" {
1506    pub fn Dart_NewNativePort(
1507        name: *const libc::c_char,
1508        handler: Dart_NativeMessageHandler,
1509        handle_concurrently: bool,
1510    ) -> Dart_Port;
1511}
1512unsafe extern "C" {
1513    pub fn Dart_NewConcurrentNativePort(
1514        name: *const libc::c_char,
1515        handler: Dart_NativeMessageHandler,
1516        max_concurrency: isize,
1517    ) -> Dart_Port;
1518}
1519unsafe extern "C" {
1520    pub fn Dart_CloseNativePort(native_port_id: Dart_Port) -> bool;
1521}
1522unsafe extern "C" {
1523    pub fn Dart_CompileAll() -> Dart_Handle;
1524}
1525unsafe extern "C" {
1526    pub fn Dart_FinalizeAllClasses() -> Dart_Handle;
1527}
1528unsafe extern "C" {
1529    pub fn Dart_ExecuteInternalCommand(
1530        command: *const libc::c_char,
1531        arg: *mut libc::c_void,
1532    ) -> *mut libc::c_void;
1533}
1534pub type Dart_ServiceRequestCallback = ::core::option::Option<
1535    unsafe extern "C" fn(
1536        method: *const libc::c_char,
1537        param_keys: *mut *const libc::c_char,
1538        param_values: *mut *const libc::c_char,
1539        num_params: isize,
1540        user_data: *mut libc::c_void,
1541        json_object: *mut *const libc::c_char,
1542    ) -> bool,
1543>;
1544unsafe extern "C" {
1545    pub fn Dart_RegisterIsolateServiceRequestCallback(
1546        method: *const libc::c_char,
1547        callback: Dart_ServiceRequestCallback,
1548        user_data: *mut libc::c_void,
1549    );
1550}
1551unsafe extern "C" {
1552    pub fn Dart_RegisterRootServiceRequestCallback(
1553        method: *const libc::c_char,
1554        callback: Dart_ServiceRequestCallback,
1555        user_data: *mut libc::c_void,
1556    );
1557}
1558#[repr(C)]
1559#[derive(Debug, Copy, Clone)]
1560pub struct Dart_EmbedderInformation {
1561    pub version: i32,
1562    pub name: *const libc::c_char,
1563    pub current_rss: i64,
1564    pub max_rss: i64,
1565}
1566pub type Dart_EmbedderInformationCallback =
1567    ::core::option::Option<unsafe extern "C" fn(info: *mut Dart_EmbedderInformation)>;
1568unsafe extern "C" {
1569    pub fn Dart_SetEmbedderInformationCallback(callback: Dart_EmbedderInformationCallback);
1570}
1571unsafe extern "C" {
1572    pub fn Dart_InvokeVMServiceMethod(
1573        request_json: *mut u8,
1574        request_json_length: isize,
1575        response_json: *mut *mut u8,
1576        response_json_length: *mut isize,
1577        error: *mut *mut libc::c_char,
1578    ) -> bool;
1579}
1580pub type Dart_ServiceStreamListenCallback =
1581    ::core::option::Option<unsafe extern "C" fn(stream_id: *const libc::c_char) -> bool>;
1582pub type Dart_ServiceStreamCancelCallback =
1583    ::core::option::Option<unsafe extern "C" fn(stream_id: *const libc::c_char)>;
1584unsafe extern "C" {
1585    pub fn Dart_SetServiceStreamCallbacks(
1586        listen_callback: Dart_ServiceStreamListenCallback,
1587        cancel_callback: Dart_ServiceStreamCancelCallback,
1588    ) -> *mut libc::c_char;
1589}
1590unsafe extern "C" {
1591    pub fn Dart_ServiceSendDataEvent(
1592        stream_id: *const libc::c_char,
1593        event_kind: *const libc::c_char,
1594        bytes: *const u8,
1595        bytes_length: isize,
1596    ) -> *mut libc::c_char;
1597}
1598pub type Dart_FileModifiedCallback =
1599    ::core::option::Option<unsafe extern "C" fn(url: *const libc::c_char, since: i64) -> bool>;
1600unsafe extern "C" {
1601    pub fn Dart_SetFileModifiedCallback(
1602        file_modified_callback: Dart_FileModifiedCallback,
1603    ) -> *mut libc::c_char;
1604}
1605unsafe extern "C" {
1606    pub fn Dart_IsReloading() -> bool;
1607}
1608unsafe extern "C" {
1609    pub fn Dart_SetEnabledTimelineCategory(categories: *const libc::c_char) -> bool;
1610}
1611unsafe extern "C" {
1612    pub fn Dart_TimelineGetMicros() -> i64;
1613}
1614unsafe extern "C" {
1615    pub fn Dart_TimelineGetTicks() -> i64;
1616}
1617unsafe extern "C" {
1618    pub fn Dart_TimelineGetTicksFrequency() -> i64;
1619}
1620pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Begin: Dart_Timeline_Event_Type = 0;
1621pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_End: Dart_Timeline_Event_Type = 1;
1622pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Instant: Dart_Timeline_Event_Type = 2;
1623pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Duration: Dart_Timeline_Event_Type = 3;
1624pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Begin: Dart_Timeline_Event_Type = 4;
1625pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_End: Dart_Timeline_Event_Type = 5;
1626pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Instant: Dart_Timeline_Event_Type = 6;
1627pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Counter: Dart_Timeline_Event_Type = 7;
1628pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Begin: Dart_Timeline_Event_Type = 8;
1629pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Step: Dart_Timeline_Event_Type = 9;
1630pub const Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_End: Dart_Timeline_Event_Type = 10;
1631pub type Dart_Timeline_Event_Type = libc::c_uint;
1632unsafe extern "C" {
1633    pub fn Dart_RecordTimelineEvent(
1634        label: *const libc::c_char,
1635        timestamp0: i64,
1636        timestamp1_or_id: i64,
1637        flow_id_count: isize,
1638        flow_ids: *const i64,
1639        type_: Dart_Timeline_Event_Type,
1640        argument_count: isize,
1641        argument_names: *mut *const libc::c_char,
1642        argument_values: *mut *const libc::c_char,
1643    );
1644}
1645unsafe extern "C" {
1646    pub fn Dart_SetThreadName(name: *const libc::c_char);
1647}
1648#[repr(C)]
1649#[derive(Debug, Copy, Clone)]
1650pub struct Dart_TimelineRecorderEvent_Argument {
1651    pub name: *const libc::c_char,
1652    pub value: *const libc::c_char,
1653}
1654#[repr(C)]
1655#[derive(Debug, Copy, Clone)]
1656pub struct Dart_TimelineRecorderEvent {
1657    pub version: i32,
1658    pub type_: Dart_Timeline_Event_Type,
1659    pub timestamp0: i64,
1660    pub timestamp1_or_id: i64,
1661    pub isolate: Dart_Port,
1662    pub isolate_group: Dart_IsolateGroupId,
1663    pub isolate_data: *mut libc::c_void,
1664    pub isolate_group_data: *mut libc::c_void,
1665    pub label: *const libc::c_char,
1666    pub stream: *const libc::c_char,
1667    pub argument_count: isize,
1668    pub arguments: *mut Dart_TimelineRecorderEvent_Argument,
1669}
1670pub type Dart_TimelineRecorderCallback =
1671    ::core::option::Option<unsafe extern "C" fn(event: *mut Dart_TimelineRecorderEvent)>;
1672unsafe extern "C" {
1673    pub fn Dart_SetTimelineRecorderCallback(callback: Dart_TimelineRecorderCallback);
1674}
1675unsafe extern "C" {
1676    pub fn Dart_IsolateGroupHeapOldUsedMetric(group: Dart_IsolateGroup) -> i64;
1677}
1678unsafe extern "C" {
1679    pub fn Dart_IsolateGroupHeapOldCapacityMetric(group: Dart_IsolateGroup) -> i64;
1680}
1681unsafe extern "C" {
1682    pub fn Dart_IsolateGroupHeapOldExternalMetric(group: Dart_IsolateGroup) -> i64;
1683}
1684unsafe extern "C" {
1685    pub fn Dart_IsolateGroupHeapNewUsedMetric(group: Dart_IsolateGroup) -> i64;
1686}
1687unsafe extern "C" {
1688    pub fn Dart_IsolateGroupHeapNewCapacityMetric(group: Dart_IsolateGroup) -> i64;
1689}
1690unsafe extern "C" {
1691    pub fn Dart_IsolateGroupHeapNewExternalMetric(group: Dart_IsolateGroup) -> i64;
1692}
1693unsafe extern "C" {
1694    pub fn Dart_GetCurrentUserTag() -> Dart_Handle;
1695}
1696unsafe extern "C" {
1697    pub fn Dart_GetDefaultUserTag() -> Dart_Handle;
1698}
1699unsafe extern "C" {
1700    pub fn Dart_NewUserTag(label: *const libc::c_char) -> Dart_Handle;
1701}
1702unsafe extern "C" {
1703    pub fn Dart_SetCurrentUserTag(user_tag: Dart_Handle) -> Dart_Handle;
1704}
1705unsafe extern "C" {
1706    pub fn Dart_GetUserTagLabel(user_tag: Dart_Handle) -> *mut libc::c_char;
1707}
1708pub type Dart_HeapSnapshotWriteChunkCallback = ::core::option::Option<
1709    unsafe extern "C" fn(context: *mut libc::c_void, buffer: *mut u8, size: isize, is_last: bool),
1710>;
1711unsafe extern "C" {
1712    pub fn Dart_WriteHeapSnapshot(
1713        write: Dart_HeapSnapshotWriteChunkCallback,
1714        context: *mut libc::c_void,
1715    ) -> *mut libc::c_char;
1716}