From 5484b0c1b84b3f3c55a3dfab6a6bca1ca2d0ecd8 Mon Sep 17 00:00:00 2001 From: Adam Bezecny Date: Wed, 24 Apr 2024 12:27:18 +0200 Subject: [PATCH] bindigs refreshed --- src/ffi/bindings.rs | 74 +++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 43 deletions(-) diff --git a/src/ffi/bindings.rs b/src/ffi/bindings.rs index 4c10057..65477b1 100644 --- a/src/ffi/bindings.rs +++ b/src/ffi/bindings.rs @@ -1,5 +1,6 @@ /* automatically generated by rust-bindgen 0.69.4 */ +pub const SPX_CONFIG_TRACE_INCLUDE_DBG_WITH_ALL: u32 = 1; pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1; pub const _SAL_VERSION: u32 = 20; pub const __SAL_H_VERSION: u32 = 180000000; @@ -12,6 +13,11 @@ pub const _HAS_CXX17: u32 = 0; pub const _HAS_CXX20: u32 = 0; pub const _HAS_CXX23: u32 = 0; pub const _HAS_NODISCARD: u32 = 0; +pub const WCHAR_MIN: u32 = 0; +pub const WCHAR_MAX: u32 = 65535; +pub const WINT_MIN: u32 = 0; +pub const WINT_MAX: u32 = 65535; +pub const AZAC_ERR_NONE: u32 = 0; pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1; pub const _CRT_BUILD_DESKTOP_APP: u32 = 1; pub const _ARGMAX: u32 = 100; @@ -29,12 +35,6 @@ pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0; pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 1; pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0; pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0; -pub const SPX_CONFIG_TRACE_INCLUDE_DBG_WITH_ALL: u32 = 1; -pub const WCHAR_MIN: u32 = 0; -pub const WCHAR_MAX: u32 = 65535; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 65535; -pub const AZAC_ERR_NONE: u32 = 0; pub const PRId8: &[u8; 4] = b"hhd\0"; pub const PRId16: &[u8; 3] = b"hd\0"; pub const PRId32: &[u8; 2] = b"d\0"; @@ -195,19 +195,20 @@ pub const __AZAC_TRACE_LEVEL_WARNING: u32 = 4; pub const __AZAC_TRACE_LEVEL_ERROR: u32 = 2; pub const __AZAC_TRACE_LEVEL_VERBOSE: u32 = 16; pub const __bool_true_false_are_defined: u32 = 1; -pub const false_: u32 = 0; pub const true_: u32 = 1; +pub const false_: u32 = 0; pub const SPX_NOERROR: u32 = 0; pub const __SPX_TRACE_LEVEL_INFO: u32 = 8; pub const __SPX_TRACE_LEVEL_WARNING: u32 = 4; pub const __SPX_TRACE_LEVEL_ERROR: u32 = 2; pub const __SPX_TRACE_LEVEL_VERBOSE: u32 = 16; +pub type wchar_t = ::std::os::raw::c_ushort; +pub type max_align_t = f64; pub type va_list = *mut ::std::os::raw::c_char; extern "C" { pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...); } pub type __vcrt_bool = bool; -pub type wchar_t = ::std::os::raw::c_ushort; extern "C" { pub fn __security_init_cookie(); } @@ -220,6 +221,26 @@ extern "C" { extern "C" { pub static mut __security_cookie: usize; } +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_longlong; +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_ulonglong; +pub type int_fast8_t = ::std::os::raw::c_schar; +pub type int_fast16_t = ::std::os::raw::c_int; +pub type int_fast32_t = ::std::os::raw::c_int; +pub type int_fast64_t = ::std::os::raw::c_longlong; +pub type uint_fast8_t = ::std::os::raw::c_uchar; +pub type uint_fast16_t = ::std::os::raw::c_uint; +pub type uint_fast32_t = ::std::os::raw::c_uint; +pub type uint_fast64_t = ::std::os::raw::c_ulonglong; +pub type intmax_t = ::std::os::raw::c_longlong; +pub type uintmax_t = ::std::os::raw::c_ulonglong; +#[doc = " \n Type definition for Azure AI Core result codes.\n "] +pub type AZACHR = usize; pub type __crt_bool = bool; extern "C" { pub fn _invalid_parameter_noinfo(); @@ -392,41 +413,6 @@ fn bindgen_test_layout__Mbstatet() { pub type mbstate_t = _Mbstatet; pub type time_t = __time64_t; pub type rsize_t = usize; -extern "C" { - pub fn _errno() -> *mut ::std::os::raw::c_int; -} -extern "C" { - pub fn _set_errno(_Value: ::std::os::raw::c_int) -> errno_t; -} -extern "C" { - pub fn _get_errno(_Value: *mut ::std::os::raw::c_int) -> errno_t; -} -extern "C" { - pub fn __threadid() -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn __threadhandle() -> usize; -} -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_longlong; -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_ulonglong; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_int; -pub type int_fast32_t = ::std::os::raw::c_int; -pub type int_fast64_t = ::std::os::raw::c_longlong; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_uint; -pub type uint_fast32_t = ::std::os::raw::c_uint; -pub type uint_fast64_t = ::std::os::raw::c_ulonglong; -pub type intmax_t = ::std::os::raw::c_longlong; -pub type uintmax_t = ::std::os::raw::c_ulonglong; -#[doc = " \n Type definition for Azure AI Core result codes.\n "] -pub type AZACHR = usize; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _Lldiv_t { @@ -555,6 +541,7 @@ fn bindgen_test_layout__azac_empty() { } pub type _azachandle = *mut _azac_empty; pub type AZAC_HANDLE = _azachandle; +pub type __gnuc_va_list = __builtin_va_list; extern "C" { pub fn diagnostics_log_start_logging( hpropbag: AZAC_HANDLE, @@ -4334,3 +4321,4 @@ pub struct __crt_locale_data { pub struct __crt_multibyte_data { pub _address: u8, } +pub type __builtin_va_list = *mut ::std::os::raw::c_char;