emscripten_val_sys/
val.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3pub const __BYTE_ORDER: u32 = 1234;
4pub const __LITTLE_ENDIAN: u32 = 1234;
5pub const __BIG_ENDIAN: u32 = 4321;
6pub const __USE_TIME_BITS64: u32 = 1;
7pub const INT8_MIN: i32 = -128;
8pub const INT16_MIN: i32 = -32768;
9pub const INT32_MIN: i32 = -2147483648;
10pub const INT64_MIN: i64 = -9223372036854775808;
11pub const INT8_MAX: u32 = 127;
12pub const INT16_MAX: u32 = 32767;
13pub const INT32_MAX: u32 = 2147483647;
14pub const INT64_MAX: u64 = 9223372036854775807;
15pub const UINT8_MAX: u32 = 255;
16pub const UINT16_MAX: u32 = 65535;
17pub const UINT32_MAX: u32 = 4294967295;
18pub const UINT64_MAX: i32 = -1;
19pub const INT_FAST8_MIN: i32 = -128;
20pub const INT_FAST64_MIN: i64 = -9223372036854775808;
21pub const INT_LEAST8_MIN: i32 = -128;
22pub const INT_LEAST16_MIN: i32 = -32768;
23pub const INT_LEAST32_MIN: i32 = -2147483648;
24pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
25pub const INT_FAST8_MAX: u32 = 127;
26pub const INT_FAST64_MAX: u64 = 9223372036854775807;
27pub const INT_LEAST8_MAX: u32 = 127;
28pub const INT_LEAST16_MAX: u32 = 32767;
29pub const INT_LEAST32_MAX: u32 = 2147483647;
30pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
31pub const UINT_FAST8_MAX: u32 = 255;
32pub const UINT_FAST64_MAX: i32 = -1;
33pub const UINT_LEAST8_MAX: u32 = 255;
34pub const UINT_LEAST16_MAX: u32 = 65535;
35pub const UINT_LEAST32_MAX: u32 = 4294967295;
36pub const UINT_LEAST64_MAX: i32 = -1;
37pub const INTMAX_MIN: i64 = -9223372036854775808;
38pub const INTMAX_MAX: u64 = 9223372036854775807;
39pub const UINTMAX_MAX: i32 = -1;
40pub const WINT_MIN: u32 = 0;
41pub const WINT_MAX: u32 = 4294967295;
42pub const SIG_ATOMIC_MIN: i32 = -2147483648;
43pub const SIG_ATOMIC_MAX: u32 = 2147483647;
44pub const INT_FAST16_MIN: i32 = -2147483648;
45pub const INT_FAST32_MIN: i32 = -2147483648;
46pub const INT_FAST16_MAX: u32 = 2147483647;
47pub const INT_FAST32_MAX: u32 = 2147483647;
48pub const UINT_FAST16_MAX: u32 = 4294967295;
49pub const UINT_FAST32_MAX: u32 = 4294967295;
50pub const INTPTR_MIN: i64 = -9223372036854775808;
51pub const INTPTR_MAX: u64 = 9223372036854775807;
52pub const UINTPTR_MAX: i32 = -1;
53pub const PTRDIFF_MIN: i64 = -9223372036854775808;
54pub const PTRDIFF_MAX: u64 = 9223372036854775807;
55pub const SIZE_MAX: i32 = -1;
56pub type intmax_t = ::std::os::raw::c_long;
57pub type uintmax_t = ::std::os::raw::c_ulong;
58pub type int_fast8_t = i8;
59pub type int_fast64_t = i64;
60pub type int_least8_t = i8;
61pub type int_least16_t = i16;
62pub type int_least32_t = i32;
63pub type int_least64_t = i64;
64pub type uint_fast8_t = u8;
65pub type uint_fast64_t = u64;
66pub type uint_least8_t = u8;
67pub type uint_least16_t = u16;
68pub type uint_least32_t = u32;
69pub type uint_least64_t = u64;
70pub type int_fast16_t = i32;
71pub type int_fast32_t = i32;
72pub type uint_fast16_t = u32;
73pub type uint_fast32_t = u32;
74#[repr(C)]
75#[derive(Debug, Copy, Clone)]
76pub struct _EM_VAL {
77    _unused: [u8; 0],
78}
79pub type EM_VAL = *mut _EM_VAL;
80#[repr(C)]
81#[derive(Debug, Copy, Clone)]
82pub struct _EM_INVOKER {
83    _unused: [u8; 0],
84}
85pub type EM_INVOKER = *mut _EM_INVOKER;
86pub type TYPEID = *const ::std::os::raw::c_void;
87pub const EM_INVOKER_KIND_FUNCTION: EM_INVOKER_KIND = 0;
88pub const EM_INVOKER_KIND_METHOD: EM_INVOKER_KIND = 1;
89pub const EM_INVOKER_KIND_CONSTRUCTOR: EM_INVOKER_KIND = 2;
90pub const EM_INVOKER_KIND_CAST: EM_INVOKER_KIND = 3;
91pub type EM_INVOKER_KIND = ::std::os::raw::c_int;
92pub const _EMVAL_UNDEFINED: _bindgen_ty_1 = 2;
93pub const _EMVAL_NULL: _bindgen_ty_1 = 4;
94pub const _EMVAL_TRUE: _bindgen_ty_1 = 6;
95pub const _EMVAL_FALSE: _bindgen_ty_1 = 8;
96pub const _EMVAL_LAST_RESERVED_HANDLE: _bindgen_ty_1 = 8;
97pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
98#[repr(C)]
99#[derive(Debug, Copy, Clone)]
100pub struct _EM_DESTRUCTORS {
101    _unused: [u8; 0],
102}
103pub type EM_DESTRUCTORS = *mut _EM_DESTRUCTORS;
104#[repr(C)]
105#[derive(Debug, Copy, Clone)]
106pub struct _EM_METHOD_CALLER {
107    _unused: [u8; 0],
108}
109pub type EM_METHOD_CALLER = *mut _EM_METHOD_CALLER;
110pub type EM_GENERIC_WIRE_TYPE = f64;
111pub type EM_VAR_ARGS = *const ::std::os::raw::c_void;
112unsafe extern "C" {
113    pub fn _emval_register_symbol(arg1: *const ::std::os::raw::c_char);
114}
115unsafe extern "C" {
116    pub fn _emval_incref(value: EM_VAL);
117}
118unsafe extern "C" {
119    pub fn _emval_decref(value: EM_VAL);
120}
121unsafe extern "C" {
122    pub fn _emval_run_destructors(handle: EM_DESTRUCTORS);
123}
124unsafe extern "C" {
125    pub fn _emval_new_array() -> EM_VAL;
126}
127unsafe extern "C" {
128    pub fn _emval_new_array_from_memory_view(mv: EM_VAL) -> EM_VAL;
129}
130unsafe extern "C" {
131    pub fn _emval_new_object() -> EM_VAL;
132}
133unsafe extern "C" {
134    pub fn _emval_new_cstring(arg1: *const ::std::os::raw::c_char) -> EM_VAL;
135}
136unsafe extern "C" {
137    pub fn _emval_new_u8string(arg1: *const ::std::os::raw::c_char) -> EM_VAL;
138}
139unsafe extern "C" {
140    pub fn _emval_new_u16string(arg1: *const u16) -> EM_VAL;
141}
142unsafe extern "C" {
143    pub fn _emval_take_value(type_: TYPEID, argv: EM_VAR_ARGS) -> EM_VAL;
144}
145unsafe extern "C" {
146    pub fn _emval_get_global(name: *const ::std::os::raw::c_char) -> EM_VAL;
147}
148unsafe extern "C" {
149    pub fn _emval_get_module_property(name: *const ::std::os::raw::c_char) -> EM_VAL;
150}
151unsafe extern "C" {
152    pub fn _emval_get_property(object: EM_VAL, key: EM_VAL) -> EM_VAL;
153}
154unsafe extern "C" {
155    pub fn _emval_set_property(object: EM_VAL, key: EM_VAL, value: EM_VAL);
156}
157unsafe extern "C" {
158    pub fn _emval_as(
159        value: EM_VAL,
160        returnType: TYPEID,
161        destructors: *mut EM_DESTRUCTORS,
162    ) -> EM_GENERIC_WIRE_TYPE;
163}
164unsafe extern "C" {
165    pub fn _emval_as_int64(value: EM_VAL, returnType: TYPEID) -> i64;
166}
167unsafe extern "C" {
168    pub fn _emval_as_uint64(value: EM_VAL, returnType: TYPEID) -> u64;
169}
170unsafe extern "C" {
171    pub fn _emval_equals(first: EM_VAL, second: EM_VAL) -> bool;
172}
173unsafe extern "C" {
174    pub fn _emval_strictly_equals(first: EM_VAL, second: EM_VAL) -> bool;
175}
176unsafe extern "C" {
177    pub fn _emval_greater_than(first: EM_VAL, second: EM_VAL) -> bool;
178}
179unsafe extern "C" {
180    pub fn _emval_less_than(first: EM_VAL, second: EM_VAL) -> bool;
181}
182unsafe extern "C" {
183    pub fn _emval_not(object: EM_VAL) -> bool;
184}
185unsafe extern "C" {
186    pub fn _emval_create_invoker(
187        argCount: ::std::os::raw::c_uint,
188        argTypes: *const TYPEID,
189        kind: EM_INVOKER_KIND,
190    ) -> EM_INVOKER;
191}
192unsafe extern "C" {
193    pub fn _emval_invoke(
194        caller: EM_INVOKER,
195        handle: EM_VAL,
196        methodName: *const ::std::os::raw::c_char,
197        destructors: *mut EM_DESTRUCTORS,
198        argv: EM_VAR_ARGS,
199    ) -> EM_GENERIC_WIRE_TYPE;
200}
201unsafe extern "C" {
202    pub fn _emval_typeof(value: EM_VAL) -> EM_VAL;
203}
204unsafe extern "C" {
205    pub fn _emval_instanceof(object: EM_VAL, constructor: EM_VAL) -> bool;
206}
207unsafe extern "C" {
208    pub fn _emval_is_number(object: EM_VAL) -> bool;
209}
210unsafe extern "C" {
211    pub fn _emval_is_string(object: EM_VAL) -> bool;
212}
213unsafe extern "C" {
214    pub fn _emval_in(item: EM_VAL, object: EM_VAL) -> bool;
215}
216unsafe extern "C" {
217    pub fn _emval_delete(object: EM_VAL, property: EM_VAL) -> bool;
218}
219unsafe extern "C" {
220    pub fn _emval_throw(object: EM_VAL) -> bool;
221}
222unsafe extern "C" {
223    pub fn _emval_await(promise: EM_VAL) -> EM_VAL;
224}
225unsafe extern "C" {
226    pub fn _emval_iter_begin(iterable: EM_VAL) -> EM_VAL;
227}
228unsafe extern "C" {
229    pub fn _emval_iter_next(iterator: EM_VAL) -> EM_VAL;
230}