emscripten_val_sys/
bind.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;
56#[repr(C)]
57#[repr(align(16))]
58#[derive(Debug, Copy, Clone)]
59pub struct max_align_t {
60    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
61    pub __bindgen_padding_0: u64,
62    pub __clang_max_align_nonce2: u128,
63}
64#[allow(clippy::unnecessary_operation, clippy::identity_op)]
65const _: () = {
66    ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
67    ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
68    ["Offset of field: max_align_t::__clang_max_align_nonce1"]
69        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
70    ["Offset of field: max_align_t::__clang_max_align_nonce2"]
71        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
72};
73pub type intmax_t = ::std::os::raw::c_long;
74pub type uintmax_t = ::std::os::raw::c_ulong;
75pub type int_fast8_t = i8;
76pub type int_fast64_t = i64;
77pub type int_least8_t = i8;
78pub type int_least16_t = i16;
79pub type int_least32_t = i32;
80pub type int_least64_t = i64;
81pub type uint_fast8_t = u8;
82pub type uint_fast64_t = u64;
83pub type uint_least8_t = u8;
84pub type uint_least16_t = u16;
85pub type uint_least32_t = u32;
86pub type uint_least64_t = u64;
87pub type int_fast16_t = i32;
88pub type int_fast32_t = i32;
89pub type uint_fast16_t = u32;
90pub type uint_fast32_t = u32;
91#[repr(C)]
92#[derive(Debug, Copy, Clone)]
93pub struct _EM_VAL {
94    _unused: [u8; 0],
95}
96pub type EM_VAL = *mut _EM_VAL;
97pub type TYPEID = *const ::std::os::raw::c_void;
98pub type GenericEnumValue = ::std::os::raw::c_int;
99pub type GenericFunction = *mut ::std::os::raw::c_void;
100unsafe extern "C" {
101    pub fn _embind_register_void(voidType: TYPEID, name: *const ::std::os::raw::c_char);
102}
103unsafe extern "C" {
104    pub fn _embind_register_bool(
105        boolType: TYPEID,
106        name: *const ::std::os::raw::c_char,
107        trueValue: bool,
108        falseValue: bool,
109    );
110}
111unsafe extern "C" {
112    pub fn _embind_register_integer(
113        integerType: TYPEID,
114        name: *const ::std::os::raw::c_char,
115        size: usize,
116        minRange: i32,
117        maxRange: u32,
118    );
119}
120unsafe extern "C" {
121    pub fn _embind_register_bigint(
122        integerType: TYPEID,
123        name: *const ::std::os::raw::c_char,
124        size: usize,
125        minRange: i64,
126        maxRange: u64,
127    );
128}
129unsafe extern "C" {
130    pub fn _embind_register_float(
131        floatType: TYPEID,
132        name: *const ::std::os::raw::c_char,
133        size: usize,
134    );
135}
136unsafe extern "C" {
137    pub fn _embind_register_std_string(stringType: TYPEID, name: *const ::std::os::raw::c_char);
138}
139unsafe extern "C" {
140    pub fn _embind_register_std_wstring(
141        stringType: TYPEID,
142        charSize: usize,
143        name: *const ::std::os::raw::c_char,
144    );
145}
146unsafe extern "C" {
147    pub fn _embind_register_emval(emvalType: TYPEID);
148}
149unsafe extern "C" {
150    pub fn _embind_register_memory_view(
151        memoryViewType: TYPEID,
152        typedArrayIndex: ::std::os::raw::c_uint,
153        name: *const ::std::os::raw::c_char,
154    );
155}
156unsafe extern "C" {
157    pub fn _embind_register_function(
158        name: *const ::std::os::raw::c_char,
159        argCount: ::std::os::raw::c_uint,
160        argTypes: *const TYPEID,
161        signature: *const ::std::os::raw::c_char,
162        invoker: GenericFunction,
163        function: GenericFunction,
164        isAsync: bool,
165    );
166}
167unsafe extern "C" {
168    pub fn _embind_register_value_array(
169        tupleType: TYPEID,
170        name: *const ::std::os::raw::c_char,
171        constructorSignature: *const ::std::os::raw::c_char,
172        constructor: GenericFunction,
173        destructorSignature: *const ::std::os::raw::c_char,
174        destructor: GenericFunction,
175    );
176}
177unsafe extern "C" {
178    pub fn _embind_register_value_array_element(
179        tupleType: TYPEID,
180        getterReturnType: TYPEID,
181        getterSignature: *const ::std::os::raw::c_char,
182        getter: GenericFunction,
183        getterContext: *mut ::std::os::raw::c_void,
184        setterArgumentType: TYPEID,
185        setterSignature: *const ::std::os::raw::c_char,
186        setter: GenericFunction,
187        setterContext: *mut ::std::os::raw::c_void,
188    );
189}
190unsafe extern "C" {
191    pub fn _embind_finalize_value_array(tupleType: TYPEID);
192}
193unsafe extern "C" {
194    pub fn _embind_register_value_object(
195        structType: TYPEID,
196        fieldName: *const ::std::os::raw::c_char,
197        constructorSignature: *const ::std::os::raw::c_char,
198        constructor: GenericFunction,
199        destructorSignature: *const ::std::os::raw::c_char,
200        destructor: GenericFunction,
201    );
202}
203unsafe extern "C" {
204    pub fn _embind_register_value_object_field(
205        structType: TYPEID,
206        fieldName: *const ::std::os::raw::c_char,
207        getterReturnType: TYPEID,
208        getterSignature: *const ::std::os::raw::c_char,
209        getter: GenericFunction,
210        getterContext: *mut ::std::os::raw::c_void,
211        setterArgumentType: TYPEID,
212        setterSignature: *const ::std::os::raw::c_char,
213        setter: GenericFunction,
214        setterContext: *mut ::std::os::raw::c_void,
215    );
216}
217unsafe extern "C" {
218    pub fn _embind_finalize_value_object(structType: TYPEID);
219}
220unsafe extern "C" {
221    pub fn _embind_register_class(
222        classType: TYPEID,
223        pointerType: TYPEID,
224        constPointerType: TYPEID,
225        baseClassType: TYPEID,
226        getActualTypeSignature: *const ::std::os::raw::c_char,
227        getActualType: GenericFunction,
228        upcastSignature: *const ::std::os::raw::c_char,
229        upcast: GenericFunction,
230        downcastSignature: *const ::std::os::raw::c_char,
231        downcast: GenericFunction,
232        className: *const ::std::os::raw::c_char,
233        destructorSignature: *const ::std::os::raw::c_char,
234        destructor: GenericFunction,
235    );
236}
237unsafe extern "C" {
238    pub fn _embind_register_class_constructor(
239        classType: TYPEID,
240        argCount: ::std::os::raw::c_uint,
241        argTypes: *const TYPEID,
242        invokerSignature: *const ::std::os::raw::c_char,
243        invoker: GenericFunction,
244        constructor: GenericFunction,
245    );
246}
247unsafe extern "C" {
248    pub fn _embind_register_class_function(
249        classType: TYPEID,
250        methodName: *const ::std::os::raw::c_char,
251        argCount: ::std::os::raw::c_uint,
252        argTypes: *const TYPEID,
253        invokerSignature: *const ::std::os::raw::c_char,
254        invoker: GenericFunction,
255        context: *mut ::std::os::raw::c_void,
256        isPureVirtual: ::std::os::raw::c_uint,
257        isAsync: bool,
258    );
259}
260unsafe extern "C" {
261    pub fn _embind_register_class_property(
262        classType: TYPEID,
263        fieldName: *const ::std::os::raw::c_char,
264        getterReturnType: TYPEID,
265        getterSignature: *const ::std::os::raw::c_char,
266        getter: GenericFunction,
267        getterContext: *mut ::std::os::raw::c_void,
268        setterArgumentType: TYPEID,
269        setterSignature: *const ::std::os::raw::c_char,
270        setter: GenericFunction,
271        setterContext: *mut ::std::os::raw::c_void,
272    );
273}
274unsafe extern "C" {
275    pub fn _embind_register_class_class_function(
276        classType: TYPEID,
277        methodName: *const ::std::os::raw::c_char,
278        argCount: ::std::os::raw::c_uint,
279        argTypes: *const TYPEID,
280        invokerSignature: *const ::std::os::raw::c_char,
281        invoker: GenericFunction,
282        method: GenericFunction,
283        isAsync: bool,
284    );
285}
286unsafe extern "C" {
287    pub fn _embind_register_class_class_property(
288        classType: TYPEID,
289        fieldName: *const ::std::os::raw::c_char,
290        fieldType: TYPEID,
291        fieldContext: *const ::std::os::raw::c_void,
292        getterSignature: *const ::std::os::raw::c_char,
293        getter: GenericFunction,
294        setterSignature: *const ::std::os::raw::c_char,
295        setter: GenericFunction,
296    );
297}
298unsafe extern "C" {
299    pub fn _embind_create_inheriting_constructor(
300        constructorName: *const ::std::os::raw::c_char,
301        wrapperType: TYPEID,
302        properties: EM_VAL,
303    ) -> EM_VAL;
304}
305unsafe extern "C" {
306    pub fn _embind_register_enum(
307        enumType: TYPEID,
308        name: *const ::std::os::raw::c_char,
309        size: usize,
310        isSigned: bool,
311    );
312}
313unsafe extern "C" {
314    pub fn _embind_register_enum_value(
315        enumType: TYPEID,
316        valueName: *const ::std::os::raw::c_char,
317        value: GenericEnumValue,
318    );
319}
320unsafe extern "C" {
321    pub fn _embind_register_constant(
322        name: *const ::std::os::raw::c_char,
323        constantType: TYPEID,
324        value: f64,
325    );
326}
327unsafe extern "C" {
328    pub fn _embind_register_optional(optionalType: TYPEID, type_: TYPEID);
329}
330unsafe extern "C" {
331    pub fn _embind_register_user_type(type_: TYPEID, typeName: *const ::std::os::raw::c_char);
332}
333#[repr(C)]
334#[derive(Debug, Copy, Clone)]
335pub struct InitFunc {
336    _unused: [u8; 0],
337}
338unsafe extern "C" {
339    pub fn _embind_register_bindings(f: *mut InitFunc);
340}