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