1
2
3
/* automatically generated by rust-bindgen */

pub const true_ : u32 = 1 ; pub const false_ : u32 = 0 ; pub const __bool_true_false_are_defined : u32 = 1 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __STDC_NO_THREADS__ : u32 = 1 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 27 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = -128 ; pub const INT16_MIN : i32 = -32768 ; pub const INT32_MIN : i32 = -2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = -128 ; pub const INT_LEAST16_MIN : i32 = -32768 ; pub const INT_LEAST32_MIN : i32 = -2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = -128 ; pub const INT_FAST16_MIN : i64 = -9223372036854775808 ; pub const INT_FAST32_MIN : i64 = -9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = -1 ; pub const UINT_FAST32_MAX : i32 = -1 ; pub const INTPTR_MIN : i64 = -9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = -1 ; pub const PTRDIFF_MIN : i64 = -9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = -2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = -1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const NAPI_VERSION_EXPERIMENTAL : u32 = 2147483647 ; pub const NAPI_VERSION : u32 = 4 ; pub const NAPI_AUTO_LENGTH : i32 = -1 ; pub const NAPI_MODULE_VERSION : u32 = 1 ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ repr ( align ( 16 ) ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [ test ] fn bindgen_test_layout_max_align_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < max_align_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( max_align_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < max_align_t > ( ) , 16usize , concat ! ( "Alignment of " , stringify ! ( max_align_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( max_align_t ) , "::" , stringify ! ( __clang_max_align_nonce1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( max_align_t ) , "::" , stringify ! ( __clang_max_align_nonce2 ) ) ) ; } pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = :: std :: os :: raw :: c_schar ; pub type int_least16_t = :: std :: os :: raw :: c_short ; pub type int_least32_t = :: std :: os :: raw :: c_int ; pub type int_least64_t = :: std :: os :: raw :: c_long ; pub type uint_least8_t = :: std :: os :: raw :: c_uchar ; pub type uint_least16_t = :: std :: os :: raw :: c_ushort ; pub type uint_least32_t = :: std :: os :: raw :: c_uint ; pub type uint_least64_t = :: std :: os :: raw :: c_ulong ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type char16_t = u16 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_env__ { _unused : [ u8 ; 0 ] , } pub type napi_env = * mut napi_env__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_value__ { _unused : [ u8 ; 0 ] , } pub type napi_value = * mut napi_value__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_ref__ { _unused : [ u8 ; 0 ] , } pub type napi_ref = * mut napi_ref__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_handle_scope__ { _unused : [ u8 ; 0 ] , } pub type napi_handle_scope = * mut napi_handle_scope__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_escapable_handle_scope__ { _unused : [ u8 ; 0 ] , } pub type napi_escapable_handle_scope = * mut napi_escapable_handle_scope__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_callback_info__ { _unused : [ u8 ; 0 ] , } pub type napi_callback_info = * mut napi_callback_info__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_deferred__ { _unused : [ u8 ; 0 ] , } pub type napi_deferred = * mut napi_deferred__ ; pub const napi_property_attributes_napi_default : napi_property_attributes = 0 ; pub const napi_property_attributes_napi_writable : napi_property_attributes = 1 ; pub const napi_property_attributes_napi_enumerable : napi_property_attributes = 2 ; pub const napi_property_attributes_napi_configurable : napi_property_attributes = 4 ; pub const napi_property_attributes_napi_static : napi_property_attributes = 1024 ; pub type napi_property_attributes = u32 ; pub const napi_valuetype_napi_undefined : napi_valuetype = 0 ; pub const napi_valuetype_napi_null : napi_valuetype = 1 ; pub const napi_valuetype_napi_boolean : napi_valuetype = 2 ; pub const napi_valuetype_napi_number : napi_valuetype = 3 ; pub const napi_valuetype_napi_string : napi_valuetype = 4 ; pub const napi_valuetype_napi_symbol : napi_valuetype = 5 ; pub const napi_valuetype_napi_object : napi_valuetype = 6 ; pub const napi_valuetype_napi_function : napi_valuetype = 7 ; pub const napi_valuetype_napi_external : napi_valuetype = 8 ; pub const napi_valuetype_napi_bigint : napi_valuetype = 9 ; pub type napi_valuetype = u32 ; pub const napi_typedarray_type_napi_int8_array : napi_typedarray_type = 0 ; pub const napi_typedarray_type_napi_uint8_array : napi_typedarray_type = 1 ; pub const napi_typedarray_type_napi_uint8_clamped_array : napi_typedarray_type = 2 ; pub const napi_typedarray_type_napi_int16_array : napi_typedarray_type = 3 ; pub const napi_typedarray_type_napi_uint16_array : napi_typedarray_type = 4 ; pub const napi_typedarray_type_napi_int32_array : napi_typedarray_type = 5 ; pub const napi_typedarray_type_napi_uint32_array : napi_typedarray_type = 6 ; pub const napi_typedarray_type_napi_float32_array : napi_typedarray_type = 7 ; pub const napi_typedarray_type_napi_float64_array : napi_typedarray_type = 8 ; pub const napi_typedarray_type_napi_bigint64_array : napi_typedarray_type = 9 ; pub const napi_typedarray_type_napi_biguint64_array : napi_typedarray_type = 10 ; pub type napi_typedarray_type = u32 ; pub const napi_status_napi_ok : napi_status = 0 ; pub const napi_status_napi_invalid_arg : napi_status = 1 ; pub const napi_status_napi_object_expected : napi_status = 2 ; pub const napi_status_napi_string_expected : napi_status = 3 ; pub const napi_status_napi_name_expected : napi_status = 4 ; pub const napi_status_napi_function_expected : napi_status = 5 ; pub const napi_status_napi_number_expected : napi_status = 6 ; pub const napi_status_napi_boolean_expected : napi_status = 7 ; pub const napi_status_napi_array_expected : napi_status = 8 ; pub const napi_status_napi_generic_failure : napi_status = 9 ; pub const napi_status_napi_pending_exception : napi_status = 10 ; pub const napi_status_napi_cancelled : napi_status = 11 ; pub const napi_status_napi_escape_called_twice : napi_status = 12 ; pub const napi_status_napi_handle_scope_mismatch : napi_status = 13 ; pub const napi_status_napi_callback_scope_mismatch : napi_status = 14 ; pub const napi_status_napi_queue_full : napi_status = 15 ; pub const napi_status_napi_closing : napi_status = 16 ; pub const napi_status_napi_bigint_expected : napi_status = 17 ; pub const napi_status_napi_date_expected : napi_status = 18 ; pub type napi_status = u32 ; pub type napi_callback = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , info : napi_callback_info ) -> napi_value > ; pub type napi_finalize = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , finalize_data : * mut :: std :: os :: raw :: c_void , finalize_hint : * mut :: std :: os :: raw :: c_void ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_property_descriptor { pub utf8name : * const :: std :: os :: raw :: c_char , pub name : napi_value , pub method : napi_callback , pub getter : napi_callback , pub setter : napi_callback , pub value : napi_value , pub attributes : napi_property_attributes , pub data : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_napi_property_descriptor ( ) { assert_eq ! ( :: std :: mem :: size_of :: < napi_property_descriptor > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( napi_property_descriptor ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < napi_property_descriptor > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( napi_property_descriptor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . utf8name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( utf8name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . method as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( method ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . getter as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( getter ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . setter as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( setter ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . value as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . attributes as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( attributes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_property_descriptor > ( ) ) ) . data as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( napi_property_descriptor ) , "::" , stringify ! ( data ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_extended_error_info { pub error_message : * const :: std :: os :: raw :: c_char , pub engine_reserved : * mut :: std :: os :: raw :: c_void , pub engine_error_code : u32 , pub error_code : napi_status , } # [ test ] fn bindgen_test_layout_napi_extended_error_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < napi_extended_error_info > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( napi_extended_error_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < napi_extended_error_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( napi_extended_error_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_extended_error_info > ( ) ) ) . error_message as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( napi_extended_error_info ) , "::" , stringify ! ( error_message ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_extended_error_info > ( ) ) ) . engine_reserved as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( napi_extended_error_info ) , "::" , stringify ! ( engine_reserved ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_extended_error_info > ( ) ) ) . engine_error_code as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( napi_extended_error_info ) , "::" , stringify ! ( engine_error_code ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_extended_error_info > ( ) ) ) . error_code as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( napi_extended_error_info ) , "::" , stringify ! ( error_code ) ) ) ; } extern "C" { pub fn napi_get_last_error_info ( env : napi_env , result : * mut * const napi_extended_error_info ) -> napi_status ; } extern "C" { pub fn napi_get_undefined ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_null ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_global ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_boolean ( env : napi_env , value : bool , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_object ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_array ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_array_with_length ( env : napi_env , length : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_double ( env : napi_env , value : f64 , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_int32 ( env : napi_env , value : i32 , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_uint32 ( env : napi_env , value : u32 , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_int64 ( env : napi_env , value : i64 , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_string_latin1 ( env : napi_env , str : * const :: std :: os :: raw :: c_char , length : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_string_utf8 ( env : napi_env , str : * const :: std :: os :: raw :: c_char , length : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_string_utf16 ( env : napi_env , str : * const char16_t , length : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_symbol ( env : napi_env , description : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_function ( env : napi_env , utf8name : * const :: std :: os :: raw :: c_char , length : usize , cb : napi_callback , data : * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_error ( env : napi_env , code : napi_value , msg : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_type_error ( env : napi_env , code : napi_value , msg : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_range_error ( env : napi_env , code : napi_value , msg : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_typeof ( env : napi_env , value : napi_value , result : * mut napi_valuetype ) -> napi_status ; } extern "C" { pub fn napi_get_value_double ( env : napi_env , value : napi_value , result : * mut f64 ) -> napi_status ; } extern "C" { pub fn napi_get_value_int32 ( env : napi_env , value : napi_value , result : * mut i32 ) -> napi_status ; } extern "C" { pub fn napi_get_value_uint32 ( env : napi_env , value : napi_value , result : * mut u32 ) -> napi_status ; } extern "C" { pub fn napi_get_value_int64 ( env : napi_env , value : napi_value , result : * mut i64 ) -> napi_status ; } extern "C" { pub fn napi_get_value_bool ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_value_string_latin1 ( env : napi_env , value : napi_value , buf : * mut :: std :: os :: raw :: c_char , bufsize : usize , result : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_get_value_string_utf8 ( env : napi_env , value : napi_value , buf : * mut :: std :: os :: raw :: c_char , bufsize : usize , result : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_get_value_string_utf16 ( env : napi_env , value : napi_value , buf : * mut char16_t , bufsize : usize , result : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_coerce_to_bool ( env : napi_env , value : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_coerce_to_number ( env : napi_env , value : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_coerce_to_object ( env : napi_env , value : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_coerce_to_string ( env : napi_env , value : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_prototype ( env : napi_env , object : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_property_names ( env : napi_env , object : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_set_property ( env : napi_env , object : napi_value , key : napi_value , value : napi_value ) -> napi_status ; } extern "C" { pub fn napi_has_property ( env : napi_env , object : napi_value , key : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_property ( env : napi_env , object : napi_value , key : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_delete_property ( env : napi_env , object : napi_value , key : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_has_own_property ( env : napi_env , object : napi_value , key : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_set_named_property ( env : napi_env , object : napi_value , utf8name : * const :: std :: os :: raw :: c_char , value : napi_value ) -> napi_status ; } extern "C" { pub fn napi_has_named_property ( env : napi_env , object : napi_value , utf8name : * const :: std :: os :: raw :: c_char , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_named_property ( env : napi_env , object : napi_value , utf8name : * const :: std :: os :: raw :: c_char , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_set_element ( env : napi_env , object : napi_value , index : u32 , value : napi_value ) -> napi_status ; } extern "C" { pub fn napi_has_element ( env : napi_env , object : napi_value , index : u32 , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_element ( env : napi_env , object : napi_value , index : u32 , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_delete_element ( env : napi_env , object : napi_value , index : u32 , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_define_properties ( env : napi_env , object : napi_value , property_count : usize , properties : * const napi_property_descriptor ) -> napi_status ; } extern "C" { pub fn napi_is_array ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_array_length ( env : napi_env , value : napi_value , result : * mut u32 ) -> napi_status ; } extern "C" { pub fn napi_strict_equals ( env : napi_env , lhs : napi_value , rhs : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_call_function ( env : napi_env , recv : napi_value , func : napi_value , argc : usize , argv : * const napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_new_instance ( env : napi_env , constructor : napi_value , argc : usize , argv : * const napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_instanceof ( env : napi_env , object : napi_value , constructor : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_cb_info ( env : napi_env , cbinfo : napi_callback_info , argc : * mut usize , argv : * mut napi_value , this_arg : * mut napi_value , data : * mut * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_get_new_target ( env : napi_env , cbinfo : napi_callback_info , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_define_class ( env : napi_env , utf8name : * const :: std :: os :: raw :: c_char , length : usize , constructor : napi_callback , data : * mut :: std :: os :: raw :: c_void , property_count : usize , properties : * const napi_property_descriptor , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_wrap ( env : napi_env , js_object : napi_value , native_object : * mut :: std :: os :: raw :: c_void , finalize_cb : napi_finalize , finalize_hint : * mut :: std :: os :: raw :: c_void , result : * mut napi_ref ) -> napi_status ; } extern "C" { pub fn napi_unwrap ( env : napi_env , js_object : napi_value , result : * mut * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_remove_wrap ( env : napi_env , js_object : napi_value , result : * mut * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_create_external ( env : napi_env , data : * mut :: std :: os :: raw :: c_void , finalize_cb : napi_finalize , finalize_hint : * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_value_external ( env : napi_env , value : napi_value , result : * mut * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_create_reference ( env : napi_env , value : napi_value , initial_refcount : u32 , result : * mut napi_ref ) -> napi_status ; } extern "C" { pub fn napi_delete_reference ( env : napi_env , ref_ : napi_ref ) -> napi_status ; } extern "C" { pub fn napi_reference_ref ( env : napi_env , ref_ : napi_ref , result : * mut u32 ) -> napi_status ; } extern "C" { pub fn napi_reference_unref ( env : napi_env , ref_ : napi_ref , result : * mut u32 ) -> napi_status ; } extern "C" { pub fn napi_get_reference_value ( env : napi_env , ref_ : napi_ref , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_open_handle_scope ( env : napi_env , result : * mut napi_handle_scope ) -> napi_status ; } extern "C" { pub fn napi_close_handle_scope ( env : napi_env , scope : napi_handle_scope ) -> napi_status ; } extern "C" { pub fn napi_open_escapable_handle_scope ( env : napi_env , result : * mut napi_escapable_handle_scope ) -> napi_status ; } extern "C" { pub fn napi_close_escapable_handle_scope ( env : napi_env , scope : napi_escapable_handle_scope ) -> napi_status ; } extern "C" { pub fn napi_escape_handle ( env : napi_env , scope : napi_escapable_handle_scope , escapee : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_throw ( env : napi_env , error : napi_value ) -> napi_status ; } extern "C" { pub fn napi_throw_error ( env : napi_env , code : * const :: std :: os :: raw :: c_char , msg : * const :: std :: os :: raw :: c_char ) -> napi_status ; } extern "C" { pub fn napi_throw_type_error ( env : napi_env , code : * const :: std :: os :: raw :: c_char , msg : * const :: std :: os :: raw :: c_char ) -> napi_status ; } extern "C" { pub fn napi_throw_range_error ( env : napi_env , code : * const :: std :: os :: raw :: c_char , msg : * const :: std :: os :: raw :: c_char ) -> napi_status ; } extern "C" { pub fn napi_is_error ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_is_exception_pending ( env : napi_env , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_and_clear_last_exception ( env : napi_env , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_is_arraybuffer ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_create_arraybuffer ( env : napi_env , byte_length : usize , data : * mut * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_external_arraybuffer ( env : napi_env , external_data : * mut :: std :: os :: raw :: c_void , byte_length : usize , finalize_cb : napi_finalize , finalize_hint : * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_arraybuffer_info ( env : napi_env , arraybuffer : napi_value , data : * mut * mut :: std :: os :: raw :: c_void , byte_length : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_is_typedarray ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_create_typedarray ( env : napi_env , type_ : napi_typedarray_type , length : usize , arraybuffer : napi_value , byte_offset : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_get_typedarray_info ( env : napi_env , typedarray : napi_value , type_ : * mut napi_typedarray_type , length : * mut usize , data : * mut * mut :: std :: os :: raw :: c_void , arraybuffer : * mut napi_value , byte_offset : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_create_dataview ( env : napi_env , length : usize , arraybuffer : napi_value , byte_offset : usize , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_is_dataview ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_dataview_info ( env : napi_env , dataview : napi_value , bytelength : * mut usize , data : * mut * mut :: std :: os :: raw :: c_void , arraybuffer : * mut napi_value , byte_offset : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_get_version ( env : napi_env , result : * mut u32 ) -> napi_status ; } extern "C" { pub fn napi_create_promise ( env : napi_env , deferred : * mut napi_deferred , promise : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_resolve_deferred ( env : napi_env , deferred : napi_deferred , resolution : napi_value ) -> napi_status ; } extern "C" { pub fn napi_reject_deferred ( env : napi_env , deferred : napi_deferred , rejection : napi_value ) -> napi_status ; } extern "C" { pub fn napi_is_promise ( env : napi_env , promise : napi_value , is_promise : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_run_script ( env : napi_env , script : napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_adjust_external_memory ( env : napi_env , change_in_bytes : i64 , adjusted_value : * mut i64 ) -> napi_status ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_callback_scope__ { _unused : [ u8 ; 0 ] , } pub type napi_callback_scope = * mut napi_callback_scope__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_async_context__ { _unused : [ u8 ; 0 ] , } pub type napi_async_context = * mut napi_async_context__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_async_work__ { _unused : [ u8 ; 0 ] , } pub type napi_async_work = * mut napi_async_work__ ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_threadsafe_function__ { _unused : [ u8 ; 0 ] , } pub type napi_threadsafe_function = * mut napi_threadsafe_function__ ; pub const napi_threadsafe_function_release_mode_napi_tsfn_release : napi_threadsafe_function_release_mode = 0 ; pub const napi_threadsafe_function_release_mode_napi_tsfn_abort : napi_threadsafe_function_release_mode = 1 ; pub type napi_threadsafe_function_release_mode = u32 ; pub const napi_threadsafe_function_call_mode_napi_tsfn_nonblocking : napi_threadsafe_function_call_mode = 0 ; pub const napi_threadsafe_function_call_mode_napi_tsfn_blocking : napi_threadsafe_function_call_mode = 1 ; pub type napi_threadsafe_function_call_mode = u32 ; pub type napi_async_execute_callback = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , data : * mut :: std :: os :: raw :: c_void ) > ; pub type napi_async_complete_callback = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , status : napi_status , data : * mut :: std :: os :: raw :: c_void ) > ; pub type napi_threadsafe_function_call_js = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , js_callback : napi_value , context : * mut :: std :: os :: raw :: c_void , data : * mut :: std :: os :: raw :: c_void ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_node_version { pub major : u32 , pub minor : u32 , pub patch : u32 , pub release : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_napi_node_version ( ) { assert_eq ! ( :: std :: mem :: size_of :: < napi_node_version > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( napi_node_version ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < napi_node_version > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( napi_node_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_node_version > ( ) ) ) . major as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( napi_node_version ) , "::" , stringify ! ( major ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_node_version > ( ) ) ) . minor as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( napi_node_version ) , "::" , stringify ! ( minor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_node_version > ( ) ) ) . patch as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( napi_node_version ) , "::" , stringify ! ( patch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_node_version > ( ) ) ) . release as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( napi_node_version ) , "::" , stringify ! ( release ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct uv_loop_s { _unused : [ u8 ; 0 ] , } pub type napi_addon_register_func = :: std :: option :: Option < unsafe extern "C" fn ( env : napi_env , exports : napi_value ) -> napi_value > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct napi_module { pub nm_version : :: std :: os :: raw :: c_int , pub nm_flags : :: std :: os :: raw :: c_uint , pub nm_filename : * const :: std :: os :: raw :: c_char , pub nm_register_func : napi_addon_register_func , pub nm_modname : * const :: std :: os :: raw :: c_char , pub nm_priv : * mut :: std :: os :: raw :: c_void , pub reserved : [ * mut :: std :: os :: raw :: c_void ; 4usize ] , } # [ test ] fn bindgen_test_layout_napi_module ( ) { assert_eq ! ( :: std :: mem :: size_of :: < napi_module > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( napi_module ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < napi_module > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( napi_module ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_flags as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_filename as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_filename ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_register_func as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_register_func ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_modname as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_modname ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . nm_priv as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( nm_priv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < napi_module > ( ) ) ) . reserved as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( napi_module ) , "::" , stringify ! ( reserved ) ) ) ; } extern "C" { pub fn napi_module_register ( mod_ : * mut napi_module ) ; } extern "C" { pub fn napi_fatal_error ( location : * const :: std :: os :: raw :: c_char , location_len : usize , message : * const :: std :: os :: raw :: c_char , message_len : usize ) ; } extern "C" { pub fn napi_async_init ( env : napi_env , async_resource : napi_value , async_resource_name : napi_value , result : * mut napi_async_context ) -> napi_status ; } extern "C" { pub fn napi_async_destroy ( env : napi_env , async_context : napi_async_context ) -> napi_status ; } extern "C" { pub fn napi_make_callback ( env : napi_env , async_context : napi_async_context , recv : napi_value , func : napi_value , argc : usize , argv : * const napi_value , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_buffer ( env : napi_env , length : usize , data : * mut * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_external_buffer ( env : napi_env , length : usize , data : * mut :: std :: os :: raw :: c_void , finalize_cb : napi_finalize , finalize_hint : * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_create_buffer_copy ( env : napi_env , length : usize , data : * const :: std :: os :: raw :: c_void , result_data : * mut * mut :: std :: os :: raw :: c_void , result : * mut napi_value ) -> napi_status ; } extern "C" { pub fn napi_is_buffer ( env : napi_env , value : napi_value , result : * mut bool ) -> napi_status ; } extern "C" { pub fn napi_get_buffer_info ( env : napi_env , value : napi_value , data : * mut * mut :: std :: os :: raw :: c_void , length : * mut usize ) -> napi_status ; } extern "C" { pub fn napi_create_async_work ( env : napi_env , async_resource : napi_value , async_resource_name : napi_value , execute : napi_async_execute_callback , complete : napi_async_complete_callback , data : * mut :: std :: os :: raw :: c_void , result : * mut napi_async_work ) -> napi_status ; } extern "C" { pub fn napi_delete_async_work ( env : napi_env , work : napi_async_work ) -> napi_status ; } extern "C" { pub fn napi_queue_async_work ( env : napi_env , work : napi_async_work ) -> napi_status ; } extern "C" { pub fn napi_cancel_async_work ( env : napi_env , work : napi_async_work ) -> napi_status ; } extern "C" { pub fn napi_get_node_version ( env : napi_env , version : * mut * const napi_node_version ) -> napi_status ; } extern "C" { pub fn napi_get_uv_event_loop ( env : napi_env , loop_ : * mut * mut uv_loop_s ) -> napi_status ; } extern "C" { pub fn napi_fatal_exception ( env : napi_env , err : napi_value ) -> napi_status ; } extern "C" { pub fn napi_add_env_cleanup_hook ( env : napi_env , fun : :: std :: option :: Option < unsafe extern "C" fn ( arg : * mut :: std :: os :: raw :: c_void ) > , arg : * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_remove_env_cleanup_hook ( env : napi_env , fun : :: std :: option :: Option < unsafe extern "C" fn ( arg : * mut :: std :: os :: raw :: c_void ) > , arg : * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_open_callback_scope ( env : napi_env , resource_object : napi_value , context : napi_async_context , result : * mut napi_callback_scope ) -> napi_status ; } extern "C" { pub fn napi_close_callback_scope ( env : napi_env , scope : napi_callback_scope ) -> napi_status ; } extern "C" { pub fn napi_create_threadsafe_function ( env : napi_env , func : napi_value , async_resource : napi_value , async_resource_name : napi_value , max_queue_size : usize , initial_thread_count : usize , thread_finalize_data : * mut :: std :: os :: raw :: c_void , thread_finalize_cb : napi_finalize , context : * mut :: std :: os :: raw :: c_void , call_js_cb : napi_threadsafe_function_call_js , result : * mut napi_threadsafe_function ) -> napi_status ; } extern "C" { pub fn napi_get_threadsafe_function_context ( func : napi_threadsafe_function , result : * mut * mut :: std :: os :: raw :: c_void ) -> napi_status ; } extern "C" { pub fn napi_call_threadsafe_function ( func : napi_threadsafe_function , data : * mut :: std :: os :: raw :: c_void , is_blocking : napi_threadsafe_function_call_mode ) -> napi_status ; } extern "C" { pub fn napi_acquire_threadsafe_function ( func : napi_threadsafe_function ) -> napi_status ; } extern "C" { pub fn napi_release_threadsafe_function ( func : napi_threadsafe_function , mode : napi_threadsafe_function_release_mode ) -> napi_status ; } extern "C" { pub fn napi_unref_threadsafe_function ( env : napi_env , func : napi_threadsafe_function ) -> napi_status ; } extern "C" { pub fn napi_ref_threadsafe_function ( env : napi_env , func : napi_threadsafe_function ) -> napi_status ; }