diff --git a/sdl2-sys/sdl_bindings.rs b/sdl2-sys/sdl_bindings.rs index b2bc6ca8ea8..abf66e83e39 100644 --- a/sdl2-sys/sdl_bindings.rs +++ b/sdl2-sys/sdl_bindings.rs @@ -1,3 +1,16 @@ +use core::ffi::c_int; +use core::ffi::c_void; +use core::ffi::c_uint; +use core::ffi::c_char; +use core::ffi::c_long; +use core::ffi::c_ushort; +use core::ffi::c_short; +use core::ffi::c_uchar; +use core::ffi::c_longlong; +use core::ffi::c_schar; +use core::ffi::c_ulong; +use core::ffi::c_ulonglong; + /* automatically generated by rust-bindgen */ pub const __LINUX__: u32 = 1; @@ -1005,15 +1018,15 @@ extern "C" { #[doc = " available, returns a string beginning with the text \"Unknown\"."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GetPlatform() -> *const libc::c_char; + pub fn SDL_GetPlatform() -> *const c_char; } -pub type size_t = libc::c_ulong; -pub type wchar_t = libc::c_int; +pub type size_t = c_ulonglong; +pub type wchar_t = c_int; #[repr(C)] #[repr(align(16))] #[derive(Copy, Clone)] pub struct max_align_t { - pub __clang_max_align_nonce1: libc::c_longlong, + pub __clang_max_align_nonce1: c_longlong, pub __bindgen_padding_0: u64, pub __clang_max_align_nonce2: u128, } @@ -1056,18 +1069,18 @@ fn bindgen_test_layout_max_align_t() { } pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = libc::c_uchar; -pub type __u_short = libc::c_ushort; -pub type __u_int = libc::c_uint; -pub type __u_long = libc::c_ulong; -pub type __int8_t = libc::c_schar; -pub type __uint8_t = libc::c_uchar; -pub type __int16_t = libc::c_short; -pub type __uint16_t = libc::c_ushort; -pub type __int32_t = libc::c_int; -pub type __uint32_t = libc::c_uint; -pub type __int64_t = libc::c_long; -pub type __uint64_t = libc::c_ulong; +pub type __u_char = c_uchar; +pub type __u_short = c_ushort; +pub type __u_int = c_uint; +pub type __u_long = c_ulong; +pub type __int8_t = c_schar; +pub type __uint8_t = c_uchar; +pub type __int16_t = c_short; +pub type __uint16_t = c_ushort; +pub type __int32_t = c_int; +pub type __uint32_t = c_uint; +pub type __int64_t = c_long; +pub type __uint64_t = c_ulong; pub type __int_least8_t = __int8_t; pub type __uint_least8_t = __uint8_t; pub type __int_least16_t = __int16_t; @@ -1076,24 +1089,24 @@ pub type __int_least32_t = __int32_t; pub type __uint_least32_t = __uint32_t; pub type __int_least64_t = __int64_t; pub type __uint_least64_t = __uint64_t; -pub type __quad_t = libc::c_long; -pub type __u_quad_t = libc::c_ulong; -pub type __intmax_t = libc::c_long; -pub type __uintmax_t = libc::c_ulong; -pub type __dev_t = libc::c_ulong; -pub type __uid_t = libc::c_uint; -pub type __gid_t = libc::c_uint; -pub type __ino_t = libc::c_ulong; -pub type __ino64_t = libc::c_ulong; -pub type __mode_t = libc::c_uint; -pub type __nlink_t = libc::c_ulong; -pub type __off_t = libc::c_long; -pub type __off64_t = libc::c_long; -pub type __pid_t = libc::c_int; +pub type __quad_t = c_long; +pub type __u_quad_t = c_ulong; +pub type __intmax_t = c_long; +pub type __uintmax_t = c_ulong; +pub type __dev_t = c_ulong; +pub type __uid_t = c_uint; +pub type __gid_t = c_uint; +pub type __ino_t = c_ulong; +pub type __ino64_t = c_ulong; +pub type __mode_t = c_uint; +pub type __nlink_t = c_ulong; +pub type __off_t = c_long; +pub type __off64_t = c_long; +pub type __pid_t = c_int; #[repr(C)] #[derive(Copy, Clone)] pub struct __fsid_t { - pub __val: [libc::c_int; 2usize], + pub __val: [c_int; 2usize], } #[test] fn bindgen_test_layout___fsid_t() { @@ -1118,34 +1131,34 @@ fn bindgen_test_layout___fsid_t() { ) ); } -pub type __clock_t = libc::c_long; -pub type __rlim_t = libc::c_ulong; -pub type __rlim64_t = libc::c_ulong; -pub type __id_t = libc::c_uint; -pub type __time_t = libc::c_long; -pub type __useconds_t = libc::c_uint; -pub type __suseconds_t = libc::c_long; -pub type __suseconds64_t = libc::c_long; -pub type __daddr_t = libc::c_int; -pub type __key_t = libc::c_int; -pub type __clockid_t = libc::c_int; -pub type __timer_t = *mut libc::c_void; -pub type __blksize_t = libc::c_long; -pub type __blkcnt_t = libc::c_long; -pub type __blkcnt64_t = libc::c_long; -pub type __fsblkcnt_t = libc::c_ulong; -pub type __fsblkcnt64_t = libc::c_ulong; -pub type __fsfilcnt_t = libc::c_ulong; -pub type __fsfilcnt64_t = libc::c_ulong; -pub type __fsword_t = libc::c_long; -pub type __ssize_t = libc::c_long; -pub type __syscall_slong_t = libc::c_long; -pub type __syscall_ulong_t = libc::c_ulong; +pub type __clock_t = c_long; +pub type __rlim_t = c_ulong; +pub type __rlim64_t = c_ulong; +pub type __id_t = c_uint; +pub type __time_t = c_long; +pub type __useconds_t = c_uint; +pub type __suseconds_t = c_long; +pub type __suseconds64_t = c_long; +pub type __daddr_t = c_int; +pub type __key_t = c_int; +pub type __clockid_t = c_int; +pub type __timer_t = *mut c_void; +pub type __blksize_t = c_long; +pub type __blkcnt_t = c_long; +pub type __blkcnt64_t = c_long; +pub type __fsblkcnt_t = c_ulong; +pub type __fsblkcnt64_t = c_ulong; +pub type __fsfilcnt_t = c_ulong; +pub type __fsfilcnt64_t = c_ulong; +pub type __fsword_t = c_long; +pub type __ssize_t = c_long; +pub type __syscall_slong_t = c_long; +pub type __syscall_ulong_t = c_ulong; pub type __loff_t = __off64_t; -pub type __caddr_t = *mut libc::c_char; -pub type __intptr_t = libc::c_long; -pub type __socklen_t = libc::c_uint; -pub type __sig_atomic_t = libc::c_int; +pub type __caddr_t = *mut c_char; +pub type __intptr_t = c_long; +pub type __socklen_t = c_uint; +pub type __sig_atomic_t = c_int; pub type int_least8_t = __int_least8_t; pub type int_least16_t = __int_least16_t; pub type int_least32_t = __int_least32_t; @@ -1154,14 +1167,14 @@ pub type uint_least8_t = __uint_least8_t; pub type uint_least16_t = __uint_least16_t; pub type uint_least32_t = __uint_least32_t; pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = libc::c_schar; -pub type int_fast16_t = libc::c_long; -pub type int_fast32_t = libc::c_long; -pub type int_fast64_t = libc::c_long; -pub type uint_fast8_t = libc::c_uchar; -pub type uint_fast16_t = libc::c_ulong; -pub type uint_fast32_t = libc::c_ulong; -pub type uint_fast64_t = libc::c_ulong; +pub type int_fast8_t = c_schar; +pub type int_fast16_t = c_long; +pub type int_fast32_t = c_long; +pub type int_fast64_t = c_long; +pub type uint_fast8_t = c_uchar; +pub type uint_fast16_t = c_ulong; +pub type uint_fast32_t = c_ulong; +pub type uint_fast64_t = c_ulong; pub type intmax_t = __intmax_t; pub type uintmax_t = __uintmax_t; #[repr(u32)] @@ -1178,40 +1191,40 @@ pub type Sint32 = i32; pub type Uint32 = u32; pub type Sint64 = i64; pub type Uint64 = u64; -pub type SDL_compile_time_assert_uint8 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_sint8 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_uint16 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_sint16 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_uint32 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_sint32 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_uint64 = [libc::c_int; 1usize]; -pub type SDL_compile_time_assert_sint64 = [libc::c_int; 1usize]; +pub type SDL_compile_time_assert_uint8 = [c_int; 1usize]; +pub type SDL_compile_time_assert_sint8 = [c_int; 1usize]; +pub type SDL_compile_time_assert_uint16 = [c_int; 1usize]; +pub type SDL_compile_time_assert_sint16 = [c_int; 1usize]; +pub type SDL_compile_time_assert_uint32 = [c_int; 1usize]; +pub type SDL_compile_time_assert_sint32 = [c_int; 1usize]; +pub type SDL_compile_time_assert_uint64 = [c_int; 1usize]; +pub type SDL_compile_time_assert_sint64 = [c_int; 1usize]; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum SDL_DUMMY_ENUM { DUMMY_ENUM_VALUE = 0, } -pub type SDL_compile_time_assert_enum = [libc::c_int; 1usize]; +pub type SDL_compile_time_assert_enum = [c_int; 1usize]; extern "C" { - pub fn SDL_malloc(size: size_t) -> *mut libc::c_void; + pub fn SDL_malloc(size: size_t) -> *mut c_void; } extern "C" { - pub fn SDL_calloc(nmemb: size_t, size: size_t) -> *mut libc::c_void; + pub fn SDL_calloc(nmemb: size_t, size: size_t) -> *mut c_void; } extern "C" { - pub fn SDL_realloc(mem: *mut libc::c_void, size: size_t) -> *mut libc::c_void; + pub fn SDL_realloc(mem: *mut c_void, size: size_t) -> *mut c_void; } extern "C" { - pub fn SDL_free(mem: *mut libc::c_void); + pub fn SDL_free(mem: *mut c_void); } pub type SDL_malloc_func = - ::core::option::Option *mut libc::c_void>; + ::core::option::Option *mut c_void>; pub type SDL_calloc_func = - ::core::option::Option *mut libc::c_void>; + ::core::option::Option *mut c_void>; pub type SDL_realloc_func = ::core::option::Option< - unsafe extern "C" fn(mem: *mut libc::c_void, size: size_t) -> *mut libc::c_void, + unsafe extern "C" fn(mem: *mut c_void, size: size_t) -> *mut c_void, >; -pub type SDL_free_func = ::core::option::Option; +pub type SDL_free_func = ::core::option::Option; extern "C" { #[doc = " Get the current set of SDL memory functions"] #[doc = ""] @@ -1232,105 +1245,105 @@ extern "C" { calloc_func: SDL_calloc_func, realloc_func: SDL_realloc_func, free_func: SDL_free_func, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the number of outstanding (unfreed) allocations"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.7."] - pub fn SDL_GetNumAllocations() -> libc::c_int; + pub fn SDL_GetNumAllocations() -> c_int; } extern "C" { - pub fn SDL_getenv(name: *const libc::c_char) -> *mut libc::c_char; + pub fn SDL_getenv(name: *const c_char) -> *mut c_char; } extern "C" { pub fn SDL_setenv( - name: *const libc::c_char, - value: *const libc::c_char, - overwrite: libc::c_int, - ) -> libc::c_int; + name: *const c_char, + value: *const c_char, + overwrite: c_int, + ) -> c_int; } extern "C" { pub fn SDL_qsort( - base: *mut libc::c_void, + base: *mut c_void, nmemb: size_t, size: size_t, compare: ::core::option::Option< unsafe extern "C" fn( - arg1: *const libc::c_void, - arg2: *const libc::c_void, - ) -> libc::c_int, + arg1: *const c_void, + arg2: *const c_void, + ) -> c_int, >, ); } extern "C" { - pub fn SDL_abs(x: libc::c_int) -> libc::c_int; + pub fn SDL_abs(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isalpha(x: libc::c_int) -> libc::c_int; + pub fn SDL_isalpha(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isalnum(x: libc::c_int) -> libc::c_int; + pub fn SDL_isalnum(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isblank(x: libc::c_int) -> libc::c_int; + pub fn SDL_isblank(x: c_int) -> c_int; } extern "C" { - pub fn SDL_iscntrl(x: libc::c_int) -> libc::c_int; + pub fn SDL_iscntrl(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isdigit(x: libc::c_int) -> libc::c_int; + pub fn SDL_isdigit(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isxdigit(x: libc::c_int) -> libc::c_int; + pub fn SDL_isxdigit(x: c_int) -> c_int; } extern "C" { - pub fn SDL_ispunct(x: libc::c_int) -> libc::c_int; + pub fn SDL_ispunct(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isspace(x: libc::c_int) -> libc::c_int; + pub fn SDL_isspace(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isupper(x: libc::c_int) -> libc::c_int; + pub fn SDL_isupper(x: c_int) -> c_int; } extern "C" { - pub fn SDL_islower(x: libc::c_int) -> libc::c_int; + pub fn SDL_islower(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isprint(x: libc::c_int) -> libc::c_int; + pub fn SDL_isprint(x: c_int) -> c_int; } extern "C" { - pub fn SDL_isgraph(x: libc::c_int) -> libc::c_int; + pub fn SDL_isgraph(x: c_int) -> c_int; } extern "C" { - pub fn SDL_toupper(x: libc::c_int) -> libc::c_int; + pub fn SDL_toupper(x: c_int) -> c_int; } extern "C" { - pub fn SDL_tolower(x: libc::c_int) -> libc::c_int; + pub fn SDL_tolower(x: c_int) -> c_int; } extern "C" { - pub fn SDL_crc32(crc: Uint32, data: *const libc::c_void, len: size_t) -> Uint32; + pub fn SDL_crc32(crc: Uint32, data: *const c_void, len: size_t) -> Uint32; } extern "C" { - pub fn SDL_memset(dst: *mut libc::c_void, c: libc::c_int, len: size_t) -> *mut libc::c_void; + pub fn SDL_memset(dst: *mut c_void, c: c_int, len: size_t) -> *mut c_void; } extern "C" { pub fn SDL_memcpy( - dst: *mut libc::c_void, - src: *const libc::c_void, + dst: *mut c_void, + src: *const c_void, len: size_t, - ) -> *mut libc::c_void; + ) -> *mut c_void; } extern "C" { pub fn SDL_memmove( - dst: *mut libc::c_void, - src: *const libc::c_void, + dst: *mut c_void, + src: *const c_void, len: size_t, - ) -> *mut libc::c_void; + ) -> *mut c_void; } extern "C" { - pub fn SDL_memcmp(s1: *const libc::c_void, s2: *const libc::c_void, len: size_t) - -> libc::c_int; + pub fn SDL_memcmp(s1: *const c_void, s2: *const c_void, len: size_t) + -> c_int; } extern "C" { pub fn SDL_wcslen(wstr: *const wchar_t) -> size_t; @@ -1348,202 +1361,202 @@ extern "C" { pub fn SDL_wcsstr(haystack: *const wchar_t, needle: *const wchar_t) -> *mut wchar_t; } extern "C" { - pub fn SDL_wcscmp(str1: *const wchar_t, str2: *const wchar_t) -> libc::c_int; + pub fn SDL_wcscmp(str1: *const wchar_t, str2: *const wchar_t) -> c_int; } extern "C" { - pub fn SDL_wcsncmp(str1: *const wchar_t, str2: *const wchar_t, maxlen: size_t) -> libc::c_int; + pub fn SDL_wcsncmp(str1: *const wchar_t, str2: *const wchar_t, maxlen: size_t) -> c_int; } extern "C" { - pub fn SDL_wcscasecmp(str1: *const wchar_t, str2: *const wchar_t) -> libc::c_int; + pub fn SDL_wcscasecmp(str1: *const wchar_t, str2: *const wchar_t) -> c_int; } extern "C" { - pub fn SDL_wcsncasecmp(str1: *const wchar_t, str2: *const wchar_t, len: size_t) -> libc::c_int; + pub fn SDL_wcsncasecmp(str1: *const wchar_t, str2: *const wchar_t, len: size_t) -> c_int; } extern "C" { - pub fn SDL_strlen(str: *const libc::c_char) -> size_t; + pub fn SDL_strlen(str: *const c_char) -> size_t; } extern "C" { - pub fn SDL_strlcpy(dst: *mut libc::c_char, src: *const libc::c_char, maxlen: size_t) -> size_t; + pub fn SDL_strlcpy(dst: *mut c_char, src: *const c_char, maxlen: size_t) -> size_t; } extern "C" { pub fn SDL_utf8strlcpy( - dst: *mut libc::c_char, - src: *const libc::c_char, + dst: *mut c_char, + src: *const c_char, dst_bytes: size_t, ) -> size_t; } extern "C" { - pub fn SDL_strlcat(dst: *mut libc::c_char, src: *const libc::c_char, maxlen: size_t) -> size_t; + pub fn SDL_strlcat(dst: *mut c_char, src: *const c_char, maxlen: size_t) -> size_t; } extern "C" { - pub fn SDL_strdup(str: *const libc::c_char) -> *mut libc::c_char; + pub fn SDL_strdup(str: *const c_char) -> *mut c_char; } extern "C" { - pub fn SDL_strrev(str: *mut libc::c_char) -> *mut libc::c_char; + pub fn SDL_strrev(str: *mut c_char) -> *mut c_char; } extern "C" { - pub fn SDL_strupr(str: *mut libc::c_char) -> *mut libc::c_char; + pub fn SDL_strupr(str: *mut c_char) -> *mut c_char; } extern "C" { - pub fn SDL_strlwr(str: *mut libc::c_char) -> *mut libc::c_char; + pub fn SDL_strlwr(str: *mut c_char) -> *mut c_char; } extern "C" { - pub fn SDL_strchr(str: *const libc::c_char, c: libc::c_int) -> *mut libc::c_char; + pub fn SDL_strchr(str: *const c_char, c: c_int) -> *mut c_char; } extern "C" { - pub fn SDL_strrchr(str: *const libc::c_char, c: libc::c_int) -> *mut libc::c_char; + pub fn SDL_strrchr(str: *const c_char, c: c_int) -> *mut c_char; } extern "C" { pub fn SDL_strstr( - haystack: *const libc::c_char, - needle: *const libc::c_char, - ) -> *mut libc::c_char; + haystack: *const c_char, + needle: *const c_char, + ) -> *mut c_char; } extern "C" { pub fn SDL_strtokr( - s1: *mut libc::c_char, - s2: *const libc::c_char, - saveptr: *mut *mut libc::c_char, - ) -> *mut libc::c_char; + s1: *mut c_char, + s2: *const c_char, + saveptr: *mut *mut c_char, + ) -> *mut c_char; } extern "C" { - pub fn SDL_utf8strlen(str: *const libc::c_char) -> size_t; + pub fn SDL_utf8strlen(str: *const c_char) -> size_t; } extern "C" { pub fn SDL_itoa( - value: libc::c_int, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + value: c_int, + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { pub fn SDL_uitoa( - value: libc::c_uint, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + value: c_uint, + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { pub fn SDL_ltoa( - value: libc::c_long, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + value: c_long, + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { pub fn SDL_ultoa( - value: libc::c_ulong, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + value: c_ulong, + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { pub fn SDL_lltoa( value: Sint64, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { pub fn SDL_ulltoa( value: Uint64, - str: *mut libc::c_char, - radix: libc::c_int, - ) -> *mut libc::c_char; + str: *mut c_char, + radix: c_int, + ) -> *mut c_char; } extern "C" { - pub fn SDL_atoi(str: *const libc::c_char) -> libc::c_int; + pub fn SDL_atoi(str: *const c_char) -> c_int; } extern "C" { - pub fn SDL_atof(str: *const libc::c_char) -> f64; + pub fn SDL_atof(str: *const c_char) -> f64; } extern "C" { pub fn SDL_strtol( - str: *const libc::c_char, - endp: *mut *mut libc::c_char, - base: libc::c_int, - ) -> libc::c_long; + str: *const c_char, + endp: *mut *mut c_char, + base: c_int, + ) -> c_long; } extern "C" { pub fn SDL_strtoul( - str: *const libc::c_char, - endp: *mut *mut libc::c_char, - base: libc::c_int, - ) -> libc::c_ulong; + str: *const c_char, + endp: *mut *mut c_char, + base: c_int, + ) -> c_ulong; } extern "C" { pub fn SDL_strtoll( - str: *const libc::c_char, - endp: *mut *mut libc::c_char, - base: libc::c_int, + str: *const c_char, + endp: *mut *mut c_char, + base: c_int, ) -> Sint64; } extern "C" { pub fn SDL_strtoull( - str: *const libc::c_char, - endp: *mut *mut libc::c_char, - base: libc::c_int, + str: *const c_char, + endp: *mut *mut c_char, + base: c_int, ) -> Uint64; } extern "C" { - pub fn SDL_strtod(str: *const libc::c_char, endp: *mut *mut libc::c_char) -> f64; + pub fn SDL_strtod(str: *const c_char, endp: *mut *mut c_char) -> f64; } extern "C" { - pub fn SDL_strcmp(str1: *const libc::c_char, str2: *const libc::c_char) -> libc::c_int; + pub fn SDL_strcmp(str1: *const c_char, str2: *const c_char) -> c_int; } extern "C" { pub fn SDL_strncmp( - str1: *const libc::c_char, - str2: *const libc::c_char, + str1: *const c_char, + str2: *const c_char, maxlen: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn SDL_strcasecmp(str1: *const libc::c_char, str2: *const libc::c_char) -> libc::c_int; + pub fn SDL_strcasecmp(str1: *const c_char, str2: *const c_char) -> c_int; } extern "C" { pub fn SDL_strncasecmp( - str1: *const libc::c_char, - str2: *const libc::c_char, + str1: *const c_char, + str2: *const c_char, len: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn SDL_sscanf(text: *const libc::c_char, fmt: *const libc::c_char, ...) -> libc::c_int; + pub fn SDL_sscanf(text: *const c_char, fmt: *const c_char, ...) -> c_int; } extern "C" { pub fn SDL_vsscanf( - text: *const libc::c_char, - fmt: *const libc::c_char, + text: *const c_char, + fmt: *const c_char, ap: *mut __va_list_tag, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn SDL_snprintf( - text: *mut libc::c_char, + text: *mut c_char, maxlen: size_t, - fmt: *const libc::c_char, + fmt: *const c_char, ... - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn SDL_vsnprintf( - text: *mut libc::c_char, + text: *mut c_char, maxlen: size_t, - fmt: *const libc::c_char, + fmt: *const c_char, ap: *mut __va_list_tag, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn SDL_asprintf(strp: *mut *mut libc::c_char, fmt: *const libc::c_char, ...) - -> libc::c_int; + pub fn SDL_asprintf(strp: *mut *mut c_char, fmt: *const c_char, ...) + -> c_int; } extern "C" { pub fn SDL_vasprintf( - strp: *mut *mut libc::c_char, - fmt: *const libc::c_char, + strp: *mut *mut c_char, + fmt: *const c_char, ap: *mut __va_list_tag, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Use this function to compute arc cosine of `x`."] @@ -1654,16 +1667,16 @@ extern "C" { pub fn SDL_roundf(x: f32) -> f32; } extern "C" { - pub fn SDL_lround(x: f64) -> libc::c_long; + pub fn SDL_lround(x: f64) -> c_long; } extern "C" { - pub fn SDL_lroundf(x: f32) -> libc::c_long; + pub fn SDL_lroundf(x: f32) -> c_long; } extern "C" { - pub fn SDL_scalbn(x: f64, n: libc::c_int) -> f64; + pub fn SDL_scalbn(x: f64, n: c_int) -> f64; } extern "C" { - pub fn SDL_scalbnf(x: f32, n: libc::c_int) -> f32; + pub fn SDL_scalbnf(x: f32, n: c_int) -> f32; } extern "C" { pub fn SDL_sin(x: f64) -> f64; @@ -1691,19 +1704,19 @@ pub struct _SDL_iconv_t { pub type SDL_iconv_t = *mut _SDL_iconv_t; extern "C" { pub fn SDL_iconv_open( - tocode: *const libc::c_char, - fromcode: *const libc::c_char, + tocode: *const c_char, + fromcode: *const c_char, ) -> SDL_iconv_t; } extern "C" { - pub fn SDL_iconv_close(cd: SDL_iconv_t) -> libc::c_int; + pub fn SDL_iconv_close(cd: SDL_iconv_t) -> c_int; } extern "C" { pub fn SDL_iconv( cd: SDL_iconv_t, - inbuf: *mut *const libc::c_char, + inbuf: *mut *const c_char, inbytesleft: *mut size_t, - outbuf: *mut *mut libc::c_char, + outbuf: *mut *mut c_char, outbytesleft: *mut size_t, ) -> size_t; } @@ -1713,18 +1726,18 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] pub fn SDL_iconv_string( - tocode: *const libc::c_char, - fromcode: *const libc::c_char, - inbuf: *const libc::c_char, + tocode: *const c_char, + fromcode: *const c_char, + inbuf: *const c_char, inbytesleft: size_t, - ) -> *mut libc::c_char; + ) -> *mut c_char; } #[doc = " The prototype for the application's main() function"] pub type SDL_main_func = ::core::option::Option< - unsafe extern "C" fn(argc: libc::c_int, argv: *mut *mut libc::c_char) -> libc::c_int, + unsafe extern "C" fn(argc: c_int, argv: *mut *mut c_char) -> c_int, >; extern "C" { - pub fn SDL_main(argc: libc::c_int, argv: *mut *mut libc::c_char) -> libc::c_int; + pub fn SDL_main(argc: c_int, argv: *mut *mut c_char) -> c_int; } extern "C" { #[doc = " Circumvent failure of SDL_Init() when not using SDL_main() as an entry"] @@ -1757,12 +1770,12 @@ pub enum SDL_AssertState { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_AssertData { - pub always_ignore: libc::c_int, - pub trigger_count: libc::c_uint, - pub condition: *const libc::c_char, - pub filename: *const libc::c_char, - pub linenum: libc::c_int, - pub function: *const libc::c_char, + pub always_ignore: c_int, + pub trigger_count: c_uint, + pub condition: *const c_char, + pub filename: *const c_char, + pub linenum: c_int, + pub function: *const c_char, pub next: *const SDL_AssertData, } #[test] @@ -1851,9 +1864,9 @@ fn bindgen_test_layout_SDL_AssertData() { extern "C" { pub fn SDL_ReportAssertion( arg1: *mut SDL_AssertData, - arg2: *const libc::c_char, - arg3: *const libc::c_char, - arg4: libc::c_int, + arg2: *const c_char, + arg3: *const c_char, + arg4: c_int, ) -> SDL_AssertState; } #[doc = " A callback that fires when an SDL assertion fails."] @@ -1865,7 +1878,7 @@ extern "C" { pub type SDL_AssertionHandler = ::core::option::Option< unsafe extern "C" fn( data: *const SDL_AssertData, - userdata: *mut libc::c_void, + userdata: *mut c_void, ) -> SDL_AssertState, >; extern "C" { @@ -1888,7 +1901,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetAssertionHandler"] - pub fn SDL_SetAssertionHandler(handler: SDL_AssertionHandler, userdata: *mut libc::c_void); + pub fn SDL_SetAssertionHandler(handler: SDL_AssertionHandler, userdata: *mut c_void); } extern "C" { #[doc = " Get the default assertion handler."] @@ -1926,7 +1939,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.2."] #[doc = ""] #[doc = " \\sa SDL_SetAssertionHandler"] - pub fn SDL_GetAssertionHandler(puserdata: *mut *mut libc::c_void) -> SDL_AssertionHandler; + pub fn SDL_GetAssertionHandler(puserdata: *mut *mut c_void) -> SDL_AssertionHandler; } extern "C" { #[doc = " Get a list of all assertion failures."] @@ -1968,7 +1981,7 @@ extern "C" { #[doc = " \\sa SDL_GetAssertionReport"] pub fn SDL_ResetAssertionReport(); } -pub type SDL_SpinLock = libc::c_int; +pub type SDL_SpinLock = c_int; extern "C" { #[doc = " Try to lock a spin lock by setting it to a non-zero value."] #[doc = ""] @@ -2045,7 +2058,7 @@ extern "C" { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_atomic_t { - pub value: libc::c_int, + pub value: c_int, } #[test] fn bindgen_test_layout_SDL_atomic_t() { @@ -2088,8 +2101,8 @@ extern "C" { #[doc = " \\sa SDL_AtomicSet"] pub fn SDL_AtomicCAS( a: *mut SDL_atomic_t, - oldval: libc::c_int, - newval: libc::c_int, + oldval: c_int, + newval: c_int, ) -> SDL_bool; } extern "C" { @@ -2107,7 +2120,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.2."] #[doc = ""] #[doc = " \\sa SDL_AtomicGet"] - pub fn SDL_AtomicSet(a: *mut SDL_atomic_t, v: libc::c_int) -> libc::c_int; + pub fn SDL_AtomicSet(a: *mut SDL_atomic_t, v: c_int) -> c_int; } extern "C" { #[doc = " Get the value of an atomic variable."] @@ -2121,7 +2134,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.2."] #[doc = ""] #[doc = " \\sa SDL_AtomicSet"] - pub fn SDL_AtomicGet(a: *mut SDL_atomic_t) -> libc::c_int; + pub fn SDL_AtomicGet(a: *mut SDL_atomic_t) -> c_int; } extern "C" { #[doc = " Add to an atomic variable."] @@ -2139,7 +2152,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_AtomicDecRef"] #[doc = " \\sa SDL_AtomicIncRef"] - pub fn SDL_AtomicAdd(a: *mut SDL_atomic_t, v: libc::c_int) -> libc::c_int; + pub fn SDL_AtomicAdd(a: *mut SDL_atomic_t, v: c_int) -> c_int; } extern "C" { #[doc = " Set a pointer to a new value if it is currently an old value."] @@ -2158,9 +2171,9 @@ extern "C" { #[doc = " \\sa SDL_AtomicGetPtr"] #[doc = " \\sa SDL_AtomicSetPtr"] pub fn SDL_AtomicCASPtr( - a: *mut *mut libc::c_void, - oldval: *mut libc::c_void, - newval: *mut libc::c_void, + a: *mut *mut c_void, + oldval: *mut c_void, + newval: *mut c_void, ) -> SDL_bool; } extern "C" { @@ -2177,7 +2190,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_AtomicCASPtr"] #[doc = " \\sa SDL_AtomicGetPtr"] - pub fn SDL_AtomicSetPtr(a: *mut *mut libc::c_void, v: *mut libc::c_void) -> *mut libc::c_void; + pub fn SDL_AtomicSetPtr(a: *mut *mut c_void, v: *mut c_void) -> *mut c_void; } extern "C" { #[doc = " Get the value of a pointer atomically."] @@ -2192,7 +2205,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_AtomicCASPtr"] #[doc = " \\sa SDL_AtomicSetPtr"] - pub fn SDL_AtomicGetPtr(a: *mut *mut libc::c_void) -> *mut libc::c_void; + pub fn SDL_AtomicGetPtr(a: *mut *mut c_void) -> *mut c_void; } extern "C" { #[doc = " Set the SDL error message for the current thread."] @@ -2217,7 +2230,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_ClearError"] #[doc = " \\sa SDL_GetError"] - pub fn SDL_SetError(fmt: *const libc::c_char, ...) -> libc::c_int; + pub fn SDL_SetError(fmt: *const c_char, ...) -> c_int; } extern "C" { #[doc = " Retrieve a message about the last error that occurred on the current"] @@ -2253,7 +2266,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_ClearError"] #[doc = " \\sa SDL_SetError"] - pub fn SDL_GetError() -> *const libc::c_char; + pub fn SDL_GetError() -> *const c_char; } extern "C" { #[doc = " Get the last error message that was set for the current thread."] @@ -2269,7 +2282,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] #[doc = ""] #[doc = " \\sa SDL_GetError"] - pub fn SDL_GetErrorMsg(errstr: *mut libc::c_char, maxlen: libc::c_int) -> *mut libc::c_char; + pub fn SDL_GetErrorMsg(errstr: *mut c_char, maxlen: c_int) -> *mut c_char; } extern "C" { #[doc = " Clear any previous error message for this thread."] @@ -2291,7 +2304,7 @@ pub enum SDL_errorcode { SDL_LASTERROR = 5, } extern "C" { - pub fn SDL_Error(code: SDL_errorcode) -> libc::c_int; + pub fn SDL_Error(code: SDL_errorcode) -> c_int; } #[repr(C)] #[derive(Copy, Clone)] @@ -2334,7 +2347,7 @@ extern "C" { #[doc = " \\return 0, or -1 on error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_LockMutex(mutex: *mut SDL_mutex) -> libc::c_int; + pub fn SDL_LockMutex(mutex: *mut SDL_mutex) -> c_int; } extern "C" { #[doc = " Try to lock a mutex without blocking."] @@ -2355,7 +2368,7 @@ extern "C" { #[doc = " \\sa SDL_DestroyMutex"] #[doc = " \\sa SDL_LockMutex"] #[doc = " \\sa SDL_UnlockMutex"] - pub fn SDL_TryLockMutex(mutex: *mut SDL_mutex) -> libc::c_int; + pub fn SDL_TryLockMutex(mutex: *mut SDL_mutex) -> c_int; } extern "C" { #[doc = " Unlock the mutex."] @@ -2373,7 +2386,7 @@ extern "C" { #[doc = " \\returns 0, or -1 on error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_UnlockMutex(mutex: *mut SDL_mutex) -> libc::c_int; + pub fn SDL_UnlockMutex(mutex: *mut SDL_mutex) -> c_int; } extern "C" { #[doc = " Destroy a mutex created with SDL_CreateMutex()."] @@ -2465,7 +2478,7 @@ extern "C" { #[doc = " \\sa SDL_SemValue"] #[doc = " \\sa SDL_SemWait"] #[doc = " \\sa SDL_SemWaitTimeout"] - pub fn SDL_SemWait(sem: *mut SDL_sem) -> libc::c_int; + pub fn SDL_SemWait(sem: *mut SDL_sem) -> c_int; } extern "C" { #[doc = " See if a semaphore has a positive value and decrement it if it does."] @@ -2488,7 +2501,7 @@ extern "C" { #[doc = " \\sa SDL_SemValue"] #[doc = " \\sa SDL_SemWait"] #[doc = " \\sa SDL_SemWaitTimeout"] - pub fn SDL_SemTryWait(sem: *mut SDL_sem) -> libc::c_int; + pub fn SDL_SemTryWait(sem: *mut SDL_sem) -> c_int; } extern "C" { #[doc = " Wait until a semaphore has a positive value and then decrements it."] @@ -2512,7 +2525,7 @@ extern "C" { #[doc = " \\sa SDL_SemTryWait"] #[doc = " \\sa SDL_SemValue"] #[doc = " \\sa SDL_SemWait"] - pub fn SDL_SemWaitTimeout(sem: *mut SDL_sem, ms: Uint32) -> libc::c_int; + pub fn SDL_SemWaitTimeout(sem: *mut SDL_sem, ms: Uint32) -> c_int; } extern "C" { #[doc = " Atomically increment a semaphore's value and wake waiting threads."] @@ -2529,7 +2542,7 @@ extern "C" { #[doc = " \\sa SDL_SemValue"] #[doc = " \\sa SDL_SemWait"] #[doc = " \\sa SDL_SemWaitTimeout"] - pub fn SDL_SemPost(sem: *mut SDL_sem) -> libc::c_int; + pub fn SDL_SemPost(sem: *mut SDL_sem) -> c_int; } extern "C" { #[doc = " Get the current value of a semaphore."] @@ -2590,7 +2603,7 @@ extern "C" { #[doc = " \\sa SDL_CondWaitTimeout"] #[doc = " \\sa SDL_CreateCond"] #[doc = " \\sa SDL_DestroyCond"] - pub fn SDL_CondSignal(cond: *mut SDL_cond) -> libc::c_int; + pub fn SDL_CondSignal(cond: *mut SDL_cond) -> c_int; } extern "C" { #[doc = " Restart all threads that are waiting on the condition variable."] @@ -2606,7 +2619,7 @@ extern "C" { #[doc = " \\sa SDL_CondWaitTimeout"] #[doc = " \\sa SDL_CreateCond"] #[doc = " \\sa SDL_DestroyCond"] - pub fn SDL_CondBroadcast(cond: *mut SDL_cond) -> libc::c_int; + pub fn SDL_CondBroadcast(cond: *mut SDL_cond) -> c_int; } extern "C" { #[doc = " Wait until a condition variable is signaled."] @@ -2633,7 +2646,7 @@ extern "C" { #[doc = " \\sa SDL_CondWaitTimeout"] #[doc = " \\sa SDL_CreateCond"] #[doc = " \\sa SDL_DestroyCond"] - pub fn SDL_CondWait(cond: *mut SDL_cond, mutex: *mut SDL_mutex) -> libc::c_int; + pub fn SDL_CondWait(cond: *mut SDL_cond, mutex: *mut SDL_mutex) -> c_int; } extern "C" { #[doc = " Wait until a condition variable is signaled or a certain time has passed."] @@ -2665,15 +2678,15 @@ extern "C" { cond: *mut SDL_cond, mutex: *mut SDL_mutex, ms: Uint32, - ) -> libc::c_int; + ) -> c_int; } #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_Thread { _unused: [u8; 0], } -pub type SDL_threadID = libc::c_ulong; -pub type SDL_TLSID = libc::c_uint; +pub type SDL_threadID = c_ulong; +pub type SDL_TLSID = c_uint; #[repr(u32)] #[doc = " The SDL thread priority."] #[doc = ""] @@ -2695,7 +2708,7 @@ pub enum SDL_ThreadPriority { #[doc = " \\param data what was passed as `data` to SDL_CreateThread()"] #[doc = " \\returns a value that can be reported through SDL_WaitThread()."] pub type SDL_ThreadFunction = - ::core::option::Option libc::c_int>; + ::core::option::Option c_int>; extern "C" { #[doc = " Create a new thread with a default stack size."] #[doc = ""] @@ -2718,8 +2731,8 @@ extern "C" { #[doc = " \\sa SDL_WaitThread"] pub fn SDL_CreateThread( fn_: SDL_ThreadFunction, - name: *const libc::c_char, - data: *mut libc::c_void, + name: *const c_char, + data: *mut c_void, ) -> *mut SDL_Thread; } extern "C" { @@ -2766,9 +2779,9 @@ extern "C" { #[doc = " \\sa SDL_WaitThread"] pub fn SDL_CreateThreadWithStackSize( fn_: SDL_ThreadFunction, - name: *const libc::c_char, + name: *const c_char, stacksize: size_t, - data: *mut libc::c_void, + data: *mut c_void, ) -> *mut SDL_Thread; } extern "C" { @@ -2784,7 +2797,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_CreateThread"] - pub fn SDL_GetThreadName(thread: *mut SDL_Thread) -> *const libc::c_char; + pub fn SDL_GetThreadName(thread: *mut SDL_Thread) -> *const c_char; } extern "C" { #[doc = " Get the thread identifier for the current thread."] @@ -2831,7 +2844,7 @@ extern "C" { #[doc = " SDL_GetError() for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_SetThreadPriority(priority: SDL_ThreadPriority) -> libc::c_int; + pub fn SDL_SetThreadPriority(priority: SDL_ThreadPriority) -> c_int; } extern "C" { #[doc = " Wait for a thread to finish."] @@ -2865,7 +2878,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_CreateThread"] #[doc = " \\sa SDL_DetachThread"] - pub fn SDL_WaitThread(thread: *mut SDL_Thread, status: *mut libc::c_int); + pub fn SDL_WaitThread(thread: *mut SDL_Thread, status: *mut c_int); } extern "C" { #[doc = " Let a thread clean up on exit without intervention."] @@ -2927,7 +2940,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_TLSCreate"] #[doc = " \\sa SDL_TLSSet"] - pub fn SDL_TLSGet(id: SDL_TLSID) -> *mut libc::c_void; + pub fn SDL_TLSGet(id: SDL_TLSID) -> *mut c_void; } extern "C" { #[doc = " Set the current thread's value associated with a thread local storage ID."] @@ -2953,9 +2966,9 @@ extern "C" { #[doc = " \\sa SDL_TLSGet"] pub fn SDL_TLSSet( id: SDL_TLSID, - value: *const libc::c_void, - destructor: ::core::option::Option, - ) -> libc::c_int; + value: *const c_void, + destructor: ::core::option::Option, + ) -> c_int; } extern "C" { #[doc = " Cleanup all TLS data for this thread."] @@ -2977,7 +2990,7 @@ pub struct SDL_RWops { unsafe extern "C" fn( context: *mut SDL_RWops, offset: Sint64, - whence: libc::c_int, + whence: c_int, ) -> Sint64, >, #[doc = " Read up to \\c maxnum objects each of size \\c size from the data"] @@ -2987,7 +3000,7 @@ pub struct SDL_RWops { pub read: ::core::option::Option< unsafe extern "C" fn( context: *mut SDL_RWops, - ptr: *mut libc::c_void, + ptr: *mut c_void, size: size_t, maxnum: size_t, ) -> size_t, @@ -2999,7 +3012,7 @@ pub struct SDL_RWops { pub write: ::core::option::Option< unsafe extern "C" fn( context: *mut SDL_RWops, - ptr: *const libc::c_void, + ptr: *const c_void, size: size_t, num: size_t, ) -> size_t, @@ -3007,7 +3020,7 @@ pub struct SDL_RWops { #[doc = " Close and free an allocated SDL_RWops structure."] #[doc = ""] #[doc = " \\return 0 if successful or -1 on write error when flushing data."] - pub close: ::core::option::Option libc::c_int>, + pub close: ::core::option::Option c_int>, pub type_: Uint32, pub hidden: SDL_RWops__bindgen_ty_1, } @@ -3086,8 +3099,8 @@ fn bindgen_test_layout_SDL_RWops__bindgen_ty_1__bindgen_ty_1() { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_RWops__bindgen_ty_1__bindgen_ty_2 { - pub data1: *mut libc::c_void, - pub data2: *mut libc::c_void, + pub data1: *mut c_void, + pub data2: *mut c_void, } #[test] fn bindgen_test_layout_SDL_RWops__bindgen_ty_1__bindgen_ty_2() { @@ -3312,7 +3325,7 @@ extern "C" { #[doc = " \\sa SDL_RWseek"] #[doc = " \\sa SDL_RWtell"] #[doc = " \\sa SDL_RWwrite"] - pub fn SDL_RWFromFile(file: *const libc::c_char, mode: *const libc::c_char) -> *mut SDL_RWops; + pub fn SDL_RWFromFile(file: *const c_char, mode: *const c_char) -> *mut SDL_RWops; } extern "C" { #[doc = " Use this function to create an SDL_RWops structure from a standard I/O file"] @@ -3343,7 +3356,7 @@ extern "C" { #[doc = " \\sa SDL_RWseek"] #[doc = " \\sa SDL_RWtell"] #[doc = " \\sa SDL_RWwrite"] - pub fn SDL_RWFromFP(fp: *mut libc::c_void, autoclose: SDL_bool) -> *mut SDL_RWops; + pub fn SDL_RWFromFP(fp: *mut c_void, autoclose: SDL_bool) -> *mut SDL_RWops; } extern "C" { #[doc = " Use this function to prepare a read-write memory buffer for use with"] @@ -3375,7 +3388,7 @@ extern "C" { #[doc = " \\sa SDL_RWseek"] #[doc = " \\sa SDL_RWtell"] #[doc = " \\sa SDL_RWwrite"] - pub fn SDL_RWFromMem(mem: *mut libc::c_void, size: libc::c_int) -> *mut SDL_RWops; + pub fn SDL_RWFromMem(mem: *mut c_void, size: c_int) -> *mut SDL_RWops; } extern "C" { #[doc = " Use this function to prepare a read-only memory buffer for use with RWops."] @@ -3408,7 +3421,7 @@ extern "C" { #[doc = " \\sa SDL_RWread"] #[doc = " \\sa SDL_RWseek"] #[doc = " \\sa SDL_RWtell"] - pub fn SDL_RWFromConstMem(mem: *const libc::c_void, size: libc::c_int) -> *mut SDL_RWops; + pub fn SDL_RWFromConstMem(mem: *const c_void, size: c_int) -> *mut SDL_RWops; } extern "C" { #[doc = " Use this function to allocate an empty, unpopulated SDL_RWops structure."] @@ -3504,7 +3517,7 @@ extern "C" { #[doc = " \\sa SDL_RWread"] #[doc = " \\sa SDL_RWtell"] #[doc = " \\sa SDL_RWwrite"] - pub fn SDL_RWseek(context: *mut SDL_RWops, offset: Sint64, whence: libc::c_int) -> Sint64; + pub fn SDL_RWseek(context: *mut SDL_RWops, offset: Sint64, whence: c_int) -> Sint64; } extern "C" { #[doc = " Determine the current read/write offset in an SDL_RWops data stream."] @@ -3563,7 +3576,7 @@ extern "C" { #[doc = " \\sa SDL_RWwrite"] pub fn SDL_RWread( context: *mut SDL_RWops, - ptr: *mut libc::c_void, + ptr: *mut c_void, size: size_t, maxnum: size_t, ) -> size_t; @@ -3599,7 +3612,7 @@ extern "C" { #[doc = " \\sa SDL_RWseek"] pub fn SDL_RWwrite( context: *mut SDL_RWops, - ptr: *const libc::c_void, + ptr: *const c_void, size: size_t, num: size_t, ) -> size_t; @@ -3630,7 +3643,7 @@ extern "C" { #[doc = " \\sa SDL_RWread"] #[doc = " \\sa SDL_RWseek"] #[doc = " \\sa SDL_RWwrite"] - pub fn SDL_RWclose(context: *mut SDL_RWops) -> libc::c_int; + pub fn SDL_RWclose(context: *mut SDL_RWops) -> c_int; } extern "C" { #[doc = " Load all the data from an SDL data stream."] @@ -3650,8 +3663,8 @@ extern "C" { pub fn SDL_LoadFile_RW( src: *mut SDL_RWops, datasize: *mut size_t, - freesrc: libc::c_int, - ) -> *mut libc::c_void; + freesrc: c_int, + ) -> *mut c_void; } extern "C" { #[doc = " Load all the data from a file path."] @@ -3670,7 +3683,7 @@ extern "C" { #[doc = " \\returns the data, or NULL if there was an error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.10."] - pub fn SDL_LoadFile(file: *const libc::c_char, datasize: *mut size_t) -> *mut libc::c_void; + pub fn SDL_LoadFile(file: *const c_char, datasize: *mut size_t) -> *mut c_void; } extern "C" { #[doc = " Use this function to read a byte from an SDL_RWops."] @@ -3918,7 +3931,7 @@ pub type SDL_AudioFormat = Uint16; #[doc = " You can choose to avoid callbacks and use SDL_QueueAudio() instead, if"] #[doc = " you like. Just open your audio device with a NULL callback."] pub type SDL_AudioCallback = ::core::option::Option< - unsafe extern "C" fn(userdata: *mut libc::c_void, stream: *mut Uint8, len: libc::c_int), + unsafe extern "C" fn(userdata: *mut c_void, stream: *mut Uint8, len: c_int), >; #[doc = " The calculated values in this structure are calculated by SDL_OpenAudio()."] #[doc = ""] @@ -3934,7 +3947,7 @@ pub type SDL_AudioCallback = ::core::option::Option< #[derive(Copy, Clone)] pub struct SDL_AudioSpec { #[doc = "< DSP frequency -- samples per second"] - pub freq: libc::c_int, + pub freq: c_int, #[doc = "< Audio data format"] pub format: SDL_AudioFormat, #[doc = "< Number of channels: 1 mono, 2 stereo"] @@ -3950,7 +3963,7 @@ pub struct SDL_AudioSpec { #[doc = "< Callback that feeds the audio device (NULL to use SDL_QueueAudio())."] pub callback: SDL_AudioCallback, #[doc = "< Userdata passed to callback (ignored for NULL callbacks)."] - pub userdata: *mut libc::c_void, + pub userdata: *mut c_void, } #[test] fn bindgen_test_layout_SDL_AudioSpec() { @@ -4061,7 +4074,7 @@ pub type SDL_AudioFilter = #[derive(Copy, Clone)] pub struct SDL_AudioCVT { #[doc = "< Set to 1 if conversion possible"] - pub needed: libc::c_int, + pub needed: c_int, #[doc = "< Source audio format"] pub src_format: SDL_AudioFormat, #[doc = "< Target audio format"] @@ -4071,17 +4084,17 @@ pub struct SDL_AudioCVT { #[doc = "< Buffer to hold entire audio data"] pub buf: *mut Uint8, #[doc = "< Length of original audio buffer"] - pub len: libc::c_int, + pub len: c_int, #[doc = "< Length of converted audio buffer"] - pub len_cvt: libc::c_int, + pub len_cvt: c_int, #[doc = "< buffer must be len*len_mult big"] - pub len_mult: libc::c_int, + pub len_mult: c_int, #[doc = "< Given len, final size is len*len_ratio"] pub len_ratio: f64, #[doc = "< NULL-terminated list of filter functions"] pub filters: [SDL_AudioFilter; 10usize], #[doc = "< Current audio conversion function"] - pub filter_index: libc::c_int, + pub filter_index: c_int, } #[test] fn bindgen_test_layout_SDL_AudioCVT() { @@ -4224,7 +4237,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetAudioDriver"] - pub fn SDL_GetNumAudioDrivers() -> libc::c_int; + pub fn SDL_GetNumAudioDrivers() -> c_int; } extern "C" { #[doc = " Use this function to get the name of a built in audio driver."] @@ -4245,7 +4258,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetNumAudioDrivers"] - pub fn SDL_GetAudioDriver(index: libc::c_int) -> *const libc::c_char; + pub fn SDL_GetAudioDriver(index: c_int) -> *const c_char; } extern "C" { #[doc = " Use this function to initialize a particular audio driver."] @@ -4261,7 +4274,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_AudioQuit"] - pub fn SDL_AudioInit(driver_name: *const libc::c_char) -> libc::c_int; + pub fn SDL_AudioInit(driver_name: *const c_char) -> c_int; } extern "C" { #[doc = " Use this function to shut down audio if you initialized it with"] @@ -4291,7 +4304,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_AudioInit"] - pub fn SDL_GetCurrentAudioDriver() -> *const libc::c_char; + pub fn SDL_GetCurrentAudioDriver() -> *const c_char; } extern "C" { #[doc = " This function is a legacy means of opening the audio device."] @@ -4339,7 +4352,7 @@ extern "C" { #[doc = " \\sa SDL_LockAudio"] #[doc = " \\sa SDL_PauseAudio"] #[doc = " \\sa SDL_UnlockAudio"] - pub fn SDL_OpenAudio(desired: *mut SDL_AudioSpec, obtained: *mut SDL_AudioSpec) -> libc::c_int; + pub fn SDL_OpenAudio(desired: *mut SDL_AudioSpec, obtained: *mut SDL_AudioSpec) -> c_int; } #[doc = " SDL Audio Device IDs."] #[doc = ""] @@ -4392,7 +4405,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetAudioDeviceName"] #[doc = " \\sa SDL_OpenAudioDevice"] - pub fn SDL_GetNumAudioDevices(iscapture: libc::c_int) -> libc::c_int; + pub fn SDL_GetNumAudioDevices(iscapture: c_int) -> c_int; } extern "C" { #[doc = " Get the human-readable name of a specific audio device."] @@ -4418,9 +4431,9 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetNumAudioDevices"] pub fn SDL_GetAudioDeviceName( - index: libc::c_int, - iscapture: libc::c_int, - ) -> *const libc::c_char; + index: c_int, + iscapture: c_int, + ) -> *const c_char; } extern "C" { #[doc = " Get the preferred audio format of a specific audio device."] @@ -4446,10 +4459,10 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetNumAudioDevices"] pub fn SDL_GetAudioDeviceSpec( - index: libc::c_int, - iscapture: libc::c_int, + index: c_int, + iscapture: c_int, spec: *mut SDL_AudioSpec, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Open a specific audio device."] @@ -4561,11 +4574,11 @@ extern "C" { #[doc = " \\sa SDL_PauseAudioDevice"] #[doc = " \\sa SDL_UnlockAudioDevice"] pub fn SDL_OpenAudioDevice( - device: *const libc::c_char, - iscapture: libc::c_int, + device: *const c_char, + iscapture: c_int, desired: *const SDL_AudioSpec, obtained: *mut SDL_AudioSpec, - allowed_changes: libc::c_int, + allowed_changes: c_int, ) -> SDL_AudioDeviceID; } #[repr(u32)] @@ -4624,7 +4637,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetAudioStatus"] #[doc = " \\sa SDL_PauseAudioDevice"] - pub fn SDL_PauseAudio(pause_on: libc::c_int); + pub fn SDL_PauseAudio(pause_on: c_int); } extern "C" { #[doc = " Use this function to pause and unpause audio playback on a specified"] @@ -4653,7 +4666,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_LockAudioDevice"] - pub fn SDL_PauseAudioDevice(dev: SDL_AudioDeviceID, pause_on: libc::c_int); + pub fn SDL_PauseAudioDevice(dev: SDL_AudioDeviceID, pause_on: c_int); } extern "C" { #[doc = " Load the audio data of a WAVE file into memory."] @@ -4737,7 +4750,7 @@ extern "C" { #[doc = " \\sa SDL_LoadWAV"] pub fn SDL_LoadWAV_RW( src: *mut SDL_RWops, - freesrc: libc::c_int, + freesrc: c_int, spec: *mut SDL_AudioSpec, audio_buf: *mut *mut Uint8, audio_len: *mut Uint32, @@ -4794,11 +4807,11 @@ extern "C" { cvt: *mut SDL_AudioCVT, src_format: SDL_AudioFormat, src_channels: Uint8, - src_rate: libc::c_int, + src_rate: c_int, dst_format: SDL_AudioFormat, dst_channels: Uint8, - dst_rate: libc::c_int, - ) -> libc::c_int; + dst_rate: c_int, + ) -> c_int; } extern "C" { #[doc = " Convert audio data to a desired audio format."] @@ -4837,7 +4850,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_BuildAudioCVT"] - pub fn SDL_ConvertAudio(cvt: *mut SDL_AudioCVT) -> libc::c_int; + pub fn SDL_ConvertAudio(cvt: *mut SDL_AudioCVT) -> c_int; } #[repr(C)] #[derive(Copy, Clone)] @@ -4867,10 +4880,10 @@ extern "C" { pub fn SDL_NewAudioStream( src_format: SDL_AudioFormat, src_channels: Uint8, - src_rate: libc::c_int, + src_rate: c_int, dst_format: SDL_AudioFormat, dst_channels: Uint8, - dst_rate: libc::c_int, + dst_rate: c_int, ) -> *mut SDL_AudioStream; } extern "C" { @@ -4891,9 +4904,9 @@ extern "C" { #[doc = " \\sa SDL_FreeAudioStream"] pub fn SDL_AudioStreamPut( stream: *mut SDL_AudioStream, - buf: *const libc::c_void, - len: libc::c_int, - ) -> libc::c_int; + buf: *const c_void, + len: c_int, + ) -> c_int; } extern "C" { #[doc = " Get converted/resampled data from the stream"] @@ -4913,9 +4926,9 @@ extern "C" { #[doc = " \\sa SDL_FreeAudioStream"] pub fn SDL_AudioStreamGet( stream: *mut SDL_AudioStream, - buf: *mut libc::c_void, - len: libc::c_int, - ) -> libc::c_int; + buf: *mut c_void, + len: c_int, + ) -> c_int; } extern "C" { #[doc = " Get the number of converted/resampled bytes available."] @@ -4932,7 +4945,7 @@ extern "C" { #[doc = " \\sa SDL_AudioStreamFlush"] #[doc = " \\sa SDL_AudioStreamClear"] #[doc = " \\sa SDL_FreeAudioStream"] - pub fn SDL_AudioStreamAvailable(stream: *mut SDL_AudioStream) -> libc::c_int; + pub fn SDL_AudioStreamAvailable(stream: *mut SDL_AudioStream) -> c_int; } extern "C" { #[doc = " Tell the stream that you're done sending data, and anything being buffered"] @@ -4950,7 +4963,7 @@ extern "C" { #[doc = " \\sa SDL_AudioStreamAvailable"] #[doc = " \\sa SDL_AudioStreamClear"] #[doc = " \\sa SDL_FreeAudioStream"] - pub fn SDL_AudioStreamFlush(stream: *mut SDL_AudioStream) -> libc::c_int; + pub fn SDL_AudioStreamFlush(stream: *mut SDL_AudioStream) -> c_int; } extern "C" { #[doc = " Clear any pending data in the stream without converting it"] @@ -4999,7 +5012,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_MixAudioFormat"] - pub fn SDL_MixAudio(dst: *mut Uint8, src: *const Uint8, len: Uint32, volume: libc::c_int); + pub fn SDL_MixAudio(dst: *mut Uint8, src: *const Uint8, len: Uint32, volume: c_int); } extern "C" { #[doc = " Mix audio data in a specified format."] @@ -5035,7 +5048,7 @@ extern "C" { src: *const Uint8, format: SDL_AudioFormat, len: Uint32, - volume: libc::c_int, + volume: c_int, ); } extern "C" { @@ -5085,9 +5098,9 @@ extern "C" { #[doc = " \\sa SDL_GetQueuedAudioSize"] pub fn SDL_QueueAudio( dev: SDL_AudioDeviceID, - data: *const libc::c_void, + data: *const c_void, len: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Dequeue more audio on non-callback devices."] @@ -5134,7 +5147,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_ClearQueuedAudio"] #[doc = " \\sa SDL_GetQueuedAudioSize"] - pub fn SDL_DequeueAudio(dev: SDL_AudioDeviceID, data: *mut libc::c_void, len: Uint32) + pub fn SDL_DequeueAudio(dev: SDL_AudioDeviceID, data: *mut c_void, len: Uint32) -> Uint32; } extern "C" { @@ -5341,7 +5354,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetClipboardText"] #[doc = " \\sa SDL_HasClipboardText"] - pub fn SDL_SetClipboardText(text: *const libc::c_char) -> libc::c_int; + pub fn SDL_SetClipboardText(text: *const c_char) -> c_int; } extern "C" { #[doc = " Get UTF-8 text from the clipboard, which must be freed with SDL_free()."] @@ -5358,7 +5371,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HasClipboardText"] #[doc = " \\sa SDL_SetClipboardText"] - pub fn SDL_GetClipboardText() -> *mut libc::c_char; + pub fn SDL_GetClipboardText() -> *mut c_char; } extern "C" { #[doc = " Query whether the clipboard exists and contains a non-empty text string."] @@ -5382,7 +5395,7 @@ extern "C" { #[doc = ""] #[doc = "\\sa SDL_GetPrimarySelectionText"] #[doc = "\\sa SDL_HasPrimarySelectionText"] - pub fn SDL_SetPrimarySelectionText(text: *const libc::c_char) -> libc::c_int; + pub fn SDL_SetPrimarySelectionText(text: *const c_char) -> c_int; } extern "C" { #[doc = " Get UTF-8 text from the primary selection, which must be freed with"] @@ -5400,7 +5413,7 @@ extern "C" { #[doc = ""] #[doc = "\\sa SDL_HasPrimarySelectionText"] #[doc = "\\sa SDL_SetPrimarySelectionText"] - pub fn SDL_GetPrimarySelectionText() -> *mut libc::c_char; + pub fn SDL_GetPrimarySelectionText() -> *mut c_char; } extern "C" { @@ -5416,16 +5429,16 @@ extern "C" { #[doc = "\\sa SDL_SetPrimarySelectionText"] pub fn SDL_HasPrimarySelectionText() -> SDL_bool; } -pub type __m64 = [libc::c_longlong; 1usize]; -pub type __v1di = [libc::c_longlong; 1usize]; -pub type __v2si = [libc::c_int; 2usize]; -pub type __v4hi = [libc::c_short; 4usize]; -pub type __v8qi = [libc::c_char; 8usize]; -pub type __v4si = [libc::c_int; 4usize]; +pub type __m64 = [c_longlong; 1usize]; +pub type __v1di = [c_longlong; 1usize]; +pub type __v2si = [c_int; 2usize]; +pub type __v4hi = [c_short; 4usize]; +pub type __v8qi = [c_char; 8usize]; +pub type __v4si = [c_int; 4usize]; pub type __v4sf = [f32; 4usize]; pub type __m128 = [f32; 4usize]; pub type __m128_u = [f32; 4usize]; -pub type __v4su = [libc::c_uint; 4usize]; +pub type __v4su = [c_uint; 4usize]; pub type _Float32 = f32; pub type _Float64 = f64; pub type _Float32x = f64; @@ -5433,8 +5446,8 @@ pub type _Float64x = u128; #[repr(C)] #[derive(Copy, Clone)] pub struct div_t { - pub quot: libc::c_int, - pub rem: libc::c_int, + pub quot: c_int, + pub rem: c_int, } #[test] fn bindgen_test_layout_div_t() { @@ -5472,8 +5485,8 @@ fn bindgen_test_layout_div_t() { #[repr(C)] #[derive(Copy, Clone)] pub struct ldiv_t { - pub quot: libc::c_long, - pub rem: libc::c_long, + pub quot: c_long, + pub rem: c_long, } #[test] fn bindgen_test_layout_ldiv_t() { @@ -5511,8 +5524,8 @@ fn bindgen_test_layout_ldiv_t() { #[repr(C)] #[derive(Copy, Clone)] pub struct lldiv_t { - pub quot: libc::c_longlong, - pub rem: libc::c_longlong, + pub quot: c_longlong, + pub rem: c_longlong, } #[test] fn bindgen_test_layout_lldiv_t() { @@ -5551,73 +5564,73 @@ extern "C" { pub fn __ctype_get_mb_cur_max() -> size_t; } extern "C" { - pub fn atof(__nptr: *const libc::c_char) -> f64; + pub fn atof(__nptr: *const c_char) -> f64; } extern "C" { - pub fn atoi(__nptr: *const libc::c_char) -> libc::c_int; + pub fn atoi(__nptr: *const c_char) -> c_int; } extern "C" { - pub fn atol(__nptr: *const libc::c_char) -> libc::c_long; + pub fn atol(__nptr: *const c_char) -> c_long; } extern "C" { - pub fn atoll(__nptr: *const libc::c_char) -> libc::c_longlong; + pub fn atoll(__nptr: *const c_char) -> c_longlong; } extern "C" { - pub fn strtod(__nptr: *const libc::c_char, __endptr: *mut *mut libc::c_char) -> f64; + pub fn strtod(__nptr: *const c_char, __endptr: *mut *mut c_char) -> f64; } extern "C" { - pub fn strtof(__nptr: *const libc::c_char, __endptr: *mut *mut libc::c_char) -> f32; + pub fn strtof(__nptr: *const c_char, __endptr: *mut *mut c_char) -> f32; } extern "C" { - pub fn strtold(__nptr: *const libc::c_char, __endptr: *mut *mut libc::c_char) -> u128; + pub fn strtold(__nptr: *const c_char, __endptr: *mut *mut c_char) -> u128; } extern "C" { pub fn strtol( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_long; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_long; } extern "C" { pub fn strtoul( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_ulong; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_ulong; } extern "C" { pub fn strtoq( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_longlong; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_longlong; } extern "C" { pub fn strtouq( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_ulonglong; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_ulonglong; } extern "C" { pub fn strtoll( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_longlong; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_longlong; } extern "C" { pub fn strtoull( - __nptr: *const libc::c_char, - __endptr: *mut *mut libc::c_char, - __base: libc::c_int, - ) -> libc::c_ulonglong; + __nptr: *const c_char, + __endptr: *mut *mut c_char, + __base: c_int, + ) -> c_ulonglong; } extern "C" { - pub fn l64a(__n: libc::c_long) -> *mut libc::c_char; + pub fn l64a(__n: c_long) -> *mut c_char; } extern "C" { - pub fn a64l(__s: *const libc::c_char) -> libc::c_long; + pub fn a64l(__s: *const c_char) -> c_long; } pub type u_char = __u_char; pub type u_short = __u_short; @@ -5644,18 +5657,18 @@ pub type clock_t = __clock_t; pub type clockid_t = __clockid_t; pub type time_t = __time_t; pub type timer_t = __timer_t; -pub type ulong = libc::c_ulong; -pub type ushort = libc::c_ushort; -pub type uint = libc::c_uint; +pub type ulong = c_ulong; +pub type ushort = c_ushort; +pub type uint = c_uint; pub type u_int8_t = __uint8_t; pub type u_int16_t = __uint16_t; pub type u_int32_t = __uint32_t; pub type u_int64_t = __uint64_t; -pub type register_t = libc::c_long; +pub type register_t = c_long; #[repr(C)] #[derive(Copy, Clone)] pub struct __sigset_t { - pub __val: [libc::c_ulong; 16usize], + pub __val: [c_ulong; 16usize], } #[test] fn bindgen_test_layout___sigset_t() { @@ -5760,7 +5773,7 @@ fn bindgen_test_layout_timespec() { ); } pub type suseconds_t = __suseconds_t; -pub type __fd_mask = libc::c_long; +pub type __fd_mask = c_long; #[repr(C)] #[derive(Copy, Clone)] pub struct fd_set { @@ -5792,22 +5805,22 @@ fn bindgen_test_layout_fd_set() { pub type fd_mask = __fd_mask; extern "C" { pub fn select( - __nfds: libc::c_int, + __nfds: c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *mut timeval, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn pselect( - __nfds: libc::c_int, + __nfds: c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *const timespec, __sigmask: *const __sigset_t, - ) -> libc::c_int; + ) -> c_int; } pub type blksize_t = __blksize_t; pub type blkcnt_t = __blkcnt_t; @@ -5816,15 +5829,15 @@ pub type fsfilcnt_t = __fsfilcnt_t; #[repr(C)] #[derive(Copy, Clone)] pub union __atomic_wide_counter { - pub __value64: libc::c_ulonglong, + pub __value64: c_ulonglong, pub __value32: __atomic_wide_counter__bindgen_ty_1, _bindgen_union_align: u64, } #[repr(C)] #[derive(Copy, Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: libc::c_uint, - pub __high: libc::c_uint, + pub __low: c_uint, + pub __high: c_uint, } #[test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() { @@ -5979,13 +5992,13 @@ pub type __pthread_slist_t = __pthread_internal_slist; #[repr(C)] #[derive(Copy, Clone)] pub struct __pthread_mutex_s { - pub __lock: libc::c_int, - pub __count: libc::c_uint, - pub __owner: libc::c_int, - pub __nusers: libc::c_uint, - pub __kind: libc::c_int, - pub __spins: libc::c_short, - pub __elision: libc::c_short, + pub __lock: c_int, + pub __count: c_uint, + pub __owner: c_int, + pub __nusers: c_uint, + pub __kind: c_int, + pub __spins: c_short, + pub __elision: c_short, pub __list: __pthread_list_t, } #[test] @@ -6084,18 +6097,18 @@ fn bindgen_test_layout___pthread_mutex_s() { #[repr(C)] #[derive(Copy, Clone)] pub struct __pthread_rwlock_arch_t { - pub __readers: libc::c_uint, - pub __writers: libc::c_uint, - pub __wrphase_futex: libc::c_uint, - pub __writers_futex: libc::c_uint, - pub __pad3: libc::c_uint, - pub __pad4: libc::c_uint, - pub __cur_writer: libc::c_int, - pub __shared: libc::c_int, - pub __rwelision: libc::c_schar, - pub __pad1: [libc::c_uchar; 7usize], - pub __pad2: libc::c_ulong, - pub __flags: libc::c_uint, + pub __readers: c_uint, + pub __writers: c_uint, + pub __wrphase_futex: c_uint, + pub __writers_futex: c_uint, + pub __pad3: c_uint, + pub __pad4: c_uint, + pub __cur_writer: c_int, + pub __shared: c_int, + pub __rwelision: c_schar, + pub __pad1: [c_uchar; 7usize], + pub __pad2: c_ulong, + pub __flags: c_uint, } #[test] fn bindgen_test_layout___pthread_rwlock_arch_t() { @@ -6253,11 +6266,11 @@ fn bindgen_test_layout___pthread_rwlock_arch_t() { pub struct __pthread_cond_s { pub __wseq: __atomic_wide_counter, pub __g1_start: __atomic_wide_counter, - pub __g_refs: [libc::c_uint; 2usize], - pub __g_size: [libc::c_uint; 2usize], - pub __g1_orig_size: libc::c_uint, - pub __wrefs: libc::c_uint, - pub __g_signals: [libc::c_uint; 2usize], + pub __g_refs: [c_uint; 2usize], + pub __g_size: [c_uint; 2usize], + pub __g1_orig_size: c_uint, + pub __wrefs: c_uint, + pub __g_signals: [c_uint; 2usize], } #[test] fn bindgen_test_layout___pthread_cond_s() { @@ -6344,12 +6357,12 @@ fn bindgen_test_layout___pthread_cond_s() { ) ); } -pub type __tss_t = libc::c_uint; -pub type __thrd_t = libc::c_ulong; +pub type __tss_t = c_uint; +pub type __thrd_t = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct __once_flag { - pub __data: libc::c_int, + pub __data: c_int, } #[test] fn bindgen_test_layout___once_flag() { @@ -6374,12 +6387,12 @@ fn bindgen_test_layout___once_flag() { ) ); } -pub type pthread_t = libc::c_ulong; +pub type pthread_t = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_mutexattr_t { - pub __size: [libc::c_char; 4usize], - pub __align: libc::c_int, + pub __size: [c_char; 4usize], + pub __align: c_int, _bindgen_union_align: u32, } #[test] @@ -6418,8 +6431,8 @@ fn bindgen_test_layout_pthread_mutexattr_t() { #[repr(C)] #[derive(Copy, Clone)] pub union pthread_condattr_t { - pub __size: [libc::c_char; 4usize], - pub __align: libc::c_int, + pub __size: [c_char; 4usize], + pub __align: c_int, _bindgen_union_align: u32, } #[test] @@ -6455,13 +6468,13 @@ fn bindgen_test_layout_pthread_condattr_t() { ) ); } -pub type pthread_key_t = libc::c_uint; -pub type pthread_once_t = libc::c_int; +pub type pthread_key_t = c_uint; +pub type pthread_once_t = c_int; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_attr_t { - pub __size: [libc::c_char; 56usize], - pub __align: libc::c_long, + pub __size: [c_char; 56usize], + pub __align: c_long, _bindgen_union_align: [u64; 7usize], } #[test] @@ -6501,8 +6514,8 @@ fn bindgen_test_layout_pthread_attr_t() { #[derive(Copy, Clone)] pub union pthread_mutex_t { pub __data: __pthread_mutex_s, - pub __size: [libc::c_char; 40usize], - pub __align: libc::c_long, + pub __size: [c_char; 40usize], + pub __align: c_long, _bindgen_union_align: [u64; 5usize], } #[test] @@ -6552,8 +6565,8 @@ fn bindgen_test_layout_pthread_mutex_t() { #[derive(Copy, Clone)] pub union pthread_cond_t { pub __data: __pthread_cond_s, - pub __size: [libc::c_char; 48usize], - pub __align: libc::c_longlong, + pub __size: [c_char; 48usize], + pub __align: c_longlong, _bindgen_union_align: [u64; 6usize], } #[test] @@ -6603,8 +6616,8 @@ fn bindgen_test_layout_pthread_cond_t() { #[derive(Copy, Clone)] pub union pthread_rwlock_t { pub __data: __pthread_rwlock_arch_t, - pub __size: [libc::c_char; 56usize], - pub __align: libc::c_long, + pub __size: [c_char; 56usize], + pub __align: c_long, _bindgen_union_align: [u64; 7usize], } #[test] @@ -6653,8 +6666,8 @@ fn bindgen_test_layout_pthread_rwlock_t() { #[repr(C)] #[derive(Copy, Clone)] pub union pthread_rwlockattr_t { - pub __size: [libc::c_char; 8usize], - pub __align: libc::c_long, + pub __size: [c_char; 8usize], + pub __align: c_long, _bindgen_union_align: u64, } #[test] @@ -6690,12 +6703,12 @@ fn bindgen_test_layout_pthread_rwlockattr_t() { ) ); } -pub type pthread_spinlock_t = libc::c_int; +pub type pthread_spinlock_t = c_int; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_barrier_t { - pub __size: [libc::c_char; 32usize], - pub __align: libc::c_long, + pub __size: [c_char; 32usize], + pub __align: c_long, _bindgen_union_align: [u64; 4usize], } #[test] @@ -6734,8 +6747,8 @@ fn bindgen_test_layout_pthread_barrier_t() { #[repr(C)] #[derive(Copy, Clone)] pub union pthread_barrierattr_t { - pub __size: [libc::c_char; 4usize], - pub __align: libc::c_int, + pub __size: [c_char; 4usize], + pub __align: c_int, _bindgen_union_align: u32, } #[test] @@ -6772,20 +6785,20 @@ fn bindgen_test_layout_pthread_barrierattr_t() { ); } extern "C" { - pub fn random() -> libc::c_long; + pub fn random() -> c_long; } extern "C" { - pub fn srandom(__seed: libc::c_uint); + pub fn srandom(__seed: c_uint); } extern "C" { pub fn initstate( - __seed: libc::c_uint, - __statebuf: *mut libc::c_char, + __seed: c_uint, + __statebuf: *mut c_char, __statelen: size_t, - ) -> *mut libc::c_char; + ) -> *mut c_char; } extern "C" { - pub fn setstate(__statebuf: *mut libc::c_char) -> *mut libc::c_char; + pub fn setstate(__statebuf: *mut c_char) -> *mut c_char; } #[repr(C)] #[derive(Copy, Clone)] @@ -6793,9 +6806,9 @@ pub struct random_data { pub fptr: *mut i32, pub rptr: *mut i32, pub state: *mut i32, - pub rand_type: libc::c_int, - pub rand_deg: libc::c_int, - pub rand_sep: libc::c_int, + pub rand_type: c_int, + pub rand_deg: c_int, + pub rand_sep: c_int, pub end_ptr: *mut i32, } #[test] @@ -6882,66 +6895,66 @@ fn bindgen_test_layout_random_data() { ); } extern "C" { - pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> libc::c_int; + pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> c_int; } extern "C" { - pub fn srandom_r(__seed: libc::c_uint, __buf: *mut random_data) -> libc::c_int; + pub fn srandom_r(__seed: c_uint, __buf: *mut random_data) -> c_int; } extern "C" { pub fn initstate_r( - __seed: libc::c_uint, - __statebuf: *mut libc::c_char, + __seed: c_uint, + __statebuf: *mut c_char, __statelen: size_t, __buf: *mut random_data, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn setstate_r(__statebuf: *mut libc::c_char, __buf: *mut random_data) -> libc::c_int; + pub fn setstate_r(__statebuf: *mut c_char, __buf: *mut random_data) -> c_int; } extern "C" { - pub fn rand() -> libc::c_int; + pub fn rand() -> c_int; } extern "C" { - pub fn srand(__seed: libc::c_uint); + pub fn srand(__seed: c_uint); } extern "C" { - pub fn rand_r(__seed: *mut libc::c_uint) -> libc::c_int; + pub fn rand_r(__seed: *mut c_uint) -> c_int; } extern "C" { pub fn drand48() -> f64; } extern "C" { - pub fn erand48(__xsubi: *mut libc::c_ushort) -> f64; + pub fn erand48(__xsubi: *mut c_ushort) -> f64; } extern "C" { - pub fn lrand48() -> libc::c_long; + pub fn lrand48() -> c_long; } extern "C" { - pub fn nrand48(__xsubi: *mut libc::c_ushort) -> libc::c_long; + pub fn nrand48(__xsubi: *mut c_ushort) -> c_long; } extern "C" { - pub fn mrand48() -> libc::c_long; + pub fn mrand48() -> c_long; } extern "C" { - pub fn jrand48(__xsubi: *mut libc::c_ushort) -> libc::c_long; + pub fn jrand48(__xsubi: *mut c_ushort) -> c_long; } extern "C" { - pub fn srand48(__seedval: libc::c_long); + pub fn srand48(__seedval: c_long); } extern "C" { - pub fn seed48(__seed16v: *mut libc::c_ushort) -> *mut libc::c_ushort; + pub fn seed48(__seed16v: *mut c_ushort) -> *mut c_ushort; } extern "C" { - pub fn lcong48(__param: *mut libc::c_ushort); + pub fn lcong48(__param: *mut c_ushort); } #[repr(C)] #[derive(Copy, Clone)] pub struct drand48_data { - pub __x: [libc::c_ushort; 3usize], - pub __old_x: [libc::c_ushort; 3usize], - pub __c: libc::c_ushort, - pub __init: libc::c_ushort, - pub __a: libc::c_ulonglong, + pub __x: [c_ushort; 3usize], + pub __old_x: [c_ushort; 3usize], + pub __c: c_ushort, + pub __init: c_ushort, + pub __a: c_ulonglong, } #[test] fn bindgen_test_layout_drand48_data() { @@ -7007,317 +7020,317 @@ fn bindgen_test_layout_drand48_data() { ); } extern "C" { - pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> libc::c_int; + pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> c_int; } extern "C" { pub fn erand48_r( - __xsubi: *mut libc::c_ushort, + __xsubi: *mut c_ushort, __buffer: *mut drand48_data, __result: *mut f64, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn lrand48_r(__buffer: *mut drand48_data, __result: *mut libc::c_long) -> libc::c_int; + pub fn lrand48_r(__buffer: *mut drand48_data, __result: *mut c_long) -> c_int; } extern "C" { pub fn nrand48_r( - __xsubi: *mut libc::c_ushort, + __xsubi: *mut c_ushort, __buffer: *mut drand48_data, - __result: *mut libc::c_long, - ) -> libc::c_int; + __result: *mut c_long, + ) -> c_int; } extern "C" { - pub fn mrand48_r(__buffer: *mut drand48_data, __result: *mut libc::c_long) -> libc::c_int; + pub fn mrand48_r(__buffer: *mut drand48_data, __result: *mut c_long) -> c_int; } extern "C" { pub fn jrand48_r( - __xsubi: *mut libc::c_ushort, + __xsubi: *mut c_ushort, __buffer: *mut drand48_data, - __result: *mut libc::c_long, - ) -> libc::c_int; + __result: *mut c_long, + ) -> c_int; } extern "C" { - pub fn srand48_r(__seedval: libc::c_long, __buffer: *mut drand48_data) -> libc::c_int; + pub fn srand48_r(__seedval: c_long, __buffer: *mut drand48_data) -> c_int; } extern "C" { - pub fn seed48_r(__seed16v: *mut libc::c_ushort, __buffer: *mut drand48_data) -> libc::c_int; + pub fn seed48_r(__seed16v: *mut c_ushort, __buffer: *mut drand48_data) -> c_int; } extern "C" { - pub fn lcong48_r(__param: *mut libc::c_ushort, __buffer: *mut drand48_data) -> libc::c_int; + pub fn lcong48_r(__param: *mut c_ushort, __buffer: *mut drand48_data) -> c_int; } extern "C" { - pub fn malloc(__size: libc::c_ulong) -> *mut libc::c_void; + pub fn malloc(__size: c_ulong) -> *mut c_void; } extern "C" { - pub fn calloc(__nmemb: libc::c_ulong, __size: libc::c_ulong) -> *mut libc::c_void; + pub fn calloc(__nmemb: c_ulong, __size: c_ulong) -> *mut c_void; } extern "C" { - pub fn realloc(__ptr: *mut libc::c_void, __size: libc::c_ulong) -> *mut libc::c_void; + pub fn realloc(__ptr: *mut c_void, __size: c_ulong) -> *mut c_void; } extern "C" { - pub fn free(__ptr: *mut libc::c_void); + pub fn free(__ptr: *mut c_void); } extern "C" { pub fn reallocarray( - __ptr: *mut libc::c_void, + __ptr: *mut c_void, __nmemb: size_t, __size: size_t, - ) -> *mut libc::c_void; + ) -> *mut c_void; } extern "C" { - pub fn alloca(__size: libc::c_ulong) -> *mut libc::c_void; + pub fn alloca(__size: c_ulong) -> *mut c_void; } extern "C" { - pub fn valloc(__size: size_t) -> *mut libc::c_void; + pub fn valloc(__size: size_t) -> *mut c_void; } extern "C" { pub fn posix_memalign( - __memptr: *mut *mut libc::c_void, + __memptr: *mut *mut c_void, __alignment: size_t, __size: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn aligned_alloc(__alignment: libc::c_ulong, __size: libc::c_ulong) -> *mut libc::c_void; + pub fn aligned_alloc(__alignment: c_ulong, __size: c_ulong) -> *mut c_void; } extern "C" { pub fn abort(); } extern "C" { - pub fn atexit(__func: ::core::option::Option) -> libc::c_int; + pub fn atexit(__func: ::core::option::Option) -> c_int; } extern "C" { - pub fn at_quick_exit(__func: ::core::option::Option) -> libc::c_int; + pub fn at_quick_exit(__func: ::core::option::Option) -> c_int; } extern "C" { pub fn on_exit( __func: ::core::option::Option< - unsafe extern "C" fn(__status: libc::c_int, __arg: *mut libc::c_void), + unsafe extern "C" fn(__status: c_int, __arg: *mut c_void), >, - __arg: *mut libc::c_void, - ) -> libc::c_int; + __arg: *mut c_void, + ) -> c_int; } extern "C" { - pub fn exit(__status: libc::c_int); + pub fn exit(__status: c_int); } extern "C" { - pub fn quick_exit(__status: libc::c_int); + pub fn quick_exit(__status: c_int); } extern "C" { - pub fn _Exit(__status: libc::c_int); + pub fn _Exit(__status: c_int); } extern "C" { - pub fn getenv(__name: *const libc::c_char) -> *mut libc::c_char; + pub fn getenv(__name: *const c_char) -> *mut c_char; } extern "C" { - pub fn putenv(__string: *mut libc::c_char) -> libc::c_int; + pub fn putenv(__string: *mut c_char) -> c_int; } extern "C" { pub fn setenv( - __name: *const libc::c_char, - __value: *const libc::c_char, - __replace: libc::c_int, - ) -> libc::c_int; + __name: *const c_char, + __value: *const c_char, + __replace: c_int, + ) -> c_int; } extern "C" { - pub fn unsetenv(__name: *const libc::c_char) -> libc::c_int; + pub fn unsetenv(__name: *const c_char) -> c_int; } extern "C" { - pub fn clearenv() -> libc::c_int; + pub fn clearenv() -> c_int; } extern "C" { - pub fn mktemp(__template: *mut libc::c_char) -> *mut libc::c_char; + pub fn mktemp(__template: *mut c_char) -> *mut c_char; } extern "C" { - pub fn mkstemp(__template: *mut libc::c_char) -> libc::c_int; + pub fn mkstemp(__template: *mut c_char) -> c_int; } extern "C" { - pub fn mkstemps(__template: *mut libc::c_char, __suffixlen: libc::c_int) -> libc::c_int; + pub fn mkstemps(__template: *mut c_char, __suffixlen: c_int) -> c_int; } extern "C" { - pub fn mkdtemp(__template: *mut libc::c_char) -> *mut libc::c_char; + pub fn mkdtemp(__template: *mut c_char) -> *mut c_char; } extern "C" { - pub fn system(__command: *const libc::c_char) -> libc::c_int; + pub fn system(__command: *const c_char) -> c_int; } extern "C" { pub fn realpath( - __name: *const libc::c_char, - __resolved: *mut libc::c_char, - ) -> *mut libc::c_char; + __name: *const c_char, + __resolved: *mut c_char, + ) -> *mut c_char; } pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn(arg1: *const libc::c_void, arg2: *const libc::c_void) -> libc::c_int, + unsafe extern "C" fn(arg1: *const c_void, arg2: *const c_void) -> c_int, >; extern "C" { pub fn bsearch( - __key: *const libc::c_void, - __base: *const libc::c_void, + __key: *const c_void, + __base: *const c_void, __nmemb: size_t, __size: size_t, __compar: __compar_fn_t, - ) -> *mut libc::c_void; + ) -> *mut c_void; } extern "C" { pub fn qsort( - __base: *mut libc::c_void, + __base: *mut c_void, __nmemb: size_t, __size: size_t, __compar: __compar_fn_t, ); } extern "C" { - pub fn abs(__x: libc::c_int) -> libc::c_int; + pub fn abs(__x: c_int) -> c_int; } extern "C" { - pub fn labs(__x: libc::c_long) -> libc::c_long; + pub fn labs(__x: c_long) -> c_long; } extern "C" { - pub fn llabs(__x: libc::c_longlong) -> libc::c_longlong; + pub fn llabs(__x: c_longlong) -> c_longlong; } extern "C" { - pub fn div(__numer: libc::c_int, __denom: libc::c_int) -> div_t; + pub fn div(__numer: c_int, __denom: c_int) -> div_t; } extern "C" { - pub fn ldiv(__numer: libc::c_long, __denom: libc::c_long) -> ldiv_t; + pub fn ldiv(__numer: c_long, __denom: c_long) -> ldiv_t; } extern "C" { - pub fn lldiv(__numer: libc::c_longlong, __denom: libc::c_longlong) -> lldiv_t; + pub fn lldiv(__numer: c_longlong, __denom: c_longlong) -> lldiv_t; } extern "C" { pub fn ecvt( __value: f64, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - ) -> *mut libc::c_char; + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + ) -> *mut c_char; } extern "C" { pub fn fcvt( __value: f64, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - ) -> *mut libc::c_char; + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + ) -> *mut c_char; } extern "C" { - pub fn gcvt(__value: f64, __ndigit: libc::c_int, __buf: *mut libc::c_char) - -> *mut libc::c_char; + pub fn gcvt(__value: f64, __ndigit: c_int, __buf: *mut c_char) + -> *mut c_char; } extern "C" { pub fn qecvt( __value: u128, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - ) -> *mut libc::c_char; + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + ) -> *mut c_char; } extern "C" { pub fn qfcvt( __value: u128, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - ) -> *mut libc::c_char; + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + ) -> *mut c_char; } extern "C" { pub fn qgcvt( __value: u128, - __ndigit: libc::c_int, - __buf: *mut libc::c_char, - ) -> *mut libc::c_char; + __ndigit: c_int, + __buf: *mut c_char, + ) -> *mut c_char; } extern "C" { pub fn ecvt_r( __value: f64, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - __buf: *mut libc::c_char, + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + __buf: *mut c_char, __len: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn fcvt_r( __value: f64, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - __buf: *mut libc::c_char, + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + __buf: *mut c_char, __len: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn qecvt_r( __value: u128, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - __buf: *mut libc::c_char, + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + __buf: *mut c_char, __len: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn qfcvt_r( __value: u128, - __ndigit: libc::c_int, - __decpt: *mut libc::c_int, - __sign: *mut libc::c_int, - __buf: *mut libc::c_char, + __ndigit: c_int, + __decpt: *mut c_int, + __sign: *mut c_int, + __buf: *mut c_char, __len: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn mblen(__s: *const libc::c_char, __n: size_t) -> libc::c_int; + pub fn mblen(__s: *const c_char, __n: size_t) -> c_int; } extern "C" { - pub fn mbtowc(__pwc: *mut wchar_t, __s: *const libc::c_char, __n: size_t) -> libc::c_int; + pub fn mbtowc(__pwc: *mut wchar_t, __s: *const c_char, __n: size_t) -> c_int; } extern "C" { - pub fn wctomb(__s: *mut libc::c_char, __wchar: wchar_t) -> libc::c_int; + pub fn wctomb(__s: *mut c_char, __wchar: wchar_t) -> c_int; } extern "C" { - pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const libc::c_char, __n: size_t) -> size_t; + pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const c_char, __n: size_t) -> size_t; } extern "C" { - pub fn wcstombs(__s: *mut libc::c_char, __pwcs: *const wchar_t, __n: size_t) -> size_t; + pub fn wcstombs(__s: *mut c_char, __pwcs: *const wchar_t, __n: size_t) -> size_t; } extern "C" { - pub fn rpmatch(__response: *const libc::c_char) -> libc::c_int; + pub fn rpmatch(__response: *const c_char) -> c_int; } extern "C" { pub fn getsubopt( - __optionp: *mut *mut libc::c_char, - __tokens: *const *mut libc::c_char, - __valuep: *mut *mut libc::c_char, - ) -> libc::c_int; + __optionp: *mut *mut c_char, + __tokens: *const *mut c_char, + __valuep: *mut *mut c_char, + ) -> c_int; } extern "C" { - pub fn getloadavg(__loadavg: *mut f64, __nelem: libc::c_int) -> libc::c_int; + pub fn getloadavg(__loadavg: *mut f64, __nelem: c_int) -> c_int; } extern "C" { pub fn _mm_sfence(); } extern "C" { - pub fn _mm_getcsr() -> libc::c_uint; + pub fn _mm_getcsr() -> c_uint; } extern "C" { - pub fn _mm_setcsr(__i: libc::c_uint); + pub fn _mm_setcsr(__i: c_uint); } pub type __m128d = [f64; 2usize]; -pub type __m128i = [libc::c_longlong; 2usize]; +pub type __m128i = [c_longlong; 2usize]; pub type __m128d_u = [f64; 2usize]; -pub type __m128i_u = [libc::c_longlong; 2usize]; +pub type __m128i_u = [c_longlong; 2usize]; pub type __v2df = [f64; 2usize]; -pub type __v2di = [libc::c_longlong; 2usize]; -pub type __v8hi = [libc::c_short; 8usize]; -pub type __v16qi = [libc::c_char; 16usize]; -pub type __v2du = [libc::c_ulonglong; 2usize]; -pub type __v8hu = [libc::c_ushort; 8usize]; -pub type __v16qu = [libc::c_uchar; 16usize]; -pub type __v16qs = [libc::c_schar; 16usize]; +pub type __v2di = [c_longlong; 2usize]; +pub type __v8hi = [c_short; 8usize]; +pub type __v16qi = [c_char; 16usize]; +pub type __v2du = [c_ulonglong; 2usize]; +pub type __v8hu = [c_ushort; 8usize]; +pub type __v16qu = [c_uchar; 16usize]; +pub type __v16qs = [c_schar; 16usize]; extern "C" { - pub fn _mm_clflush(__p: *const libc::c_void); + pub fn _mm_clflush(__p: *const c_void); } extern "C" { pub fn _mm_lfence(); @@ -7336,7 +7349,7 @@ extern "C" { #[doc = " may be more than the number of physical cores."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GetCPUCount() -> libc::c_int; + pub fn SDL_GetCPUCount() -> c_int; } extern "C" { #[doc = " Determine the L1 cache line size of the CPU."] @@ -7347,7 +7360,7 @@ extern "C" { #[doc = " \\returns the L1 cache line size of the CPU, in bytes."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GetCPUCacheLineSize() -> libc::c_int; + pub fn SDL_GetCPUCacheLineSize() -> c_int; } extern "C" { #[doc = " Determine whether the CPU has the RDTSC instruction."] @@ -7623,7 +7636,7 @@ extern "C" { #[doc = " \\returns the amount of RAM configured in the system in MB."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.1."] - pub fn SDL_GetSystemRAM() -> libc::c_int; + pub fn SDL_GetSystemRAM() -> c_int; } extern "C" { #[doc = " Report the alignment this system needs for SIMD allocations."] @@ -7679,7 +7692,7 @@ extern "C" { #[doc = " \\sa SDL_SIMDAlignment"] #[doc = " \\sa SDL_SIMDRealloc"] #[doc = " \\sa SDL_SIMDFree"] - pub fn SDL_SIMDAlloc(len: size_t) -> *mut libc::c_void; + pub fn SDL_SIMDAlloc(len: size_t) -> *mut c_void; } extern "C" { #[doc = " Reallocate memory obtained from SDL_SIMDAlloc"] @@ -7702,7 +7715,7 @@ extern "C" { #[doc = " \\sa SDL_SIMDAlignment"] #[doc = " \\sa SDL_SIMDAlloc"] #[doc = " \\sa SDL_SIMDFree"] - pub fn SDL_SIMDRealloc(mem: *mut libc::c_void, len: size_t) -> *mut libc::c_void; + pub fn SDL_SIMDRealloc(mem: *mut c_void, len: size_t) -> *mut c_void; } extern "C" { #[doc = " Deallocate memory obtained from SDL_SIMDAlloc"] @@ -7725,7 +7738,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_SIMDAlloc"] #[doc = " \\sa SDL_SIMDRealloc"] - pub fn SDL_SIMDFree(ptr: *mut libc::c_void); + pub fn SDL_SIMDFree(ptr: *mut c_void); } #[repr(u32)] #[doc = " Pixel type."] @@ -7951,10 +7964,10 @@ fn bindgen_test_layout_SDL_Color() { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_Palette { - pub ncolors: libc::c_int, + pub ncolors: c_int, pub colors: *mut SDL_Color, pub version: Uint32, - pub refcount: libc::c_int, + pub refcount: c_int, } #[test] fn bindgen_test_layout_SDL_Palette() { @@ -8030,7 +8043,7 @@ pub struct SDL_PixelFormat { pub Gshift: Uint8, pub Bshift: Uint8, pub Ashift: Uint8, - pub refcount: libc::c_int, + pub refcount: c_int, pub next: *mut SDL_PixelFormat, } #[test] @@ -8244,7 +8257,7 @@ extern "C" { #[doc = " `SDL_PIXELFORMAT_UNKNOWN` if the format isn't recognized."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GetPixelFormatName(format: Uint32) -> *const libc::c_char; + pub fn SDL_GetPixelFormatName(format: Uint32) -> *const c_char; } extern "C" { #[doc = " Convert one of the enumerated pixel formats to a bpp value and RGBA masks."] @@ -8263,7 +8276,7 @@ extern "C" { #[doc = " \\sa SDL_MasksToPixelFormatEnum"] pub fn SDL_PixelFormatEnumToMasks( format: Uint32, - bpp: *mut libc::c_int, + bpp: *mut c_int, Rmask: *mut Uint32, Gmask: *mut Uint32, Bmask: *mut Uint32, @@ -8287,7 +8300,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_PixelFormatEnumToMasks"] pub fn SDL_MasksToPixelFormatEnum( - bpp: libc::c_int, + bpp: c_int, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, @@ -8333,7 +8346,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_FreePalette"] - pub fn SDL_AllocPalette(ncolors: libc::c_int) -> *mut SDL_Palette; + pub fn SDL_AllocPalette(ncolors: c_int) -> *mut SDL_Palette; } extern "C" { #[doc = " Set the palette for a pixel format structure."] @@ -8350,7 +8363,7 @@ extern "C" { pub fn SDL_SetPixelFormatPalette( format: *mut SDL_PixelFormat, palette: *mut SDL_Palette, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set a range of colors in a palette."] @@ -8369,9 +8382,9 @@ extern "C" { pub fn SDL_SetPaletteColors( palette: *mut SDL_Palette, colors: *const SDL_Color, - firstcolor: libc::c_int, - ncolors: libc::c_int, - ) -> libc::c_int; + firstcolor: c_int, + ncolors: c_int, + ) -> c_int; } extern "C" { #[doc = " Free a palette created with SDL_AllocPalette()."] @@ -8532,8 +8545,8 @@ extern "C" { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_Point { - pub x: libc::c_int, - pub y: libc::c_int, + pub x: c_int, + pub y: c_int, } #[test] fn bindgen_test_layout_SDL_Point() { @@ -8622,10 +8635,10 @@ fn bindgen_test_layout_SDL_FPoint() { #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_Rect { - pub x: libc::c_int, - pub y: libc::c_int, - pub w: libc::c_int, - pub h: libc::c_int, + pub x: c_int, + pub y: c_int, + pub w: c_int, + pub h: c_int, } #[test] fn bindgen_test_layout_SDL_Rect() { @@ -8805,7 +8818,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] pub fn SDL_EnclosePoints( points: *const SDL_Point, - count: libc::c_int, + count: c_int, clip: *const SDL_Rect, result: *mut SDL_Rect, ) -> SDL_bool; @@ -8829,10 +8842,10 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] pub fn SDL_IntersectRectAndLine( rect: *const SDL_Rect, - X1: *mut libc::c_int, - Y1: *mut libc::c_int, - X2: *mut libc::c_int, - Y2: *mut libc::c_int, + X1: *mut c_int, + Y1: *mut c_int, + X2: *mut c_int, + Y2: *mut c_int, ) -> SDL_bool; } #[repr(u32)] @@ -9012,25 +9025,25 @@ pub struct SDL_Surface { #[doc = "< Read-only"] pub format: *mut SDL_PixelFormat, #[doc = "< Read-only"] - pub w: libc::c_int, + pub w: c_int, #[doc = "< Read-only"] - pub h: libc::c_int, + pub h: c_int, #[doc = "< Read-only"] - pub pitch: libc::c_int, + pub pitch: c_int, #[doc = "< Read-write"] - pub pixels: *mut libc::c_void, + pub pixels: *mut c_void, #[doc = "< Read-write"] - pub userdata: *mut libc::c_void, + pub userdata: *mut c_void, #[doc = "< Read-only"] - pub locked: libc::c_int, + pub locked: c_int, #[doc = "< Private"] - pub list_blitmap: *mut libc::c_void, + pub list_blitmap: *mut c_void, #[doc = "< Read-only"] pub clip_rect: SDL_Rect, #[doc = "< Private"] pub map: *mut SDL_BlitMap, #[doc = "< Read-mostly"] - pub refcount: libc::c_int, + pub refcount: c_int, } #[test] fn bindgen_test_layout_SDL_Surface() { @@ -9172,7 +9185,7 @@ pub type SDL_blit = ::core::option::Option< srcrect: *mut SDL_Rect, dst: *mut SDL_Surface, dstrect: *mut SDL_Rect, - ) -> libc::c_int, + ) -> c_int, >; #[repr(u32)] #[doc = " \\brief The formula used for converting between YUV and RGB"] @@ -9232,9 +9245,9 @@ extern "C" { #[doc = " \\sa SDL_FreeSurface"] pub fn SDL_CreateRGBSurface( flags: Uint32, - width: libc::c_int, - height: libc::c_int, - depth: libc::c_int, + width: c_int, + height: c_int, + depth: c_int, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, @@ -9263,9 +9276,9 @@ extern "C" { #[doc = " \\sa SDL_FreeSurface"] pub fn SDL_CreateRGBSurfaceWithFormat( flags: Uint32, - width: libc::c_int, - height: libc::c_int, - depth: libc::c_int, + width: c_int, + height: c_int, + depth: c_int, format: Uint32, ) -> *mut SDL_Surface; } @@ -9297,11 +9310,11 @@ extern "C" { #[doc = " \\sa SDL_CreateRGBSurfaceWithFormat"] #[doc = " \\sa SDL_FreeSurface"] pub fn SDL_CreateRGBSurfaceFrom( - pixels: *mut libc::c_void, - width: libc::c_int, - height: libc::c_int, - depth: libc::c_int, - pitch: libc::c_int, + pixels: *mut c_void, + width: c_int, + height: c_int, + depth: c_int, + pitch: c_int, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, @@ -9334,11 +9347,11 @@ extern "C" { #[doc = " \\sa SDL_CreateRGBSurfaceWithFormat"] #[doc = " \\sa SDL_FreeSurface"] pub fn SDL_CreateRGBSurfaceWithFormatFrom( - pixels: *mut libc::c_void, - width: libc::c_int, - height: libc::c_int, - depth: libc::c_int, - pitch: libc::c_int, + pixels: *mut c_void, + width: c_int, + height: c_int, + depth: c_int, + pitch: c_int, format: Uint32, ) -> *mut SDL_Surface; } @@ -9371,7 +9384,7 @@ extern "C" { pub fn SDL_SetSurfacePalette( surface: *mut SDL_Surface, palette: *mut SDL_Palette, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set up a surface for directly accessing the pixels."] @@ -9393,7 +9406,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_MUSTLOCK"] #[doc = " \\sa SDL_UnlockSurface"] - pub fn SDL_LockSurface(surface: *mut SDL_Surface) -> libc::c_int; + pub fn SDL_LockSurface(surface: *mut SDL_Surface) -> c_int; } extern "C" { #[doc = " Release a surface after directly accessing the pixels."] @@ -9426,7 +9439,7 @@ extern "C" { #[doc = " \\sa SDL_RWFromFile"] #[doc = " \\sa SDL_LoadBMP"] #[doc = " \\sa SDL_SaveBMP_RW"] - pub fn SDL_LoadBMP_RW(src: *mut SDL_RWops, freesrc: libc::c_int) -> *mut SDL_Surface; + pub fn SDL_LoadBMP_RW(src: *mut SDL_RWops, freesrc: c_int) -> *mut SDL_Surface; } extern "C" { #[doc = " Save a surface to a seekable SDL data stream in BMP format."] @@ -9450,8 +9463,8 @@ extern "C" { pub fn SDL_SaveBMP_RW( surface: *mut SDL_Surface, dst: *mut SDL_RWops, - freedst: libc::c_int, - ) -> libc::c_int; + freedst: c_int, + ) -> c_int; } extern "C" { #[doc = " Set the RLE acceleration hint for a surface."] @@ -9469,7 +9482,7 @@ extern "C" { #[doc = " \\sa SDL_BlitSurface"] #[doc = " \\sa SDL_LockSurface"] #[doc = " \\sa SDL_UnlockSurface"] - pub fn SDL_SetSurfaceRLE(surface: *mut SDL_Surface, flag: libc::c_int) -> libc::c_int; + pub fn SDL_SetSurfaceRLE(surface: *mut SDL_Surface, flag: c_int) -> c_int; } extern "C" { #[doc = " Returns whether the surface is RLE enabled"] @@ -9509,9 +9522,9 @@ extern "C" { #[doc = " \\sa SDL_GetColorKey"] pub fn SDL_SetColorKey( surface: *mut SDL_Surface, - flag: libc::c_int, + flag: c_int, key: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Returns whether the surface has a color key"] @@ -9544,7 +9557,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_BlitSurface"] #[doc = " \\sa SDL_SetColorKey"] - pub fn SDL_GetColorKey(surface: *mut SDL_Surface, key: *mut Uint32) -> libc::c_int; + pub fn SDL_GetColorKey(surface: *mut SDL_Surface, key: *mut Uint32) -> c_int; } extern "C" { #[doc = " Set an additional color value multiplied into blit operations."] @@ -9571,7 +9584,7 @@ extern "C" { r: Uint8, g: Uint8, b: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the additional color value multiplied into blit operations."] @@ -9592,7 +9605,7 @@ extern "C" { r: *mut Uint8, g: *mut Uint8, b: *mut Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set an additional alpha value used in blit operations."] @@ -9611,7 +9624,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetSurfaceAlphaMod"] #[doc = " \\sa SDL_SetSurfaceColorMod"] - pub fn SDL_SetSurfaceAlphaMod(surface: *mut SDL_Surface, alpha: Uint8) -> libc::c_int; + pub fn SDL_SetSurfaceAlphaMod(surface: *mut SDL_Surface, alpha: Uint8) -> c_int; } extern "C" { #[doc = " Get the additional alpha value used in blit operations."] @@ -9625,7 +9638,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetSurfaceColorMod"] #[doc = " \\sa SDL_SetSurfaceAlphaMod"] - pub fn SDL_GetSurfaceAlphaMod(surface: *mut SDL_Surface, alpha: *mut Uint8) -> libc::c_int; + pub fn SDL_GetSurfaceAlphaMod(surface: *mut SDL_Surface, alpha: *mut Uint8) -> c_int; } extern "C" { #[doc = " Set the blend mode used for blit operations."] @@ -9645,7 +9658,7 @@ extern "C" { pub fn SDL_SetSurfaceBlendMode( surface: *mut SDL_Surface, blendMode: SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the blend mode used for blit operations."] @@ -9661,7 +9674,7 @@ extern "C" { pub fn SDL_GetSurfaceBlendMode( surface: *mut SDL_Surface, blendMode: *mut SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set the clipping rectangle for a surface."] @@ -9774,15 +9787,15 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] pub fn SDL_ConvertPixels( - width: libc::c_int, - height: libc::c_int, + width: c_int, + height: c_int, src_format: Uint32, - src: *const libc::c_void, - src_pitch: libc::c_int, + src: *const c_void, + src_pitch: c_int, dst_format: Uint32, - dst: *mut libc::c_void, - dst_pitch: libc::c_int, - ) -> libc::c_int; + dst: *mut c_void, + dst_pitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Premultiply the alpha on a block of pixels."] @@ -9804,15 +9817,15 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_PremultiplyAlpha( - width: libc::c_int, - height: libc::c_int, + width: c_int, + height: c_int, src_format: Uint32, - src: *const libc::c_void, - src_pitch: libc::c_int, + src: *const c_void, + src_pitch: c_int, dst_format: Uint32, - dst: *mut libc::c_void, - dst_pitch: libc::c_int, - ) -> libc::c_int; + dst: *mut c_void, + dst_pitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Perform a fast fill of a rectangle with a specific color."] @@ -9837,7 +9850,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_FillRects"] pub fn SDL_FillRect(dst: *mut SDL_Surface, rect: *const SDL_Rect, color: Uint32) - -> libc::c_int; + -> c_int; } extern "C" { #[doc = " Perform a fast fill of a set of rectangles with a specific color."] @@ -9864,9 +9877,9 @@ extern "C" { pub fn SDL_FillRects( dst: *mut SDL_Surface, rects: *const SDL_Rect, - count: libc::c_int, + count: c_int, color: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform a fast blit from the source surface to the destination surface."] @@ -9882,7 +9895,7 @@ extern "C" { srcrect: *const SDL_Rect, dst: *mut SDL_Surface, dstrect: *mut SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform low-level surface blitting only."] @@ -9910,7 +9923,7 @@ extern "C" { srcrect: *mut SDL_Rect, dst: *mut SDL_Surface, dstrect: *mut SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform a fast, low quality, stretch blit between two surfaces of the same"] @@ -9924,7 +9937,7 @@ extern "C" { srcrect: *const SDL_Rect, dst: *mut SDL_Surface, dstrect: *const SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform bilinear scaling between two surfaces of the same format, 32BPP."] @@ -9935,7 +9948,7 @@ extern "C" { srcrect: *const SDL_Rect, dst: *mut SDL_Surface, dstrect: *const SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform a scaled surface copy to a destination surface."] @@ -9951,7 +9964,7 @@ extern "C" { srcrect: *const SDL_Rect, dst: *mut SDL_Surface, dstrect: *mut SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Perform low-level surface scaled blitting only."] @@ -9976,7 +9989,7 @@ extern "C" { srcrect: *mut SDL_Rect, dst: *mut SDL_Surface, dstrect: *mut SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set the YUV conversion mode"] @@ -9996,8 +10009,8 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.8."] pub fn SDL_GetYUVConversionModeForResolution( - width: libc::c_int, - height: libc::c_int, + width: c_int, + height: c_int, ) -> SDL_YUV_CONVERSION_MODE; } #[doc = " \\brief The structure that defines a display mode"] @@ -10015,13 +10028,13 @@ pub struct SDL_DisplayMode { #[doc = "< pixel format"] pub format: Uint32, #[doc = "< width, in screen coordinates"] - pub w: libc::c_int, + pub w: c_int, #[doc = "< height, in screen coordinates"] - pub h: libc::c_int, + pub h: c_int, #[doc = "< refresh rate (or zero for unspecified)"] - pub refresh_rate: libc::c_int, + pub refresh_rate: c_int, #[doc = "< driver-specific data, initialize to 0"] - pub driverdata: *mut libc::c_void, + pub driverdata: *mut c_void, } #[test] fn bindgen_test_layout_SDL_DisplayMode() { @@ -10235,7 +10248,7 @@ pub enum SDL_FlashOperation { SDL_FLASH_UNTIL_FOCUSED = 2, } #[doc = " \\brief An opaque handle to an OpenGL context."] -pub type SDL_GLContext = *mut libc::c_void; +pub type SDL_GLContext = *mut c_void; #[repr(u32)] #[doc = " \\brief OpenGL configuration attributes"] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -10305,7 +10318,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetVideoDriver"] - pub fn SDL_GetNumVideoDrivers() -> libc::c_int; + pub fn SDL_GetNumVideoDrivers() -> c_int; } extern "C" { #[doc = " Get the name of a built in video driver."] @@ -10319,7 +10332,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDrivers"] - pub fn SDL_GetVideoDriver(index: libc::c_int) -> *const libc::c_char; + pub fn SDL_GetVideoDriver(index: c_int) -> *const c_char; } extern "C" { #[doc = " Initialize the video subsystem, optionally specifying a video driver."] @@ -10349,7 +10362,7 @@ extern "C" { #[doc = " \\sa SDL_GetVideoDriver"] #[doc = " \\sa SDL_InitSubSystem"] #[doc = " \\sa SDL_VideoQuit"] - pub fn SDL_VideoInit(driver_name: *const libc::c_char) -> libc::c_int; + pub fn SDL_VideoInit(driver_name: *const c_char) -> c_int; } extern "C" { #[doc = " Shut down the video subsystem, if initialized with SDL_VideoInit()."] @@ -10371,7 +10384,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDrivers"] #[doc = " \\sa SDL_GetVideoDriver"] - pub fn SDL_GetCurrentVideoDriver() -> *const libc::c_char; + pub fn SDL_GetCurrentVideoDriver() -> *const c_char; } extern "C" { #[doc = " Get the number of available video displays."] @@ -10382,7 +10395,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetDisplayBounds"] - pub fn SDL_GetNumVideoDisplays() -> libc::c_int; + pub fn SDL_GetNumVideoDisplays() -> c_int; } extern "C" { #[doc = " Get the name of a display in UTF-8 encoding."] @@ -10395,7 +10408,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDisplays"] - pub fn SDL_GetDisplayName(displayIndex: libc::c_int) -> *const libc::c_char; + pub fn SDL_GetDisplayName(displayIndex: c_int) -> *const c_char; } extern "C" { #[doc = " Get the desktop area represented by a display."] @@ -10410,7 +10423,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDisplays"] - pub fn SDL_GetDisplayBounds(displayIndex: libc::c_int, rect: *mut SDL_Rect) -> libc::c_int; + pub fn SDL_GetDisplayBounds(displayIndex: c_int, rect: *mut SDL_Rect) -> c_int; } extern "C" { #[doc = " Get the usable desktop area represented by a display."] @@ -10441,9 +10454,9 @@ extern "C" { #[doc = " \\sa SDL_GetDisplayBounds"] #[doc = " \\sa SDL_GetNumVideoDisplays"] pub fn SDL_GetDisplayUsableBounds( - displayIndex: libc::c_int, + displayIndex: c_int, rect: *mut SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the dots/pixels-per-inch for a display."] @@ -10469,11 +10482,11 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDisplays"] pub fn SDL_GetDisplayDPI( - displayIndex: libc::c_int, + displayIndex: c_int, ddpi: *mut f32, hdpi: *mut f32, vdpi: *mut f32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the orientation of a display."] @@ -10485,7 +10498,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.9."] #[doc = ""] #[doc = " \\sa SDL_GetNumVideoDisplays"] - pub fn SDL_GetDisplayOrientation(displayIndex: libc::c_int) -> SDL_DisplayOrientation; + pub fn SDL_GetDisplayOrientation(displayIndex: c_int) -> SDL_DisplayOrientation; } extern "C" { #[doc = " Get the number of available display modes."] @@ -10501,7 +10514,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetDisplayMode"] #[doc = " \\sa SDL_GetNumVideoDisplays"] - pub fn SDL_GetNumDisplayModes(displayIndex: libc::c_int) -> libc::c_int; + pub fn SDL_GetNumDisplayModes(displayIndex: c_int) -> c_int; } extern "C" { #[doc = " Get information about a specific display mode."] @@ -10525,10 +10538,10 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetNumDisplayModes"] pub fn SDL_GetDisplayMode( - displayIndex: libc::c_int, - modeIndex: libc::c_int, + displayIndex: c_int, + modeIndex: c_int, mode: *mut SDL_DisplayMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get information about the desktop's display mode."] @@ -10550,9 +10563,9 @@ extern "C" { #[doc = " \\sa SDL_GetDisplayMode"] #[doc = " \\sa SDL_SetWindowDisplayMode"] pub fn SDL_GetDesktopDisplayMode( - displayIndex: libc::c_int, + displayIndex: c_int, mode: *mut SDL_DisplayMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get information about the current display mode."] @@ -10575,9 +10588,9 @@ extern "C" { #[doc = " \\sa SDL_GetNumVideoDisplays"] #[doc = " \\sa SDL_SetWindowDisplayMode"] pub fn SDL_GetCurrentDisplayMode( - displayIndex: libc::c_int, + displayIndex: c_int, mode: *mut SDL_DisplayMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the closest match to the requested display mode."] @@ -10602,7 +10615,7 @@ extern "C" { #[doc = " \\sa SDL_GetDisplayMode"] #[doc = " \\sa SDL_GetNumDisplayModes"] pub fn SDL_GetClosestDisplayMode( - displayIndex: libc::c_int, + displayIndex: c_int, mode: *const SDL_DisplayMode, closest: *mut SDL_DisplayMode, ) -> *mut SDL_DisplayMode; @@ -10619,7 +10632,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetDisplayBounds"] #[doc = " \\sa SDL_GetNumVideoDisplays"] - pub fn SDL_GetWindowDisplayIndex(window: *mut SDL_Window) -> libc::c_int; + pub fn SDL_GetWindowDisplayIndex(window: *mut SDL_Window) -> c_int; } extern "C" { #[doc = " Set the display mode to use when a window is visible at fullscreen."] @@ -10642,7 +10655,7 @@ extern "C" { pub fn SDL_SetWindowDisplayMode( window: *mut SDL_Window, mode: *const SDL_DisplayMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Query the display mode to use when a window is visible at fullscreen."] @@ -10660,7 +10673,7 @@ extern "C" { pub fn SDL_GetWindowDisplayMode( window: *mut SDL_Window, mode: *mut SDL_DisplayMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the raw ICC profile data for the screen the window is currently on."] @@ -10674,7 +10687,7 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_GetWindowICCProfile(window: *mut SDL_Window, size: *mut size_t) - -> *mut libc::c_void; + -> *mut c_void; } extern "C" { #[doc = " Get the pixel format associated with the window."] @@ -10755,11 +10768,11 @@ extern "C" { #[doc = " \\sa SDL_CreateWindowFrom"] #[doc = " \\sa SDL_DestroyWindow"] pub fn SDL_CreateWindow( - title: *const libc::c_char, - x: libc::c_int, - y: libc::c_int, - w: libc::c_int, - h: libc::c_int, + title: *const c_char, + x: c_int, + y: c_int, + w: c_int, + h: c_int, flags: Uint32, ) -> *mut SDL_Window; } @@ -10779,7 +10792,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_CreateWindow"] #[doc = " \\sa SDL_DestroyWindow"] - pub fn SDL_CreateWindowFrom(data: *const libc::c_void) -> *mut SDL_Window; + pub fn SDL_CreateWindowFrom(data: *const c_void) -> *mut SDL_Window; } extern "C" { #[doc = " Get the numeric ID of a window."] @@ -10839,7 +10852,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetWindowTitle"] - pub fn SDL_SetWindowTitle(window: *mut SDL_Window, title: *const libc::c_char); + pub fn SDL_SetWindowTitle(window: *mut SDL_Window, title: *const c_char); } extern "C" { #[doc = " Get the title of a window."] @@ -10851,7 +10864,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_SetWindowTitle"] - pub fn SDL_GetWindowTitle(window: *mut SDL_Window) -> *const libc::c_char; + pub fn SDL_GetWindowTitle(window: *mut SDL_Window) -> *const c_char; } extern "C" { #[doc = " Set the icon for a window."] @@ -10877,9 +10890,9 @@ extern "C" { #[doc = " \\sa SDL_GetWindowData"] pub fn SDL_SetWindowData( window: *mut SDL_Window, - name: *const libc::c_char, - userdata: *mut libc::c_void, - ) -> *mut libc::c_void; + name: *const c_char, + userdata: *mut c_void, + ) -> *mut c_void; } extern "C" { #[doc = " Retrieve the data pointer associated with a window."] @@ -10893,8 +10906,8 @@ extern "C" { #[doc = " \\sa SDL_SetWindowData"] pub fn SDL_GetWindowData( window: *mut SDL_Window, - name: *const libc::c_char, - ) -> *mut libc::c_void; + name: *const c_char, + ) -> *mut c_void; } extern "C" { #[doc = " Set the position of a window."] @@ -10910,7 +10923,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetWindowPosition"] - pub fn SDL_SetWindowPosition(window: *mut SDL_Window, x: libc::c_int, y: libc::c_int); + pub fn SDL_SetWindowPosition(window: *mut SDL_Window, x: c_int, y: c_int); } extern "C" { #[doc = " Get the position of a window."] @@ -10927,7 +10940,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_SetWindowPosition"] - pub fn SDL_GetWindowPosition(window: *mut SDL_Window, x: *mut libc::c_int, y: *mut libc::c_int); + pub fn SDL_GetWindowPosition(window: *mut SDL_Window, x: *mut c_int, y: *mut c_int); } extern "C" { #[doc = " Set the size of a window's client area."] @@ -10950,7 +10963,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetWindowSize"] #[doc = " \\sa SDL_SetWindowDisplayMode"] - pub fn SDL_SetWindowSize(window: *mut SDL_Window, w: libc::c_int, h: libc::c_int); + pub fn SDL_SetWindowSize(window: *mut SDL_Window, w: c_int, h: c_int); } extern "C" { #[doc = " Get the size of a window's client area."] @@ -10975,7 +10988,7 @@ extern "C" { #[doc = " \\sa SDL_GL_GetDrawableSize"] #[doc = " \\sa SDL_Vulkan_GetDrawableSize"] #[doc = " \\sa SDL_SetWindowSize"] - pub fn SDL_GetWindowSize(window: *mut SDL_Window, w: *mut libc::c_int, h: *mut libc::c_int); + pub fn SDL_GetWindowSize(window: *mut SDL_Window, w: *mut c_int, h: *mut c_int); } extern "C" { #[doc = " Get the size of a window's borders (decorations) around the client area."] @@ -11010,11 +11023,11 @@ extern "C" { #[doc = " \\sa SDL_GetWindowSize"] pub fn SDL_GetWindowBordersSize( window: *mut SDL_Window, - top: *mut libc::c_int, - left: *mut libc::c_int, - bottom: *mut libc::c_int, - right: *mut libc::c_int, - ) -> libc::c_int; + top: *mut c_int, + left: *mut c_int, + bottom: *mut c_int, + right: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Set the minimum size of a window's client area."] @@ -11029,8 +11042,8 @@ extern "C" { #[doc = " \\sa SDL_SetWindowMaximumSize"] pub fn SDL_SetWindowMinimumSize( window: *mut SDL_Window, - min_w: libc::c_int, - min_h: libc::c_int, + min_w: c_int, + min_h: c_int, ); } extern "C" { @@ -11048,8 +11061,8 @@ extern "C" { #[doc = " \\sa SDL_SetWindowMinimumSize"] pub fn SDL_GetWindowMinimumSize( window: *mut SDL_Window, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } extern "C" { @@ -11065,8 +11078,8 @@ extern "C" { #[doc = " \\sa SDL_SetWindowMinimumSize"] pub fn SDL_SetWindowMaximumSize( window: *mut SDL_Window, - max_w: libc::c_int, - max_h: libc::c_int, + max_w: c_int, + max_h: c_int, ); } extern "C" { @@ -11084,8 +11097,8 @@ extern "C" { #[doc = " \\sa SDL_SetWindowMaximumSize"] pub fn SDL_GetWindowMaximumSize( window: *mut SDL_Window, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } extern "C" { @@ -11215,7 +11228,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetWindowDisplayMode"] #[doc = " \\sa SDL_SetWindowDisplayMode"] - pub fn SDL_SetWindowFullscreen(window: *mut SDL_Window, flags: Uint32) -> libc::c_int; + pub fn SDL_SetWindowFullscreen(window: *mut SDL_Window, flags: Uint32) -> c_int; } extern "C" { #[doc = " Get the SDL surface associated with the window."] @@ -11257,7 +11270,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetWindowSurface"] #[doc = " \\sa SDL_UpdateWindowSurfaceRects"] - pub fn SDL_UpdateWindowSurface(window: *mut SDL_Window) -> libc::c_int; + pub fn SDL_UpdateWindowSurface(window: *mut SDL_Window) -> c_int; } extern "C" { #[doc = " Copy areas of the window surface to the screen."] @@ -11281,8 +11294,8 @@ extern "C" { pub fn SDL_UpdateWindowSurfaceRects( window: *mut SDL_Window, rects: *const SDL_Rect, - numrects: libc::c_int, - ) -> libc::c_int; + numrects: c_int, + ) -> c_int; } extern "C" { #[doc = " Set a window's input grab mode."] @@ -11408,7 +11421,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetWindowMouseRect"] #[doc = " \\sa SDL_SetWindowMouseGrab"] - pub fn SDL_SetWindowMouseRect(window: *mut SDL_Window, rect: *const SDL_Rect) -> libc::c_int; + pub fn SDL_SetWindowMouseRect(window: *mut SDL_Window, rect: *const SDL_Rect) -> c_int; } extern "C" { #[doc = " Get the mouse confinement rectangle of a window."] @@ -11447,7 +11460,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetWindowBrightness"] #[doc = " \\sa SDL_SetWindowGammaRamp"] - pub fn SDL_SetWindowBrightness(window: *mut SDL_Window, brightness: f32) -> libc::c_int; + pub fn SDL_SetWindowBrightness(window: *mut SDL_Window, brightness: f32) -> c_int; } extern "C" { #[doc = " Get the brightness (gamma multiplier) for a given window's display."] @@ -11483,7 +11496,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.5."] #[doc = ""] #[doc = " \\sa SDL_GetWindowOpacity"] - pub fn SDL_SetWindowOpacity(window: *mut SDL_Window, opacity: f32) -> libc::c_int; + pub fn SDL_SetWindowOpacity(window: *mut SDL_Window, opacity: f32) -> c_int; } extern "C" { #[doc = " Get the opacity of a window."] @@ -11503,7 +11516,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.5."] #[doc = ""] #[doc = " \\sa SDL_SetWindowOpacity"] - pub fn SDL_GetWindowOpacity(window: *mut SDL_Window, out_opacity: *mut f32) -> libc::c_int; + pub fn SDL_GetWindowOpacity(window: *mut SDL_Window, out_opacity: *mut f32) -> c_int; } extern "C" { #[doc = " Set the window as a modal for another window."] @@ -11517,7 +11530,7 @@ extern "C" { pub fn SDL_SetWindowModalFor( modal_window: *mut SDL_Window, parent_window: *mut SDL_Window, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Explicitly set input focus to the window."] @@ -11533,7 +11546,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.5."] #[doc = ""] #[doc = " \\sa SDL_RaiseWindow"] - pub fn SDL_SetWindowInputFocus(window: *mut SDL_Window) -> libc::c_int; + pub fn SDL_SetWindowInputFocus(window: *mut SDL_Window) -> c_int; } extern "C" { #[doc = " Set the gamma ramp for the display that owns a given window."] @@ -11569,7 +11582,7 @@ extern "C" { red: *const Uint16, green: *const Uint16, blue: *const Uint16, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the gamma ramp for a given window's display."] @@ -11598,7 +11611,7 @@ extern "C" { red: *mut Uint16, green: *mut Uint16, blue: *mut Uint16, - ) -> libc::c_int; + ) -> c_int; } #[repr(u32)] #[doc = " Possible return values from the SDL_HitTest callback."] @@ -11631,7 +11644,7 @@ pub type SDL_HitTest = ::core::option::Option< unsafe extern "C" fn( win: *mut SDL_Window, area: *const SDL_Point, - data: *mut libc::c_void, + data: *mut c_void, ) -> SDL_HitTestResult, >; extern "C" { @@ -11676,8 +11689,8 @@ extern "C" { pub fn SDL_SetWindowHitTest( window: *mut SDL_Window, callback: SDL_HitTest, - callback_data: *mut libc::c_void, - ) -> libc::c_int; + callback_data: *mut c_void, + ) -> c_int; } extern "C" { #[doc = " Request a window to demand attention from the user."] @@ -11688,7 +11701,7 @@ extern "C" { #[doc = " SDL_GetError() for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.16."] - pub fn SDL_FlashWindow(window: *mut SDL_Window, operation: SDL_FlashOperation) -> libc::c_int; + pub fn SDL_FlashWindow(window: *mut SDL_Window, operation: SDL_FlashOperation) -> c_int; } extern "C" { #[doc = " Destroy a window."] @@ -11761,7 +11774,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GL_GetProcAddress"] #[doc = " \\sa SDL_GL_UnloadLibrary"] - pub fn SDL_GL_LoadLibrary(path: *const libc::c_char) -> libc::c_int; + pub fn SDL_GL_LoadLibrary(path: *const c_char) -> c_int; } extern "C" { #[doc = " Get an OpenGL function by name."] @@ -11813,7 +11826,7 @@ extern "C" { #[doc = " \\sa SDL_GL_ExtensionSupported"] #[doc = " \\sa SDL_GL_LoadLibrary"] #[doc = " \\sa SDL_GL_UnloadLibrary"] - pub fn SDL_GL_GetProcAddress(proc_: *const libc::c_char) -> *mut libc::c_void; + pub fn SDL_GL_GetProcAddress(proc_: *const c_char) -> *mut c_void; } extern "C" { #[doc = " Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary()."] @@ -11841,7 +11854,7 @@ extern "C" { #[doc = " \\returns SDL_TRUE if the extension is supported, SDL_FALSE otherwise."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GL_ExtensionSupported(extension: *const libc::c_char) -> SDL_bool; + pub fn SDL_GL_ExtensionSupported(extension: *const c_char) -> SDL_bool; } extern "C" { #[doc = " Reset all previously set OpenGL context attributes to their default values."] @@ -11869,7 +11882,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GL_GetAttribute"] #[doc = " \\sa SDL_GL_ResetAttributes"] - pub fn SDL_GL_SetAttribute(attr: SDL_GLattr, value: libc::c_int) -> libc::c_int; + pub fn SDL_GL_SetAttribute(attr: SDL_GLattr, value: c_int) -> c_int; } extern "C" { #[doc = " Get the actual value for an attribute from the current context."] @@ -11883,7 +11896,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GL_ResetAttributes"] #[doc = " \\sa SDL_GL_SetAttribute"] - pub fn SDL_GL_GetAttribute(attr: SDL_GLattr, value: *mut libc::c_int) -> libc::c_int; + pub fn SDL_GL_GetAttribute(attr: SDL_GLattr, value: *mut c_int) -> c_int; } extern "C" { #[doc = " Create an OpenGL context for an OpenGL window, and make it current."] @@ -11919,7 +11932,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GL_CreateContext"] - pub fn SDL_GL_MakeCurrent(window: *mut SDL_Window, context: SDL_GLContext) -> libc::c_int; + pub fn SDL_GL_MakeCurrent(window: *mut SDL_Window, context: SDL_GLContext) -> c_int; } extern "C" { #[doc = " Get the currently active OpenGL window."] @@ -11962,8 +11975,8 @@ extern "C" { #[doc = " \\sa SDL_GetWindowSize"] pub fn SDL_GL_GetDrawableSize( window: *mut SDL_Window, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } extern "C" { @@ -11997,7 +12010,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GL_GetSwapInterval"] - pub fn SDL_GL_SetSwapInterval(interval: libc::c_int) -> libc::c_int; + pub fn SDL_GL_SetSwapInterval(interval: c_int) -> c_int; } extern "C" { #[doc = " Get the swap interval for the current OpenGL context."] @@ -12013,7 +12026,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GL_SetSwapInterval"] - pub fn SDL_GL_GetSwapInterval() -> libc::c_int; + pub fn SDL_GL_GetSwapInterval() -> c_int; } extern "C" { #[doc = " Update a window with OpenGL rendering."] @@ -12759,7 +12772,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_PumpEvents"] - pub fn SDL_GetKeyboardState(numkeys: *mut libc::c_int) -> *const Uint8; + pub fn SDL_GetKeyboardState(numkeys: *mut c_int) -> *const Uint8; } extern "C" { #[doc = " Get the current key modifier state for the keyboard."] @@ -12843,7 +12856,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetScancodeFromKey"] #[doc = " \\sa SDL_GetScancodeFromName"] - pub fn SDL_GetScancodeName(scancode: SDL_Scancode) -> *const libc::c_char; + pub fn SDL_GetScancodeName(scancode: SDL_Scancode) -> *const c_char; } extern "C" { #[doc = " Get a scancode from a human-readable name."] @@ -12857,7 +12870,7 @@ extern "C" { #[doc = " \\sa SDL_GetKeyFromName"] #[doc = " \\sa SDL_GetScancodeFromKey"] #[doc = " \\sa SDL_GetScancodeName"] - pub fn SDL_GetScancodeFromName(name: *const libc::c_char) -> SDL_Scancode; + pub fn SDL_GetScancodeFromName(name: *const c_char) -> SDL_Scancode; } extern "C" { #[doc = " Get a human-readable name for a key."] @@ -12875,7 +12888,7 @@ extern "C" { #[doc = " \\sa SDL_GetKeyFromName"] #[doc = " \\sa SDL_GetKeyFromScancode"] #[doc = " \\sa SDL_GetScancodeFromKey"] - pub fn SDL_GetKeyName(key: SDL_Keycode) -> *const libc::c_char; + pub fn SDL_GetKeyName(key: SDL_Keycode) -> *const c_char; } extern "C" { #[doc = " Get a key code from a human-readable name."] @@ -12889,7 +12902,7 @@ extern "C" { #[doc = " \\sa SDL_GetKeyFromScancode"] #[doc = " \\sa SDL_GetKeyName"] #[doc = " \\sa SDL_GetScancodeFromName"] - pub fn SDL_GetKeyFromName(name: *const libc::c_char) -> SDL_Keycode; + pub fn SDL_GetKeyFromName(name: *const c_char) -> SDL_Keycode; } extern "C" { #[doc = " Start accepting Unicode text input events."] @@ -13031,7 +13044,7 @@ extern "C" { #[doc = " \\sa SDL_GetGlobalMouseState"] #[doc = " \\sa SDL_GetRelativeMouseState"] #[doc = " \\sa SDL_PumpEvents"] - pub fn SDL_GetMouseState(x: *mut libc::c_int, y: *mut libc::c_int) -> Uint32; + pub fn SDL_GetMouseState(x: *mut c_int, y: *mut c_int) -> Uint32; } extern "C" { #[doc = " Get the current state of the mouse in relation to the desktop."] @@ -13059,7 +13072,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.4."] #[doc = ""] #[doc = " \\sa SDL_CaptureMouse"] - pub fn SDL_GetGlobalMouseState(x: *mut libc::c_int, y: *mut libc::c_int) -> Uint32; + pub fn SDL_GetGlobalMouseState(x: *mut c_int, y: *mut c_int) -> Uint32; } extern "C" { #[doc = " Retrieve the relative state of the mouse."] @@ -13077,7 +13090,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetMouseState"] - pub fn SDL_GetRelativeMouseState(x: *mut libc::c_int, y: *mut libc::c_int) -> Uint32; + pub fn SDL_GetRelativeMouseState(x: *mut c_int, y: *mut c_int) -> Uint32; } extern "C" { #[doc = " Move the mouse cursor to the given position within the window."] @@ -13095,7 +13108,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_WarpMouseGlobal"] - pub fn SDL_WarpMouseInWindow(window: *mut SDL_Window, x: libc::c_int, y: libc::c_int); + pub fn SDL_WarpMouseInWindow(window: *mut SDL_Window, x: c_int, y: c_int); } extern "C" { #[doc = " Move the mouse to the given position in global screen space."] @@ -13116,7 +13129,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.4."] #[doc = ""] #[doc = " \\sa SDL_WarpMouseInWindow"] - pub fn SDL_WarpMouseGlobal(x: libc::c_int, y: libc::c_int) -> libc::c_int; + pub fn SDL_WarpMouseGlobal(x: c_int, y: c_int) -> c_int; } extern "C" { #[doc = " Set relative mouse mode."] @@ -13140,7 +13153,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetRelativeMouseMode"] - pub fn SDL_SetRelativeMouseMode(enabled: SDL_bool) -> libc::c_int; + pub fn SDL_SetRelativeMouseMode(enabled: SDL_bool) -> c_int; } extern "C" { #[doc = " Capture the mouse and to track input outside an SDL window."] @@ -13176,7 +13189,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.4."] #[doc = ""] #[doc = " \\sa SDL_GetGlobalMouseState"] - pub fn SDL_CaptureMouse(enabled: SDL_bool) -> libc::c_int; + pub fn SDL_CaptureMouse(enabled: SDL_bool) -> c_int; } extern "C" { #[doc = " Query whether relative mouse mode is enabled."] @@ -13231,10 +13244,10 @@ extern "C" { pub fn SDL_CreateCursor( data: *const Uint8, mask: *const Uint8, - w: libc::c_int, - h: libc::c_int, - hot_x: libc::c_int, - hot_y: libc::c_int, + w: c_int, + h: c_int, + hot_x: c_int, + hot_y: c_int, ) -> *mut SDL_Cursor; } extern "C" { @@ -13252,8 +13265,8 @@ extern "C" { #[doc = " \\sa SDL_FreeCursor"] pub fn SDL_CreateColorCursor( surface: *mut SDL_Surface, - hot_x: libc::c_int, - hot_y: libc::c_int, + hot_x: c_int, + hot_y: c_int, ) -> *mut SDL_Cursor; } extern "C" { @@ -13342,7 +13355,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_CreateCursor"] #[doc = " \\sa SDL_SetCursor"] - pub fn SDL_ShowCursor(toggle: libc::c_int) -> libc::c_int; + pub fn SDL_ShowCursor(toggle: c_int) -> c_int; } #[doc = " The joystick structure used to identify an SDL joystick"] #[repr(C)] @@ -13446,7 +13459,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickName"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_NumJoysticks() -> libc::c_int; + pub fn SDL_NumJoysticks() -> c_int; } extern "C" { #[doc = " Get the implementation dependent name of a joystick."] @@ -13462,14 +13475,14 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickName"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_JoystickNameForIndex(device_index: libc::c_int) -> *const libc::c_char; + pub fn SDL_JoystickNameForIndex(device_index: c_int) -> *const c_char; } extern "C" { #[doc = " Get the player index of a joystick, or -1 if it's not available This can be"] #[doc = " called before any joysticks are opened."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_JoystickGetDevicePlayerIndex(device_index: libc::c_int) -> libc::c_int; + pub fn SDL_JoystickGetDevicePlayerIndex(device_index: c_int) -> c_int; } extern "C" { #[doc = " Get the implementation-dependent GUID for the joystick at a given device"] @@ -13486,7 +13499,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickGetGUID"] #[doc = " \\sa SDL_JoystickGetGUIDString"] - pub fn SDL_JoystickGetDeviceGUID(device_index: libc::c_int) -> SDL_JoystickGUID; + pub fn SDL_JoystickGetDeviceGUID(device_index: c_int) -> SDL_JoystickGUID; } extern "C" { #[doc = " Get the USB vendor ID of a joystick, if available."] @@ -13500,7 +13513,7 @@ extern "C" { #[doc = " invalid index, this function returns zero"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_JoystickGetDeviceVendor(device_index: libc::c_int) -> Uint16; + pub fn SDL_JoystickGetDeviceVendor(device_index: c_int) -> Uint16; } extern "C" { #[doc = " Get the USB product ID of a joystick, if available."] @@ -13514,7 +13527,7 @@ extern "C" { #[doc = " invalid index, this function returns zero"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_JoystickGetDeviceProduct(device_index: libc::c_int) -> Uint16; + pub fn SDL_JoystickGetDeviceProduct(device_index: c_int) -> Uint16; } extern "C" { #[doc = " Get the product version of a joystick, if available."] @@ -13528,7 +13541,7 @@ extern "C" { #[doc = " invalid index, this function returns zero"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_JoystickGetDeviceProductVersion(device_index: libc::c_int) -> Uint16; + pub fn SDL_JoystickGetDeviceProductVersion(device_index: c_int) -> Uint16; } extern "C" { #[doc = " Get the type of a joystick, if available."] @@ -13541,7 +13554,7 @@ extern "C" { #[doc = " invalid index, this function returns `SDL_JOYSTICK_TYPE_UNKNOWN`"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_JoystickGetDeviceType(device_index: libc::c_int) -> SDL_JoystickType; + pub fn SDL_JoystickGetDeviceType(device_index: c_int) -> SDL_JoystickType; } extern "C" { #[doc = " Get the instance ID of a joystick."] @@ -13555,7 +13568,7 @@ extern "C" { #[doc = " index, this function returns zero"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_JoystickGetDeviceInstanceID(device_index: libc::c_int) -> SDL_JoystickID; + pub fn SDL_JoystickGetDeviceInstanceID(device_index: c_int) -> SDL_JoystickID; } extern "C" { #[doc = " Open a joystick for use."] @@ -13576,7 +13589,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickClose"] #[doc = " \\sa SDL_JoystickInstanceID"] - pub fn SDL_JoystickOpen(device_index: libc::c_int) -> *mut SDL_Joystick; + pub fn SDL_JoystickOpen(device_index: c_int) -> *mut SDL_Joystick; } extern "C" { #[doc = " Get the SDL_Joystick associated with an instance id."] @@ -13596,7 +13609,7 @@ extern "C" { #[doc = " for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.12."] - pub fn SDL_JoystickFromPlayerIndex(player_index: libc::c_int) -> *mut SDL_Joystick; + pub fn SDL_JoystickFromPlayerIndex(player_index: c_int) -> *mut SDL_Joystick; } extern "C" { #[doc = " Attach a new virtual joystick."] @@ -13606,10 +13619,10 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_JoystickAttachVirtual( type_: SDL_JoystickType, - naxes: libc::c_int, - nbuttons: libc::c_int, - nhats: libc::c_int, - ) -> libc::c_int; + naxes: c_int, + nbuttons: c_int, + nhats: c_int, + ) -> c_int; } extern "C" { #[doc = " Detach a virtual joystick."] @@ -13619,7 +13632,7 @@ extern "C" { #[doc = " \\returns 0 on success, or -1 if an error occurred."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.14."] - pub fn SDL_JoystickDetachVirtual(device_index: libc::c_int) -> libc::c_int; + pub fn SDL_JoystickDetachVirtual(device_index: c_int) -> c_int; } extern "C" { #[doc = " Query whether or not the joystick at a given device index is virtual."] @@ -13628,7 +13641,7 @@ extern "C" { #[doc = " \\returns SDL_TRUE if the joystick is virtual, SDL_FALSE otherwise."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.14."] - pub fn SDL_JoystickIsVirtual(device_index: libc::c_int) -> SDL_bool; + pub fn SDL_JoystickIsVirtual(device_index: c_int) -> SDL_bool; } extern "C" { #[doc = " Set values on an opened, virtual-joystick's axis."] @@ -13647,9 +13660,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_JoystickSetVirtualAxis( joystick: *mut SDL_Joystick, - axis: libc::c_int, + axis: c_int, value: Sint16, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set values on an opened, virtual-joystick's button."] @@ -13668,9 +13681,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_JoystickSetVirtualButton( joystick: *mut SDL_Joystick, - button: libc::c_int, + button: c_int, value: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set values on an opened, virtual-joystick's hat."] @@ -13689,9 +13702,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_JoystickSetVirtualHat( joystick: *mut SDL_Joystick, - hat: libc::c_int, + hat: c_int, value: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the implementation dependent name of a joystick."] @@ -13704,7 +13717,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickNameForIndex"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_JoystickName(joystick: *mut SDL_Joystick) -> *const libc::c_char; + pub fn SDL_JoystickName(joystick: *mut SDL_Joystick) -> *const c_char; } extern "C" { #[doc = " Get the player index of an opened joystick."] @@ -13716,7 +13729,7 @@ extern "C" { #[doc = " \\returns the player index, or -1 if it's not available."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_JoystickGetPlayerIndex(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickGetPlayerIndex(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Set the player index of an opened joystick."] @@ -13725,7 +13738,7 @@ extern "C" { #[doc = " \\param player_index the player index to set."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.12."] - pub fn SDL_JoystickSetPlayerIndex(joystick: *mut SDL_Joystick, player_index: libc::c_int); + pub fn SDL_JoystickSetPlayerIndex(joystick: *mut SDL_Joystick, player_index: c_int); } extern "C" { #[doc = " Get the implementation-dependent GUID for the joystick."] @@ -13786,7 +13799,7 @@ extern "C" { #[doc = " unavailable."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.14."] - pub fn SDL_JoystickGetSerial(joystick: *mut SDL_Joystick) -> *const libc::c_char; + pub fn SDL_JoystickGetSerial(joystick: *mut SDL_Joystick) -> *const c_char; } extern "C" { #[doc = " Get the type of an opened joystick."] @@ -13813,8 +13826,8 @@ extern "C" { #[doc = " \\sa SDL_JoystickGetGUIDFromString"] pub fn SDL_JoystickGetGUIDString( guid: SDL_JoystickGUID, - pszGUID: *mut libc::c_char, - cbGUID: libc::c_int, + pszGUID: *mut c_char, + cbGUID: c_int, ); } extern "C" { @@ -13830,7 +13843,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickGetGUIDString"] - pub fn SDL_JoystickGetGUIDFromString(pchGUID: *const libc::c_char) -> SDL_JoystickGUID; + pub fn SDL_JoystickGetGUIDFromString(pchGUID: *const c_char) -> SDL_JoystickGUID; } extern "C" { #[doc = " Get the status of a specified joystick."] @@ -13873,7 +13886,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickGetAxis"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_JoystickNumAxes(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickNumAxes(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Get the number of trackballs on a joystick."] @@ -13890,7 +13903,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickGetBall"] - pub fn SDL_JoystickNumBalls(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickNumBalls(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Get the number of POV hats on a joystick."] @@ -13903,7 +13916,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickGetHat"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_JoystickNumHats(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickNumHats(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Get the number of buttons on a joystick."] @@ -13916,7 +13929,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickGetButton"] #[doc = " \\sa SDL_JoystickOpen"] - pub fn SDL_JoystickNumButtons(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickNumButtons(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Update the current state of the open joysticks."] @@ -13951,7 +13964,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GameControllerEventState"] - pub fn SDL_JoystickEventState(state: libc::c_int) -> libc::c_int; + pub fn SDL_JoystickEventState(state: c_int) -> c_int; } extern "C" { #[doc = " Get the current state of an axis control on a joystick."] @@ -13974,7 +13987,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickNumAxes"] - pub fn SDL_JoystickGetAxis(joystick: *mut SDL_Joystick, axis: libc::c_int) -> Sint16; + pub fn SDL_JoystickGetAxis(joystick: *mut SDL_Joystick, axis: c_int) -> Sint16; } extern "C" { #[doc = " Get the initial state of an axis control on a joystick."] @@ -13991,7 +14004,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.6."] pub fn SDL_JoystickGetAxisInitialState( joystick: *mut SDL_Joystick, - axis: libc::c_int, + axis: c_int, state: *mut Sint16, ) -> SDL_bool; } @@ -14017,7 +14030,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickNumHats"] - pub fn SDL_JoystickGetHat(joystick: *mut SDL_Joystick, hat: libc::c_int) -> Uint8; + pub fn SDL_JoystickGetHat(joystick: *mut SDL_Joystick, hat: c_int) -> Uint8; } extern "C" { #[doc = " Get the ball axis change since the last poll."] @@ -14039,10 +14052,10 @@ extern "C" { #[doc = " \\sa SDL_JoystickNumBalls"] pub fn SDL_JoystickGetBall( joystick: *mut SDL_Joystick, - ball: libc::c_int, - dx: *mut libc::c_int, - dy: *mut libc::c_int, - ) -> libc::c_int; + ball: c_int, + dx: *mut c_int, + dy: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Get the current state of a button on a joystick."] @@ -14055,7 +14068,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickNumButtons"] - pub fn SDL_JoystickGetButton(joystick: *mut SDL_Joystick, button: libc::c_int) -> Uint8; + pub fn SDL_JoystickGetButton(joystick: *mut SDL_Joystick, button: c_int) -> Uint8; } extern "C" { #[doc = " Start a rumble effect."] @@ -14079,7 +14092,7 @@ extern "C" { low_frequency_rumble: Uint16, high_frequency_rumble: Uint16, duration_ms: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Start a rumble effect in the joystick's triggers"] @@ -14108,7 +14121,7 @@ extern "C" { left_rumble: Uint16, right_rumble: Uint16, duration_ms: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Query whether a joystick has an LED."] @@ -14162,7 +14175,7 @@ extern "C" { red: Uint8, green: Uint8, blue: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Send a joystick specific effect packet"] @@ -14175,9 +14188,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.16."] pub fn SDL_JoystickSendEffect( joystick: *mut SDL_Joystick, - data: *const libc::c_void, - size: libc::c_int, - ) -> libc::c_int; + data: *const c_void, + size: c_int, + ) -> c_int; } extern "C" { #[doc = " Close a joystick previously opened with SDL_JoystickOpen()."] @@ -14249,7 +14262,7 @@ extern "C" { #[doc = " \\returns the number of sensors detected."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_NumSensors() -> libc::c_int; + pub fn SDL_NumSensors() -> c_int; } extern "C" { #[doc = " Get the implementation dependent name of a sensor."] @@ -14258,7 +14271,7 @@ extern "C" { #[doc = " \\returns the sensor name, or NULL if `device_index` is out of range."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetDeviceName(device_index: libc::c_int) -> *const libc::c_char; + pub fn SDL_SensorGetDeviceName(device_index: c_int) -> *const c_char; } extern "C" { #[doc = " Get the type of a sensor."] @@ -14268,7 +14281,7 @@ extern "C" { #[doc = " out of range."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetDeviceType(device_index: libc::c_int) -> SDL_SensorType; + pub fn SDL_SensorGetDeviceType(device_index: c_int) -> SDL_SensorType; } extern "C" { #[doc = " Get the platform dependent type of a sensor."] @@ -14278,7 +14291,7 @@ extern "C" { #[doc = " of range."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetDeviceNonPortableType(device_index: libc::c_int) -> libc::c_int; + pub fn SDL_SensorGetDeviceNonPortableType(device_index: c_int) -> c_int; } extern "C" { #[doc = " Get the instance ID of a sensor."] @@ -14287,7 +14300,7 @@ extern "C" { #[doc = " \\returns the sensor instance ID, or -1 if `device_index` is out of range."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetDeviceInstanceID(device_index: libc::c_int) -> SDL_SensorID; + pub fn SDL_SensorGetDeviceInstanceID(device_index: c_int) -> SDL_SensorID; } extern "C" { #[doc = " Open a sensor for use."] @@ -14296,7 +14309,7 @@ extern "C" { #[doc = " \\returns an SDL_Sensor sensor object, or NULL if an error occurred."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorOpen(device_index: libc::c_int) -> *mut SDL_Sensor; + pub fn SDL_SensorOpen(device_index: c_int) -> *mut SDL_Sensor; } extern "C" { #[doc = " Return the SDL_Sensor associated with an instance id."] @@ -14314,7 +14327,7 @@ extern "C" { #[doc = " \\returns the sensor name, or NULL if `sensor` is NULL."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetName(sensor: *mut SDL_Sensor) -> *const libc::c_char; + pub fn SDL_SensorGetName(sensor: *mut SDL_Sensor) -> *const c_char; } extern "C" { #[doc = " Get the type of a sensor."] @@ -14333,7 +14346,7 @@ extern "C" { #[doc = " \\returns the sensor platform dependent type, or -1 if `sensor` is NULL."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_SensorGetNonPortableType(sensor: *mut SDL_Sensor) -> libc::c_int; + pub fn SDL_SensorGetNonPortableType(sensor: *mut SDL_Sensor) -> c_int; } extern "C" { #[doc = " Get the instance ID of a sensor."] @@ -14358,8 +14371,8 @@ extern "C" { pub fn SDL_SensorGetData( sensor: *mut SDL_Sensor, data: *mut f32, - num_values: libc::c_int, - ) -> libc::c_int; + num_values: c_int, + ) -> c_int; } extern "C" { #[doc = " Close a sensor previously opened with SDL_SensorOpen()."] @@ -14420,16 +14433,16 @@ pub struct SDL_GameControllerButtonBind { #[repr(C)] #[derive(Copy, Clone)] pub union SDL_GameControllerButtonBind__bindgen_ty_1 { - pub button: libc::c_int, - pub axis: libc::c_int, + pub button: c_int, + pub axis: c_int, pub hat: SDL_GameControllerButtonBind__bindgen_ty_1__bindgen_ty_1, _bindgen_union_align: [u32; 2usize], } #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_GameControllerButtonBind__bindgen_ty_1__bindgen_ty_1 { - pub hat: libc::c_int, - pub hat_mask: libc::c_int, + pub hat: c_int, + pub hat_mask: c_int, } #[test] fn bindgen_test_layout_SDL_GameControllerButtonBind__bindgen_ty_1__bindgen_ty_1() { @@ -14600,8 +14613,8 @@ extern "C" { #[doc = " \\sa SDL_GameControllerMappingForGUID"] pub fn SDL_GameControllerAddMappingsFromRW( rw: *mut SDL_RWops, - freerw: libc::c_int, - ) -> libc::c_int; + freerw: c_int, + ) -> c_int; } extern "C" { #[doc = " Add support for controllers that SDL is unaware of or to cause an existing"] @@ -14629,7 +14642,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GameControllerMapping"] #[doc = " \\sa SDL_GameControllerMappingForGUID"] - pub fn SDL_GameControllerAddMapping(mappingString: *const libc::c_char) -> libc::c_int; + pub fn SDL_GameControllerAddMapping(mappingString: *const c_char) -> c_int; } extern "C" { #[doc = " Get the number of mappings installed."] @@ -14637,7 +14650,7 @@ extern "C" { #[doc = " \\returns the number of mappings."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_GameControllerNumMappings() -> libc::c_int; + pub fn SDL_GameControllerNumMappings() -> c_int; } extern "C" { #[doc = " Get the mapping at a particular index."] @@ -14646,7 +14659,7 @@ extern "C" { #[doc = " the index is out of range."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_GameControllerMappingForIndex(mapping_index: libc::c_int) -> *mut libc::c_char; + pub fn SDL_GameControllerMappingForIndex(mapping_index: c_int) -> *mut c_char; } extern "C" { #[doc = " Get the game controller mapping string for a given GUID."] @@ -14661,7 +14674,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_JoystickGetDeviceGUID"] #[doc = " \\sa SDL_JoystickGetGUID"] - pub fn SDL_GameControllerMappingForGUID(guid: SDL_JoystickGUID) -> *mut libc::c_char; + pub fn SDL_GameControllerMappingForGUID(guid: SDL_JoystickGUID) -> *mut c_char; } extern "C" { #[doc = " Get the current mapping of a Game Controller."] @@ -14679,7 +14692,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GameControllerAddMapping"] #[doc = " \\sa SDL_GameControllerMappingForGUID"] - pub fn SDL_GameControllerMapping(gamecontroller: *mut SDL_GameController) -> *mut libc::c_char; + pub fn SDL_GameControllerMapping(gamecontroller: *mut SDL_GameController) -> *mut c_char; } extern "C" { #[doc = " Check if the given joystick is supported by the game controller interface."] @@ -14696,7 +14709,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GameControllerNameForIndex"] #[doc = " \\sa SDL_GameControllerOpen"] - pub fn SDL_IsGameController(joystick_index: libc::c_int) -> SDL_bool; + pub fn SDL_IsGameController(joystick_index: c_int) -> SDL_bool; } extern "C" { #[doc = " Get the implementation dependent name for the game controller."] @@ -14716,7 +14729,7 @@ extern "C" { #[doc = " \\sa SDL_GameControllerName"] #[doc = " \\sa SDL_GameControllerOpen"] #[doc = " \\sa SDL_IsGameController"] - pub fn SDL_GameControllerNameForIndex(joystick_index: libc::c_int) -> *const libc::c_char; + pub fn SDL_GameControllerNameForIndex(joystick_index: c_int) -> *const c_char; } extern "C" { #[doc = " Get the type of a game controller."] @@ -14728,7 +14741,7 @@ extern "C" { #[doc = " \\returns the controller type."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.12."] - pub fn SDL_GameControllerTypeForIndex(joystick_index: libc::c_int) -> SDL_GameControllerType; + pub fn SDL_GameControllerTypeForIndex(joystick_index: c_int) -> SDL_GameControllerType; } extern "C" { #[doc = " Get the mapping of a game controller."] @@ -14742,8 +14755,8 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] pub fn SDL_GameControllerMappingForDeviceIndex( - joystick_index: libc::c_int, - ) -> *mut libc::c_char; + joystick_index: c_int, + ) -> *mut c_char; } extern "C" { #[doc = " Open a game controller for use."] @@ -14766,7 +14779,7 @@ extern "C" { #[doc = " \\sa SDL_GameControllerClose"] #[doc = " \\sa SDL_GameControllerNameForIndex"] #[doc = " \\sa SDL_IsGameController"] - pub fn SDL_GameControllerOpen(joystick_index: libc::c_int) -> *mut SDL_GameController; + pub fn SDL_GameControllerOpen(joystick_index: c_int) -> *mut SDL_GameController; } extern "C" { #[doc = " Get the SDL_GameController associated with an instance id."] @@ -14792,7 +14805,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GameControllerGetPlayerIndex"] #[doc = " \\sa SDL_GameControllerSetPlayerIndex"] - pub fn SDL_GameControllerFromPlayerIndex(player_index: libc::c_int) -> *mut SDL_GameController; + pub fn SDL_GameControllerFromPlayerIndex(player_index: c_int) -> *mut SDL_GameController; } extern "C" { #[doc = " Get the implementation-dependent name for an opened game controller."] @@ -14809,7 +14822,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GameControllerNameForIndex"] #[doc = " \\sa SDL_GameControllerOpen"] - pub fn SDL_GameControllerName(gamecontroller: *mut SDL_GameController) -> *const libc::c_char; + pub fn SDL_GameControllerName(gamecontroller: *mut SDL_GameController) -> *const c_char; } extern "C" { #[doc = " Get the type of this currently opened controller"] @@ -14835,7 +14848,7 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] pub fn SDL_GameControllerGetPlayerIndex(gamecontroller: *mut SDL_GameController) - -> libc::c_int; + -> c_int; } extern "C" { #[doc = " Set the player index of an opened game controller."] @@ -14846,7 +14859,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.12."] pub fn SDL_GameControllerSetPlayerIndex( gamecontroller: *mut SDL_GameController, - player_index: libc::c_int, + player_index: c_int, ); } extern "C" { @@ -14894,7 +14907,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_GameControllerGetSerial( gamecontroller: *mut SDL_GameController, - ) -> *const libc::c_char; + ) -> *const c_char; } extern "C" { #[doc = " Check if a controller has been opened and is currently connected."] @@ -14949,7 +14962,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_JoystickEventState"] - pub fn SDL_GameControllerEventState(state: libc::c_int) -> libc::c_int; + pub fn SDL_GameControllerEventState(state: c_int) -> c_int; } extern "C" { #[doc = " Manually pump game controller updates if not using the loop."] @@ -14999,7 +15012,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GameControllerGetStringForAxis"] - pub fn SDL_GameControllerGetAxisFromString(str: *const libc::c_char) -> SDL_GameControllerAxis; + pub fn SDL_GameControllerGetAxisFromString(str: *const c_char) -> SDL_GameControllerAxis; } extern "C" { #[doc = " Convert from an SDL_GameControllerAxis enum to a string."] @@ -15014,7 +15027,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GameControllerGetAxisFromString"] - pub fn SDL_GameControllerGetStringForAxis(axis: SDL_GameControllerAxis) -> *const libc::c_char; + pub fn SDL_GameControllerGetStringForAxis(axis: SDL_GameControllerAxis) -> *const c_char; } extern "C" { #[doc = " Get the SDL joystick layer binding for a controller axis mapping."] @@ -15112,7 +15125,7 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] pub fn SDL_GameControllerGetButtonFromString( - str: *const libc::c_char, + str: *const c_char, ) -> SDL_GameControllerButton; } extern "C" { @@ -15130,7 +15143,7 @@ extern "C" { #[doc = " \\sa SDL_GameControllerGetButtonFromString"] pub fn SDL_GameControllerGetStringForButton( button: SDL_GameControllerButton, - ) -> *const libc::c_char; + ) -> *const c_char; } extern "C" { #[doc = " Get the SDL joystick layer binding for a controller button mapping."] @@ -15187,7 +15200,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_GameControllerGetNumTouchpads( gamecontroller: *mut SDL_GameController, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the number of supported simultaneous fingers on a touchpad on a game"] @@ -15196,8 +15209,8 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_GameControllerGetNumTouchpadFingers( gamecontroller: *mut SDL_GameController, - touchpad: libc::c_int, - ) -> libc::c_int; + touchpad: c_int, + ) -> c_int; } extern "C" { #[doc = " Get the current state of a finger on a touchpad on a game controller."] @@ -15205,13 +15218,13 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] pub fn SDL_GameControllerGetTouchpadFinger( gamecontroller: *mut SDL_GameController, - touchpad: libc::c_int, - finger: libc::c_int, + touchpad: c_int, + finger: c_int, state: *mut Uint8, x: *mut f32, y: *mut f32, pressure: *mut f32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Return whether a game controller has a particular sensor."] @@ -15239,7 +15252,7 @@ extern "C" { gamecontroller: *mut SDL_GameController, type_: SDL_SensorType, enabled: SDL_bool, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Query whether sensor data reporting is enabled for a game controller."] @@ -15285,8 +15298,8 @@ extern "C" { gamecontroller: *mut SDL_GameController, type_: SDL_SensorType, data: *mut f32, - num_values: libc::c_int, - ) -> libc::c_int; + num_values: c_int, + ) -> c_int; } extern "C" { #[doc = " Start a rumble effect on a game controller."] @@ -15310,7 +15323,7 @@ extern "C" { low_frequency_rumble: Uint16, high_frequency_rumble: Uint16, duration_ms: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Start a rumble effect in the game controller's triggers."] @@ -15338,7 +15351,7 @@ extern "C" { left_rumble: Uint16, right_rumble: Uint16, duration_ms: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Query whether a game controller has an LED."] @@ -15390,7 +15403,7 @@ extern "C" { red: Uint8, green: Uint8, blue: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Send a controller specific effect packet"] @@ -15404,9 +15417,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.16."] pub fn SDL_GameControllerSendEffect( gamecontroller: *mut SDL_GameController, - data: *const libc::c_void, - size: libc::c_int, - ) -> libc::c_int; + data: *const c_void, + size: c_int, + ) -> c_int; } extern "C" { #[doc = " Close a game controller previously opened with SDL_GameControllerOpen()."] @@ -15433,7 +15446,7 @@ extern "C" { pub fn SDL_GameControllerGetAppleSFSymbolsNameForButton( gamecontroller: *mut SDL_GameController, button: SDL_GameControllerButton, - ) -> *const libc::c_char; + ) -> *const c_char; } extern "C" { #[doc = " Return the sfSymbolsName for a given axis on a game controller on Apple"] @@ -15449,7 +15462,7 @@ extern "C" { pub fn SDL_GameControllerGetAppleSFSymbolsNameForAxis( gamecontroller: *mut SDL_GameController, axis: SDL_GameControllerAxis, - ) -> *const libc::c_char; + ) -> *const c_char; } pub type SDL_TouchID = Sint64; pub type SDL_FingerID = Sint64; @@ -15537,7 +15550,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetTouchDevice"] - pub fn SDL_GetNumTouchDevices() -> libc::c_int; + pub fn SDL_GetNumTouchDevices() -> c_int; } extern "C" { #[doc = " Get the touch ID with the given index."] @@ -15549,7 +15562,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetNumTouchDevices"] - pub fn SDL_GetTouchDevice(index: libc::c_int) -> SDL_TouchID; + pub fn SDL_GetTouchDevice(index: c_int) -> SDL_TouchID; } extern "C" { #[doc = " Get the type of the given touch device."] @@ -15567,7 +15580,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetTouchFinger"] - pub fn SDL_GetNumTouchFingers(touchID: SDL_TouchID) -> libc::c_int; + pub fn SDL_GetNumTouchFingers(touchID: SDL_TouchID) -> c_int; } extern "C" { #[doc = " Get the finger object for specified touch device ID and finger index."] @@ -15582,7 +15595,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_RecordGesture"] - pub fn SDL_GetTouchFinger(touchID: SDL_TouchID, index: libc::c_int) -> *mut SDL_Finger; + pub fn SDL_GetTouchFinger(touchID: SDL_TouchID, index: c_int) -> *mut SDL_Finger; } pub type SDL_GestureID = Sint64; extern "C" { @@ -15597,7 +15610,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetTouchDevice"] - pub fn SDL_RecordGesture(touchId: SDL_TouchID) -> libc::c_int; + pub fn SDL_RecordGesture(touchId: SDL_TouchID) -> c_int; } extern "C" { #[doc = " Save all currently loaded Dollar Gesture templates."] @@ -15610,7 +15623,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_LoadDollarTemplates"] #[doc = " \\sa SDL_SaveDollarTemplate"] - pub fn SDL_SaveAllDollarTemplates(dst: *mut SDL_RWops) -> libc::c_int; + pub fn SDL_SaveAllDollarTemplates(dst: *mut SDL_RWops) -> c_int; } extern "C" { #[doc = " Save a currently loaded Dollar Gesture template."] @@ -15624,7 +15637,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_LoadDollarTemplates"] #[doc = " \\sa SDL_SaveAllDollarTemplates"] - pub fn SDL_SaveDollarTemplate(gestureId: SDL_GestureID, dst: *mut SDL_RWops) -> libc::c_int; + pub fn SDL_SaveDollarTemplate(gestureId: SDL_GestureID, dst: *mut SDL_RWops) -> c_int; } extern "C" { #[doc = " Load Dollar Gesture templates from a file."] @@ -15638,7 +15651,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_SaveAllDollarTemplates"] #[doc = " \\sa SDL_SaveDollarTemplate"] - pub fn SDL_LoadDollarTemplates(touchId: SDL_TouchID, src: *mut SDL_RWops) -> libc::c_int; + pub fn SDL_LoadDollarTemplates(touchId: SDL_TouchID, src: *mut SDL_RWops) -> c_int; } #[repr(u32)] #[doc = " The types of events that can be delivered."] @@ -16165,7 +16178,7 @@ pub struct SDL_TextEditingEvent { #[doc = "< The window with keyboard focus, if any"] pub windowID: Uint32, #[doc = "< The editing text"] - pub text: [libc::c_char; 32usize], + pub text: [c_char; 32usize], #[doc = "< The start cursor of selected editing text"] pub start: Sint32, #[doc = "< The length of selected editing text"] @@ -16255,7 +16268,7 @@ pub struct SDL_TextInputEvent { #[doc = "< The window with keyboard focus, if any"] pub windowID: Uint32, #[doc = "< The input text"] - pub text: [libc::c_char; 32usize], + pub text: [c_char; 32usize], } #[test] fn bindgen_test_layout_SDL_TextInputEvent() { @@ -18209,7 +18222,7 @@ pub struct SDL_DropEvent { #[doc = "< In milliseconds, populated using SDL_GetTicks()"] pub timestamp: Uint32, #[doc = "< The file name, which should be freed with SDL_free(), is NULL on begin/complete"] - pub file: *mut libc::c_char, + pub file: *mut c_char, #[doc = "< The window that was dropped on, if any"] pub windowID: Uint32, } @@ -18429,9 +18442,9 @@ pub struct SDL_UserEvent { #[doc = "< User defined event code"] pub code: Sint32, #[doc = "< User defined data pointer"] - pub data1: *mut libc::c_void, + pub data1: *mut c_void, #[doc = "< User defined data pointer"] - pub data2: *mut libc::c_void, + pub data2: *mut c_void, } #[test] fn bindgen_test_layout_SDL_UserEvent() { @@ -18941,7 +18954,7 @@ fn bindgen_test_layout_SDL_Event() { ) ); } -pub type SDL_compile_time_assert_SDL_Event = [libc::c_int; 1usize]; +pub type SDL_compile_time_assert_SDL_Event = [c_int; 1usize]; extern "C" { #[doc = " Pump the event loop, gathering events from the input devices."] #[doc = ""] @@ -19011,11 +19024,11 @@ extern "C" { #[doc = " \\sa SDL_PushEvent"] pub fn SDL_PeepEvents( events: *mut SDL_Event, - numevents: libc::c_int, + numevents: c_int, action: SDL_eventaction, minType: Uint32, maxType: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Check for the existence of a certain event type in the event queue."] @@ -19138,7 +19151,7 @@ extern "C" { #[doc = " \\sa SDL_SetEventFilter"] #[doc = " \\sa SDL_WaitEvent"] #[doc = " \\sa SDL_WaitEventTimeout"] - pub fn SDL_PollEvent(event: *mut SDL_Event) -> libc::c_int; + pub fn SDL_PollEvent(event: *mut SDL_Event) -> c_int; } extern "C" { #[doc = " Wait indefinitely for the next available event."] @@ -19159,7 +19172,7 @@ extern "C" { #[doc = " \\sa SDL_PollEvent"] #[doc = " \\sa SDL_PumpEvents"] #[doc = " \\sa SDL_WaitEventTimeout"] - pub fn SDL_WaitEvent(event: *mut SDL_Event) -> libc::c_int; + pub fn SDL_WaitEvent(event: *mut SDL_Event) -> c_int; } extern "C" { #[doc = " Wait until the specified timeout (in milliseconds) for the next available"] @@ -19184,7 +19197,7 @@ extern "C" { #[doc = " \\sa SDL_PollEvent"] #[doc = " \\sa SDL_PumpEvents"] #[doc = " \\sa SDL_WaitEvent"] - pub fn SDL_WaitEventTimeout(event: *mut SDL_Event, timeout: libc::c_int) -> libc::c_int; + pub fn SDL_WaitEventTimeout(event: *mut SDL_Event, timeout: c_int) -> c_int; } extern "C" { #[doc = " Add an event to the event queue."] @@ -19217,7 +19230,7 @@ extern "C" { #[doc = " \\sa SDL_PeepEvents"] #[doc = " \\sa SDL_PollEvent"] #[doc = " \\sa SDL_RegisterEvents"] - pub fn SDL_PushEvent(event: *mut SDL_Event) -> libc::c_int; + pub fn SDL_PushEvent(event: *mut SDL_Event) -> c_int; } #[doc = " A function pointer used for callbacks that watch the event queue."] #[doc = ""] @@ -19230,7 +19243,7 @@ extern "C" { #[doc = " \\sa SDL_SetEventFilter"] #[doc = " \\sa SDL_AddEventWatch"] pub type SDL_EventFilter = ::core::option::Option< - unsafe extern "C" fn(userdata: *mut libc::c_void, event: *mut SDL_Event) -> libc::c_int, + unsafe extern "C" fn(userdata: *mut c_void, event: *mut SDL_Event) -> c_int, >; extern "C" { #[doc = " Set up a filter to process all events before they change internal state and"] @@ -19273,7 +19286,7 @@ extern "C" { #[doc = " \\sa SDL_GetEventFilter"] #[doc = " \\sa SDL_PeepEvents"] #[doc = " \\sa SDL_PushEvent"] - pub fn SDL_SetEventFilter(filter: SDL_EventFilter, userdata: *mut libc::c_void); + pub fn SDL_SetEventFilter(filter: SDL_EventFilter, userdata: *mut c_void); } extern "C" { #[doc = " Query the current event filter."] @@ -19291,7 +19304,7 @@ extern "C" { #[doc = " \\sa SDL_SetEventFilter"] pub fn SDL_GetEventFilter( filter: *mut SDL_EventFilter, - userdata: *mut *mut libc::c_void, + userdata: *mut *mut c_void, ) -> SDL_bool; } extern "C" { @@ -19319,7 +19332,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_DelEventWatch"] #[doc = " \\sa SDL_SetEventFilter"] - pub fn SDL_AddEventWatch(filter: SDL_EventFilter, userdata: *mut libc::c_void); + pub fn SDL_AddEventWatch(filter: SDL_EventFilter, userdata: *mut c_void); } extern "C" { #[doc = " Remove an event watch callback added with SDL_AddEventWatch()."] @@ -19333,7 +19346,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_AddEventWatch"] - pub fn SDL_DelEventWatch(filter: SDL_EventFilter, userdata: *mut libc::c_void); + pub fn SDL_DelEventWatch(filter: SDL_EventFilter, userdata: *mut c_void); } extern "C" { #[doc = " Run a specific filter function on the current event queue, removing any"] @@ -19350,7 +19363,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetEventFilter"] #[doc = " \\sa SDL_SetEventFilter"] - pub fn SDL_FilterEvents(filter: SDL_EventFilter, userdata: *mut libc::c_void); + pub fn SDL_FilterEvents(filter: SDL_EventFilter, userdata: *mut c_void); } extern "C" { #[doc = " Set the state of processing events by type."] @@ -19370,7 +19383,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetEventState"] - pub fn SDL_EventState(type_: Uint32, state: libc::c_int) -> Uint8; + pub fn SDL_EventState(type_: Uint32, state: c_int) -> Uint8; } extern "C" { #[doc = " Allocate a set of user-defined events, and return the beginning event"] @@ -19389,7 +19402,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_PushEvent"] - pub fn SDL_RegisterEvents(numevents: libc::c_int) -> Uint32; + pub fn SDL_RegisterEvents(numevents: c_int) -> Uint32; } extern "C" { #[doc = " Get the directory where the application was run from."] @@ -19428,7 +19441,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.1."] #[doc = ""] #[doc = " \\sa SDL_GetPrefPath"] - pub fn SDL_GetBasePath() -> *mut libc::c_char; + pub fn SDL_GetBasePath() -> *mut c_char; } extern "C" { #[doc = " Get the user-and-app-specific path where files can be written."] @@ -19484,8 +19497,8 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.1."] #[doc = ""] #[doc = " \\sa SDL_GetBasePath"] - pub fn SDL_GetPrefPath(org: *const libc::c_char, app: *const libc::c_char) - -> *mut libc::c_char; + pub fn SDL_GetPrefPath(org: *const c_char, app: *const c_char) + -> *mut c_char; } #[doc = " \\typedef SDL_Haptic"] #[doc = ""] @@ -20848,7 +20861,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticName"] - pub fn SDL_NumHaptics() -> libc::c_int; + pub fn SDL_NumHaptics() -> c_int; } extern "C" { #[doc = " Get the implementation dependent name of a haptic device."] @@ -20863,7 +20876,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_NumHaptics"] - pub fn SDL_HapticName(device_index: libc::c_int) -> *const libc::c_char; + pub fn SDL_HapticName(device_index: c_int) -> *const c_char; } extern "C" { #[doc = " Open a haptic device for use."] @@ -20889,7 +20902,7 @@ extern "C" { #[doc = " \\sa SDL_HapticSetAutocenter"] #[doc = " \\sa SDL_HapticSetGain"] #[doc = " \\sa SDL_HapticStopAll"] - pub fn SDL_HapticOpen(device_index: libc::c_int) -> *mut SDL_Haptic; + pub fn SDL_HapticOpen(device_index: c_int) -> *mut SDL_Haptic; } extern "C" { #[doc = " Check if the haptic device at the designated index has been opened."] @@ -20902,7 +20915,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticIndex"] #[doc = " \\sa SDL_HapticOpen"] - pub fn SDL_HapticOpened(device_index: libc::c_int) -> libc::c_int; + pub fn SDL_HapticOpened(device_index: c_int) -> c_int; } extern "C" { #[doc = " Get the index of a haptic device."] @@ -20915,7 +20928,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticOpen"] #[doc = " \\sa SDL_HapticOpened"] - pub fn SDL_HapticIndex(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticIndex(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Query whether or not the current mouse has haptic capabilities."] @@ -20925,7 +20938,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticOpenFromMouse"] - pub fn SDL_MouseIsHaptic() -> libc::c_int; + pub fn SDL_MouseIsHaptic() -> c_int; } extern "C" { #[doc = " Try to open a haptic device from the current mouse."] @@ -20950,7 +20963,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticOpenFromJoystick"] - pub fn SDL_JoystickIsHaptic(joystick: *mut SDL_Joystick) -> libc::c_int; + pub fn SDL_JoystickIsHaptic(joystick: *mut SDL_Joystick) -> c_int; } extern "C" { #[doc = " Open a haptic device for use from a joystick device."] @@ -20999,7 +21012,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticNumEffectsPlaying"] #[doc = " \\sa SDL_HapticQuery"] - pub fn SDL_HapticNumEffects(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticNumEffects(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Get the number of effects a haptic device can play at the same time."] @@ -21015,7 +21028,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticNumEffects"] #[doc = " \\sa SDL_HapticQuery"] - pub fn SDL_HapticNumEffectsPlaying(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticNumEffectsPlaying(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Get the haptic device's supported features in bitwise manner."] @@ -21028,7 +21041,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticEffectSupported"] #[doc = " \\sa SDL_HapticNumEffects"] - pub fn SDL_HapticQuery(haptic: *mut SDL_Haptic) -> libc::c_uint; + pub fn SDL_HapticQuery(haptic: *mut SDL_Haptic) -> c_uint; } extern "C" { #[doc = " Get the number of haptic axes the device has."] @@ -21041,7 +21054,7 @@ extern "C" { #[doc = " call SDL_GetError() for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_HapticNumAxes(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticNumAxes(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Check to see if an effect is supported by a haptic device."] @@ -21059,7 +21072,7 @@ extern "C" { pub fn SDL_HapticEffectSupported( haptic: *mut SDL_Haptic, effect: *mut SDL_HapticEffect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Create a new haptic effect on a specified device."] @@ -21078,7 +21091,7 @@ extern "C" { pub fn SDL_HapticNewEffect( haptic: *mut SDL_Haptic, effect: *mut SDL_HapticEffect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Update the properties of an effect."] @@ -21102,9 +21115,9 @@ extern "C" { #[doc = " \\sa SDL_HapticRunEffect"] pub fn SDL_HapticUpdateEffect( haptic: *mut SDL_Haptic, - effect: libc::c_int, + effect: c_int, data: *mut SDL_HapticEffect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Run the haptic effect on its associated haptic device."] @@ -21129,9 +21142,9 @@ extern "C" { #[doc = " \\sa SDL_HapticStopEffect"] pub fn SDL_HapticRunEffect( haptic: *mut SDL_Haptic, - effect: libc::c_int, + effect: c_int, iterations: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Stop the haptic effect on its associated haptic device."] @@ -21147,7 +21160,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticDestroyEffect"] #[doc = " \\sa SDL_HapticRunEffect"] - pub fn SDL_HapticStopEffect(haptic: *mut SDL_Haptic, effect: libc::c_int) -> libc::c_int; + pub fn SDL_HapticStopEffect(haptic: *mut SDL_Haptic, effect: c_int) -> c_int; } extern "C" { #[doc = " Destroy a haptic effect on the device."] @@ -21161,7 +21174,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticNewEffect"] - pub fn SDL_HapticDestroyEffect(haptic: *mut SDL_Haptic, effect: libc::c_int); + pub fn SDL_HapticDestroyEffect(haptic: *mut SDL_Haptic, effect: c_int); } extern "C" { #[doc = " Get the status of the current effect on the specified haptic device."] @@ -21177,7 +21190,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_HapticRunEffect"] #[doc = " \\sa SDL_HapticStopEffect"] - pub fn SDL_HapticGetEffectStatus(haptic: *mut SDL_Haptic, effect: libc::c_int) -> libc::c_int; + pub fn SDL_HapticGetEffectStatus(haptic: *mut SDL_Haptic, effect: c_int) -> c_int; } extern "C" { #[doc = " Set the global gain of the specified haptic device."] @@ -21197,7 +21210,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticQuery"] - pub fn SDL_HapticSetGain(haptic: *mut SDL_Haptic, gain: libc::c_int) -> libc::c_int; + pub fn SDL_HapticSetGain(haptic: *mut SDL_Haptic, gain: c_int) -> c_int; } extern "C" { #[doc = " Set the global autocenter of the device."] @@ -21215,8 +21228,8 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticQuery"] - pub fn SDL_HapticSetAutocenter(haptic: *mut SDL_Haptic, autocenter: libc::c_int) - -> libc::c_int; + pub fn SDL_HapticSetAutocenter(haptic: *mut SDL_Haptic, autocenter: c_int) + -> c_int; } extern "C" { #[doc = " Pause a haptic device."] @@ -21234,7 +21247,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticUnpause"] - pub fn SDL_HapticPause(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticPause(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Unpause a haptic device."] @@ -21248,7 +21261,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_HapticPause"] - pub fn SDL_HapticUnpause(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticUnpause(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Stop all the currently playing effects on a haptic device."] @@ -21258,7 +21271,7 @@ extern "C" { #[doc = " SDL_GetError() for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_HapticStopAll(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticStopAll(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Check whether rumble is supported on a haptic device."] @@ -21273,7 +21286,7 @@ extern "C" { #[doc = " \\sa SDL_HapticRumbleInit"] #[doc = " \\sa SDL_HapticRumblePlay"] #[doc = " \\sa SDL_HapticRumbleStop"] - pub fn SDL_HapticRumbleSupported(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticRumbleSupported(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Initialize a haptic device for simple rumble playback."] @@ -21288,7 +21301,7 @@ extern "C" { #[doc = " \\sa SDL_HapticRumblePlay"] #[doc = " \\sa SDL_HapticRumbleStop"] #[doc = " \\sa SDL_HapticRumbleSupported"] - pub fn SDL_HapticRumbleInit(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticRumbleInit(haptic: *mut SDL_Haptic) -> c_int; } extern "C" { #[doc = " Run a simple rumble effect on a haptic device."] @@ -21308,7 +21321,7 @@ extern "C" { haptic: *mut SDL_Haptic, strength: f32, length: Uint32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Stop the simple rumble on a haptic device."] @@ -21322,7 +21335,7 @@ extern "C" { #[doc = " \\sa SDL_HapticRumbleInit"] #[doc = " \\sa SDL_HapticRumblePlay"] #[doc = " \\sa SDL_HapticRumbleSupported"] - pub fn SDL_HapticRumbleStop(haptic: *mut SDL_Haptic) -> libc::c_int; + pub fn SDL_HapticRumbleStop(haptic: *mut SDL_Haptic) -> c_int; } #[doc = " \\brief A handle representing an open HID device"] #[repr(C)] @@ -21337,38 +21350,38 @@ pub type SDL_hid_device = SDL_hid_device_; #[derive(Copy, Clone)] pub struct SDL_hid_device_info { #[doc = " Platform-specific device path"] - pub path: *mut libc::c_char, + pub path: *mut c_char, #[doc = " Device Vendor ID"] - pub vendor_id: libc::c_ushort, + pub vendor_id: c_ushort, #[doc = " Device Product ID"] - pub product_id: libc::c_ushort, + pub product_id: c_ushort, #[doc = " Serial Number"] pub serial_number: *mut wchar_t, #[doc = " Device Release Number in binary-coded decimal,"] #[doc = "also known as Device Version Number"] - pub release_number: libc::c_ushort, + pub release_number: c_ushort, #[doc = " Manufacturer String"] pub manufacturer_string: *mut wchar_t, #[doc = " Product string"] pub product_string: *mut wchar_t, #[doc = " Usage Page for this Device/Interface"] #[doc = "(Windows/Mac only)."] - pub usage_page: libc::c_ushort, + pub usage_page: c_ushort, #[doc = " Usage for this Device/Interface"] #[doc = "(Windows/Mac only)."] - pub usage: libc::c_ushort, + pub usage: c_ushort, #[doc = " The USB interface which this logical device"] #[doc = "represents."] #[doc = ""] #[doc = " Valid on both Linux implementations in all cases."] #[doc = " Valid on the Windows implementation only if the device"] #[doc = "contains more than one interface."] - pub interface_number: libc::c_int, + pub interface_number: c_int, #[doc = " Additional information about the USB interface."] #[doc = "Valid on libusb and Android implementations."] - pub interface_class: libc::c_int, - pub interface_subclass: libc::c_int, - pub interface_protocol: libc::c_int, + pub interface_class: c_int, + pub interface_subclass: c_int, + pub interface_protocol: c_int, #[doc = " Pointer to the next device"] pub next: *mut SDL_hid_device_info, } @@ -21558,7 +21571,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] #[doc = ""] #[doc = " \\sa SDL_hid_exit"] - pub fn SDL_hid_init() -> libc::c_int; + pub fn SDL_hid_init() -> c_int; } extern "C" { #[doc = " Finalize the HIDAPI library."] @@ -21571,7 +21584,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] #[doc = ""] #[doc = " \\sa SDL_hid_init"] - pub fn SDL_hid_exit() -> libc::c_int; + pub fn SDL_hid_exit() -> c_int; } extern "C" { #[doc = " Check to see if devices may have been added or removed."] @@ -21613,8 +21626,8 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_hid_device_change_count"] pub fn SDL_hid_enumerate( - vendor_id: libc::c_ushort, - product_id: libc::c_ushort, + vendor_id: c_ushort, + product_id: c_ushort, ) -> *mut SDL_hid_device_info; } extern "C" { @@ -21644,8 +21657,8 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_open( - vendor_id: libc::c_ushort, - product_id: libc::c_ushort, + vendor_id: c_ushort, + product_id: c_ushort, serial_number: *const wchar_t, ) -> *mut SDL_hid_device; } @@ -21661,8 +21674,8 @@ extern "C" { #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_open_path( - path: *const libc::c_char, - bExclusive: libc::c_int, + path: *const c_char, + bExclusive: c_int, ) -> *mut SDL_hid_device; } extern "C" { @@ -21690,9 +21703,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_write( dev: *mut SDL_hid_device, - data: *const libc::c_uchar, + data: *const c_uchar, length: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Read an Input report from a HID device with timeout."] @@ -21714,10 +21727,10 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_read_timeout( dev: *mut SDL_hid_device, - data: *mut libc::c_uchar, + data: *mut c_uchar, length: size_t, - milliseconds: libc::c_int, - ) -> libc::c_int; + milliseconds: c_int, + ) -> c_int; } extern "C" { #[doc = " Read an Input report from a HID device."] @@ -21738,9 +21751,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_read( dev: *mut SDL_hid_device, - data: *mut libc::c_uchar, + data: *mut c_uchar, length: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set the device handle to be non-blocking."] @@ -21757,7 +21770,7 @@ extern "C" { #[doc = " \\returns 0 on success and -1 on error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] - pub fn SDL_hid_set_nonblocking(dev: *mut SDL_hid_device, nonblock: libc::c_int) -> libc::c_int; + pub fn SDL_hid_set_nonblocking(dev: *mut SDL_hid_device, nonblock: c_int) -> c_int; } extern "C" { #[doc = " Send a Feature report to the device."] @@ -21782,9 +21795,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_send_feature_report( dev: *mut SDL_hid_device, - data: *const libc::c_uchar, + data: *const c_uchar, length: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get a feature report from a HID device."] @@ -21807,9 +21820,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_get_feature_report( dev: *mut SDL_hid_device, - data: *mut libc::c_uchar, + data: *mut c_uchar, length: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Close a HID device."] @@ -21832,7 +21845,7 @@ extern "C" { dev: *mut SDL_hid_device, string: *mut wchar_t, maxlen: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get The Product String from a HID device."] @@ -21847,7 +21860,7 @@ extern "C" { dev: *mut SDL_hid_device, string: *mut wchar_t, maxlen: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get The Serial Number String from a HID device."] @@ -21862,7 +21875,7 @@ extern "C" { dev: *mut SDL_hid_device, string: *mut wchar_t, maxlen: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get a string from a HID device, based on its string index."] @@ -21876,10 +21889,10 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_hid_get_indexed_string( dev: *mut SDL_hid_device, - string_index: libc::c_int, + string_index: c_int, string: *mut wchar_t, maxlen: size_t, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers"] @@ -21914,8 +21927,8 @@ extern "C" { #[doc = " \\sa SDL_GetHint"] #[doc = " \\sa SDL_SetHint"] pub fn SDL_SetHintWithPriority( - name: *const libc::c_char, - value: *const libc::c_char, + name: *const c_char, + value: *const c_char, priority: SDL_HintPriority, ) -> SDL_bool; } @@ -21934,7 +21947,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetHint"] #[doc = " \\sa SDL_SetHintWithPriority"] - pub fn SDL_SetHint(name: *const libc::c_char, value: *const libc::c_char) -> SDL_bool; + pub fn SDL_SetHint(name: *const c_char, value: *const c_char) -> SDL_bool; } extern "C" { #[doc = " Get the value of a hint."] @@ -21946,7 +21959,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_SetHint"] #[doc = " \\sa SDL_SetHintWithPriority"] - pub fn SDL_GetHint(name: *const libc::c_char) -> *const libc::c_char; + pub fn SDL_GetHint(name: *const c_char) -> *const c_char; } extern "C" { #[doc = " Get the boolean value of a hint variable."] @@ -21960,7 +21973,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetHint"] #[doc = " \\sa SDL_SetHint"] - pub fn SDL_GetHintBoolean(name: *const libc::c_char, default_value: SDL_bool) -> SDL_bool; + pub fn SDL_GetHintBoolean(name: *const c_char, default_value: SDL_bool) -> SDL_bool; } #[doc = " Type definition of the hint callback function."] #[doc = ""] @@ -21970,10 +21983,10 @@ extern "C" { #[doc = " \\param newValue the new value hint is to be set to"] pub type SDL_HintCallback = ::core::option::Option< unsafe extern "C" fn( - userdata: *mut libc::c_void, - name: *const libc::c_char, - oldValue: *const libc::c_char, - newValue: *const libc::c_char, + userdata: *mut c_void, + name: *const c_char, + oldValue: *const c_char, + newValue: *const c_char, ), >; extern "C" { @@ -21988,9 +22001,9 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_DelHintCallback"] pub fn SDL_AddHintCallback( - name: *const libc::c_char, + name: *const c_char, callback: SDL_HintCallback, - userdata: *mut libc::c_void, + userdata: *mut c_void, ); } extern "C" { @@ -22005,9 +22018,9 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_AddHintCallback"] pub fn SDL_DelHintCallback( - name: *const libc::c_char, + name: *const c_char, callback: SDL_HintCallback, - userdata: *mut libc::c_void, + userdata: *mut c_void, ); } extern "C" { @@ -22029,7 +22042,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_LoadFunction"] #[doc = " \\sa SDL_UnloadObject"] - pub fn SDL_LoadObject(sofile: *const libc::c_char) -> *mut libc::c_void; + pub fn SDL_LoadObject(sofile: *const c_char) -> *mut c_void; } extern "C" { #[doc = " Look up the address of the named function in a shared object."] @@ -22056,9 +22069,9 @@ extern "C" { #[doc = " \\sa SDL_LoadObject"] #[doc = " \\sa SDL_UnloadObject"] pub fn SDL_LoadFunction( - handle: *mut libc::c_void, - name: *const libc::c_char, - ) -> *mut libc::c_void; + handle: *mut c_void, + name: *const c_char, + ) -> *mut c_void; } extern "C" { #[doc = " Unload a shared object from memory."] @@ -22069,7 +22082,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_LoadFunction"] #[doc = " \\sa SDL_LoadObject"] - pub fn SDL_UnloadObject(handle: *mut libc::c_void); + pub fn SDL_UnloadObject(handle: *mut c_void); } #[repr(u32)] #[doc = " \\brief The predefined log categories"] @@ -22133,7 +22146,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_LogGetPriority"] #[doc = " \\sa SDL_LogSetAllPriority"] - pub fn SDL_LogSetPriority(category: libc::c_int, priority: SDL_LogPriority); + pub fn SDL_LogSetPriority(category: c_int, priority: SDL_LogPriority); } extern "C" { #[doc = " Get the priority of a particular log category."] @@ -22144,7 +22157,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_LogSetPriority"] - pub fn SDL_LogGetPriority(category: libc::c_int) -> SDL_LogPriority; + pub fn SDL_LogGetPriority(category: c_int) -> SDL_LogPriority; } extern "C" { #[doc = " Reset all priorities to default."] @@ -22175,7 +22188,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_Log(fmt: *const libc::c_char, ...); + pub fn SDL_Log(fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_VERBOSE."] @@ -22195,7 +22208,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessage"] #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_LogVerbose(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogVerbose(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_DEBUG."] @@ -22215,7 +22228,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_LogDebug(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogDebug(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_INFO."] @@ -22235,7 +22248,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_LogInfo(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogInfo(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_WARN."] @@ -22255,7 +22268,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessage"] #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] - pub fn SDL_LogWarn(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogWarn(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_ERROR."] @@ -22275,7 +22288,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_LogError(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogError(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with SDL_LOG_PRIORITY_CRITICAL."] @@ -22295,7 +22308,7 @@ extern "C" { #[doc = " \\sa SDL_LogMessageV"] #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] - pub fn SDL_LogCritical(category: libc::c_int, fmt: *const libc::c_char, ...); + pub fn SDL_LogCritical(category: c_int, fmt: *const c_char, ...); } extern "C" { #[doc = " Log a message with the specified category and priority."] @@ -22317,9 +22330,9 @@ extern "C" { #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] pub fn SDL_LogMessage( - category: libc::c_int, + category: c_int, priority: SDL_LogPriority, - fmt: *const libc::c_char, + fmt: *const c_char, ... ); } @@ -22342,9 +22355,9 @@ extern "C" { #[doc = " \\sa SDL_LogVerbose"] #[doc = " \\sa SDL_LogWarn"] pub fn SDL_LogMessageV( - category: libc::c_int, + category: c_int, priority: SDL_LogPriority, - fmt: *const libc::c_char, + fmt: *const c_char, ap: *mut __va_list_tag, ); } @@ -22358,10 +22371,10 @@ extern "C" { #[doc = " \\param message the message being output"] pub type SDL_LogOutputFunction = ::core::option::Option< unsafe extern "C" fn( - userdata: *mut libc::c_void, - category: libc::c_int, + userdata: *mut c_void, + category: c_int, priority: SDL_LogPriority, - message: *const libc::c_char, + message: *const c_char, ), >; extern "C" { @@ -22377,7 +22390,7 @@ extern "C" { #[doc = " \\sa SDL_LogSetOutputFunction"] pub fn SDL_LogGetOutputFunction( callback: *mut SDL_LogOutputFunction, - userdata: *mut *mut libc::c_void, + userdata: *mut *mut c_void, ); } extern "C" { @@ -22389,7 +22402,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_LogGetOutputFunction"] - pub fn SDL_LogSetOutputFunction(callback: SDL_LogOutputFunction, userdata: *mut libc::c_void); + pub fn SDL_LogSetOutputFunction(callback: SDL_LogOutputFunction, userdata: *mut c_void); } #[repr(u32)] #[doc = " SDL_MessageBox flags. If supported will display warning icon, etc."] @@ -22422,9 +22435,9 @@ pub struct SDL_MessageBoxButtonData { #[doc = "< ::SDL_MessageBoxButtonFlags"] pub flags: Uint32, #[doc = "< User defined button id (value returned via SDL_ShowMessageBox)"] - pub buttonid: libc::c_int, + pub buttonid: c_int, #[doc = "< The UTF-8 button text"] - pub text: *const libc::c_char, + pub text: *const c_char, } #[test] fn bindgen_test_layout_SDL_MessageBoxButtonData() { @@ -22572,10 +22585,10 @@ pub struct SDL_MessageBoxData { #[doc = "< Parent window, can be NULL"] pub window: *mut SDL_Window, #[doc = "< UTF-8 title"] - pub title: *const libc::c_char, + pub title: *const c_char, #[doc = "< UTF-8 message text"] - pub message: *const libc::c_char, - pub numbuttons: libc::c_int, + pub message: *const c_char, + pub numbuttons: c_int, pub buttons: *const SDL_MessageBoxButtonData, #[doc = "< ::SDL_MessageBoxColorScheme, can be NULL to use system settings"] pub colorScheme: *const SDL_MessageBoxColorScheme, @@ -22697,8 +22710,8 @@ extern "C" { #[doc = " \\sa SDL_ShowSimpleMessageBox"] pub fn SDL_ShowMessageBox( messageboxdata: *const SDL_MessageBoxData, - buttonid: *mut libc::c_int, - ) -> libc::c_int; + buttonid: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Display a simple modal message box."] @@ -22741,15 +22754,15 @@ extern "C" { #[doc = " \\sa SDL_ShowMessageBox"] pub fn SDL_ShowSimpleMessageBox( flags: Uint32, - title: *const libc::c_char, - message: *const libc::c_char, + title: *const c_char, + message: *const c_char, window: *mut SDL_Window, - ) -> libc::c_int; + ) -> c_int; } #[doc = " \\brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS)."] #[doc = ""] #[doc = " \\note This can be cast directly to an NSView or UIView."] -pub type SDL_MetalView = *mut libc::c_void; +pub type SDL_MetalView = *mut c_void; extern "C" { #[doc = " Create a CAMetalLayer-backed NSView/UIView and attach it to the specified"] #[doc = " window."] @@ -22783,7 +22796,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.14."] #[doc = ""] #[doc = " \\sa SDL_MetalCreateView"] - pub fn SDL_Metal_GetLayer(view: SDL_MetalView) -> *mut libc::c_void; + pub fn SDL_Metal_GetLayer(view: SDL_MetalView) -> *mut c_void; } extern "C" { #[doc = " Get the size of a window's underlying drawable in pixels (for use with"] @@ -22798,8 +22811,8 @@ extern "C" { #[doc = " \\sa SDL_CreateWindow"] pub fn SDL_Metal_GetDrawableSize( window: *mut SDL_Window, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } #[repr(u32)] @@ -22842,7 +22855,7 @@ extern "C" { #[doc = " \\returns an SDL_PowerState enum representing the current battery state."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.0."] - pub fn SDL_GetPowerInfo(secs: *mut libc::c_int, pct: *mut libc::c_int) -> SDL_PowerState; + pub fn SDL_GetPowerInfo(secs: *mut c_int, pct: *mut c_int) -> SDL_PowerState; } #[repr(u32)] #[doc = " Flags used when creating a rendering context"] @@ -22865,7 +22878,7 @@ pub enum SDL_RendererFlags { #[derive(Copy, Clone)] pub struct SDL_RendererInfo { #[doc = "< The name of the renderer"] - pub name: *const libc::c_char, + pub name: *const c_char, #[doc = "< Supported ::SDL_RendererFlags"] pub flags: Uint32, #[doc = "< The number of available texture formats"] @@ -22873,9 +22886,9 @@ pub struct SDL_RendererInfo { #[doc = "< The available texture formats"] pub texture_formats: [Uint32; 16usize], #[doc = "< The maximum texture width"] - pub max_texture_width: libc::c_int, + pub max_texture_width: c_int, #[doc = "< The maximum texture height"] - pub max_texture_height: libc::c_int, + pub max_texture_height: c_int, } #[test] fn bindgen_test_layout_SDL_RendererInfo() { @@ -23084,7 +23097,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_CreateRenderer"] #[doc = " \\sa SDL_GetRenderDriverInfo"] - pub fn SDL_GetNumRenderDrivers() -> libc::c_int; + pub fn SDL_GetNumRenderDrivers() -> c_int; } extern "C" { #[doc = " Get info about a specific 2D rendering driver for the current display."] @@ -23099,7 +23112,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_CreateRenderer"] #[doc = " \\sa SDL_GetNumRenderDrivers"] - pub fn SDL_GetRenderDriverInfo(index: libc::c_int, info: *mut SDL_RendererInfo) -> libc::c_int; + pub fn SDL_GetRenderDriverInfo(index: c_int, info: *mut SDL_RendererInfo) -> c_int; } extern "C" { #[doc = " Create a window and default renderer."] @@ -23118,12 +23131,12 @@ extern "C" { #[doc = " \\sa SDL_CreateRenderer"] #[doc = " \\sa SDL_CreateWindow"] pub fn SDL_CreateWindowAndRenderer( - width: libc::c_int, - height: libc::c_int, + width: c_int, + height: c_int, window_flags: Uint32, window: *mut *mut SDL_Window, renderer: *mut *mut SDL_Renderer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Create a 2D rendering context for a window."] @@ -23143,7 +23156,7 @@ extern "C" { #[doc = " \\sa SDL_GetRendererInfo"] pub fn SDL_CreateRenderer( window: *mut SDL_Window, - index: libc::c_int, + index: c_int, flags: Uint32, ) -> *mut SDL_Renderer; } @@ -23194,7 +23207,7 @@ extern "C" { pub fn SDL_GetRendererInfo( renderer: *mut SDL_Renderer, info: *mut SDL_RendererInfo, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the output size in pixels of a rendering context."] @@ -23214,9 +23227,9 @@ extern "C" { #[doc = " \\sa SDL_GetRenderer"] pub fn SDL_GetRendererOutputSize( renderer: *mut SDL_Renderer, - w: *mut libc::c_int, - h: *mut libc::c_int, - ) -> libc::c_int; + w: *mut c_int, + h: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Create a texture for a rendering context."] @@ -23242,9 +23255,9 @@ extern "C" { pub fn SDL_CreateTexture( renderer: *mut SDL_Renderer, format: Uint32, - access: libc::c_int, - w: libc::c_int, - h: libc::c_int, + access: c_int, + w: c_int, + h: c_int, ) -> *mut SDL_Texture; } extern "C" { @@ -23295,10 +23308,10 @@ extern "C" { pub fn SDL_QueryTexture( texture: *mut SDL_Texture, format: *mut Uint32, - access: *mut libc::c_int, - w: *mut libc::c_int, - h: *mut libc::c_int, - ) -> libc::c_int; + access: *mut c_int, + w: *mut c_int, + h: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Set an additional color value multiplied into render copy operations."] @@ -23328,7 +23341,7 @@ extern "C" { r: Uint8, g: Uint8, b: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the additional color value multiplied into render copy operations."] @@ -23349,7 +23362,7 @@ extern "C" { r: *mut Uint8, g: *mut Uint8, b: *mut Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set an additional alpha value multiplied into render copy operations."] @@ -23371,7 +23384,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetTextureAlphaMod"] #[doc = " \\sa SDL_SetTextureColorMod"] - pub fn SDL_SetTextureAlphaMod(texture: *mut SDL_Texture, alpha: Uint8) -> libc::c_int; + pub fn SDL_SetTextureAlphaMod(texture: *mut SDL_Texture, alpha: Uint8) -> c_int; } extern "C" { #[doc = " Get the additional alpha value multiplied into render copy operations."] @@ -23385,7 +23398,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GetTextureColorMod"] #[doc = " \\sa SDL_SetTextureAlphaMod"] - pub fn SDL_GetTextureAlphaMod(texture: *mut SDL_Texture, alpha: *mut Uint8) -> libc::c_int; + pub fn SDL_GetTextureAlphaMod(texture: *mut SDL_Texture, alpha: *mut Uint8) -> c_int; } extern "C" { #[doc = " Set the blend mode for a texture, used by SDL_RenderCopy()."] @@ -23405,7 +23418,7 @@ extern "C" { pub fn SDL_SetTextureBlendMode( texture: *mut SDL_Texture, blendMode: SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the blend mode used for texture copy operations."] @@ -23421,7 +23434,7 @@ extern "C" { pub fn SDL_GetTextureBlendMode( texture: *mut SDL_Texture, blendMode: *mut SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set the scale mode used for texture scale operations."] @@ -23438,7 +23451,7 @@ extern "C" { pub fn SDL_SetTextureScaleMode( texture: *mut SDL_Texture, scaleMode: SDL_ScaleMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the scale mode used for texture scale operations."] @@ -23453,7 +23466,7 @@ extern "C" { pub fn SDL_GetTextureScaleMode( texture: *mut SDL_Texture, scaleMode: *mut SDL_ScaleMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Associate a user-specified pointer with a texture."] @@ -23467,8 +23480,8 @@ extern "C" { #[doc = " \\sa SDL_GetTextureUserData"] pub fn SDL_SetTextureUserData( texture: *mut SDL_Texture, - userdata: *mut libc::c_void, - ) -> libc::c_int; + userdata: *mut c_void, + ) -> c_int; } extern "C" { #[doc = " Get the user-specified pointer associated with a texture"] @@ -23480,7 +23493,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] #[doc = ""] #[doc = " \\sa SDL_SetTextureUserData"] - pub fn SDL_GetTextureUserData(texture: *mut SDL_Texture) -> *mut libc::c_void; + pub fn SDL_GetTextureUserData(texture: *mut SDL_Texture) -> *mut c_void; } extern "C" { #[doc = " Update the given texture rectangle with new pixel data."] @@ -23513,9 +23526,9 @@ extern "C" { pub fn SDL_UpdateTexture( texture: *mut SDL_Texture, rect: *const SDL_Rect, - pixels: *const libc::c_void, - pitch: libc::c_int, - ) -> libc::c_int; + pixels: *const c_void, + pitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Update a rectangle within a planar YV12 or IYUV texture with new pixel"] @@ -23547,12 +23560,12 @@ extern "C" { texture: *mut SDL_Texture, rect: *const SDL_Rect, Yplane: *const Uint8, - Ypitch: libc::c_int, + Ypitch: c_int, Uplane: *const Uint8, - Upitch: libc::c_int, + Upitch: c_int, Vplane: *const Uint8, - Vpitch: libc::c_int, - ) -> libc::c_int; + Vpitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Update a rectangle within a planar NV12 or NV21 texture with new pixels."] @@ -23577,10 +23590,10 @@ extern "C" { texture: *mut SDL_Texture, rect: *const SDL_Rect, Yplane: *const Uint8, - Ypitch: libc::c_int, + Ypitch: c_int, UVplane: *const Uint8, - UVpitch: libc::c_int, - ) -> libc::c_int; + UVpitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Lock a portion of the texture for **write-only** pixel access."] @@ -23611,9 +23624,9 @@ extern "C" { pub fn SDL_LockTexture( texture: *mut SDL_Texture, rect: *const SDL_Rect, - pixels: *mut *mut libc::c_void, - pitch: *mut libc::c_int, - ) -> libc::c_int; + pixels: *mut *mut c_void, + pitch: *mut c_int, + ) -> c_int; } extern "C" { #[doc = " Lock a portion of the texture for **write-only** pixel access, and expose"] @@ -23650,7 +23663,7 @@ extern "C" { texture: *mut SDL_Texture, rect: *const SDL_Rect, surface: *mut *mut SDL_Surface, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Unlock a texture, uploading the changes to video memory, if needed."] @@ -23705,7 +23718,7 @@ extern "C" { pub fn SDL_SetRenderTarget( renderer: *mut SDL_Renderer, texture: *mut SDL_Texture, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the current render target."] @@ -23748,9 +23761,9 @@ extern "C" { #[doc = " \\sa SDL_RenderGetLogicalSize"] pub fn SDL_RenderSetLogicalSize( renderer: *mut SDL_Renderer, - w: libc::c_int, - h: libc::c_int, - ) -> libc::c_int; + w: c_int, + h: c_int, + ) -> c_int; } extern "C" { #[doc = " Get device independent resolution for rendering."] @@ -23768,8 +23781,8 @@ extern "C" { #[doc = " \\sa SDL_RenderSetLogicalSize"] pub fn SDL_RenderGetLogicalSize( renderer: *mut SDL_Renderer, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } extern "C" { @@ -23788,7 +23801,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_RenderGetIntegerScale"] #[doc = " \\sa SDL_RenderSetLogicalSize"] - pub fn SDL_RenderSetIntegerScale(renderer: *mut SDL_Renderer, enable: SDL_bool) -> libc::c_int; + pub fn SDL_RenderSetIntegerScale(renderer: *mut SDL_Renderer, enable: SDL_bool) -> c_int; } extern "C" { #[doc = " Get whether integer scales are forced for resolution-independent rendering."] @@ -23818,7 +23831,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_RenderGetViewport"] pub fn SDL_RenderSetViewport(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) - -> libc::c_int; + -> c_int; } extern "C" { #[doc = " Get the drawing area for the current target."] @@ -23846,7 +23859,7 @@ extern "C" { #[doc = " \\sa SDL_RenderGetClipRect"] #[doc = " \\sa SDL_RenderIsClipEnabled"] pub fn SDL_RenderSetClipRect(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) - -> libc::c_int; + -> c_int; } extern "C" { #[doc = " Get the clip rectangle for the current target."] @@ -23897,7 +23910,7 @@ extern "C" { #[doc = " \\sa SDL_RenderGetScale"] #[doc = " \\sa SDL_RenderSetLogicalSize"] pub fn SDL_RenderSetScale(renderer: *mut SDL_Renderer, scaleX: f32, scaleY: f32) - -> libc::c_int; + -> c_int; } extern "C" { #[doc = " Get the drawing scale for the current target."] @@ -23933,8 +23946,8 @@ extern "C" { #[doc = " \\sa SDL_RenderSetLogicalSize"] pub fn SDL_RenderWindowToLogical( renderer: *mut SDL_Renderer, - windowX: libc::c_int, - windowY: libc::c_int, + windowX: c_int, + windowY: c_int, logicalX: *mut f32, logicalY: *mut f32, ); @@ -23960,8 +23973,8 @@ extern "C" { renderer: *mut SDL_Renderer, logicalX: f32, logicalY: f32, - windowX: *mut libc::c_int, - windowY: *mut libc::c_int, + windowX: *mut c_int, + windowY: *mut c_int, ); } extern "C" { @@ -23998,7 +24011,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the color used for drawing operations (Rect, Line and Clear)."] @@ -24024,7 +24037,7 @@ extern "C" { g: *mut Uint8, b: *mut Uint8, a: *mut Uint8, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Set the blend mode used for drawing operations (Fill and Line)."] @@ -24050,7 +24063,7 @@ extern "C" { pub fn SDL_SetRenderDrawBlendMode( renderer: *mut SDL_Renderer, blendMode: SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the blend mode used for drawing operations."] @@ -24066,7 +24079,7 @@ extern "C" { pub fn SDL_GetRenderDrawBlendMode( renderer: *mut SDL_Renderer, blendMode: *mut SDL_BlendMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Clear the current rendering target with the drawing color."] @@ -24081,7 +24094,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_SetRenderDrawColor"] - pub fn SDL_RenderClear(renderer: *mut SDL_Renderer) -> libc::c_int; + pub fn SDL_RenderClear(renderer: *mut SDL_Renderer) -> c_int; } extern "C" { #[doc = " Draw a point on the current rendering target."] @@ -24109,9 +24122,9 @@ extern "C" { #[doc = " \\sa SDL_SetRenderDrawColor"] pub fn SDL_RenderDrawPoint( renderer: *mut SDL_Renderer, - x: libc::c_int, - y: libc::c_int, - ) -> libc::c_int; + x: c_int, + y: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw multiple points on the current rendering target."] @@ -24138,8 +24151,8 @@ extern "C" { pub fn SDL_RenderDrawPoints( renderer: *mut SDL_Renderer, points: *const SDL_Point, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw a line on the current rendering target."] @@ -24169,11 +24182,11 @@ extern "C" { #[doc = " \\sa SDL_SetRenderDrawColor"] pub fn SDL_RenderDrawLine( renderer: *mut SDL_Renderer, - x1: libc::c_int, - y1: libc::c_int, - x2: libc::c_int, - y2: libc::c_int, - ) -> libc::c_int; + x1: c_int, + y1: c_int, + x2: c_int, + y2: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw a series of connected lines on the current rendering target."] @@ -24200,8 +24213,8 @@ extern "C" { pub fn SDL_RenderDrawLines( renderer: *mut SDL_Renderer, points: *const SDL_Point, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw a rectangle on the current rendering target."] @@ -24224,7 +24237,7 @@ extern "C" { #[doc = " \\sa SDL_RenderPresent"] #[doc = " \\sa SDL_SetRenderDrawBlendMode"] #[doc = " \\sa SDL_SetRenderDrawColor"] - pub fn SDL_RenderDrawRect(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) -> libc::c_int; + pub fn SDL_RenderDrawRect(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) -> c_int; } extern "C" { #[doc = " Draw some number of rectangles on the current rendering target."] @@ -24251,8 +24264,8 @@ extern "C" { pub fn SDL_RenderDrawRects( renderer: *mut SDL_Renderer, rects: *const SDL_Rect, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Fill a rectangle on the current rendering target with the drawing color."] @@ -24279,7 +24292,7 @@ extern "C" { #[doc = " \\sa SDL_RenderPresent"] #[doc = " \\sa SDL_SetRenderDrawBlendMode"] #[doc = " \\sa SDL_SetRenderDrawColor"] - pub fn SDL_RenderFillRect(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) -> libc::c_int; + pub fn SDL_RenderFillRect(renderer: *mut SDL_Renderer, rect: *const SDL_Rect) -> c_int; } extern "C" { #[doc = " Fill some number of rectangles on the current rendering target with the"] @@ -24305,8 +24318,8 @@ extern "C" { pub fn SDL_RenderFillRects( renderer: *mut SDL_Renderer, rects: *const SDL_Rect, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Copy a portion of the texture to the current rendering target."] @@ -24340,7 +24353,7 @@ extern "C" { texture: *mut SDL_Texture, srcrect: *const SDL_Rect, dstrect: *const SDL_Rect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Copy a portion of the texture to the current rendering, with optional"] @@ -24388,7 +24401,7 @@ extern "C" { angle: f64, center: *const SDL_Point, flip: SDL_RendererFlip, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Draw a point on the current rendering target at subpixel precision."] @@ -24399,7 +24412,7 @@ extern "C" { #[doc = " \\return 0 on success, or -1 on error"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.10."] - pub fn SDL_RenderDrawPointF(renderer: *mut SDL_Renderer, x: f32, y: f32) -> libc::c_int; + pub fn SDL_RenderDrawPointF(renderer: *mut SDL_Renderer, x: f32, y: f32) -> c_int; } extern "C" { #[doc = " Draw multiple points on the current rendering target at subpixel precision."] @@ -24413,8 +24426,8 @@ extern "C" { pub fn SDL_RenderDrawPointsF( renderer: *mut SDL_Renderer, points: *const SDL_FPoint, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw a line on the current rendering target at subpixel precision."] @@ -24433,7 +24446,7 @@ extern "C" { y1: f32, x2: f32, y2: f32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Draw a series of connected lines on the current rendering target at"] @@ -24448,8 +24461,8 @@ extern "C" { pub fn SDL_RenderDrawLinesF( renderer: *mut SDL_Renderer, points: *const SDL_FPoint, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Draw a rectangle on the current rendering target at subpixel precision."] @@ -24460,7 +24473,7 @@ extern "C" { #[doc = " \\return 0 on success, or -1 on error"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.10."] - pub fn SDL_RenderDrawRectF(renderer: *mut SDL_Renderer, rect: *const SDL_FRect) -> libc::c_int; + pub fn SDL_RenderDrawRectF(renderer: *mut SDL_Renderer, rect: *const SDL_FRect) -> c_int; } extern "C" { #[doc = " Draw some number of rectangles on the current rendering target at subpixel"] @@ -24475,8 +24488,8 @@ extern "C" { pub fn SDL_RenderDrawRectsF( renderer: *mut SDL_Renderer, rects: *const SDL_FRect, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Fill a rectangle on the current rendering target with the drawing color at"] @@ -24488,7 +24501,7 @@ extern "C" { #[doc = " \\return 0 on success, or -1 on error"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.10."] - pub fn SDL_RenderFillRectF(renderer: *mut SDL_Renderer, rect: *const SDL_FRect) -> libc::c_int; + pub fn SDL_RenderFillRectF(renderer: *mut SDL_Renderer, rect: *const SDL_FRect) -> c_int; } extern "C" { #[doc = " Fill some number of rectangles on the current rendering target with the"] @@ -24503,8 +24516,8 @@ extern "C" { pub fn SDL_RenderFillRectsF( renderer: *mut SDL_Renderer, rects: *const SDL_FRect, - count: libc::c_int, - ) -> libc::c_int; + count: c_int, + ) -> c_int; } extern "C" { #[doc = " Copy a portion of the texture to the current rendering target at subpixel"] @@ -24524,7 +24537,7 @@ extern "C" { texture: *mut SDL_Texture, srcrect: *const SDL_Rect, dstrect: *const SDL_FRect, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Copy a portion of the source texture to the current rendering target, with"] @@ -24554,7 +24567,7 @@ extern "C" { angle: f64, center: *const SDL_FPoint, flip: SDL_RendererFlip, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Render a list of triangles, optionally using a texture and indices into the"] @@ -24578,10 +24591,10 @@ extern "C" { renderer: *mut SDL_Renderer, texture: *mut SDL_Texture, vertices: *const SDL_Vertex, - num_vertices: libc::c_int, - indices: *const libc::c_int, - num_indices: libc::c_int, - ) -> libc::c_int; + num_vertices: c_int, + indices: *const c_int, + num_indices: c_int, + ) -> c_int; } extern "C" { #[doc = " Render a list of triangles, optionally using a texture and indices into the"] @@ -24610,16 +24623,16 @@ extern "C" { renderer: *mut SDL_Renderer, texture: *mut SDL_Texture, xy: *const f32, - xy_stride: libc::c_int, + xy_stride: c_int, color: *const SDL_Color, - color_stride: libc::c_int, + color_stride: c_int, uv: *const f32, - uv_stride: libc::c_int, - num_vertices: libc::c_int, - indices: *const libc::c_void, - num_indices: libc::c_int, - size_indices: libc::c_int, - ) -> libc::c_int; + uv_stride: c_int, + num_vertices: c_int, + indices: *const c_void, + num_indices: c_int, + size_indices: c_int, + ) -> c_int; } extern "C" { #[doc = " Read pixels from the current rendering target to an array of pixels."] @@ -24649,9 +24662,9 @@ extern "C" { renderer: *mut SDL_Renderer, rect: *const SDL_Rect, format: Uint32, - pixels: *mut libc::c_void, - pitch: libc::c_int, - ) -> libc::c_int; + pixels: *mut c_void, + pitch: c_int, + ) -> c_int; } extern "C" { #[doc = " Update the screen with any rendering performed since the previous call."] @@ -24741,7 +24754,7 @@ extern "C" { #[doc = " SDL_GetError() for more information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.10."] - pub fn SDL_RenderFlush(renderer: *mut SDL_Renderer) -> libc::c_int; + pub fn SDL_RenderFlush(renderer: *mut SDL_Renderer) -> c_int; } extern "C" { #[doc = " Bind an OpenGL/ES/ES2 texture to the current context."] @@ -24781,7 +24794,7 @@ extern "C" { texture: *mut SDL_Texture, texw: *mut f32, texh: *mut f32, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Unbind an OpenGL/ES/ES2 texture from the current context."] @@ -24795,7 +24808,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_GL_BindTexture"] #[doc = " \\sa SDL_GL_MakeCurrent"] - pub fn SDL_GL_UnbindTexture(texture: *mut SDL_Texture) -> libc::c_int; + pub fn SDL_GL_UnbindTexture(texture: *mut SDL_Texture) -> c_int; } extern "C" { #[doc = " Get the CAMetalLayer associated with the given Metal renderer."] @@ -24810,7 +24823,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.8."] #[doc = ""] #[doc = " \\sa SDL_RenderGetMetalCommandEncoder"] - pub fn SDL_RenderGetMetalLayer(renderer: *mut SDL_Renderer) -> *mut libc::c_void; + pub fn SDL_RenderGetMetalLayer(renderer: *mut SDL_Renderer) -> *mut c_void; } extern "C" { #[doc = " Get the Metal command encoder for the current frame"] @@ -24830,7 +24843,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.8."] #[doc = ""] #[doc = " \\sa SDL_RenderGetMetalLayer"] - pub fn SDL_RenderGetMetalCommandEncoder(renderer: *mut SDL_Renderer) -> *mut libc::c_void; + pub fn SDL_RenderGetMetalCommandEncoder(renderer: *mut SDL_Renderer) -> *mut c_void; } extern "C" { #[doc = " Toggle VSync of the given renderer."] @@ -24840,7 +24853,7 @@ extern "C" { #[doc = " \\returns a 0 int on success, or non-zero on failure"] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.18."] - pub fn SDL_RenderSetVSync(renderer: *mut SDL_Renderer, vsync: libc::c_int) -> libc::c_int; + pub fn SDL_RenderSetVSync(renderer: *mut SDL_Renderer, vsync: c_int) -> c_int; } extern "C" { #[doc = " Create a window that can be shaped with the specified position, dimensions,"] @@ -24865,11 +24878,11 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_DestroyWindow"] pub fn SDL_CreateShapedWindow( - title: *const libc::c_char, - x: libc::c_uint, - y: libc::c_uint, - w: libc::c_uint, - h: libc::c_uint, + title: *const c_char, + x: c_uint, + y: c_uint, + w: c_uint, + h: c_uint, flags: Uint32, ) -> *mut SDL_Window; } @@ -25003,7 +25016,7 @@ extern "C" { window: *mut SDL_Window, shape: *mut SDL_Surface, shape_mode: *mut SDL_WindowShapeMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Get the shape parameters of a shaped window."] @@ -25024,7 +25037,7 @@ extern "C" { pub fn SDL_GetShapedWindowMode( window: *mut SDL_Window, shape_mode: *mut SDL_WindowShapeMode, - ) -> libc::c_int; + ) -> c_int; } extern "C" { #[doc = " Sets the UNIX nice value for a thread."] @@ -25036,7 +25049,7 @@ extern "C" { #[doc = " \\returns 0 on success, or -1 on error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.9."] - pub fn SDL_LinuxSetThreadPriority(threadID: Sint64, priority: libc::c_int) -> libc::c_int; + pub fn SDL_LinuxSetThreadPriority(threadID: Sint64, priority: c_int) -> c_int; } extern "C" { #[doc = " Sets the priority (not nice level) and scheduling policy for a thread."] @@ -25052,9 +25065,9 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.18."] pub fn SDL_LinuxSetThreadPriorityAndPolicy( threadID: Sint64, - sdlPriority: libc::c_int, - schedPolicy: libc::c_int, - ) -> libc::c_int; + sdlPriority: c_int, + schedPolicy: c_int, + ) -> c_int; } extern "C" { #[doc = " Query if the current device is a tablet."] @@ -25171,10 +25184,10 @@ extern "C" { #[doc = " passed in, the periodic alarm continues, otherwise a new alarm is"] #[doc = " scheduled. If the callback returns 0, the periodic alarm is cancelled."] pub type SDL_TimerCallback = ::core::option::Option< - unsafe extern "C" fn(interval: Uint32, param: *mut libc::c_void) -> Uint32, + unsafe extern "C" fn(interval: Uint32, param: *mut c_void) -> Uint32, >; #[doc = " Definition of the timer ID type."] -pub type SDL_TimerID = libc::c_int; +pub type SDL_TimerID = c_int; extern "C" { #[doc = " Call a callback function at a future time."] #[doc = ""] @@ -25209,7 +25222,7 @@ extern "C" { pub fn SDL_AddTimer( interval: Uint32, callback: SDL_TimerCallback, - param: *mut libc::c_void, + param: *mut c_void, ) -> SDL_TimerID; } extern "C" { @@ -25330,7 +25343,7 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetVersion"] - pub fn SDL_GetRevision() -> *const libc::c_char; + pub fn SDL_GetRevision() -> *const c_char; } extern "C" { #[doc = " Obsolete function, do not use."] @@ -25352,15 +25365,15 @@ extern "C" { #[doc = " \\since This function is available since SDL 2.0.0."] #[doc = ""] #[doc = " \\sa SDL_GetRevision"] - pub fn SDL_GetRevisionNumber() -> libc::c_int; + pub fn SDL_GetRevisionNumber() -> c_int; } #[repr(C)] #[derive(Copy, Clone)] pub struct SDL_Locale { #[doc = "< A language name, like \"en\" for English."] - pub language: *const libc::c_char, + pub language: *const c_char, #[doc = "< A country, like \"US\" for America. Can be NULL."] - pub country: *const libc::c_char, + pub country: *const c_char, } #[test] fn bindgen_test_layout_SDL_Locale() { @@ -25466,7 +25479,7 @@ extern "C" { #[doc = " information."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.14."] - pub fn SDL_OpenURL(url: *const libc::c_char) -> libc::c_int; + pub fn SDL_OpenURL(url: *const c_char) -> c_int; } extern "C" { #[doc = " Initialize the SDL library."] @@ -25514,7 +25527,7 @@ extern "C" { #[doc = " \\sa SDL_Quit"] #[doc = " \\sa SDL_SetMainReady"] #[doc = " \\sa SDL_WasInit"] - pub fn SDL_Init(flags: Uint32) -> libc::c_int; + pub fn SDL_Init(flags: Uint32) -> c_int; } extern "C" { #[doc = " Compatibility function to initialize the SDL library."] @@ -25530,7 +25543,7 @@ extern "C" { #[doc = " \\sa SDL_Init"] #[doc = " \\sa SDL_Quit"] #[doc = " \\sa SDL_QuitSubSystem"] - pub fn SDL_InitSubSystem(flags: Uint32) -> libc::c_int; + pub fn SDL_InitSubSystem(flags: Uint32) -> c_int; } extern "C" { #[doc = " Shut down specific SDL subsystems."] @@ -25591,11 +25604,11 @@ extern "C" { #[doc = " \\sa SDL_QuitSubSystem"] pub fn SDL_Quit(); } -pub type XID = libc::c_ulong; -pub type Mask = libc::c_ulong; -pub type Atom = libc::c_ulong; -pub type VisualID = libc::c_ulong; -pub type Time = libc::c_ulong; +pub type XID = c_ulong; +pub type Mask = c_ulong; +pub type Atom = c_ulong; +pub type VisualID = c_ulong; +pub type Time = c_ulong; pub type Window = XID; pub type Drawable = XID; pub type Font = XID; @@ -25604,18 +25617,18 @@ pub type Cursor = XID; pub type Colormap = XID; pub type GContext = XID; pub type KeySym = XID; -pub type KeyCode = libc::c_uchar; +pub type KeyCode = c_uchar; extern "C" { - pub fn _Xmblen(str: *mut libc::c_char, len: libc::c_int) -> libc::c_int; + pub fn _Xmblen(str: *mut c_char, len: c_int) -> c_int; } -pub type XPointer = *mut libc::c_char; +pub type XPointer = *mut c_char; #[repr(C)] #[derive(Copy, Clone)] pub struct _XExtData { - pub number: libc::c_int, + pub number: c_int, pub next: *mut _XExtData, pub free_private: - ::core::option::Option libc::c_int>, + ::core::option::Option c_int>, pub private_data: XPointer, } #[test] @@ -25675,10 +25688,10 @@ pub type XExtData = _XExtData; #[repr(C)] #[derive(Copy, Clone)] pub struct XExtCodes { - pub extension: libc::c_int, - pub major_opcode: libc::c_int, - pub first_event: libc::c_int, - pub first_error: libc::c_int, + pub extension: c_int, + pub major_opcode: c_int, + pub first_event: c_int, + pub first_error: c_int, } #[test] fn bindgen_test_layout_XExtCodes() { @@ -25736,9 +25749,9 @@ fn bindgen_test_layout_XExtCodes() { #[repr(C)] #[derive(Copy, Clone)] pub struct XPixmapFormatValues { - pub depth: libc::c_int, - pub bits_per_pixel: libc::c_int, - pub scanline_pad: libc::c_int, + pub depth: c_int, + pub bits_per_pixel: c_int, + pub scanline_pad: c_int, } #[test] fn bindgen_test_layout_XPixmapFormatValues() { @@ -25790,29 +25803,29 @@ fn bindgen_test_layout_XPixmapFormatValues() { #[repr(C)] #[derive(Copy, Clone)] pub struct XGCValues { - pub function: libc::c_int, - pub plane_mask: libc::c_ulong, - pub foreground: libc::c_ulong, - pub background: libc::c_ulong, - pub line_width: libc::c_int, - pub line_style: libc::c_int, - pub cap_style: libc::c_int, - pub join_style: libc::c_int, - pub fill_style: libc::c_int, - pub fill_rule: libc::c_int, - pub arc_mode: libc::c_int, + pub function: c_int, + pub plane_mask: c_ulong, + pub foreground: c_ulong, + pub background: c_ulong, + pub line_width: c_int, + pub line_style: c_int, + pub cap_style: c_int, + pub join_style: c_int, + pub fill_style: c_int, + pub fill_rule: c_int, + pub arc_mode: c_int, pub tile: Pixmap, pub stipple: Pixmap, - pub ts_x_origin: libc::c_int, - pub ts_y_origin: libc::c_int, + pub ts_x_origin: c_int, + pub ts_y_origin: c_int, pub font: Font, - pub subwindow_mode: libc::c_int, - pub graphics_exposures: libc::c_int, - pub clip_x_origin: libc::c_int, - pub clip_y_origin: libc::c_int, + pub subwindow_mode: c_int, + pub graphics_exposures: c_int, + pub clip_x_origin: c_int, + pub clip_y_origin: c_int, pub clip_mask: Pixmap, - pub dash_offset: libc::c_int, - pub dashes: libc::c_char, + pub dash_offset: c_int, + pub dashes: c_char, } #[test] fn bindgen_test_layout_XGCValues() { @@ -26068,12 +26081,12 @@ pub type GC = *mut _XGC; pub struct Visual { pub ext_data: *mut XExtData, pub visualid: VisualID, - pub class: libc::c_int, - pub red_mask: libc::c_ulong, - pub green_mask: libc::c_ulong, - pub blue_mask: libc::c_ulong, - pub bits_per_rgb: libc::c_int, - pub map_entries: libc::c_int, + pub class: c_int, + pub red_mask: c_ulong, + pub green_mask: c_ulong, + pub blue_mask: c_ulong, + pub bits_per_rgb: c_int, + pub map_entries: c_int, } #[test] fn bindgen_test_layout_Visual() { @@ -26171,8 +26184,8 @@ fn bindgen_test_layout_Visual() { #[repr(C)] #[derive(Copy, Clone)] pub struct Depth { - pub depth: libc::c_int, - pub nvisuals: libc::c_int, + pub depth: c_int, + pub nvisuals: c_int, pub visuals: *mut Visual, } #[test] @@ -26229,23 +26242,23 @@ pub struct Screen { pub ext_data: *mut XExtData, pub display: *mut _XDisplay, pub root: Window, - pub width: libc::c_int, - pub height: libc::c_int, - pub mwidth: libc::c_int, - pub mheight: libc::c_int, - pub ndepths: libc::c_int, + pub width: c_int, + pub height: c_int, + pub mwidth: c_int, + pub mheight: c_int, + pub ndepths: c_int, pub depths: *mut Depth, - pub root_depth: libc::c_int, + pub root_depth: c_int, pub root_visual: *mut Visual, pub default_gc: GC, pub cmap: Colormap, - pub white_pixel: libc::c_ulong, - pub black_pixel: libc::c_ulong, - pub max_maps: libc::c_int, - pub min_maps: libc::c_int, - pub backing_store: libc::c_int, - pub save_unders: libc::c_int, - pub root_input_mask: libc::c_long, + pub white_pixel: c_ulong, + pub black_pixel: c_ulong, + pub max_maps: c_int, + pub min_maps: c_int, + pub backing_store: c_int, + pub save_unders: c_int, + pub root_input_mask: c_long, } #[test] fn bindgen_test_layout_Screen() { @@ -26464,9 +26477,9 @@ fn bindgen_test_layout_Screen() { #[derive(Copy, Clone)] pub struct ScreenFormat { pub ext_data: *mut XExtData, - pub depth: libc::c_int, - pub bits_per_pixel: libc::c_int, - pub scanline_pad: libc::c_int, + pub depth: c_int, + pub bits_per_pixel: c_int, + pub scanline_pad: c_int, } #[test] fn bindgen_test_layout_ScreenFormat() { @@ -26525,18 +26538,18 @@ fn bindgen_test_layout_ScreenFormat() { #[derive(Copy, Clone)] pub struct XSetWindowAttributes { pub background_pixmap: Pixmap, - pub background_pixel: libc::c_ulong, + pub background_pixel: c_ulong, pub border_pixmap: Pixmap, - pub border_pixel: libc::c_ulong, - pub bit_gravity: libc::c_int, - pub win_gravity: libc::c_int, - pub backing_store: libc::c_int, - pub backing_planes: libc::c_ulong, - pub backing_pixel: libc::c_ulong, - pub save_under: libc::c_int, - pub event_mask: libc::c_long, - pub do_not_propagate_mask: libc::c_long, - pub override_redirect: libc::c_int, + pub border_pixel: c_ulong, + pub bit_gravity: c_int, + pub win_gravity: c_int, + pub backing_store: c_int, + pub backing_planes: c_ulong, + pub backing_pixel: c_ulong, + pub save_under: c_int, + pub event_mask: c_long, + pub do_not_propagate_mask: c_long, + pub override_redirect: c_int, pub colormap: Colormap, pub cursor: Cursor, } @@ -26733,28 +26746,28 @@ fn bindgen_test_layout_XSetWindowAttributes() { #[repr(C)] #[derive(Copy, Clone)] pub struct XWindowAttributes { - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub border_width: libc::c_int, - pub depth: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub border_width: c_int, + pub depth: c_int, pub visual: *mut Visual, pub root: Window, - pub class: libc::c_int, - pub bit_gravity: libc::c_int, - pub win_gravity: libc::c_int, - pub backing_store: libc::c_int, - pub backing_planes: libc::c_ulong, - pub backing_pixel: libc::c_ulong, - pub save_under: libc::c_int, + pub class: c_int, + pub bit_gravity: c_int, + pub win_gravity: c_int, + pub backing_store: c_int, + pub backing_planes: c_ulong, + pub backing_pixel: c_ulong, + pub save_under: c_int, pub colormap: Colormap, - pub map_installed: libc::c_int, - pub map_state: libc::c_int, - pub all_event_masks: libc::c_long, - pub your_event_mask: libc::c_long, - pub do_not_propagate_mask: libc::c_long, - pub override_redirect: libc::c_int, + pub map_installed: c_int, + pub map_state: c_int, + pub all_event_masks: c_long, + pub your_event_mask: c_long, + pub do_not_propagate_mask: c_long, + pub override_redirect: c_int, pub screen: *mut Screen, } #[test] @@ -27020,9 +27033,9 @@ fn bindgen_test_layout_XWindowAttributes() { #[repr(C)] #[derive(Copy, Clone)] pub struct XHostAddress { - pub family: libc::c_int, - pub length: libc::c_int, - pub address: *mut libc::c_char, + pub family: c_int, + pub length: c_int, + pub address: *mut c_char, } #[test] fn bindgen_test_layout_XHostAddress() { @@ -27070,10 +27083,10 @@ fn bindgen_test_layout_XHostAddress() { #[repr(C)] #[derive(Copy, Clone)] pub struct XServerInterpretedAddress { - pub typelength: libc::c_int, - pub valuelength: libc::c_int, - pub type_: *mut libc::c_char, - pub value: *mut libc::c_char, + pub typelength: c_int, + pub valuelength: c_int, + pub type_: *mut c_char, + pub value: *mut c_char, } #[test] fn bindgen_test_layout_XServerInterpretedAddress() { @@ -27139,21 +27152,21 @@ fn bindgen_test_layout_XServerInterpretedAddress() { #[repr(C)] #[derive(Copy, Clone)] pub struct _XImage { - pub width: libc::c_int, - pub height: libc::c_int, - pub xoffset: libc::c_int, - pub format: libc::c_int, - pub data: *mut libc::c_char, - pub byte_order: libc::c_int, - pub bitmap_unit: libc::c_int, - pub bitmap_bit_order: libc::c_int, - pub bitmap_pad: libc::c_int, - pub depth: libc::c_int, - pub bytes_per_line: libc::c_int, - pub bits_per_pixel: libc::c_int, - pub red_mask: libc::c_ulong, - pub green_mask: libc::c_ulong, - pub blue_mask: libc::c_ulong, + pub width: c_int, + pub height: c_int, + pub xoffset: c_int, + pub format: c_int, + pub data: *mut c_char, + pub byte_order: c_int, + pub bitmap_unit: c_int, + pub bitmap_bit_order: c_int, + pub bitmap_pad: c_int, + pub depth: c_int, + pub bytes_per_line: c_int, + pub bits_per_pixel: c_int, + pub red_mask: c_ulong, + pub green_mask: c_ulong, + pub blue_mask: c_ulong, pub obdata: XPointer, pub f: _XImage_funcs, } @@ -27164,44 +27177,44 @@ pub struct _XImage_funcs { unsafe extern "C" fn( arg1: *mut _XDisplay, arg2: *mut Visual, - arg3: libc::c_uint, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: *mut libc::c_char, - arg7: libc::c_uint, - arg8: libc::c_uint, - arg9: libc::c_int, - arg10: libc::c_int, + arg3: c_uint, + arg4: c_int, + arg5: c_int, + arg6: *mut c_char, + arg7: c_uint, + arg8: c_uint, + arg9: c_int, + arg10: c_int, ) -> *mut _XImage, >, pub destroy_image: - ::core::option::Option libc::c_int>, + ::core::option::Option c_int>, pub get_pixel: ::core::option::Option< unsafe extern "C" fn( arg1: *mut _XImage, - arg2: libc::c_int, - arg3: libc::c_int, - ) -> libc::c_ulong, + arg2: c_int, + arg3: c_int, + ) -> c_ulong, >, pub put_pixel: ::core::option::Option< unsafe extern "C" fn( arg1: *mut _XImage, - arg2: libc::c_int, - arg3: libc::c_int, - arg4: libc::c_ulong, - ) -> libc::c_int, + arg2: c_int, + arg3: c_int, + arg4: c_ulong, + ) -> c_int, >, pub sub_image: ::core::option::Option< unsafe extern "C" fn( arg1: *mut _XImage, - arg2: libc::c_int, - arg3: libc::c_int, - arg4: libc::c_uint, - arg5: libc::c_uint, + arg2: c_int, + arg3: c_int, + arg4: c_uint, + arg5: c_uint, ) -> *mut _XImage, >, pub add_pixel: ::core::option::Option< - unsafe extern "C" fn(arg1: *mut _XImage, arg2: libc::c_long) -> libc::c_int, + unsafe extern "C" fn(arg1: *mut _XImage, arg2: c_long) -> c_int, >, } #[test] @@ -27464,13 +27477,13 @@ pub type XImage = _XImage; #[repr(C)] #[derive(Copy, Clone)] pub struct XWindowChanges { - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub border_width: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub border_width: c_int, pub sibling: Window, - pub stack_mode: libc::c_int, + pub stack_mode: c_int, } #[test] fn bindgen_test_layout_XWindowChanges() { @@ -27558,12 +27571,12 @@ fn bindgen_test_layout_XWindowChanges() { #[repr(C)] #[derive(Copy, Clone)] pub struct XColor { - pub pixel: libc::c_ulong, - pub red: libc::c_ushort, - pub green: libc::c_ushort, - pub blue: libc::c_ushort, - pub flags: libc::c_char, - pub pad: libc::c_char, + pub pixel: c_ulong, + pub red: c_ushort, + pub green: c_ushort, + pub blue: c_ushort, + pub flags: c_char, + pub pad: c_char, } #[test] fn bindgen_test_layout_XColor() { @@ -27641,10 +27654,10 @@ fn bindgen_test_layout_XColor() { #[repr(C)] #[derive(Copy, Clone)] pub struct XSegment { - pub x1: libc::c_short, - pub y1: libc::c_short, - pub x2: libc::c_short, - pub y2: libc::c_short, + pub x1: c_short, + pub y1: c_short, + pub x2: c_short, + pub y2: c_short, } #[test] fn bindgen_test_layout_XSegment() { @@ -27702,8 +27715,8 @@ fn bindgen_test_layout_XSegment() { #[repr(C)] #[derive(Copy, Clone)] pub struct XPoint { - pub x: libc::c_short, - pub y: libc::c_short, + pub x: c_short, + pub y: c_short, } #[test] fn bindgen_test_layout_XPoint() { @@ -27731,10 +27744,10 @@ fn bindgen_test_layout_XPoint() { #[repr(C)] #[derive(Copy, Clone)] pub struct XRectangle { - pub x: libc::c_short, - pub y: libc::c_short, - pub width: libc::c_ushort, - pub height: libc::c_ushort, + pub x: c_short, + pub y: c_short, + pub width: c_ushort, + pub height: c_ushort, } #[test] fn bindgen_test_layout_XRectangle() { @@ -27792,12 +27805,12 @@ fn bindgen_test_layout_XRectangle() { #[repr(C)] #[derive(Copy, Clone)] pub struct XArc { - pub x: libc::c_short, - pub y: libc::c_short, - pub width: libc::c_ushort, - pub height: libc::c_ushort, - pub angle1: libc::c_short, - pub angle2: libc::c_short, + pub x: c_short, + pub y: c_short, + pub width: c_ushort, + pub height: c_ushort, + pub angle1: c_short, + pub angle2: c_short, } #[test] fn bindgen_test_layout_XArc() { @@ -27865,14 +27878,14 @@ fn bindgen_test_layout_XArc() { #[repr(C)] #[derive(Copy, Clone)] pub struct XKeyboardControl { - pub key_click_percent: libc::c_int, - pub bell_percent: libc::c_int, - pub bell_pitch: libc::c_int, - pub bell_duration: libc::c_int, - pub led: libc::c_int, - pub led_mode: libc::c_int, - pub key: libc::c_int, - pub auto_repeat_mode: libc::c_int, + pub key_click_percent: c_int, + pub bell_percent: c_int, + pub bell_pitch: c_int, + pub bell_duration: c_int, + pub led: c_int, + pub led_mode: c_int, + pub key: c_int, + pub auto_repeat_mode: c_int, } #[test] fn bindgen_test_layout_XKeyboardControl() { @@ -27974,13 +27987,13 @@ fn bindgen_test_layout_XKeyboardControl() { #[repr(C)] #[derive(Copy, Clone)] pub struct XKeyboardState { - pub key_click_percent: libc::c_int, - pub bell_percent: libc::c_int, - pub bell_pitch: libc::c_uint, - pub bell_duration: libc::c_uint, - pub led_mask: libc::c_ulong, - pub global_auto_repeat: libc::c_int, - pub auto_repeats: [libc::c_char; 32usize], + pub key_click_percent: c_int, + pub bell_percent: c_int, + pub bell_pitch: c_uint, + pub bell_duration: c_uint, + pub led_mask: c_ulong, + pub global_auto_repeat: c_int, + pub auto_repeats: [c_char; 32usize], } #[test] fn bindgen_test_layout_XKeyboardState() { @@ -28073,8 +28086,8 @@ fn bindgen_test_layout_XKeyboardState() { #[derive(Copy, Clone)] pub struct XTimeCoord { pub time: Time, - pub x: libc::c_short, - pub y: libc::c_short, + pub x: c_short, + pub y: c_short, } #[test] fn bindgen_test_layout_XTimeCoord() { @@ -28122,7 +28135,7 @@ fn bindgen_test_layout_XTimeCoord() { #[repr(C)] #[derive(Copy, Clone)] pub struct XModifierKeymap { - pub max_keypermod: libc::c_int, + pub max_keypermod: c_int, pub modifiermap: *mut KeyCode, } #[test] @@ -28174,49 +28187,49 @@ pub struct _XrmHashBucketRec { pub struct _bindgen_ty_1 { pub ext_data: *mut XExtData, pub private1: *mut _XPrivate, - pub fd: libc::c_int, - pub private2: libc::c_int, - pub proto_major_version: libc::c_int, - pub proto_minor_version: libc::c_int, - pub vendor: *mut libc::c_char, + pub fd: c_int, + pub private2: c_int, + pub proto_major_version: c_int, + pub proto_minor_version: c_int, + pub vendor: *mut c_char, pub private3: XID, pub private4: XID, pub private5: XID, - pub private6: libc::c_int, + pub private6: c_int, pub resource_alloc: ::core::option::Option XID>, - pub byte_order: libc::c_int, - pub bitmap_unit: libc::c_int, - pub bitmap_pad: libc::c_int, - pub bitmap_bit_order: libc::c_int, - pub nformats: libc::c_int, + pub byte_order: c_int, + pub bitmap_unit: c_int, + pub bitmap_pad: c_int, + pub bitmap_bit_order: c_int, + pub nformats: c_int, pub pixmap_format: *mut ScreenFormat, - pub private8: libc::c_int, - pub release: libc::c_int, + pub private8: c_int, + pub release: c_int, pub private9: *mut _XPrivate, pub private10: *mut _XPrivate, - pub qlen: libc::c_int, - pub last_request_read: libc::c_ulong, - pub request: libc::c_ulong, + pub qlen: c_int, + pub last_request_read: c_ulong, + pub request: c_ulong, pub private11: XPointer, pub private12: XPointer, pub private13: XPointer, pub private14: XPointer, - pub max_request_size: libc::c_uint, + pub max_request_size: c_uint, pub db: *mut _XrmHashBucketRec, pub private15: - ::core::option::Option libc::c_int>, - pub display_name: *mut libc::c_char, - pub default_screen: libc::c_int, - pub nscreens: libc::c_int, + ::core::option::Option c_int>, + pub display_name: *mut c_char, + pub default_screen: c_int, + pub nscreens: c_int, pub screens: *mut Screen, - pub motion_buffer: libc::c_ulong, - pub private16: libc::c_ulong, - pub min_keycode: libc::c_int, - pub max_keycode: libc::c_int, + pub motion_buffer: c_ulong, + pub private16: c_ulong, + pub min_keycode: c_int, + pub max_keycode: c_int, pub private17: XPointer, pub private18: XPointer, - pub private19: libc::c_int, - pub xdefaults: *mut libc::c_char, + pub private19: c_int, + pub xdefaults: *mut c_char, } #[test] fn bindgen_test_layout__bindgen_ty_1() { @@ -28681,21 +28694,21 @@ pub type _XPrivDisplay = *mut _bindgen_ty_1; #[repr(C)] #[derive(Copy, Clone)] pub struct XKeyEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub root: Window, pub subwindow: Window, pub time: Time, - pub x: libc::c_int, - pub y: libc::c_int, - pub x_root: libc::c_int, - pub y_root: libc::c_int, - pub state: libc::c_uint, - pub keycode: libc::c_uint, - pub same_screen: libc::c_int, + pub x: c_int, + pub y: c_int, + pub x_root: c_int, + pub y_root: c_int, + pub state: c_uint, + pub keycode: c_uint, + pub same_screen: c_int, } #[test] fn bindgen_test_layout_XKeyEvent() { @@ -28865,21 +28878,21 @@ pub type XKeyReleasedEvent = XKeyEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XButtonEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub root: Window, pub subwindow: Window, pub time: Time, - pub x: libc::c_int, - pub y: libc::c_int, - pub x_root: libc::c_int, - pub y_root: libc::c_int, - pub state: libc::c_uint, - pub button: libc::c_uint, - pub same_screen: libc::c_int, + pub x: c_int, + pub y: c_int, + pub x_root: c_int, + pub y_root: c_int, + pub state: c_uint, + pub button: c_uint, + pub same_screen: c_int, } #[test] fn bindgen_test_layout_XButtonEvent() { @@ -29049,21 +29062,21 @@ pub type XButtonReleasedEvent = XButtonEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XMotionEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub root: Window, pub subwindow: Window, pub time: Time, - pub x: libc::c_int, - pub y: libc::c_int, - pub x_root: libc::c_int, - pub y_root: libc::c_int, - pub state: libc::c_uint, - pub is_hint: libc::c_char, - pub same_screen: libc::c_int, + pub x: c_int, + pub y: c_int, + pub x_root: c_int, + pub y_root: c_int, + pub state: c_uint, + pub is_hint: c_char, + pub same_screen: c_int, } #[test] fn bindgen_test_layout_XMotionEvent() { @@ -29232,23 +29245,23 @@ pub type XPointerMovedEvent = XMotionEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XCrossingEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub root: Window, pub subwindow: Window, pub time: Time, - pub x: libc::c_int, - pub y: libc::c_int, - pub x_root: libc::c_int, - pub y_root: libc::c_int, - pub mode: libc::c_int, - pub detail: libc::c_int, - pub same_screen: libc::c_int, - pub focus: libc::c_int, - pub state: libc::c_uint, + pub x: c_int, + pub y: c_int, + pub x_root: c_int, + pub y_root: c_int, + pub mode: c_int, + pub detail: c_int, + pub same_screen: c_int, + pub focus: c_int, + pub state: c_uint, } #[test] fn bindgen_test_layout_XCrossingEvent() { @@ -29438,13 +29451,13 @@ pub type XLeaveWindowEvent = XCrossingEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XFocusChangeEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub mode: libc::c_int, - pub detail: libc::c_int, + pub mode: c_int, + pub detail: c_int, } #[test] fn bindgen_test_layout_XFocusChangeEvent() { @@ -29534,12 +29547,12 @@ pub type XFocusOutEvent = XFocusChangeEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XKeymapEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub key_vector: [libc::c_char; 32usize], + pub key_vector: [c_char; 32usize], } #[test] fn bindgen_test_layout_XKeymapEvent() { @@ -29617,16 +29630,16 @@ fn bindgen_test_layout_XKeymapEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XExposeEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub count: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub count: c_int, } #[test] fn bindgen_test_layout_XExposeEvent() { @@ -29744,18 +29757,18 @@ fn bindgen_test_layout_XExposeEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XGraphicsExposeEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub drawable: Drawable, - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub count: libc::c_int, - pub major_code: libc::c_int, - pub minor_code: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub count: c_int, + pub major_code: c_int, + pub minor_code: c_int, } #[test] fn bindgen_test_layout_XGraphicsExposeEvent() { @@ -29899,13 +29912,13 @@ fn bindgen_test_layout_XGraphicsExposeEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XNoExposeEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub drawable: Drawable, - pub major_code: libc::c_int, - pub minor_code: libc::c_int, + pub major_code: c_int, + pub minor_code: c_int, } #[test] fn bindgen_test_layout_XNoExposeEvent() { @@ -29993,12 +30006,12 @@ fn bindgen_test_layout_XNoExposeEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XVisibilityEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub state: libc::c_int, + pub state: c_int, } #[test] fn bindgen_test_layout_XVisibilityEvent() { @@ -30076,18 +30089,18 @@ fn bindgen_test_layout_XVisibilityEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XCreateWindowEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub parent: Window, pub window: Window, - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub border_width: libc::c_int, - pub override_redirect: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub border_width: c_int, + pub override_redirect: c_int, } #[test] fn bindgen_test_layout_XCreateWindowEvent() { @@ -30229,9 +30242,9 @@ fn bindgen_test_layout_XCreateWindowEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XDestroyWindowEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, @@ -30312,13 +30325,13 @@ fn bindgen_test_layout_XDestroyWindowEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XUnmapEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, - pub from_configure: libc::c_int, + pub from_configure: c_int, } #[test] fn bindgen_test_layout_XUnmapEvent() { @@ -30406,13 +30419,13 @@ fn bindgen_test_layout_XUnmapEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XMapEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, - pub override_redirect: libc::c_int, + pub override_redirect: c_int, } #[test] fn bindgen_test_layout_XMapEvent() { @@ -30500,9 +30513,9 @@ fn bindgen_test_layout_XMapEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XMapRequestEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub parent: Window, pub window: Window, @@ -30583,16 +30596,16 @@ fn bindgen_test_layout_XMapRequestEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XReparentEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, pub parent: Window, - pub x: libc::c_int, - pub y: libc::c_int, - pub override_redirect: libc::c_int, + pub x: c_int, + pub y: c_int, + pub override_redirect: c_int, } #[test] fn bindgen_test_layout_XReparentEvent() { @@ -30712,19 +30725,19 @@ fn bindgen_test_layout_XReparentEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XConfigureEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub border_width: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub border_width: c_int, pub above: Window, - pub override_redirect: libc::c_int, + pub override_redirect: c_int, } #[test] fn bindgen_test_layout_XConfigureEvent() { @@ -30874,14 +30887,14 @@ fn bindgen_test_layout_XConfigureEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XGravityEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, - pub x: libc::c_int, - pub y: libc::c_int, + pub x: c_int, + pub y: c_int, } #[test] fn bindgen_test_layout_XGravityEvent() { @@ -30979,13 +30992,13 @@ fn bindgen_test_layout_XGravityEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XResizeRequestEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub width: libc::c_int, - pub height: libc::c_int, + pub width: c_int, + pub height: c_int, } #[test] fn bindgen_test_layout_XResizeRequestEvent() { @@ -31073,20 +31086,20 @@ fn bindgen_test_layout_XResizeRequestEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XConfigureRequestEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub parent: Window, pub window: Window, - pub x: libc::c_int, - pub y: libc::c_int, - pub width: libc::c_int, - pub height: libc::c_int, - pub border_width: libc::c_int, + pub x: c_int, + pub y: c_int, + pub width: c_int, + pub height: c_int, + pub border_width: c_int, pub above: Window, - pub detail: libc::c_int, - pub value_mask: libc::c_ulong, + pub detail: c_int, + pub value_mask: c_ulong, } #[test] fn bindgen_test_layout_XConfigureRequestEvent() { @@ -31250,13 +31263,13 @@ fn bindgen_test_layout_XConfigureRequestEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XCirculateEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub event: Window, pub window: Window, - pub place: libc::c_int, + pub place: c_int, } #[test] fn bindgen_test_layout_XCirculateEvent() { @@ -31344,13 +31357,13 @@ fn bindgen_test_layout_XCirculateEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XCirculateRequestEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub parent: Window, pub window: Window, - pub place: libc::c_int, + pub place: c_int, } #[test] fn bindgen_test_layout_XCirculateRequestEvent() { @@ -31440,14 +31453,14 @@ fn bindgen_test_layout_XCirculateRequestEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XPropertyEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub atom: Atom, pub time: Time, - pub state: libc::c_int, + pub state: c_int, } #[test] fn bindgen_test_layout_XPropertyEvent() { @@ -31545,9 +31558,9 @@ fn bindgen_test_layout_XPropertyEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XSelectionClearEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub selection: Atom, @@ -31641,9 +31654,9 @@ fn bindgen_test_layout_XSelectionClearEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XSelectionRequestEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub owner: Window, pub requestor: Window, @@ -31776,9 +31789,9 @@ fn bindgen_test_layout_XSelectionRequestEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XSelectionEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub requestor: Window, pub selection: Atom, @@ -31892,14 +31905,14 @@ fn bindgen_test_layout_XSelectionEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XColormapEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub colormap: Colormap, - pub new: libc::c_int, - pub state: libc::c_int, + pub new: c_int, + pub state: c_int, } #[test] fn bindgen_test_layout_XColormapEvent() { @@ -31997,21 +32010,21 @@ fn bindgen_test_layout_XColormapEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XClientMessageEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, pub message_type: Atom, - pub format: libc::c_int, + pub format: c_int, pub data: XClientMessageEvent__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union XClientMessageEvent__bindgen_ty_1 { - pub b: [libc::c_char; 20usize], - pub s: [libc::c_short; 10usize], - pub l: [libc::c_long; 5usize], + pub b: [c_char; 20usize], + pub s: [c_short; 10usize], + pub l: [c_long; 5usize], _bindgen_union_align: [u64; 5usize], } #[test] @@ -32164,14 +32177,14 @@ fn bindgen_test_layout_XClientMessageEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XMappingEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, - pub request: libc::c_int, - pub first_keycode: libc::c_int, - pub count: libc::c_int, + pub request: c_int, + pub first_keycode: c_int, + pub count: c_int, } #[test] fn bindgen_test_layout_XMappingEvent() { @@ -32269,13 +32282,13 @@ fn bindgen_test_layout_XMappingEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XErrorEvent { - pub type_: libc::c_int, + pub type_: c_int, pub display: *mut Display, pub resourceid: XID, - pub serial: libc::c_ulong, - pub error_code: libc::c_uchar, - pub request_code: libc::c_uchar, - pub minor_code: libc::c_uchar, + pub serial: c_ulong, + pub error_code: c_uchar, + pub request_code: c_uchar, + pub minor_code: c_uchar, } #[test] fn bindgen_test_layout_XErrorEvent() { @@ -32363,9 +32376,9 @@ fn bindgen_test_layout_XErrorEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XAnyEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, pub window: Window, } @@ -32435,12 +32448,12 @@ fn bindgen_test_layout_XAnyEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XGenericEvent { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, - pub extension: libc::c_int, - pub evtype: libc::c_int, + pub extension: c_int, + pub evtype: c_int, } #[test] fn bindgen_test_layout_XGenericEvent() { @@ -32518,14 +32531,14 @@ fn bindgen_test_layout_XGenericEvent() { #[repr(C)] #[derive(Copy, Clone)] pub struct XGenericEventCookie { - pub type_: libc::c_int, - pub serial: libc::c_ulong, - pub send_event: libc::c_int, + pub type_: c_int, + pub serial: c_ulong, + pub send_event: c_int, pub display: *mut Display, - pub extension: libc::c_int, - pub evtype: libc::c_int, - pub cookie: libc::c_uint, - pub data: *mut libc::c_void, + pub extension: c_int, + pub evtype: c_int, + pub cookie: c_uint, + pub data: *mut c_void, } #[test] fn bindgen_test_layout_XGenericEventCookie() { @@ -32623,7 +32636,7 @@ fn bindgen_test_layout_XGenericEventCookie() { #[repr(C)] #[derive(Copy, Clone)] pub union _XEvent { - pub type_: libc::c_int, + pub type_: c_int, pub xany: XAnyEvent, pub xkey: XKeyEvent, pub xbutton: XButtonEvent, @@ -32657,7 +32670,7 @@ pub union _XEvent { pub xkeymap: XKeymapEvent, pub xgeneric: XGenericEvent, pub xcookie: XGenericEventCookie, - pub pad: [libc::c_long; 24usize], + pub pad: [c_long; 24usize], _bindgen_union_align: [u64; 24usize], } #[test] @@ -33027,12 +33040,12 @@ pub type XEvent = _XEvent; #[repr(C)] #[derive(Copy, Clone)] pub struct XCharStruct { - pub lbearing: libc::c_short, - pub rbearing: libc::c_short, - pub width: libc::c_short, - pub ascent: libc::c_short, - pub descent: libc::c_short, - pub attributes: libc::c_ushort, + pub lbearing: c_short, + pub rbearing: c_short, + pub width: c_short, + pub ascent: c_short, + pub descent: c_short, + pub attributes: c_ushort, } #[test] fn bindgen_test_layout_XCharStruct() { @@ -33111,7 +33124,7 @@ fn bindgen_test_layout_XCharStruct() { #[derive(Copy, Clone)] pub struct XFontProp { pub name: Atom, - pub card32: libc::c_ulong, + pub card32: c_ulong, } #[test] fn bindgen_test_layout_XFontProp() { @@ -33151,20 +33164,20 @@ fn bindgen_test_layout_XFontProp() { pub struct XFontStruct { pub ext_data: *mut XExtData, pub fid: Font, - pub direction: libc::c_uint, - pub min_char_or_byte2: libc::c_uint, - pub max_char_or_byte2: libc::c_uint, - pub min_byte1: libc::c_uint, - pub max_byte1: libc::c_uint, - pub all_chars_exist: libc::c_int, - pub default_char: libc::c_uint, - pub n_properties: libc::c_int, + pub direction: c_uint, + pub min_char_or_byte2: c_uint, + pub max_char_or_byte2: c_uint, + pub min_byte1: c_uint, + pub max_byte1: c_uint, + pub all_chars_exist: c_int, + pub default_char: c_uint, + pub n_properties: c_int, pub properties: *mut XFontProp, pub min_bounds: XCharStruct, pub max_bounds: XCharStruct, pub per_char: *mut XCharStruct, - pub ascent: libc::c_int, - pub descent: libc::c_int, + pub ascent: c_int, + pub descent: c_int, } #[test] fn bindgen_test_layout_XFontStruct() { @@ -33342,9 +33355,9 @@ fn bindgen_test_layout_XFontStruct() { #[repr(C)] #[derive(Copy, Clone)] pub struct XTextItem { - pub chars: *mut libc::c_char, - pub nchars: libc::c_int, - pub delta: libc::c_int, + pub chars: *mut c_char, + pub nchars: c_int, + pub delta: c_int, pub font: Font, } #[test] @@ -33403,8 +33416,8 @@ fn bindgen_test_layout_XTextItem() { #[repr(C)] #[derive(Copy, Clone)] pub struct XChar2b { - pub byte1: libc::c_uchar, - pub byte2: libc::c_uchar, + pub byte1: c_uchar, + pub byte2: c_uchar, } #[test] fn bindgen_test_layout_XChar2b() { @@ -33443,8 +33456,8 @@ fn bindgen_test_layout_XChar2b() { #[derive(Copy, Clone)] pub struct XTextItem16 { pub chars: *mut XChar2b, - pub nchars: libc::c_int, - pub delta: libc::c_int, + pub nchars: c_int, + pub delta: c_int, pub font: Font, } #[test] @@ -33641,9 +33654,9 @@ pub type XFontSet = *mut _XOC; #[repr(C)] #[derive(Copy, Clone)] pub struct XmbTextItem { - pub chars: *mut libc::c_char, - pub nchars: libc::c_int, - pub delta: libc::c_int, + pub chars: *mut c_char, + pub nchars: c_int, + pub delta: c_int, pub font_set: XFontSet, } #[test] @@ -33703,8 +33716,8 @@ fn bindgen_test_layout_XmbTextItem() { #[derive(Copy, Clone)] pub struct XwcTextItem { pub chars: *mut wchar_t, - pub nchars: libc::c_int, - pub delta: libc::c_int, + pub nchars: c_int, + pub delta: c_int, pub font_set: XFontSet, } #[test] @@ -33763,8 +33776,8 @@ fn bindgen_test_layout_XwcTextItem() { #[repr(C)] #[derive(Copy, Clone)] pub struct XOMCharSetList { - pub charset_count: libc::c_int, - pub charset_list: *mut *mut libc::c_char, + pub charset_count: c_int, + pub charset_list: *mut *mut c_char, } #[test] fn bindgen_test_layout_XOMCharSetList() { @@ -33811,7 +33824,7 @@ pub enum XOrientation { #[repr(C)] #[derive(Copy, Clone)] pub struct XOMOrientation { - pub num_orientation: libc::c_int, + pub num_orientation: c_int, pub orientation: *mut XOrientation, } #[test] @@ -33850,9 +33863,9 @@ fn bindgen_test_layout_XOMOrientation() { #[repr(C)] #[derive(Copy, Clone)] pub struct XOMFontInfo { - pub num_font: libc::c_int, + pub num_font: c_int, pub font_struct_list: *mut *mut XFontStruct, - pub font_name_list: *mut *mut libc::c_char, + pub font_name_list: *mut *mut c_char, } #[test] fn bindgen_test_layout_XOMFontInfo() { @@ -33912,16 +33925,16 @@ pub type XIC = *mut _XIC; pub type XIMProc = ::core::option::Option; pub type XICProc = ::core::option::Option< - unsafe extern "C" fn(arg1: XIC, arg2: XPointer, arg3: XPointer) -> libc::c_int, + unsafe extern "C" fn(arg1: XIC, arg2: XPointer, arg3: XPointer) -> c_int, >; pub type XIDProc = ::core::option::Option< unsafe extern "C" fn(arg1: *mut Display, arg2: XPointer, arg3: XPointer), >; -pub type XIMStyle = libc::c_ulong; +pub type XIMStyle = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct XIMStyles { - pub count_styles: libc::c_ushort, + pub count_styles: c_ushort, pub supported_styles: *mut XIMStyle, } #[test] @@ -33957,7 +33970,7 @@ fn bindgen_test_layout_XIMStyles() { ) ); } -pub type XVaNestedList = *mut libc::c_void; +pub type XVaNestedList = *mut c_void; #[repr(C)] #[derive(Copy, Clone)] pub struct XIMCallback { @@ -34036,19 +34049,19 @@ fn bindgen_test_layout_XICCallback() { ) ); } -pub type XIMFeedback = libc::c_ulong; +pub type XIMFeedback = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMText { - pub length: libc::c_ushort, + pub length: c_ushort, pub feedback: *mut XIMFeedback, - pub encoding_is_wchar: libc::c_int, + pub encoding_is_wchar: c_int, pub string: _XIMText__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _XIMText__bindgen_ty_1 { - pub multi_byte: *mut libc::c_char, + pub multi_byte: *mut c_char, pub wide_char: *mut wchar_t, _bindgen_union_align: u64, } @@ -34143,7 +34156,7 @@ fn bindgen_test_layout__XIMText() { ); } pub type XIMText = _XIMText; -pub type XIMPreeditState = libc::c_ulong; +pub type XIMPreeditState = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMPreeditStateNotifyCallbackStruct { @@ -34182,20 +34195,20 @@ fn bindgen_test_layout__XIMPreeditStateNotifyCallbackStruct() { ); } pub type XIMPreeditStateNotifyCallbackStruct = _XIMPreeditStateNotifyCallbackStruct; -pub type XIMResetState = libc::c_ulong; -pub type XIMStringConversionFeedback = libc::c_ulong; +pub type XIMResetState = c_ulong; +pub type XIMStringConversionFeedback = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMStringConversionText { - pub length: libc::c_ushort, + pub length: c_ushort, pub feedback: *mut XIMStringConversionFeedback, - pub encoding_is_wchar: libc::c_int, + pub encoding_is_wchar: c_int, pub string: _XIMStringConversionText__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _XIMStringConversionText__bindgen_ty_1 { - pub mbs: *mut libc::c_char, + pub mbs: *mut c_char, pub wcs: *mut wchar_t, _bindgen_union_align: u64, } @@ -34307,9 +34320,9 @@ fn bindgen_test_layout__XIMStringConversionText() { ); } pub type XIMStringConversionText = _XIMStringConversionText; -pub type XIMStringConversionPosition = libc::c_ushort; -pub type XIMStringConversionType = libc::c_ushort; -pub type XIMStringConversionOperation = libc::c_ushort; +pub type XIMStringConversionPosition = c_ushort; +pub type XIMStringConversionType = c_ushort; +pub type XIMStringConversionOperation = c_ushort; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum XIMCaretDirection { @@ -34332,7 +34345,7 @@ pub struct _XIMStringConversionCallbackStruct { pub position: XIMStringConversionPosition, pub direction: XIMCaretDirection, pub operation: XIMStringConversionOperation, - pub factor: libc::c_ushort, + pub factor: c_ushort, pub text: *mut XIMStringConversionText, } #[test] @@ -34420,9 +34433,9 @@ pub type XIMStringConversionCallbackStruct = _XIMStringConversionCallbackStruct; #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMPreeditDrawCallbackStruct { - pub caret: libc::c_int, - pub chg_first: libc::c_int, - pub chg_length: libc::c_int, + pub caret: c_int, + pub chg_first: c_int, + pub chg_length: c_int, pub text: *mut XIMText, } #[test] @@ -34499,7 +34512,7 @@ pub enum XIMCaretStyle { #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMPreeditCaretCallbackStruct { - pub position: libc::c_int, + pub position: c_int, pub direction: XIMCaretDirection, pub style: XIMCaretStyle, } @@ -34661,8 +34674,8 @@ pub type XIMStatusDrawCallbackStruct = _XIMStatusDrawCallbackStruct; #[derive(Copy, Clone)] pub struct _XIMHotKeyTrigger { pub keysym: KeySym, - pub modifier: libc::c_int, - pub modifier_mask: libc::c_int, + pub modifier: c_int, + pub modifier_mask: c_int, } #[test] fn bindgen_test_layout__XIMHotKeyTrigger() { @@ -34713,7 +34726,7 @@ pub type XIMHotKeyTrigger = _XIMHotKeyTrigger; #[repr(C)] #[derive(Copy, Clone)] pub struct _XIMHotKeyTriggers { - pub num_hot_key: libc::c_int, + pub num_hot_key: c_int, pub key: *mut XIMHotKeyTrigger, } #[test] @@ -34750,12 +34763,12 @@ fn bindgen_test_layout__XIMHotKeyTriggers() { ); } pub type XIMHotKeyTriggers = _XIMHotKeyTriggers; -pub type XIMHotKeyState = libc::c_ulong; +pub type XIMHotKeyState = c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub struct XIMValuesList { - pub count_values: libc::c_ushort, - pub supported_values: *mut *mut libc::c_char, + pub count_values: c_ushort, + pub supported_values: *mut *mut c_char, } #[test] fn bindgen_test_layout_XIMValuesList() { @@ -34791,10 +34804,10 @@ fn bindgen_test_layout_XIMValuesList() { ); } extern "C" { - pub static mut _Xdebug: libc::c_int; + pub static mut _Xdebug: c_int; } extern "C" { - pub fn XLoadQueryFont(arg1: *mut Display, arg2: *const libc::c_char) -> *mut XFontStruct; + pub fn XLoadQueryFont(arg1: *mut Display, arg2: *const c_char) -> *mut XFontStruct; } extern "C" { pub fn XQueryFont(arg1: *mut Display, arg2: XID) -> *mut XFontStruct; @@ -34805,14 +34818,14 @@ extern "C" { arg2: Window, arg3: Time, arg4: Time, - arg5: *mut libc::c_int, + arg5: *mut c_int, ) -> *mut XTimeCoord; } extern "C" { pub fn XDeleteModifiermapEntry( arg1: *mut XModifierKeymap, arg2: KeyCode, - arg3: libc::c_int, + arg3: c_int, ) -> *mut XModifierKeymap; } extern "C" { @@ -34822,126 +34835,126 @@ extern "C" { pub fn XInsertModifiermapEntry( arg1: *mut XModifierKeymap, arg2: KeyCode, - arg3: libc::c_int, + arg3: c_int, ) -> *mut XModifierKeymap; } extern "C" { - pub fn XNewModifiermap(arg1: libc::c_int) -> *mut XModifierKeymap; + pub fn XNewModifiermap(arg1: c_int) -> *mut XModifierKeymap; } extern "C" { pub fn XCreateImage( arg1: *mut Display, arg2: *mut Visual, - arg3: libc::c_uint, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: *mut libc::c_char, - arg7: libc::c_uint, - arg8: libc::c_uint, - arg9: libc::c_int, - arg10: libc::c_int, + arg3: c_uint, + arg4: c_int, + arg5: c_int, + arg6: *mut c_char, + arg7: c_uint, + arg8: c_uint, + arg9: c_int, + arg10: c_int, ) -> *mut XImage; } extern "C" { - pub fn XInitImage(arg1: *mut XImage) -> libc::c_int; + pub fn XInitImage(arg1: *mut XImage) -> c_int; } extern "C" { pub fn XGetImage( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_ulong, - arg8: libc::c_int, + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + arg7: c_ulong, + arg8: c_int, ) -> *mut XImage; } extern "C" { pub fn XGetSubImage( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_ulong, - arg8: libc::c_int, + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + arg7: c_ulong, + arg8: c_int, arg9: *mut XImage, - arg10: libc::c_int, - arg11: libc::c_int, + arg10: c_int, + arg11: c_int, ) -> *mut XImage; } extern "C" { - pub fn XOpenDisplay(arg1: *const libc::c_char) -> *mut Display; + pub fn XOpenDisplay(arg1: *const c_char) -> *mut Display; } extern "C" { pub fn XrmInitialize(); } extern "C" { - pub fn XFetchBytes(arg1: *mut Display, arg2: *mut libc::c_int) -> *mut libc::c_char; + pub fn XFetchBytes(arg1: *mut Display, arg2: *mut c_int) -> *mut c_char; } extern "C" { pub fn XFetchBuffer( arg1: *mut Display, - arg2: *mut libc::c_int, - arg3: libc::c_int, - ) -> *mut libc::c_char; + arg2: *mut c_int, + arg3: c_int, + ) -> *mut c_char; } extern "C" { - pub fn XGetAtomName(arg1: *mut Display, arg2: Atom) -> *mut libc::c_char; + pub fn XGetAtomName(arg1: *mut Display, arg2: Atom) -> *mut c_char; } extern "C" { pub fn XGetAtomNames( arg1: *mut Display, arg2: *mut Atom, - arg3: libc::c_int, - arg4: *mut *mut libc::c_char, - ) -> libc::c_int; + arg3: c_int, + arg4: *mut *mut c_char, + ) -> c_int; } extern "C" { pub fn XGetDefault( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: *const libc::c_char, - ) -> *mut libc::c_char; + arg2: *const c_char, + arg3: *const c_char, + ) -> *mut c_char; } extern "C" { - pub fn XDisplayName(arg1: *const libc::c_char) -> *mut libc::c_char; + pub fn XDisplayName(arg1: *const c_char) -> *mut c_char; } extern "C" { - pub fn XKeysymToString(arg1: KeySym) -> *mut libc::c_char; + pub fn XKeysymToString(arg1: KeySym) -> *mut c_char; } extern "C" { pub fn XSynchronize( arg1: *mut Display, - arg2: libc::c_int, + arg2: c_int, ) -> ::core::option::Option< - unsafe extern "C" fn(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int, + unsafe extern "C" fn(arg1: *mut Display, arg2: c_int) -> c_int, >; } extern "C" { pub fn XSetAfterFunction( arg1: *mut Display, - arg2: ::core::option::Option libc::c_int>, + arg2: ::core::option::Option c_int>, ) -> ::core::option::Option< unsafe extern "C" fn( arg1: *mut Display, - arg2: ::core::option::Option libc::c_int>, - ) -> libc::c_int, + arg2: ::core::option::Option c_int>, + ) -> c_int, >; } extern "C" { - pub fn XInternAtom(arg1: *mut Display, arg2: *const libc::c_char, arg3: libc::c_int) -> Atom; + pub fn XInternAtom(arg1: *mut Display, arg2: *const c_char, arg3: c_int) -> Atom; } extern "C" { pub fn XInternAtoms( arg1: *mut Display, - arg2: *mut *mut libc::c_char, - arg3: libc::c_int, - arg4: libc::c_int, + arg2: *mut *mut c_char, + arg3: c_int, + arg4: c_int, arg5: *mut Atom, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCopyColormapAndFree(arg1: *mut Display, arg2: Colormap) -> Colormap; @@ -34951,7 +34964,7 @@ extern "C" { arg1: *mut Display, arg2: Window, arg3: *mut Visual, - arg4: libc::c_int, + arg4: c_int, ) -> Colormap; } extern "C" { @@ -34961,8 +34974,8 @@ extern "C" { arg3: Pixmap, arg4: *mut XColor, arg5: *mut XColor, - arg6: libc::c_uint, - arg7: libc::c_uint, + arg6: c_uint, + arg7: c_uint, ) -> Cursor; } extern "C" { @@ -34970,23 +34983,23 @@ extern "C" { arg1: *mut Display, arg2: Font, arg3: Font, - arg4: libc::c_uint, - arg5: libc::c_uint, + arg4: c_uint, + arg5: c_uint, arg6: *const XColor, arg7: *const XColor, ) -> Cursor; } extern "C" { - pub fn XCreateFontCursor(arg1: *mut Display, arg2: libc::c_uint) -> Cursor; + pub fn XCreateFontCursor(arg1: *mut Display, arg2: c_uint) -> Cursor; } extern "C" { - pub fn XLoadFont(arg1: *mut Display, arg2: *const libc::c_char) -> Font; + pub fn XLoadFont(arg1: *mut Display, arg2: *const c_char) -> Font; } extern "C" { pub fn XCreateGC( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_ulong, + arg3: c_ulong, arg4: *mut XGCValues, ) -> GC; } @@ -35000,43 +35013,43 @@ extern "C" { pub fn XCreatePixmap( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_uint, - arg4: libc::c_uint, - arg5: libc::c_uint, + arg3: c_uint, + arg4: c_uint, + arg5: c_uint, ) -> Pixmap; } extern "C" { pub fn XCreateBitmapFromData( arg1: *mut Display, arg2: Drawable, - arg3: *const libc::c_char, - arg4: libc::c_uint, - arg5: libc::c_uint, + arg3: *const c_char, + arg4: c_uint, + arg5: c_uint, ) -> Pixmap; } extern "C" { pub fn XCreatePixmapFromBitmapData( arg1: *mut Display, arg2: Drawable, - arg3: *mut libc::c_char, - arg4: libc::c_uint, - arg5: libc::c_uint, - arg6: libc::c_ulong, - arg7: libc::c_ulong, - arg8: libc::c_uint, + arg3: *mut c_char, + arg4: c_uint, + arg5: c_uint, + arg6: c_ulong, + arg7: c_ulong, + arg8: c_uint, ) -> Pixmap; } extern "C" { pub fn XCreateSimpleWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_ulong, - arg9: libc::c_ulong, + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + arg7: c_uint, + arg8: c_ulong, + arg9: c_ulong, ) -> Window; } extern "C" { @@ -35046,15 +35059,15 @@ extern "C" { pub fn XCreateWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_int, - arg9: libc::c_uint, + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + arg7: c_uint, + arg8: c_int, + arg9: c_uint, arg10: *mut Visual, - arg11: libc::c_ulong, + arg11: c_ulong, arg12: *mut XSetWindowAttributes, ) -> Window; } @@ -35062,79 +35075,79 @@ extern "C" { pub fn XListInstalledColormaps( arg1: *mut Display, arg2: Window, - arg3: *mut libc::c_int, + arg3: *mut c_int, ) -> *mut Colormap; } extern "C" { pub fn XListFonts( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: libc::c_int, - arg4: *mut libc::c_int, - ) -> *mut *mut libc::c_char; + arg2: *const c_char, + arg3: c_int, + arg4: *mut c_int, + ) -> *mut *mut c_char; } extern "C" { pub fn XListFontsWithInfo( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: libc::c_int, - arg4: *mut libc::c_int, + arg2: *const c_char, + arg3: c_int, + arg4: *mut c_int, arg5: *mut *mut XFontStruct, - ) -> *mut *mut libc::c_char; + ) -> *mut *mut c_char; } extern "C" { - pub fn XGetFontPath(arg1: *mut Display, arg2: *mut libc::c_int) -> *mut *mut libc::c_char; + pub fn XGetFontPath(arg1: *mut Display, arg2: *mut c_int) -> *mut *mut c_char; } extern "C" { - pub fn XListExtensions(arg1: *mut Display, arg2: *mut libc::c_int) -> *mut *mut libc::c_char; + pub fn XListExtensions(arg1: *mut Display, arg2: *mut c_int) -> *mut *mut c_char; } extern "C" { - pub fn XListProperties(arg1: *mut Display, arg2: Window, arg3: *mut libc::c_int) -> *mut Atom; + pub fn XListProperties(arg1: *mut Display, arg2: Window, arg3: *mut c_int) -> *mut Atom; } extern "C" { pub fn XListHosts( arg1: *mut Display, - arg2: *mut libc::c_int, - arg3: *mut libc::c_int, + arg2: *mut c_int, + arg3: *mut c_int, ) -> *mut XHostAddress; } extern "C" { - pub fn XKeycodeToKeysym(arg1: *mut Display, arg2: KeyCode, arg3: libc::c_int) -> KeySym; + pub fn XKeycodeToKeysym(arg1: *mut Display, arg2: KeyCode, arg3: c_int) -> KeySym; } extern "C" { - pub fn XLookupKeysym(arg1: *mut XKeyEvent, arg2: libc::c_int) -> KeySym; + pub fn XLookupKeysym(arg1: *mut XKeyEvent, arg2: c_int) -> KeySym; } extern "C" { pub fn XGetKeyboardMapping( arg1: *mut Display, arg2: KeyCode, - arg3: libc::c_int, - arg4: *mut libc::c_int, + arg3: c_int, + arg4: *mut c_int, ) -> *mut KeySym; } extern "C" { - pub fn XStringToKeysym(arg1: *const libc::c_char) -> KeySym; + pub fn XStringToKeysym(arg1: *const c_char) -> KeySym; } extern "C" { - pub fn XMaxRequestSize(arg1: *mut Display) -> libc::c_long; + pub fn XMaxRequestSize(arg1: *mut Display) -> c_long; } extern "C" { - pub fn XExtendedMaxRequestSize(arg1: *mut Display) -> libc::c_long; + pub fn XExtendedMaxRequestSize(arg1: *mut Display) -> c_long; } extern "C" { - pub fn XResourceManagerString(arg1: *mut Display) -> *mut libc::c_char; + pub fn XResourceManagerString(arg1: *mut Display) -> *mut c_char; } extern "C" { - pub fn XScreenResourceString(arg1: *mut Screen) -> *mut libc::c_char; + pub fn XScreenResourceString(arg1: *mut Screen) -> *mut c_char; } extern "C" { - pub fn XDisplayMotionBufferSize(arg1: *mut Display) -> libc::c_ulong; + pub fn XDisplayMotionBufferSize(arg1: *mut Display) -> c_ulong; } extern "C" { pub fn XVisualIDFromVisual(arg1: *mut Visual) -> VisualID; } extern "C" { - pub fn XInitThreads() -> libc::c_int; + pub fn XInitThreads() -> c_int; } extern "C" { pub fn XLockDisplay(arg1: *mut Display); @@ -35143,19 +35156,19 @@ extern "C" { pub fn XUnlockDisplay(arg1: *mut Display); } extern "C" { - pub fn XInitExtension(arg1: *mut Display, arg2: *const libc::c_char) -> *mut XExtCodes; + pub fn XInitExtension(arg1: *mut Display, arg2: *const c_char) -> *mut XExtCodes; } extern "C" { pub fn XAddExtension(arg1: *mut Display) -> *mut XExtCodes; } extern "C" { - pub fn XFindOnExtensionList(arg1: *mut *mut XExtData, arg2: libc::c_int) -> *mut XExtData; + pub fn XFindOnExtensionList(arg1: *mut *mut XExtData, arg2: c_int) -> *mut XExtData; } extern "C" { pub fn XEHeadOfExtensionList(arg1: XEDataObject) -> *mut *mut XExtData; } extern "C" { - pub fn XRootWindow(arg1: *mut Display, arg2: libc::c_int) -> Window; + pub fn XRootWindow(arg1: *mut Display, arg2: c_int) -> Window; } extern "C" { pub fn XDefaultRootWindow(arg1: *mut Display) -> Window; @@ -35164,46 +35177,46 @@ extern "C" { pub fn XRootWindowOfScreen(arg1: *mut Screen) -> Window; } extern "C" { - pub fn XDefaultVisual(arg1: *mut Display, arg2: libc::c_int) -> *mut Visual; + pub fn XDefaultVisual(arg1: *mut Display, arg2: c_int) -> *mut Visual; } extern "C" { pub fn XDefaultVisualOfScreen(arg1: *mut Screen) -> *mut Visual; } extern "C" { - pub fn XDefaultGC(arg1: *mut Display, arg2: libc::c_int) -> GC; + pub fn XDefaultGC(arg1: *mut Display, arg2: c_int) -> GC; } extern "C" { pub fn XDefaultGCOfScreen(arg1: *mut Screen) -> GC; } extern "C" { - pub fn XBlackPixel(arg1: *mut Display, arg2: libc::c_int) -> libc::c_ulong; + pub fn XBlackPixel(arg1: *mut Display, arg2: c_int) -> c_ulong; } extern "C" { - pub fn XWhitePixel(arg1: *mut Display, arg2: libc::c_int) -> libc::c_ulong; + pub fn XWhitePixel(arg1: *mut Display, arg2: c_int) -> c_ulong; } extern "C" { - pub fn XAllPlanes() -> libc::c_ulong; + pub fn XAllPlanes() -> c_ulong; } extern "C" { - pub fn XBlackPixelOfScreen(arg1: *mut Screen) -> libc::c_ulong; + pub fn XBlackPixelOfScreen(arg1: *mut Screen) -> c_ulong; } extern "C" { - pub fn XWhitePixelOfScreen(arg1: *mut Screen) -> libc::c_ulong; + pub fn XWhitePixelOfScreen(arg1: *mut Screen) -> c_ulong; } extern "C" { - pub fn XNextRequest(arg1: *mut Display) -> libc::c_ulong; + pub fn XNextRequest(arg1: *mut Display) -> c_ulong; } extern "C" { - pub fn XLastKnownRequestProcessed(arg1: *mut Display) -> libc::c_ulong; + pub fn XLastKnownRequestProcessed(arg1: *mut Display) -> c_ulong; } extern "C" { - pub fn XServerVendor(arg1: *mut Display) -> *mut libc::c_char; + pub fn XServerVendor(arg1: *mut Display) -> *mut c_char; } extern "C" { - pub fn XDisplayString(arg1: *mut Display) -> *mut libc::c_char; + pub fn XDisplayString(arg1: *mut Display) -> *mut c_char; } extern "C" { - pub fn XDefaultColormap(arg1: *mut Display, arg2: libc::c_int) -> Colormap; + pub fn XDefaultColormap(arg1: *mut Display, arg2: c_int) -> Colormap; } extern "C" { pub fn XDefaultColormapOfScreen(arg1: *mut Screen) -> Colormap; @@ -35212,230 +35225,230 @@ extern "C" { pub fn XDisplayOfScreen(arg1: *mut Screen) -> *mut Display; } extern "C" { - pub fn XScreenOfDisplay(arg1: *mut Display, arg2: libc::c_int) -> *mut Screen; + pub fn XScreenOfDisplay(arg1: *mut Display, arg2: c_int) -> *mut Screen; } extern "C" { pub fn XDefaultScreenOfDisplay(arg1: *mut Display) -> *mut Screen; } extern "C" { - pub fn XEventMaskOfScreen(arg1: *mut Screen) -> libc::c_long; + pub fn XEventMaskOfScreen(arg1: *mut Screen) -> c_long; } extern "C" { - pub fn XScreenNumberOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XScreenNumberOfScreen(arg1: *mut Screen) -> c_int; } pub type XErrorHandler = ::core::option::Option< - unsafe extern "C" fn(arg1: *mut Display, arg2: *mut XErrorEvent) -> libc::c_int, + unsafe extern "C" fn(arg1: *mut Display, arg2: *mut XErrorEvent) -> c_int, >; extern "C" { pub fn XSetErrorHandler(arg1: XErrorHandler) -> XErrorHandler; } pub type XIOErrorHandler = - ::core::option::Option libc::c_int>; + ::core::option::Option c_int>; extern "C" { pub fn XSetIOErrorHandler(arg1: XIOErrorHandler) -> XIOErrorHandler; } pub type XIOErrorExitHandler = - ::core::option::Option; + ::core::option::Option; extern "C" { pub fn XSetIOErrorExitHandler( arg1: *mut Display, arg2: XIOErrorExitHandler, - arg3: *mut libc::c_void, + arg3: *mut c_void, ); } extern "C" { pub fn XListPixmapFormats( arg1: *mut Display, - arg2: *mut libc::c_int, + arg2: *mut c_int, ) -> *mut XPixmapFormatValues; } extern "C" { pub fn XListDepths( arg1: *mut Display, - arg2: libc::c_int, - arg3: *mut libc::c_int, - ) -> *mut libc::c_int; + arg2: c_int, + arg3: *mut c_int, + ) -> *mut c_int; } extern "C" { pub fn XReconfigureWMWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_uint, + arg3: c_int, + arg4: c_uint, arg5: *mut XWindowChanges, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XGetWMProtocols( arg1: *mut Display, arg2: Window, arg3: *mut *mut Atom, - arg4: *mut libc::c_int, - ) -> libc::c_int; + arg4: *mut c_int, + ) -> c_int; } extern "C" { pub fn XSetWMProtocols( arg1: *mut Display, arg2: Window, arg3: *mut Atom, - arg4: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + ) -> c_int; } extern "C" { - pub fn XIconifyWindow(arg1: *mut Display, arg2: Window, arg3: libc::c_int) -> libc::c_int; + pub fn XIconifyWindow(arg1: *mut Display, arg2: Window, arg3: c_int) -> c_int; } extern "C" { - pub fn XWithdrawWindow(arg1: *mut Display, arg2: Window, arg3: libc::c_int) -> libc::c_int; + pub fn XWithdrawWindow(arg1: *mut Display, arg2: Window, arg3: c_int) -> c_int; } extern "C" { pub fn XGetCommand( arg1: *mut Display, arg2: Window, - arg3: *mut *mut *mut libc::c_char, - arg4: *mut libc::c_int, - ) -> libc::c_int; + arg3: *mut *mut *mut c_char, + arg4: *mut c_int, + ) -> c_int; } extern "C" { pub fn XGetWMColormapWindows( arg1: *mut Display, arg2: Window, arg3: *mut *mut Window, - arg4: *mut libc::c_int, - ) -> libc::c_int; + arg4: *mut c_int, + ) -> c_int; } extern "C" { pub fn XSetWMColormapWindows( arg1: *mut Display, arg2: Window, arg3: *mut Window, - arg4: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + ) -> c_int; } extern "C" { - pub fn XFreeStringList(arg1: *mut *mut libc::c_char); + pub fn XFreeStringList(arg1: *mut *mut c_char); } extern "C" { - pub fn XSetTransientForHint(arg1: *mut Display, arg2: Window, arg3: Window) -> libc::c_int; + pub fn XSetTransientForHint(arg1: *mut Display, arg2: Window, arg3: Window) -> c_int; } extern "C" { - pub fn XActivateScreenSaver(arg1: *mut Display) -> libc::c_int; + pub fn XActivateScreenSaver(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XAddHost(arg1: *mut Display, arg2: *mut XHostAddress) -> libc::c_int; + pub fn XAddHost(arg1: *mut Display, arg2: *mut XHostAddress) -> c_int; } extern "C" { - pub fn XAddHosts(arg1: *mut Display, arg2: *mut XHostAddress, arg3: libc::c_int) - -> libc::c_int; + pub fn XAddHosts(arg1: *mut Display, arg2: *mut XHostAddress, arg3: c_int) + -> c_int; } extern "C" { - pub fn XAddToExtensionList(arg1: *mut *mut _XExtData, arg2: *mut XExtData) -> libc::c_int; + pub fn XAddToExtensionList(arg1: *mut *mut _XExtData, arg2: *mut XExtData) -> c_int; } extern "C" { - pub fn XAddToSaveSet(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XAddToSaveSet(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XAllocColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> libc::c_int; + pub fn XAllocColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> c_int; } extern "C" { pub fn XAllocColorCells( arg1: *mut Display, arg2: Colormap, - arg3: libc::c_int, - arg4: *mut libc::c_ulong, - arg5: libc::c_uint, - arg6: *mut libc::c_ulong, - arg7: libc::c_uint, - ) -> libc::c_int; + arg3: c_int, + arg4: *mut c_ulong, + arg5: c_uint, + arg6: *mut c_ulong, + arg7: c_uint, + ) -> c_int; } extern "C" { pub fn XAllocColorPlanes( arg1: *mut Display, arg2: Colormap, - arg3: libc::c_int, - arg4: *mut libc::c_ulong, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_int, - arg8: libc::c_int, - arg9: *mut libc::c_ulong, - arg10: *mut libc::c_ulong, - arg11: *mut libc::c_ulong, - ) -> libc::c_int; + arg3: c_int, + arg4: *mut c_ulong, + arg5: c_int, + arg6: c_int, + arg7: c_int, + arg8: c_int, + arg9: *mut c_ulong, + arg10: *mut c_ulong, + arg11: *mut c_ulong, + ) -> c_int; } extern "C" { pub fn XAllocNamedColor( arg1: *mut Display, arg2: Colormap, - arg3: *const libc::c_char, + arg3: *const c_char, arg4: *mut XColor, arg5: *mut XColor, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XAllowEvents(arg1: *mut Display, arg2: libc::c_int, arg3: Time) -> libc::c_int; + pub fn XAllowEvents(arg1: *mut Display, arg2: c_int, arg3: Time) -> c_int; } extern "C" { - pub fn XAutoRepeatOff(arg1: *mut Display) -> libc::c_int; + pub fn XAutoRepeatOff(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XAutoRepeatOn(arg1: *mut Display) -> libc::c_int; + pub fn XAutoRepeatOn(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XBell(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XBell(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XBitmapBitOrder(arg1: *mut Display) -> libc::c_int; + pub fn XBitmapBitOrder(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XBitmapPad(arg1: *mut Display) -> libc::c_int; + pub fn XBitmapPad(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XBitmapUnit(arg1: *mut Display) -> libc::c_int; + pub fn XBitmapUnit(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XCellsOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XCellsOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { pub fn XChangeActivePointerGrab( arg1: *mut Display, - arg2: libc::c_uint, + arg2: c_uint, arg3: Cursor, arg4: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XChangeGC( arg1: *mut Display, arg2: GC, - arg3: libc::c_ulong, + arg3: c_ulong, arg4: *mut XGCValues, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XChangeKeyboardControl( arg1: *mut Display, - arg2: libc::c_ulong, + arg2: c_ulong, arg3: *mut XKeyboardControl, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XChangeKeyboardMapping( arg1: *mut Display, - arg2: libc::c_int, - arg3: libc::c_int, + arg2: c_int, + arg3: c_int, arg4: *mut KeySym, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XChangePointerControl( arg1: *mut Display, - arg2: libc::c_int, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_int, - ) -> libc::c_int; + arg2: c_int, + arg3: c_int, + arg4: c_int, + arg5: c_int, + arg6: c_int, + ) -> c_int; } extern "C" { pub fn XChangeProperty( @@ -35443,22 +35456,22 @@ extern "C" { arg2: Window, arg3: Atom, arg4: Atom, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: *const libc::c_uchar, - arg8: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: *const c_uchar, + arg8: c_int, + ) -> c_int; } extern "C" { - pub fn XChangeSaveSet(arg1: *mut Display, arg2: Window, arg3: libc::c_int) -> libc::c_int; + pub fn XChangeSaveSet(arg1: *mut Display, arg2: Window, arg3: c_int) -> c_int; } extern "C" { pub fn XChangeWindowAttributes( arg1: *mut Display, arg2: Window, - arg3: libc::c_ulong, + arg3: c_ulong, arg4: *mut XSetWindowAttributes, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCheckIfEvent( @@ -35469,78 +35482,78 @@ extern "C" { arg1: *mut Display, arg2: *mut XEvent, arg3: XPointer, - ) -> libc::c_int, + ) -> c_int, >, arg4: XPointer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCheckMaskEvent( arg1: *mut Display, - arg2: libc::c_long, + arg2: c_long, arg3: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCheckTypedEvent( arg1: *mut Display, - arg2: libc::c_int, + arg2: c_int, arg3: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCheckTypedWindowEvent( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, + arg3: c_int, arg4: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCheckWindowEvent( arg1: *mut Display, arg2: Window, - arg3: libc::c_long, + arg3: c_long, arg4: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XCirculateSubwindows(arg1: *mut Display, arg2: Window, arg3: libc::c_int) - -> libc::c_int; + pub fn XCirculateSubwindows(arg1: *mut Display, arg2: Window, arg3: c_int) + -> c_int; } extern "C" { - pub fn XCirculateSubwindowsDown(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XCirculateSubwindowsDown(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XCirculateSubwindowsUp(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XCirculateSubwindowsUp(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { pub fn XClearArea( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + arg7: c_int, + ) -> c_int; } extern "C" { - pub fn XClearWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XClearWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XCloseDisplay(arg1: *mut Display) -> libc::c_int; + pub fn XCloseDisplay(arg1: *mut Display) -> c_int; } extern "C" { pub fn XConfigureWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_uint, + arg3: c_uint, arg4: *mut XWindowChanges, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XConnectionNumber(arg1: *mut Display) -> libc::c_int; + pub fn XConnectionNumber(arg1: *mut Display) -> c_int; } extern "C" { pub fn XConvertSelection( @@ -35550,7 +35563,7 @@ extern "C" { arg4: Atom, arg5: Window, arg6: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XCopyArea( @@ -35558,16 +35571,16 @@ extern "C" { arg2: Drawable, arg3: Drawable, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_uint, - arg8: libc::c_uint, - arg9: libc::c_int, - arg10: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: c_uint, + arg8: c_uint, + arg9: c_int, + arg10: c_int, + ) -> c_int; } extern "C" { - pub fn XCopyGC(arg1: *mut Display, arg2: GC, arg3: libc::c_ulong, arg4: GC) -> libc::c_int; + pub fn XCopyGC(arg1: *mut Display, arg2: GC, arg3: c_ulong, arg4: GC) -> c_int; } extern "C" { pub fn XCopyPlane( @@ -35575,82 +35588,82 @@ extern "C" { arg2: Drawable, arg3: Drawable, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_uint, - arg8: libc::c_uint, - arg9: libc::c_int, - arg10: libc::c_int, - arg11: libc::c_ulong, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: c_uint, + arg8: c_uint, + arg9: c_int, + arg10: c_int, + arg11: c_ulong, + ) -> c_int; } extern "C" { - pub fn XDefaultDepth(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDefaultDepth(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XDefaultDepthOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XDefaultDepthOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XDefaultScreen(arg1: *mut Display) -> libc::c_int; + pub fn XDefaultScreen(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XDefineCursor(arg1: *mut Display, arg2: Window, arg3: Cursor) -> libc::c_int; + pub fn XDefineCursor(arg1: *mut Display, arg2: Window, arg3: Cursor) -> c_int; } extern "C" { - pub fn XDeleteProperty(arg1: *mut Display, arg2: Window, arg3: Atom) -> libc::c_int; + pub fn XDeleteProperty(arg1: *mut Display, arg2: Window, arg3: Atom) -> c_int; } extern "C" { - pub fn XDestroyWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XDestroyWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XDestroySubwindows(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XDestroySubwindows(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XDoesBackingStore(arg1: *mut Screen) -> libc::c_int; + pub fn XDoesBackingStore(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XDoesSaveUnders(arg1: *mut Screen) -> libc::c_int; + pub fn XDoesSaveUnders(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XDisableAccessControl(arg1: *mut Display) -> libc::c_int; + pub fn XDisableAccessControl(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XDisplayCells(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayCells(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XDisplayHeight(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayHeight(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XDisplayHeightMM(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayHeightMM(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XDisplayKeycodes( arg1: *mut Display, - arg2: *mut libc::c_int, - arg3: *mut libc::c_int, - ) -> libc::c_int; + arg2: *mut c_int, + arg3: *mut c_int, + ) -> c_int; } extern "C" { - pub fn XDisplayPlanes(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayPlanes(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XDisplayWidth(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayWidth(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XDisplayWidthMM(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XDisplayWidthMM(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XDrawArc( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_int, - arg9: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_uint, + arg8: c_int, + arg9: c_int, + ) -> c_int; } extern "C" { pub fn XDrawArcs( @@ -35658,41 +35671,41 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XArc, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XDrawImageString( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: *const libc::c_char, - arg7: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: *const c_char, + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawImageString16( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *const XChar2b, - arg7: libc::c_int, - ) -> libc::c_int; + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawLine( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_int, + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawLines( @@ -35700,18 +35713,18 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XPoint, - arg5: libc::c_int, - arg6: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + ) -> c_int; } extern "C" { pub fn XDrawPoint( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XDrawPoints( @@ -35719,20 +35732,20 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XPoint, - arg5: libc::c_int, - arg6: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + ) -> c_int; } extern "C" { pub fn XDrawRectangle( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_uint, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_uint, + ) -> c_int; } extern "C" { pub fn XDrawRectangles( @@ -35740,8 +35753,8 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XRectangle, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XDrawSegments( @@ -35749,78 +35762,78 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XSegment, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XDrawString( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: *const libc::c_char, - arg7: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: *const c_char, + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawString16( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *const XChar2b, - arg7: libc::c_int, - ) -> libc::c_int; + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawText( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *mut XTextItem, - arg7: libc::c_int, - ) -> libc::c_int; + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XDrawText16( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *mut XTextItem16, - arg7: libc::c_int, - ) -> libc::c_int; + arg7: c_int, + ) -> c_int; } extern "C" { - pub fn XEnableAccessControl(arg1: *mut Display) -> libc::c_int; + pub fn XEnableAccessControl(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XEventsQueued(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XEventsQueued(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XFetchName( arg1: *mut Display, arg2: Window, - arg3: *mut *mut libc::c_char, - ) -> libc::c_int; + arg3: *mut *mut c_char, + ) -> c_int; } extern "C" { pub fn XFillArc( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_int, - arg9: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_uint, + arg8: c_int, + arg9: c_int, + ) -> c_int; } extern "C" { pub fn XFillArcs( @@ -35828,8 +35841,8 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XArc, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XFillPolygon( @@ -35837,21 +35850,21 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XPoint, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XFillRectangle( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_uint, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_uint, + ) -> c_int; } extern "C" { pub fn XFillRectangles( @@ -35859,248 +35872,248 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XRectangle, - arg5: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + ) -> c_int; } extern "C" { - pub fn XFlush(arg1: *mut Display) -> libc::c_int; + pub fn XFlush(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XForceScreenSaver(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XForceScreenSaver(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XFree(arg1: *mut libc::c_void) -> libc::c_int; + pub fn XFree(arg1: *mut c_void) -> c_int; } extern "C" { - pub fn XFreeColormap(arg1: *mut Display, arg2: Colormap) -> libc::c_int; + pub fn XFreeColormap(arg1: *mut Display, arg2: Colormap) -> c_int; } extern "C" { pub fn XFreeColors( arg1: *mut Display, arg2: Colormap, - arg3: *mut libc::c_ulong, - arg4: libc::c_int, - arg5: libc::c_ulong, - ) -> libc::c_int; + arg3: *mut c_ulong, + arg4: c_int, + arg5: c_ulong, + ) -> c_int; } extern "C" { - pub fn XFreeCursor(arg1: *mut Display, arg2: Cursor) -> libc::c_int; + pub fn XFreeCursor(arg1: *mut Display, arg2: Cursor) -> c_int; } extern "C" { - pub fn XFreeExtensionList(arg1: *mut *mut libc::c_char) -> libc::c_int; + pub fn XFreeExtensionList(arg1: *mut *mut c_char) -> c_int; } extern "C" { - pub fn XFreeFont(arg1: *mut Display, arg2: *mut XFontStruct) -> libc::c_int; + pub fn XFreeFont(arg1: *mut Display, arg2: *mut XFontStruct) -> c_int; } extern "C" { pub fn XFreeFontInfo( - arg1: *mut *mut libc::c_char, + arg1: *mut *mut c_char, arg2: *mut XFontStruct, - arg3: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + ) -> c_int; } extern "C" { - pub fn XFreeFontNames(arg1: *mut *mut libc::c_char) -> libc::c_int; + pub fn XFreeFontNames(arg1: *mut *mut c_char) -> c_int; } extern "C" { - pub fn XFreeFontPath(arg1: *mut *mut libc::c_char) -> libc::c_int; + pub fn XFreeFontPath(arg1: *mut *mut c_char) -> c_int; } extern "C" { - pub fn XFreeGC(arg1: *mut Display, arg2: GC) -> libc::c_int; + pub fn XFreeGC(arg1: *mut Display, arg2: GC) -> c_int; } extern "C" { - pub fn XFreeModifiermap(arg1: *mut XModifierKeymap) -> libc::c_int; + pub fn XFreeModifiermap(arg1: *mut XModifierKeymap) -> c_int; } extern "C" { - pub fn XFreePixmap(arg1: *mut Display, arg2: Pixmap) -> libc::c_int; + pub fn XFreePixmap(arg1: *mut Display, arg2: Pixmap) -> c_int; } extern "C" { pub fn XGeometry( arg1: *mut Display, - arg2: libc::c_int, - arg3: *const libc::c_char, - arg4: *const libc::c_char, - arg5: libc::c_uint, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_int, - arg9: libc::c_int, - arg10: *mut libc::c_int, - arg11: *mut libc::c_int, - arg12: *mut libc::c_int, - arg13: *mut libc::c_int, - ) -> libc::c_int; + arg2: c_int, + arg3: *const c_char, + arg4: *const c_char, + arg5: c_uint, + arg6: c_uint, + arg7: c_uint, + arg8: c_int, + arg9: c_int, + arg10: *mut c_int, + arg11: *mut c_int, + arg12: *mut c_int, + arg13: *mut c_int, + ) -> c_int; } extern "C" { pub fn XGetErrorDatabaseText( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: *const libc::c_char, - arg4: *const libc::c_char, - arg5: *mut libc::c_char, - arg6: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: *const c_char, + arg4: *const c_char, + arg5: *mut c_char, + arg6: c_int, + ) -> c_int; } extern "C" { pub fn XGetErrorText( arg1: *mut Display, - arg2: libc::c_int, - arg3: *mut libc::c_char, - arg4: libc::c_int, - ) -> libc::c_int; + arg2: c_int, + arg3: *mut c_char, + arg4: c_int, + ) -> c_int; } extern "C" { pub fn XGetFontProperty( arg1: *mut XFontStruct, arg2: Atom, - arg3: *mut libc::c_ulong, - ) -> libc::c_int; + arg3: *mut c_ulong, + ) -> c_int; } extern "C" { pub fn XGetGCValues( arg1: *mut Display, arg2: GC, - arg3: libc::c_ulong, + arg3: c_ulong, arg4: *mut XGCValues, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XGetGeometry( arg1: *mut Display, arg2: Drawable, arg3: *mut Window, - arg4: *mut libc::c_int, - arg5: *mut libc::c_int, - arg6: *mut libc::c_uint, - arg7: *mut libc::c_uint, - arg8: *mut libc::c_uint, - arg9: *mut libc::c_uint, - ) -> libc::c_int; + arg4: *mut c_int, + arg5: *mut c_int, + arg6: *mut c_uint, + arg7: *mut c_uint, + arg8: *mut c_uint, + arg9: *mut c_uint, + ) -> c_int; } extern "C" { pub fn XGetIconName( arg1: *mut Display, arg2: Window, - arg3: *mut *mut libc::c_char, - ) -> libc::c_int; + arg3: *mut *mut c_char, + ) -> c_int; } extern "C" { pub fn XGetInputFocus( arg1: *mut Display, arg2: *mut Window, - arg3: *mut libc::c_int, - ) -> libc::c_int; + arg3: *mut c_int, + ) -> c_int; } extern "C" { - pub fn XGetKeyboardControl(arg1: *mut Display, arg2: *mut XKeyboardState) -> libc::c_int; + pub fn XGetKeyboardControl(arg1: *mut Display, arg2: *mut XKeyboardState) -> c_int; } extern "C" { pub fn XGetPointerControl( arg1: *mut Display, - arg2: *mut libc::c_int, - arg3: *mut libc::c_int, - arg4: *mut libc::c_int, - ) -> libc::c_int; + arg2: *mut c_int, + arg3: *mut c_int, + arg4: *mut c_int, + ) -> c_int; } extern "C" { pub fn XGetPointerMapping( arg1: *mut Display, - arg2: *mut libc::c_uchar, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *mut c_uchar, + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XGetScreenSaver( arg1: *mut Display, - arg2: *mut libc::c_int, - arg3: *mut libc::c_int, - arg4: *mut libc::c_int, - arg5: *mut libc::c_int, - ) -> libc::c_int; + arg2: *mut c_int, + arg3: *mut c_int, + arg4: *mut c_int, + arg5: *mut c_int, + ) -> c_int; } extern "C" { pub fn XGetTransientForHint(arg1: *mut Display, arg2: Window, arg3: *mut Window) - -> libc::c_int; + -> c_int; } extern "C" { pub fn XGetWindowProperty( arg1: *mut Display, arg2: Window, arg3: Atom, - arg4: libc::c_long, - arg5: libc::c_long, - arg6: libc::c_int, + arg4: c_long, + arg5: c_long, + arg6: c_int, arg7: Atom, arg8: *mut Atom, - arg9: *mut libc::c_int, - arg10: *mut libc::c_ulong, - arg11: *mut libc::c_ulong, - arg12: *mut *mut libc::c_uchar, - ) -> libc::c_int; + arg9: *mut c_int, + arg10: *mut c_ulong, + arg11: *mut c_ulong, + arg12: *mut *mut c_uchar, + ) -> c_int; } extern "C" { pub fn XGetWindowAttributes( arg1: *mut Display, arg2: Window, arg3: *mut XWindowAttributes, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XGrabButton( arg1: *mut Display, - arg2: libc::c_uint, - arg3: libc::c_uint, + arg2: c_uint, + arg3: c_uint, arg4: Window, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_int, - arg8: libc::c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_int, + arg8: c_int, arg9: Window, arg10: Cursor, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XGrabKey( arg1: *mut Display, - arg2: libc::c_int, - arg3: libc::c_uint, + arg2: c_int, + arg3: c_uint, arg4: Window, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_int, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: c_int, + ) -> c_int; } extern "C" { pub fn XGrabKeyboard( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_int, + arg3: c_int, + arg4: c_int, + arg5: c_int, arg6: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XGrabPointer( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_uint, - arg5: libc::c_int, - arg6: libc::c_int, + arg3: c_int, + arg4: c_uint, + arg5: c_int, + arg6: c_int, arg7: Window, arg8: Cursor, arg9: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XGrabServer(arg1: *mut Display) -> libc::c_int; + pub fn XGrabServer(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XHeightMMOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XHeightMMOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XHeightOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XHeightOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { pub fn XIfEvent( @@ -36111,96 +36124,96 @@ extern "C" { arg1: *mut Display, arg2: *mut XEvent, arg3: XPointer, - ) -> libc::c_int, + ) -> c_int, >, arg4: XPointer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XImageByteOrder(arg1: *mut Display) -> libc::c_int; + pub fn XImageByteOrder(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XInstallColormap(arg1: *mut Display, arg2: Colormap) -> libc::c_int; + pub fn XInstallColormap(arg1: *mut Display, arg2: Colormap) -> c_int; } extern "C" { pub fn XKeysymToKeycode(arg1: *mut Display, arg2: KeySym) -> KeyCode; } extern "C" { - pub fn XKillClient(arg1: *mut Display, arg2: XID) -> libc::c_int; + pub fn XKillClient(arg1: *mut Display, arg2: XID) -> c_int; } extern "C" { pub fn XLookupColor( arg1: *mut Display, arg2: Colormap, - arg3: *const libc::c_char, + arg3: *const c_char, arg4: *mut XColor, arg5: *mut XColor, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XLowerWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XLowerWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XMapRaised(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XMapRaised(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XMapSubwindows(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XMapSubwindows(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XMapWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XMapWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XMaskEvent(arg1: *mut Display, arg2: libc::c_long, arg3: *mut XEvent) -> libc::c_int; + pub fn XMaskEvent(arg1: *mut Display, arg2: c_long, arg3: *mut XEvent) -> c_int; } extern "C" { - pub fn XMaxCmapsOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XMaxCmapsOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XMinCmapsOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XMinCmapsOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { pub fn XMoveResizeWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_uint, - arg6: libc::c_uint, - ) -> libc::c_int; + arg3: c_int, + arg4: c_int, + arg5: c_uint, + arg6: c_uint, + ) -> c_int; } extern "C" { pub fn XMoveWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + arg4: c_int, + ) -> c_int; } extern "C" { - pub fn XNextEvent(arg1: *mut Display, arg2: *mut XEvent) -> libc::c_int; + pub fn XNextEvent(arg1: *mut Display, arg2: *mut XEvent) -> c_int; } extern "C" { - pub fn XNoOp(arg1: *mut Display) -> libc::c_int; + pub fn XNoOp(arg1: *mut Display) -> c_int; } extern "C" { pub fn XParseColor( arg1: *mut Display, arg2: Colormap, - arg3: *const libc::c_char, + arg3: *const c_char, arg4: *mut XColor, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XParseGeometry( - arg1: *const libc::c_char, - arg2: *mut libc::c_int, - arg3: *mut libc::c_int, - arg4: *mut libc::c_uint, - arg5: *mut libc::c_uint, - ) -> libc::c_int; + arg1: *const c_char, + arg2: *mut c_int, + arg3: *mut c_int, + arg4: *mut c_uint, + arg5: *mut c_uint, + ) -> c_int; } extern "C" { - pub fn XPeekEvent(arg1: *mut Display, arg2: *mut XEvent) -> libc::c_int; + pub fn XPeekEvent(arg1: *mut Display, arg2: *mut XEvent) -> c_int; } extern "C" { pub fn XPeekIfEvent( @@ -36211,25 +36224,25 @@ extern "C" { arg1: *mut Display, arg2: *mut XEvent, arg3: XPointer, - ) -> libc::c_int, + ) -> c_int, >, arg4: XPointer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XPending(arg1: *mut Display) -> libc::c_int; + pub fn XPending(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XPlanesOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XPlanesOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XProtocolRevision(arg1: *mut Display) -> libc::c_int; + pub fn XProtocolRevision(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XProtocolVersion(arg1: *mut Display) -> libc::c_int; + pub fn XProtocolVersion(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XPutBackEvent(arg1: *mut Display, arg2: *mut XEvent) -> libc::c_int; + pub fn XPutBackEvent(arg1: *mut Display, arg2: *mut XEvent) -> c_int; } extern "C" { pub fn XPutImage( @@ -36237,80 +36250,80 @@ extern "C" { arg2: Drawable, arg3: GC, arg4: *mut XImage, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: libc::c_int, - arg8: libc::c_int, - arg9: libc::c_uint, - arg10: libc::c_uint, - ) -> libc::c_int; + arg5: c_int, + arg6: c_int, + arg7: c_int, + arg8: c_int, + arg9: c_uint, + arg10: c_uint, + ) -> c_int; } extern "C" { - pub fn XQLength(arg1: *mut Display) -> libc::c_int; + pub fn XQLength(arg1: *mut Display) -> c_int; } extern "C" { pub fn XQueryBestCursor( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_uint, - arg4: libc::c_uint, - arg5: *mut libc::c_uint, - arg6: *mut libc::c_uint, - ) -> libc::c_int; + arg3: c_uint, + arg4: c_uint, + arg5: *mut c_uint, + arg6: *mut c_uint, + ) -> c_int; } extern "C" { pub fn XQueryBestSize( arg1: *mut Display, - arg2: libc::c_int, + arg2: c_int, arg3: Drawable, - arg4: libc::c_uint, - arg5: libc::c_uint, - arg6: *mut libc::c_uint, - arg7: *mut libc::c_uint, - ) -> libc::c_int; + arg4: c_uint, + arg5: c_uint, + arg6: *mut c_uint, + arg7: *mut c_uint, + ) -> c_int; } extern "C" { pub fn XQueryBestStipple( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_uint, - arg4: libc::c_uint, - arg5: *mut libc::c_uint, - arg6: *mut libc::c_uint, - ) -> libc::c_int; + arg3: c_uint, + arg4: c_uint, + arg5: *mut c_uint, + arg6: *mut c_uint, + ) -> c_int; } extern "C" { pub fn XQueryBestTile( arg1: *mut Display, arg2: Drawable, - arg3: libc::c_uint, - arg4: libc::c_uint, - arg5: *mut libc::c_uint, - arg6: *mut libc::c_uint, - ) -> libc::c_int; + arg3: c_uint, + arg4: c_uint, + arg5: *mut c_uint, + arg6: *mut c_uint, + ) -> c_int; } extern "C" { - pub fn XQueryColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> libc::c_int; + pub fn XQueryColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> c_int; } extern "C" { pub fn XQueryColors( arg1: *mut Display, arg2: Colormap, arg3: *mut XColor, - arg4: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + ) -> c_int; } extern "C" { pub fn XQueryExtension( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: *mut libc::c_int, - arg4: *mut libc::c_int, - arg5: *mut libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: *mut c_int, + arg4: *mut c_int, + arg5: *mut c_int, + ) -> c_int; } extern "C" { - pub fn XQueryKeymap(arg1: *mut Display, arg2: *mut libc::c_char) -> libc::c_int; + pub fn XQueryKeymap(arg1: *mut Display, arg2: *mut c_char) -> c_int; } extern "C" { pub fn XQueryPointer( @@ -36318,36 +36331,36 @@ extern "C" { arg2: Window, arg3: *mut Window, arg4: *mut Window, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, - arg7: *mut libc::c_int, - arg8: *mut libc::c_int, - arg9: *mut libc::c_uint, - ) -> libc::c_int; + arg5: *mut c_int, + arg6: *mut c_int, + arg7: *mut c_int, + arg8: *mut c_int, + arg9: *mut c_uint, + ) -> c_int; } extern "C" { pub fn XQueryTextExtents( arg1: *mut Display, arg2: XID, - arg3: *const libc::c_char, - arg4: libc::c_int, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, - arg7: *mut libc::c_int, + arg3: *const c_char, + arg4: c_int, + arg5: *mut c_int, + arg6: *mut c_int, + arg7: *mut c_int, arg8: *mut XCharStruct, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XQueryTextExtents16( arg1: *mut Display, arg2: XID, arg3: *const XChar2b, - arg4: libc::c_int, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, - arg7: *mut libc::c_int, + arg4: c_int, + arg5: *mut c_int, + arg6: *mut c_int, + arg7: *mut c_int, arg8: *mut XCharStruct, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XQueryTree( @@ -36356,43 +36369,43 @@ extern "C" { arg3: *mut Window, arg4: *mut Window, arg5: *mut *mut Window, - arg6: *mut libc::c_uint, - ) -> libc::c_int; + arg6: *mut c_uint, + ) -> c_int; } extern "C" { - pub fn XRaiseWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XRaiseWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { pub fn XReadBitmapFile( arg1: *mut Display, arg2: Drawable, - arg3: *const libc::c_char, - arg4: *mut libc::c_uint, - arg5: *mut libc::c_uint, + arg3: *const c_char, + arg4: *mut c_uint, + arg5: *mut c_uint, arg6: *mut Pixmap, - arg7: *mut libc::c_int, - arg8: *mut libc::c_int, - ) -> libc::c_int; + arg7: *mut c_int, + arg8: *mut c_int, + ) -> c_int; } extern "C" { pub fn XReadBitmapFileData( - arg1: *const libc::c_char, - arg2: *mut libc::c_uint, - arg3: *mut libc::c_uint, - arg4: *mut *mut libc::c_uchar, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, - ) -> libc::c_int; + arg1: *const c_char, + arg2: *mut c_uint, + arg3: *mut c_uint, + arg4: *mut *mut c_uchar, + arg5: *mut c_int, + arg6: *mut c_int, + ) -> c_int; } extern "C" { pub fn XRebindKeysym( arg1: *mut Display, arg2: KeySym, arg3: *mut KeySym, - arg4: libc::c_int, - arg5: *const libc::c_uchar, - arg6: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: *const c_uchar, + arg6: c_int, + ) -> c_int; } extern "C" { pub fn XRecolorCursor( @@ -36400,194 +36413,194 @@ extern "C" { arg2: Cursor, arg3: *mut XColor, arg4: *mut XColor, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XRefreshKeyboardMapping(arg1: *mut XMappingEvent) -> libc::c_int; + pub fn XRefreshKeyboardMapping(arg1: *mut XMappingEvent) -> c_int; } extern "C" { - pub fn XRemoveFromSaveSet(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XRemoveFromSaveSet(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XRemoveHost(arg1: *mut Display, arg2: *mut XHostAddress) -> libc::c_int; + pub fn XRemoveHost(arg1: *mut Display, arg2: *mut XHostAddress) -> c_int; } extern "C" { pub fn XRemoveHosts( arg1: *mut Display, arg2: *mut XHostAddress, - arg3: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XReparentWindow( arg1: *mut Display, arg2: Window, arg3: Window, - arg4: libc::c_int, - arg5: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + ) -> c_int; } extern "C" { - pub fn XResetScreenSaver(arg1: *mut Display) -> libc::c_int; + pub fn XResetScreenSaver(arg1: *mut Display) -> c_int; } extern "C" { pub fn XResizeWindow( arg1: *mut Display, arg2: Window, - arg3: libc::c_uint, - arg4: libc::c_uint, - ) -> libc::c_int; + arg3: c_uint, + arg4: c_uint, + ) -> c_int; } extern "C" { - pub fn XRestackWindows(arg1: *mut Display, arg2: *mut Window, arg3: libc::c_int) - -> libc::c_int; + pub fn XRestackWindows(arg1: *mut Display, arg2: *mut Window, arg3: c_int) + -> c_int; } extern "C" { - pub fn XRotateBuffers(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XRotateBuffers(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XRotateWindowProperties( arg1: *mut Display, arg2: Window, arg3: *mut Atom, - arg4: libc::c_int, - arg5: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + ) -> c_int; } extern "C" { - pub fn XScreenCount(arg1: *mut Display) -> libc::c_int; + pub fn XScreenCount(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XSelectInput(arg1: *mut Display, arg2: Window, arg3: libc::c_long) -> libc::c_int; + pub fn XSelectInput(arg1: *mut Display, arg2: Window, arg3: c_long) -> c_int; } extern "C" { pub fn XSendEvent( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, - arg4: libc::c_long, + arg3: c_int, + arg4: c_long, arg5: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XSetAccessControl(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XSetAccessControl(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { - pub fn XSetArcMode(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetArcMode(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { - pub fn XSetBackground(arg1: *mut Display, arg2: GC, arg3: libc::c_ulong) -> libc::c_int; + pub fn XSetBackground(arg1: *mut Display, arg2: GC, arg3: c_ulong) -> c_int; } extern "C" { - pub fn XSetClipMask(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> libc::c_int; + pub fn XSetClipMask(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> c_int; } extern "C" { pub fn XSetClipOrigin( arg1: *mut Display, arg2: GC, - arg3: libc::c_int, - arg4: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + arg4: c_int, + ) -> c_int; } extern "C" { pub fn XSetClipRectangles( arg1: *mut Display, arg2: GC, - arg3: libc::c_int, - arg4: libc::c_int, + arg3: c_int, + arg4: c_int, arg5: *mut XRectangle, - arg6: libc::c_int, - arg7: libc::c_int, - ) -> libc::c_int; + arg6: c_int, + arg7: c_int, + ) -> c_int; } extern "C" { - pub fn XSetCloseDownMode(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XSetCloseDownMode(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XSetCommand( arg1: *mut Display, arg2: Window, - arg3: *mut *mut libc::c_char, - arg4: libc::c_int, - ) -> libc::c_int; + arg3: *mut *mut c_char, + arg4: c_int, + ) -> c_int; } extern "C" { pub fn XSetDashes( arg1: *mut Display, arg2: GC, - arg3: libc::c_int, - arg4: *const libc::c_char, - arg5: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + arg4: *const c_char, + arg5: c_int, + ) -> c_int; } extern "C" { - pub fn XSetFillRule(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetFillRule(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { - pub fn XSetFillStyle(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetFillStyle(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { - pub fn XSetFont(arg1: *mut Display, arg2: GC, arg3: Font) -> libc::c_int; + pub fn XSetFont(arg1: *mut Display, arg2: GC, arg3: Font) -> c_int; } extern "C" { pub fn XSetFontPath( arg1: *mut Display, - arg2: *mut *mut libc::c_char, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *mut *mut c_char, + arg3: c_int, + ) -> c_int; } extern "C" { - pub fn XSetForeground(arg1: *mut Display, arg2: GC, arg3: libc::c_ulong) -> libc::c_int; + pub fn XSetForeground(arg1: *mut Display, arg2: GC, arg3: c_ulong) -> c_int; } extern "C" { - pub fn XSetFunction(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetFunction(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { - pub fn XSetGraphicsExposures(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetGraphicsExposures(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { - pub fn XSetIconName(arg1: *mut Display, arg2: Window, arg3: *const libc::c_char) - -> libc::c_int; + pub fn XSetIconName(arg1: *mut Display, arg2: Window, arg3: *const c_char) + -> c_int; } extern "C" { pub fn XSetInputFocus( arg1: *mut Display, arg2: Window, - arg3: libc::c_int, + arg3: c_int, arg4: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XSetLineAttributes( arg1: *mut Display, arg2: GC, - arg3: libc::c_uint, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_int, - ) -> libc::c_int; + arg3: c_uint, + arg4: c_int, + arg5: c_int, + arg6: c_int, + ) -> c_int; } extern "C" { - pub fn XSetModifierMapping(arg1: *mut Display, arg2: *mut XModifierKeymap) -> libc::c_int; + pub fn XSetModifierMapping(arg1: *mut Display, arg2: *mut XModifierKeymap) -> c_int; } extern "C" { - pub fn XSetPlaneMask(arg1: *mut Display, arg2: GC, arg3: libc::c_ulong) -> libc::c_int; + pub fn XSetPlaneMask(arg1: *mut Display, arg2: GC, arg3: c_ulong) -> c_int; } extern "C" { pub fn XSetPointerMapping( arg1: *mut Display, - arg2: *const libc::c_uchar, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *const c_uchar, + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XSetScreenSaver( arg1: *mut Display, - arg2: libc::c_int, - arg3: libc::c_int, - arg4: libc::c_int, - arg5: libc::c_int, - ) -> libc::c_int; + arg2: c_int, + arg3: c_int, + arg4: c_int, + arg5: c_int, + ) -> c_int; } extern "C" { pub fn XSetSelectionOwner( @@ -36595,263 +36608,263 @@ extern "C" { arg2: Atom, arg3: Window, arg4: Time, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XSetState( arg1: *mut Display, arg2: GC, - arg3: libc::c_ulong, - arg4: libc::c_ulong, - arg5: libc::c_int, - arg6: libc::c_ulong, - ) -> libc::c_int; + arg3: c_ulong, + arg4: c_ulong, + arg5: c_int, + arg6: c_ulong, + ) -> c_int; } extern "C" { - pub fn XSetStipple(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> libc::c_int; + pub fn XSetStipple(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> c_int; } extern "C" { - pub fn XSetSubwindowMode(arg1: *mut Display, arg2: GC, arg3: libc::c_int) -> libc::c_int; + pub fn XSetSubwindowMode(arg1: *mut Display, arg2: GC, arg3: c_int) -> c_int; } extern "C" { pub fn XSetTSOrigin( arg1: *mut Display, arg2: GC, - arg3: libc::c_int, - arg4: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + arg4: c_int, + ) -> c_int; } extern "C" { - pub fn XSetTile(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> libc::c_int; + pub fn XSetTile(arg1: *mut Display, arg2: GC, arg3: Pixmap) -> c_int; } extern "C" { pub fn XSetWindowBackground( arg1: *mut Display, arg2: Window, - arg3: libc::c_ulong, - ) -> libc::c_int; + arg3: c_ulong, + ) -> c_int; } extern "C" { pub fn XSetWindowBackgroundPixmap( arg1: *mut Display, arg2: Window, arg3: Pixmap, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XSetWindowBorder(arg1: *mut Display, arg2: Window, arg3: libc::c_ulong) -> libc::c_int; + pub fn XSetWindowBorder(arg1: *mut Display, arg2: Window, arg3: c_ulong) -> c_int; } extern "C" { - pub fn XSetWindowBorderPixmap(arg1: *mut Display, arg2: Window, arg3: Pixmap) -> libc::c_int; + pub fn XSetWindowBorderPixmap(arg1: *mut Display, arg2: Window, arg3: Pixmap) -> c_int; } extern "C" { pub fn XSetWindowBorderWidth( arg1: *mut Display, arg2: Window, - arg3: libc::c_uint, - ) -> libc::c_int; + arg3: c_uint, + ) -> c_int; } extern "C" { - pub fn XSetWindowColormap(arg1: *mut Display, arg2: Window, arg3: Colormap) -> libc::c_int; + pub fn XSetWindowColormap(arg1: *mut Display, arg2: Window, arg3: Colormap) -> c_int; } extern "C" { pub fn XStoreBuffer( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: libc::c_int, - arg4: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: c_int, + arg4: c_int, + ) -> c_int; } extern "C" { pub fn XStoreBytes( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: c_int, + ) -> c_int; } extern "C" { - pub fn XStoreColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> libc::c_int; + pub fn XStoreColor(arg1: *mut Display, arg2: Colormap, arg3: *mut XColor) -> c_int; } extern "C" { pub fn XStoreColors( arg1: *mut Display, arg2: Colormap, arg3: *mut XColor, - arg4: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + ) -> c_int; } extern "C" { - pub fn XStoreName(arg1: *mut Display, arg2: Window, arg3: *const libc::c_char) -> libc::c_int; + pub fn XStoreName(arg1: *mut Display, arg2: Window, arg3: *const c_char) -> c_int; } extern "C" { pub fn XStoreNamedColor( arg1: *mut Display, arg2: Colormap, - arg3: *const libc::c_char, - arg4: libc::c_ulong, - arg5: libc::c_int, - ) -> libc::c_int; + arg3: *const c_char, + arg4: c_ulong, + arg5: c_int, + ) -> c_int; } extern "C" { - pub fn XSync(arg1: *mut Display, arg2: libc::c_int) -> libc::c_int; + pub fn XSync(arg1: *mut Display, arg2: c_int) -> c_int; } extern "C" { pub fn XTextExtents( arg1: *mut XFontStruct, - arg2: *const libc::c_char, - arg3: libc::c_int, - arg4: *mut libc::c_int, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, + arg2: *const c_char, + arg3: c_int, + arg4: *mut c_int, + arg5: *mut c_int, + arg6: *mut c_int, arg7: *mut XCharStruct, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XTextExtents16( arg1: *mut XFontStruct, arg2: *const XChar2b, - arg3: libc::c_int, - arg4: *mut libc::c_int, - arg5: *mut libc::c_int, - arg6: *mut libc::c_int, + arg3: c_int, + arg4: *mut c_int, + arg5: *mut c_int, + arg6: *mut c_int, arg7: *mut XCharStruct, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XTextWidth( arg1: *mut XFontStruct, - arg2: *const libc::c_char, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XTextWidth16( arg1: *mut XFontStruct, arg2: *const XChar2b, - arg3: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XTranslateCoordinates( arg1: *mut Display, arg2: Window, arg3: Window, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: *mut libc::c_int, - arg7: *mut libc::c_int, + arg4: c_int, + arg5: c_int, + arg6: *mut c_int, + arg7: *mut c_int, arg8: *mut Window, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XUndefineCursor(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XUndefineCursor(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { pub fn XUngrabButton( arg1: *mut Display, - arg2: libc::c_uint, - arg3: libc::c_uint, + arg2: c_uint, + arg3: c_uint, arg4: Window, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XUngrabKey( arg1: *mut Display, - arg2: libc::c_int, - arg3: libc::c_uint, + arg2: c_int, + arg3: c_uint, arg4: Window, - ) -> libc::c_int; + ) -> c_int; } extern "C" { - pub fn XUngrabKeyboard(arg1: *mut Display, arg2: Time) -> libc::c_int; + pub fn XUngrabKeyboard(arg1: *mut Display, arg2: Time) -> c_int; } extern "C" { - pub fn XUngrabPointer(arg1: *mut Display, arg2: Time) -> libc::c_int; + pub fn XUngrabPointer(arg1: *mut Display, arg2: Time) -> c_int; } extern "C" { - pub fn XUngrabServer(arg1: *mut Display) -> libc::c_int; + pub fn XUngrabServer(arg1: *mut Display) -> c_int; } extern "C" { - pub fn XUninstallColormap(arg1: *mut Display, arg2: Colormap) -> libc::c_int; + pub fn XUninstallColormap(arg1: *mut Display, arg2: Colormap) -> c_int; } extern "C" { - pub fn XUnloadFont(arg1: *mut Display, arg2: Font) -> libc::c_int; + pub fn XUnloadFont(arg1: *mut Display, arg2: Font) -> c_int; } extern "C" { - pub fn XUnmapSubwindows(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XUnmapSubwindows(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XUnmapWindow(arg1: *mut Display, arg2: Window) -> libc::c_int; + pub fn XUnmapWindow(arg1: *mut Display, arg2: Window) -> c_int; } extern "C" { - pub fn XVendorRelease(arg1: *mut Display) -> libc::c_int; + pub fn XVendorRelease(arg1: *mut Display) -> c_int; } extern "C" { pub fn XWarpPointer( arg1: *mut Display, arg2: Window, arg3: Window, - arg4: libc::c_int, - arg5: libc::c_int, - arg6: libc::c_uint, - arg7: libc::c_uint, - arg8: libc::c_int, - arg9: libc::c_int, - ) -> libc::c_int; + arg4: c_int, + arg5: c_int, + arg6: c_uint, + arg7: c_uint, + arg8: c_int, + arg9: c_int, + ) -> c_int; } extern "C" { - pub fn XWidthMMOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XWidthMMOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { - pub fn XWidthOfScreen(arg1: *mut Screen) -> libc::c_int; + pub fn XWidthOfScreen(arg1: *mut Screen) -> c_int; } extern "C" { pub fn XWindowEvent( arg1: *mut Display, arg2: Window, - arg3: libc::c_long, + arg3: c_long, arg4: *mut XEvent, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XWriteBitmapFile( arg1: *mut Display, - arg2: *const libc::c_char, + arg2: *const c_char, arg3: Pixmap, - arg4: libc::c_uint, - arg5: libc::c_uint, - arg6: libc::c_int, - arg7: libc::c_int, - ) -> libc::c_int; + arg4: c_uint, + arg5: c_uint, + arg6: c_int, + arg7: c_int, + ) -> c_int; } extern "C" { - pub fn XSupportsLocale() -> libc::c_int; + pub fn XSupportsLocale() -> c_int; } extern "C" { - pub fn XSetLocaleModifiers(arg1: *const libc::c_char) -> *mut libc::c_char; + pub fn XSetLocaleModifiers(arg1: *const c_char) -> *mut c_char; } extern "C" { pub fn XOpenOM( arg1: *mut Display, arg2: *mut _XrmHashBucketRec, - arg3: *const libc::c_char, - arg4: *const libc::c_char, + arg3: *const c_char, + arg4: *const c_char, ) -> XOM; } extern "C" { - pub fn XCloseOM(arg1: XOM) -> libc::c_int; + pub fn XCloseOM(arg1: XOM) -> c_int; } extern "C" { - pub fn XSetOMValues(arg1: XOM, ...) -> *mut libc::c_char; + pub fn XSetOMValues(arg1: XOM, ...) -> *mut c_char; } extern "C" { - pub fn XGetOMValues(arg1: XOM, ...) -> *mut libc::c_char; + pub fn XGetOMValues(arg1: XOM, ...) -> *mut c_char; } extern "C" { pub fn XDisplayOfOM(arg1: XOM) -> *mut Display; } extern "C" { - pub fn XLocaleOfOM(arg1: XOM) -> *mut libc::c_char; + pub fn XLocaleOfOM(arg1: XOM) -> *mut c_char; } extern "C" { pub fn XCreateOC(arg1: XOM, ...) -> XOC; @@ -36863,18 +36876,18 @@ extern "C" { pub fn XOMOfOC(arg1: XOC) -> XOM; } extern "C" { - pub fn XSetOCValues(arg1: XOC, ...) -> *mut libc::c_char; + pub fn XSetOCValues(arg1: XOC, ...) -> *mut c_char; } extern "C" { - pub fn XGetOCValues(arg1: XOC, ...) -> *mut libc::c_char; + pub fn XGetOCValues(arg1: XOC, ...) -> *mut c_char; } extern "C" { pub fn XCreateFontSet( arg1: *mut Display, - arg2: *const libc::c_char, - arg3: *mut *mut *mut libc::c_char, - arg4: *mut libc::c_int, - arg5: *mut *mut libc::c_char, + arg2: *const c_char, + arg3: *mut *mut *mut c_char, + arg4: *mut c_int, + arg5: *mut *mut c_char, ) -> XFontSet; } extern "C" { @@ -36884,23 +36897,23 @@ extern "C" { pub fn XFontsOfFontSet( arg1: XFontSet, arg2: *mut *mut *mut XFontStruct, - arg3: *mut *mut *mut libc::c_char, - ) -> libc::c_int; + arg3: *mut *mut *mut c_char, + ) -> c_int; } extern "C" { - pub fn XBaseFontNameListOfFontSet(arg1: XFontSet) -> *mut libc::c_char; + pub fn XBaseFontNameListOfFontSet(arg1: XFontSet) -> *mut c_char; } extern "C" { - pub fn XLocaleOfFontSet(arg1: XFontSet) -> *mut libc::c_char; + pub fn XLocaleOfFontSet(arg1: XFontSet) -> *mut c_char; } extern "C" { - pub fn XContextDependentDrawing(arg1: XFontSet) -> libc::c_int; + pub fn XContextDependentDrawing(arg1: XFontSet) -> c_int; } extern "C" { - pub fn XDirectionalDependentDrawing(arg1: XFontSet) -> libc::c_int; + pub fn XDirectionalDependentDrawing(arg1: XFontSet) -> c_int; } extern "C" { - pub fn XContextualDrawing(arg1: XFontSet) -> libc::c_int; + pub fn XContextualDrawing(arg1: XFontSet) -> c_int; } extern "C" { pub fn XExtentsOfFontSet(arg1: XFontSet) -> *mut XFontSetExtents; @@ -36908,99 +36921,99 @@ extern "C" { extern "C" { pub fn XmbTextEscapement( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XwcTextEscapement( arg1: XFontSet, arg2: *const wchar_t, - arg3: libc::c_int, - ) -> libc::c_int; + arg3: c_int, + ) -> c_int; } extern "C" { pub fn Xutf8TextEscapement( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, - ) -> libc::c_int; + arg2: *const c_char, + arg3: c_int, + ) -> c_int; } extern "C" { pub fn XmbTextExtents( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, + arg2: *const c_char, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XwcTextExtents( arg1: XFontSet, arg2: *const wchar_t, - arg3: libc::c_int, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn Xutf8TextExtents( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, + arg2: *const c_char, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XmbTextPerCharExtents( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, + arg2: *const c_char, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - arg6: libc::c_int, - arg7: *mut libc::c_int, + arg6: c_int, + arg7: *mut c_int, arg8: *mut XRectangle, arg9: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XwcTextPerCharExtents( arg1: XFontSet, arg2: *const wchar_t, - arg3: libc::c_int, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - arg6: libc::c_int, - arg7: *mut libc::c_int, + arg6: c_int, + arg7: *mut c_int, arg8: *mut XRectangle, arg9: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn Xutf8TextPerCharExtents( arg1: XFontSet, - arg2: *const libc::c_char, - arg3: libc::c_int, + arg2: *const c_char, + arg3: c_int, arg4: *mut XRectangle, arg5: *mut XRectangle, - arg6: libc::c_int, - arg7: *mut libc::c_int, + arg6: c_int, + arg7: *mut c_int, arg8: *mut XRectangle, arg9: *mut XRectangle, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XmbDrawText( arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *mut XmbTextItem, - arg7: libc::c_int, + arg7: c_int, ); } extern "C" { @@ -37008,10 +37021,10 @@ extern "C" { arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *mut XwcTextItem, - arg7: libc::c_int, + arg7: c_int, ); } extern "C" { @@ -37019,10 +37032,10 @@ extern "C" { arg1: *mut Display, arg2: Drawable, arg3: GC, - arg4: libc::c_int, - arg5: libc::c_int, + arg4: c_int, + arg5: c_int, arg6: *mut XmbTextItem, - arg7: libc::c_int, + arg7: c_int, ); } extern "C" { @@ -37031,10 +37044,10 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: *const libc::c_char, - arg8: libc::c_int, + arg5: c_int, + arg6: c_int, + arg7: *const c_char, + arg8: c_int, ); } extern "C" { @@ -37043,10 +37056,10 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, + arg5: c_int, + arg6: c_int, arg7: *const wchar_t, - arg8: libc::c_int, + arg8: c_int, ); } extern "C" { @@ -37055,10 +37068,10 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: *const libc::c_char, - arg8: libc::c_int, + arg5: c_int, + arg6: c_int, + arg7: *const c_char, + arg8: c_int, ); } extern "C" { @@ -37067,10 +37080,10 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: *const libc::c_char, - arg8: libc::c_int, + arg5: c_int, + arg6: c_int, + arg7: *const c_char, + arg8: c_int, ); } extern "C" { @@ -37079,10 +37092,10 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, + arg5: c_int, + arg6: c_int, arg7: *const wchar_t, - arg8: libc::c_int, + arg8: c_int, ); } extern "C" { @@ -37091,34 +37104,34 @@ extern "C" { arg2: Drawable, arg3: XFontSet, arg4: GC, - arg5: libc::c_int, - arg6: libc::c_int, - arg7: *const libc::c_char, - arg8: libc::c_int, + arg5: c_int, + arg6: c_int, + arg7: *const c_char, + arg8: c_int, ); } extern "C" { pub fn XOpenIM( arg1: *mut Display, arg2: *mut _XrmHashBucketRec, - arg3: *mut libc::c_char, - arg4: *mut libc::c_char, + arg3: *mut c_char, + arg4: *mut c_char, ) -> XIM; } extern "C" { - pub fn XCloseIM(arg1: XIM) -> libc::c_int; + pub fn XCloseIM(arg1: XIM) -> c_int; } extern "C" { - pub fn XGetIMValues(arg1: XIM, ...) -> *mut libc::c_char; + pub fn XGetIMValues(arg1: XIM, ...) -> *mut c_char; } extern "C" { - pub fn XSetIMValues(arg1: XIM, ...) -> *mut libc::c_char; + pub fn XSetIMValues(arg1: XIM, ...) -> *mut c_char; } extern "C" { pub fn XDisplayOfIM(arg1: XIM) -> *mut Display; } extern "C" { - pub fn XLocaleOfIM(arg1: XIM) -> *mut libc::c_char; + pub fn XLocaleOfIM(arg1: XIM) -> *mut c_char; } extern "C" { pub fn XCreateIC(arg1: XIM, ...) -> XIC; @@ -37136,121 +37149,121 @@ extern "C" { pub fn XwcResetIC(arg1: XIC) -> *mut wchar_t; } extern "C" { - pub fn XmbResetIC(arg1: XIC) -> *mut libc::c_char; + pub fn XmbResetIC(arg1: XIC) -> *mut c_char; } extern "C" { - pub fn Xutf8ResetIC(arg1: XIC) -> *mut libc::c_char; + pub fn Xutf8ResetIC(arg1: XIC) -> *mut c_char; } extern "C" { - pub fn XSetICValues(arg1: XIC, ...) -> *mut libc::c_char; + pub fn XSetICValues(arg1: XIC, ...) -> *mut c_char; } extern "C" { - pub fn XGetICValues(arg1: XIC, ...) -> *mut libc::c_char; + pub fn XGetICValues(arg1: XIC, ...) -> *mut c_char; } extern "C" { pub fn XIMOfIC(arg1: XIC) -> XIM; } extern "C" { - pub fn XFilterEvent(arg1: *mut XEvent, arg2: Window) -> libc::c_int; + pub fn XFilterEvent(arg1: *mut XEvent, arg2: Window) -> c_int; } extern "C" { pub fn XmbLookupString( arg1: XIC, arg2: *mut XKeyPressedEvent, - arg3: *mut libc::c_char, - arg4: libc::c_int, + arg3: *mut c_char, + arg4: c_int, arg5: *mut KeySym, - arg6: *mut libc::c_int, - ) -> libc::c_int; + arg6: *mut c_int, + ) -> c_int; } extern "C" { pub fn XwcLookupString( arg1: XIC, arg2: *mut XKeyPressedEvent, arg3: *mut wchar_t, - arg4: libc::c_int, + arg4: c_int, arg5: *mut KeySym, - arg6: *mut libc::c_int, - ) -> libc::c_int; + arg6: *mut c_int, + ) -> c_int; } extern "C" { pub fn Xutf8LookupString( arg1: XIC, arg2: *mut XKeyPressedEvent, - arg3: *mut libc::c_char, - arg4: libc::c_int, + arg3: *mut c_char, + arg4: c_int, arg5: *mut KeySym, - arg6: *mut libc::c_int, - ) -> libc::c_int; + arg6: *mut c_int, + ) -> c_int; } extern "C" { - pub fn XVaCreateNestedList(arg1: libc::c_int, ...) -> XVaNestedList; + pub fn XVaCreateNestedList(arg1: c_int, ...) -> XVaNestedList; } extern "C" { pub fn XRegisterIMInstantiateCallback( arg1: *mut Display, arg2: *mut _XrmHashBucketRec, - arg3: *mut libc::c_char, - arg4: *mut libc::c_char, + arg3: *mut c_char, + arg4: *mut c_char, arg5: XIDProc, arg6: XPointer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XUnregisterIMInstantiateCallback( arg1: *mut Display, arg2: *mut _XrmHashBucketRec, - arg3: *mut libc::c_char, - arg4: *mut libc::c_char, + arg3: *mut c_char, + arg4: *mut c_char, arg5: XIDProc, arg6: XPointer, - ) -> libc::c_int; + ) -> c_int; } pub type XConnectionWatchProc = ::core::option::Option< unsafe extern "C" fn( arg1: *mut Display, arg2: XPointer, - arg3: libc::c_int, - arg4: libc::c_int, + arg3: c_int, + arg4: c_int, arg5: *mut XPointer, ), >; extern "C" { pub fn XInternalConnectionNumbers( arg1: *mut Display, - arg2: *mut *mut libc::c_int, - arg3: *mut libc::c_int, - ) -> libc::c_int; + arg2: *mut *mut c_int, + arg3: *mut c_int, + ) -> c_int; } extern "C" { - pub fn XProcessInternalConnection(arg1: *mut Display, arg2: libc::c_int); + pub fn XProcessInternalConnection(arg1: *mut Display, arg2: c_int); } extern "C" { pub fn XAddConnectionWatch( arg1: *mut Display, arg2: XConnectionWatchProc, arg3: XPointer, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn XRemoveConnectionWatch(arg1: *mut Display, arg2: XConnectionWatchProc, arg3: XPointer); } extern "C" { pub fn XSetAuthorization( - arg1: *mut libc::c_char, - arg2: libc::c_int, - arg3: *mut libc::c_char, - arg4: libc::c_int, + arg1: *mut c_char, + arg2: c_int, + arg3: *mut c_char, + arg4: c_int, ); } extern "C" { - pub fn _Xmbtowc(arg1: *mut wchar_t, arg2: *mut libc::c_char, arg3: libc::c_int) -> libc::c_int; + pub fn _Xmbtowc(arg1: *mut wchar_t, arg2: *mut c_char, arg3: c_int) -> c_int; } extern "C" { - pub fn _Xwctomb(arg1: *mut libc::c_char, arg2: wchar_t) -> libc::c_int; + pub fn _Xwctomb(arg1: *mut c_char, arg2: wchar_t) -> c_int; } extern "C" { - pub fn XGetEventData(arg1: *mut Display, arg2: *mut XGenericEventCookie) -> libc::c_int; + pub fn XGetEventData(arg1: *mut Display, arg2: *mut XGenericEventCookie) -> c_int; } extern "C" { pub fn XFreeEventData(arg1: *mut Display, arg2: *mut XGenericEventCookie); @@ -37287,7 +37300,7 @@ pub struct SDL_SysWMmsg { #[derive(Copy, Clone)] pub union SDL_SysWMmsg__bindgen_ty_1 { pub x11: SDL_SysWMmsg__bindgen_ty_1__bindgen_ty_1, - pub dummy: libc::c_int, + pub dummy: c_int, _bindgen_union_align: [u64; 24usize], } #[repr(C)] @@ -37487,7 +37500,7 @@ pub struct SDL_SysWMinfo__bindgen_ty_1__bindgen_ty_2 { #[doc = "< Wayland surface"] pub surface: *mut wl_surface, #[doc = "< DEPRECATED Wayland shell_surface (window manager handle)"] - pub shell_surface: *mut libc::c_void, + pub shell_surface: *mut c_void, #[doc = "< Wayland EGL window (native window)"] pub egl_window: *mut wl_egl_window, #[doc = "< Wayland xdg surface (window manager handle)"] @@ -37752,7 +37765,7 @@ extern "C" { #[doc = ""] #[doc = " \\sa SDL_Vulkan_GetVkInstanceProcAddr"] #[doc = " \\sa SDL_Vulkan_UnloadLibrary"] - pub fn SDL_Vulkan_LoadLibrary(path: *const libc::c_char) -> libc::c_int; + pub fn SDL_Vulkan_LoadLibrary(path: *const c_char) -> c_int; } extern "C" { #[doc = " Get the address of the `vkGetInstanceProcAddr` function."] @@ -37763,7 +37776,7 @@ extern "C" { #[doc = " \\returns the function pointer for `vkGetInstanceProcAddr` or NULL on error."] #[doc = ""] #[doc = " \\since This function is available since SDL 2.0.6."] - pub fn SDL_Vulkan_GetVkGetInstanceProcAddr() -> *mut libc::c_void; + pub fn SDL_Vulkan_GetVkGetInstanceProcAddr() -> *mut c_void; } extern "C" { #[doc = " Unload the Vulkan library previously loaded by SDL_Vulkan_LoadLibrary()"] @@ -37802,8 +37815,8 @@ extern "C" { #[doc = " \\sa SDL_Vulkan_CreateSurface"] pub fn SDL_Vulkan_GetInstanceExtensions( window: *mut SDL_Window, - pCount: *mut libc::c_uint, - pNames: *mut *const libc::c_char, + pCount: *mut c_uint, + pNames: *mut *const c_char, ) -> SDL_bool; } extern "C" { @@ -37848,8 +37861,8 @@ extern "C" { #[doc = " \\sa SDL_Vulkan_CreateSurface"] pub fn SDL_Vulkan_GetDrawableSize( window: *mut SDL_Window, - w: *mut libc::c_int, - h: *mut libc::c_int, + w: *mut c_int, + h: *mut c_int, ); } #[doc = "
"] @@ -37860,10 +37873,10 @@ pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Copy, Clone)] pub struct __va_list_tag { - pub gp_offset: libc::c_uint, - pub fp_offset: libc::c_uint, - pub overflow_arg_area: *mut libc::c_void, - pub reg_save_area: *mut libc::c_void, + pub gp_offset: c_uint, + pub fp_offset: c_uint, + pub overflow_arg_area: *mut c_void, + pub reg_save_area: *mut c_void, } #[test] fn bindgen_test_layout___va_list_tag() { diff --git a/sdl2-sys/sdl_gfx_framerate_bindings.rs b/sdl2-sys/sdl_gfx_framerate_bindings.rs index e1d54a1274e..4cf43ea80ac 100644 --- a/sdl2-sys/sdl_gfx_framerate_bindings.rs +++ b/sdl2-sys/sdl_gfx_framerate_bindings.rs @@ -3,7 +3,7 @@ pub const FPS_UPPER_LIMIT: u32 = 200; pub const FPS_LOWER_LIMIT: u32 = 1; pub const FPS_DEFAULT: u32 = 30; -pub type __uint32_t = libc::c_uint; +pub type __uint32_t = std::os::raw::c_uint; pub type Uint32 = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -81,13 +81,13 @@ extern "C" { pub fn SDL_initFramerate(manager: *mut FPSmanager); } extern "C" { - pub fn SDL_setFramerate(manager: *mut FPSmanager, rate: Uint32) -> libc::c_int; + pub fn SDL_setFramerate(manager: *mut FPSmanager, rate: Uint32) -> std::os::raw::c_int; } extern "C" { - pub fn SDL_getFramerate(manager: *mut FPSmanager) -> libc::c_int; + pub fn SDL_getFramerate(manager: *mut FPSmanager) -> std::os::raw::c_int; } extern "C" { - pub fn SDL_getFramecount(manager: *mut FPSmanager) -> libc::c_int; + pub fn SDL_getFramecount(manager: *mut FPSmanager) -> std::os::raw::c_int; } extern "C" { pub fn SDL_framerateDelay(manager: *mut FPSmanager) -> Uint32; diff --git a/sdl2-sys/sdl_gfx_imagefilter_bindings.rs b/sdl2-sys/sdl_gfx_imagefilter_bindings.rs index ca5d68c5dea..a8af545c8a3 100644 --- a/sdl2-sys/sdl_gfx_imagefilter_bindings.rs +++ b/sdl2-sys/sdl_gfx_imagefilter_bindings.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen */ extern "C" { - pub fn SDL_imageFilterMMXdetect() -> libc::c_int; + pub fn SDL_imageFilterMMXdetect() -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMMXoff(); @@ -11,221 +11,221 @@ extern "C" { } extern "C" { pub fn SDL_imageFilterAdd( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMean( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterSub( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterAbsDiff( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMult( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMultNor( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMultDivby2( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMultDivby4( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterBitAnd( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterBitOr( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterDiv( - Src1: *mut libc::c_uchar, - Src2: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Src2: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterBitNegation( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterAddByte( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterAddUint( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterAddByteToHalf( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterSubByte( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterSubUint( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uint, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uint, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftRight( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftRightUint( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterMultByByte( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - C: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + C: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftRightAndMultByByte( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - C: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + C: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftLeftByte( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftLeftUint( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterShiftLeft( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - N: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + N: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterBinarizeUsingThreshold( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - T: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + T: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterClipToRange( - Src1: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - Tmin: libc::c_uchar, - Tmax: libc::c_uchar, - ) -> libc::c_int; + Src1: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + Tmin: std::os::raw::c_uchar, + Tmax: std::os::raw::c_uchar, + ) -> std::os::raw::c_int; } extern "C" { pub fn SDL_imageFilterNormalizeLinear( - Src: *mut libc::c_uchar, - Dest: *mut libc::c_uchar, - length: libc::c_uint, - Cmin: libc::c_int, - Cmax: libc::c_int, - Nmin: libc::c_int, - Nmax: libc::c_int, - ) -> libc::c_int; + Src: *mut std::os::raw::c_uchar, + Dest: *mut std::os::raw::c_uchar, + length: std::os::raw::c_uint, + Cmin: std::os::raw::c_int, + Cmax: std::os::raw::c_int, + Nmin: std::os::raw::c_int, + Nmax: std::os::raw::c_int, + ) -> std::os::raw::c_int; } diff --git a/sdl2-sys/sdl_gfx_primitives_bindings.rs b/sdl2-sys/sdl_gfx_primitives_bindings.rs index 4df10c1ce40..8f1a8c20ff0 100644 --- a/sdl2-sys/sdl_gfx_primitives_bindings.rs +++ b/sdl2-sys/sdl_gfx_primitives_bindings.rs @@ -2,9 +2,9 @@ use crate::*; -pub type __uint8_t = libc::c_uchar; -pub type __int16_t = libc::c_short; -pub type __uint32_t = libc::c_uint; +pub type __uint8_t = std::os::raw::c_uchar; +pub type __int16_t = std::os::raw::c_short; +pub type __uint32_t = std::os::raw::c_uint; pub type Uint8 = u8; pub type Sint16 = i16; pub type Uint32 = u32; @@ -14,7 +14,7 @@ extern "C" { x: Sint16, y: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn pixelRGBA( @@ -25,7 +25,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn hlineColor( @@ -34,7 +34,7 @@ extern "C" { x2: Sint16, y: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn hlineRGBA( @@ -46,7 +46,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn vlineColor( @@ -55,7 +55,7 @@ extern "C" { y1: Sint16, y2: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn vlineRGBA( @@ -67,7 +67,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn rectangleColor( @@ -77,7 +77,7 @@ extern "C" { x2: Sint16, y2: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn rectangleRGBA( @@ -90,7 +90,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn roundedRectangleColor( @@ -101,7 +101,7 @@ extern "C" { y2: Sint16, rad: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn roundedRectangleRGBA( @@ -115,7 +115,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn boxColor( @@ -125,7 +125,7 @@ extern "C" { x2: Sint16, y2: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn boxRGBA( @@ -138,7 +138,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn roundedBoxColor( @@ -149,7 +149,7 @@ extern "C" { y2: Sint16, rad: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn roundedBoxRGBA( @@ -163,7 +163,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn lineColor( @@ -173,7 +173,7 @@ extern "C" { x2: Sint16, y2: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn lineRGBA( @@ -186,7 +186,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aalineColor( @@ -196,7 +196,7 @@ extern "C" { x2: Sint16, y2: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aalineRGBA( @@ -209,7 +209,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn thickLineColor( @@ -220,7 +220,7 @@ extern "C" { y2: Sint16, width: Uint8, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn thickLineRGBA( @@ -234,7 +234,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn circleColor( @@ -243,7 +243,7 @@ extern "C" { y: Sint16, rad: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn circleRGBA( @@ -255,7 +255,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn arcColor( @@ -266,7 +266,7 @@ extern "C" { start: Sint16, end: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn arcRGBA( @@ -280,7 +280,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aacircleColor( @@ -289,7 +289,7 @@ extern "C" { y: Sint16, rad: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aacircleRGBA( @@ -301,7 +301,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledCircleColor( @@ -310,7 +310,7 @@ extern "C" { y: Sint16, r: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledCircleRGBA( @@ -322,7 +322,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn ellipseColor( @@ -332,7 +332,7 @@ extern "C" { rx: Sint16, ry: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn ellipseRGBA( @@ -345,7 +345,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aaellipseColor( @@ -355,7 +355,7 @@ extern "C" { rx: Sint16, ry: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aaellipseRGBA( @@ -368,7 +368,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledEllipseColor( @@ -378,7 +378,7 @@ extern "C" { rx: Sint16, ry: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledEllipseRGBA( @@ -391,7 +391,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn pieColor( @@ -402,7 +402,7 @@ extern "C" { start: Sint16, end: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn pieRGBA( @@ -416,7 +416,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledPieColor( @@ -427,7 +427,7 @@ extern "C" { start: Sint16, end: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledPieRGBA( @@ -441,7 +441,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn trigonColor( @@ -453,7 +453,7 @@ extern "C" { x3: Sint16, y3: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn trigonRGBA( @@ -468,7 +468,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aatrigonColor( @@ -480,7 +480,7 @@ extern "C" { x3: Sint16, y3: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aatrigonRGBA( @@ -495,7 +495,7 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledTrigonColor( @@ -507,7 +507,7 @@ extern "C" { x3: Sint16, y3: Sint16, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledTrigonRGBA( @@ -522,107 +522,107 @@ extern "C" { g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn polygonColor( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn polygonRGBA( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aapolygonColor( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn aapolygonRGBA( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledPolygonColor( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn filledPolygonRGBA( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn texturedPolygon( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, + n: std::os::raw::c_int, texture: *mut SDL_Surface, - texture_dx: libc::c_int, - texture_dy: libc::c_int, - ) -> libc::c_int; + texture_dx: std::os::raw::c_int, + texture_dy: std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn bezierColor( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, - s: libc::c_int, + n: std::os::raw::c_int, + s: std::os::raw::c_int, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn bezierRGBA( renderer: *mut SDL_Renderer, vx: *const Sint16, vy: *const Sint16, - n: libc::c_int, - s: libc::c_int, + n: std::os::raw::c_int, + s: std::os::raw::c_int, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { - pub fn gfxPrimitivesSetFont(fontdata: *const libc::c_void, cw: Uint32, ch: Uint32); + pub fn gfxPrimitivesSetFont(fontdata: *const std::os::raw::c_void, cw: Uint32, ch: Uint32); } extern "C" { pub fn gfxPrimitivesSetFontRotation(rotation: Uint32); @@ -632,40 +632,40 @@ extern "C" { renderer: *mut SDL_Renderer, x: Sint16, y: Sint16, - c: libc::c_char, + c: std::os::raw::c_char, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn characterRGBA( renderer: *mut SDL_Renderer, x: Sint16, y: Sint16, - c: libc::c_char, + c: std::os::raw::c_char, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn stringColor( renderer: *mut SDL_Renderer, x: Sint16, y: Sint16, - s: *const libc::c_char, + s: *const std::os::raw::c_char, color: Uint32, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } extern "C" { pub fn stringRGBA( renderer: *mut SDL_Renderer, x: Sint16, y: Sint16, - s: *const libc::c_char, + s: *const std::os::raw::c_char, r: Uint8, g: Uint8, b: Uint8, a: Uint8, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } diff --git a/sdl2-sys/sdl_gfx_rotozoom_bindings.rs b/sdl2-sys/sdl_gfx_rotozoom_bindings.rs index 370cc9109d0..b1071700296 100644 --- a/sdl2-sys/sdl_gfx_rotozoom_bindings.rs +++ b/sdl2-sys/sdl_gfx_rotozoom_bindings.rs @@ -2,8 +2,8 @@ use crate::*; -pub type __uint8_t = libc::c_uchar; -pub type __uint32_t = libc::c_uint; +pub type __uint8_t = std::os::raw::c_uchar; +pub type __uint32_t = std::os::raw::c_uint; pub type Uint8 = u8; pub type Uint32 = u32; extern "C" { @@ -11,7 +11,7 @@ extern "C" { src: *mut SDL_Surface, angle: f64, zoom: f64, - smooth: libc::c_int, + smooth: std::os::raw::c_int, ) -> *mut SDL_Surface; } extern "C" { @@ -20,28 +20,28 @@ extern "C" { angle: f64, zoomx: f64, zoomy: f64, - smooth: libc::c_int, + smooth: std::os::raw::c_int, ) -> *mut SDL_Surface; } extern "C" { pub fn rotozoomSurfaceSize( - width: libc::c_int, - height: libc::c_int, + width: std::os::raw::c_int, + height: std::os::raw::c_int, angle: f64, zoom: f64, - dstwidth: *mut libc::c_int, - dstheight: *mut libc::c_int, + dstwidth: *mut std::os::raw::c_int, + dstheight: *mut std::os::raw::c_int, ); } extern "C" { pub fn rotozoomSurfaceSizeXY( - width: libc::c_int, - height: libc::c_int, + width: std::os::raw::c_int, + height: std::os::raw::c_int, angle: f64, zoomx: f64, zoomy: f64, - dstwidth: *mut libc::c_int, - dstheight: *mut libc::c_int, + dstwidth: *mut std::os::raw::c_int, + dstheight: *mut std::os::raw::c_int, ); } extern "C" { @@ -49,29 +49,29 @@ extern "C" { src: *mut SDL_Surface, zoomx: f64, zoomy: f64, - smooth: libc::c_int, + smooth: std::os::raw::c_int, ) -> *mut SDL_Surface; } extern "C" { pub fn zoomSurfaceSize( - width: libc::c_int, - height: libc::c_int, + width: std::os::raw::c_int, + height: std::os::raw::c_int, zoomx: f64, zoomy: f64, - dstwidth: *mut libc::c_int, - dstheight: *mut libc::c_int, + dstwidth: *mut std::os::raw::c_int, + dstheight: *mut std::os::raw::c_int, ); } extern "C" { pub fn shrinkSurface( src: *mut SDL_Surface, - factorx: libc::c_int, - factory: libc::c_int, + factorx: std::os::raw::c_int, + factory: std::os::raw::c_int, ) -> *mut SDL_Surface; } extern "C" { pub fn rotateSurface90Degrees( src: *mut SDL_Surface, - numClockwiseTurns: libc::c_int, + numClockwiseTurns: std::os::raw::c_int, ) -> *mut SDL_Surface; } diff --git a/sdl2-sys/sdl_image_bindings.rs b/sdl2-sys/sdl_image_bindings.rs index 8fa66d3baa5..3ede87fea03 100644 --- a/sdl2-sys/sdl_image_bindings.rs +++ b/sdl2-sys/sdl_image_bindings.rs @@ -2,11 +2,11 @@ use crate::*; -pub type __uint8_t = libc::c_uchar; -pub type __uint32_t = libc::c_uint; -pub type __int64_t = libc::c_long; -pub type __off_t = libc::c_long; -pub type __off64_t = libc::c_long; +pub type __uint8_t = std::os::raw::c_uchar; +pub type __uint32_t = std::os::raw::c_uint; +pub type __int64_t = std::os::raw::c_long; +pub type __off_t = std::os::raw::c_long; +pub type __off64_t = std::os::raw::c_long; pub type Uint8 = u8; pub type Uint32 = u32; pub type Sint64 = i64; @@ -19,7 +19,7 @@ pub const IMG_InitFlags_IMG_INIT_TIF: IMG_InitFlags = 4; pub const IMG_InitFlags_IMG_INIT_WEBP: IMG_InitFlags = 8; pub type IMG_InitFlags = u32; extern "C" { - pub fn IMG_Init(flags: libc::c_int) -> libc::c_int; + pub fn IMG_Init(flags: std::os::raw::c_int) -> std::os::raw::c_int; } extern "C" { pub fn IMG_Quit(); @@ -27,81 +27,81 @@ extern "C" { extern "C" { pub fn IMG_LoadTyped_RW( src: *mut SDL_RWops, - freesrc: libc::c_int, - type_: *const libc::c_char, + freesrc: std::os::raw::c_int, + type_: *const std::os::raw::c_char, ) -> *mut SDL_Surface; } extern "C" { - pub fn IMG_Load(file: *const libc::c_char) -> *mut SDL_Surface; + pub fn IMG_Load(file: *const std::os::raw::c_char) -> *mut SDL_Surface; } extern "C" { - pub fn IMG_Load_RW(src: *mut SDL_RWops, freesrc: libc::c_int) -> *mut SDL_Surface; + pub fn IMG_Load_RW(src: *mut SDL_RWops, freesrc: std::os::raw::c_int) -> *mut SDL_Surface; } extern "C" { pub fn IMG_LoadTexture( renderer: *mut SDL_Renderer, - file: *const libc::c_char, + file: *const std::os::raw::c_char, ) -> *mut SDL_Texture; } extern "C" { pub fn IMG_LoadTexture_RW( renderer: *mut SDL_Renderer, src: *mut SDL_RWops, - freesrc: libc::c_int, + freesrc: std::os::raw::c_int, ) -> *mut SDL_Texture; } extern "C" { pub fn IMG_LoadTextureTyped_RW( renderer: *mut SDL_Renderer, src: *mut SDL_RWops, - freesrc: libc::c_int, - type_: *const libc::c_char, + freesrc: std::os::raw::c_int, + type_: *const std::os::raw::c_char, ) -> *mut SDL_Texture; } extern "C" { - pub fn IMG_isICO(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isICO(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isCUR(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isCUR(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isBMP(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isBMP(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isGIF(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isGIF(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isJPG(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isJPG(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isLBM(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isLBM(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isPCX(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isPCX(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isPNG(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isPNG(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isPNM(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isPNM(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isSVG(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isSVG(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isTIF(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isTIF(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isXCF(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isXCF(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isXPM(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isXPM(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isXV(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isXV(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { - pub fn IMG_isWEBP(src: *mut SDL_RWops) -> libc::c_int; + pub fn IMG_isWEBP(src: *mut SDL_RWops) -> std::os::raw::c_int; } extern "C" { pub fn IMG_LoadICO_RW(src: *mut SDL_RWops) -> *mut SDL_Surface; @@ -152,30 +152,30 @@ extern "C" { pub fn IMG_LoadWEBP_RW(src: *mut SDL_RWops) -> *mut SDL_Surface; } extern "C" { - pub fn IMG_ReadXPMFromArray(xpm: *mut *mut libc::c_char) -> *mut SDL_Surface; + pub fn IMG_ReadXPMFromArray(xpm: *mut *mut std::os::raw::c_char) -> *mut SDL_Surface; } extern "C" { - pub fn IMG_SavePNG(surface: *mut SDL_Surface, file: *const libc::c_char) -> libc::c_int; + pub fn IMG_SavePNG(surface: *mut SDL_Surface, file: *const std::os::raw::c_char) -> std::os::raw::c_int; } extern "C" { pub fn IMG_SavePNG_RW( surface: *mut SDL_Surface, dst: *mut SDL_RWops, - freedst: libc::c_int, - ) -> libc::c_int; + freedst: std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn IMG_SaveJPG( surface: *mut SDL_Surface, - file: *const libc::c_char, - quality: libc::c_int, - ) -> libc::c_int; + file: *const std::os::raw::c_char, + quality: std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn IMG_SaveJPG_RW( surface: *mut SDL_Surface, dst: *mut SDL_RWops, - freedst: libc::c_int, - quality: libc::c_int, - ) -> libc::c_int; + freedst: std::os::raw::c_int, + quality: std::os::raw::c_int, + ) -> std::os::raw::c_int; } diff --git a/sdl2-sys/sdl_mixer_bindings.rs b/sdl2-sys/sdl_mixer_bindings.rs index 5f91ceaacb0..9e6e8987b81 100644 --- a/sdl2-sys/sdl_mixer_bindings.rs +++ b/sdl2-sys/sdl_mixer_bindings.rs @@ -1,6 +1,14 @@ /* automatically generated by rust-bindgen */ use crate::*; +use core::ffi::c_int; +use core::ffi::c_void; +use core::ffi::c_char; +use core::ffi::c_long; +use core::ffi::c_uint; +use core::ffi::c_ushort; +use core::ffi::c_short; +use core::ffi::c_uchar; pub const MIX_MAJOR_VERSION: u32 = 2; pub const MIX_MINOR_VERSION: u32 = 0; @@ -12,13 +20,13 @@ pub const MIX_DEFAULT_CHANNELS: u32 = 2; pub const MIX_MAX_VOLUME: u32 = 128; pub const MIX_CHANNEL_POST: i32 = -2; pub const MIX_EFFECTSMAXSPEED: &'static [u8; 20usize] = b"MIX_EFFECTSMAXSPEED\0"; -pub type __uint8_t = libc::c_uchar; -pub type __int16_t = libc::c_short; -pub type __uint16_t = libc::c_ushort; -pub type __uint32_t = libc::c_uint; -pub type __int64_t = libc::c_long; -pub type __off_t = libc::c_long; -pub type __off64_t = libc::c_long; +pub type __uint8_t = c_uchar; +pub type __int16_t = c_short; +pub type __uint16_t = c_ushort; +pub type __uint32_t = c_uint; +pub type __int64_t = c_long; +pub type __off_t = c_long; +pub type __off64_t = c_long; pub type Uint8 = u8; pub type Sint16 = i16; pub type Uint16 = u16; @@ -35,7 +43,7 @@ pub const MIX_InitFlags_MIX_INIT_MID: MIX_InitFlags = 32; pub const MIX_InitFlags_MIX_INIT_OPUS: MIX_InitFlags = 64; pub type MIX_InitFlags = u32; extern "C" { - pub fn Mix_Init(flags: libc::c_int) -> libc::c_int; + pub fn Mix_Init(flags: c_int) -> c_int; } extern "C" { pub fn Mix_Quit(); @@ -43,7 +51,7 @@ extern "C" { #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Mix_Chunk { - pub allocated: libc::c_int, + pub allocated: c_int, pub abuf: *mut Uint8, pub alen: Uint32, pub volume: Uint8, @@ -125,46 +133,46 @@ pub struct _Mix_Music { pub type Mix_Music = _Mix_Music; extern "C" { pub fn Mix_OpenAudio( - frequency: libc::c_int, + frequency: c_int, format: Uint16, - channels: libc::c_int, - chunksize: libc::c_int, - ) -> libc::c_int; + channels: c_int, + chunksize: c_int, + ) -> c_int; } extern "C" { pub fn Mix_OpenAudioDevice( - frequency: libc::c_int, + frequency: c_int, format: Uint16, - channels: libc::c_int, - chunksize: libc::c_int, - device: *const libc::c_char, - allowed_changes: libc::c_int, - ) -> libc::c_int; + channels: c_int, + chunksize: c_int, + device: *const c_char, + allowed_changes: c_int, + ) -> c_int; } extern "C" { - pub fn Mix_AllocateChannels(numchans: libc::c_int) -> libc::c_int; + pub fn Mix_AllocateChannels(numchans: c_int) -> c_int; } extern "C" { pub fn Mix_QuerySpec( - frequency: *mut libc::c_int, + frequency: *mut c_int, format: *mut Uint16, - channels: *mut libc::c_int, - ) -> libc::c_int; + channels: *mut c_int, + ) -> c_int; } extern "C" { - pub fn Mix_LoadWAV_RW(src: *mut SDL_RWops, freesrc: libc::c_int) -> *mut Mix_Chunk; + pub fn Mix_LoadWAV_RW(src: *mut SDL_RWops, freesrc: c_int) -> *mut Mix_Chunk; } extern "C" { - pub fn Mix_LoadMUS(file: *const libc::c_char) -> *mut Mix_Music; + pub fn Mix_LoadMUS(file: *const c_char) -> *mut Mix_Music; } extern "C" { - pub fn Mix_LoadMUS_RW(src: *mut SDL_RWops, freesrc: libc::c_int) -> *mut Mix_Music; + pub fn Mix_LoadMUS_RW(src: *mut SDL_RWops, freesrc: c_int) -> *mut Mix_Music; } extern "C" { pub fn Mix_LoadMUSType_RW( src: *mut SDL_RWops, type_: Mix_MusicType, - freesrc: libc::c_int, + freesrc: c_int, ) -> *mut Mix_Music; } extern "C" { @@ -180,22 +188,22 @@ extern "C" { pub fn Mix_FreeMusic(music: *mut Mix_Music); } extern "C" { - pub fn Mix_GetNumChunkDecoders() -> libc::c_int; + pub fn Mix_GetNumChunkDecoders() -> c_int; } extern "C" { - pub fn Mix_GetChunkDecoder(index: libc::c_int) -> *const libc::c_char; + pub fn Mix_GetChunkDecoder(index: c_int) -> *const c_char; } extern "C" { - pub fn Mix_HasChunkDecoder(name: *const libc::c_char) -> SDL_bool; + pub fn Mix_HasChunkDecoder(name: *const c_char) -> SDL_bool; } extern "C" { - pub fn Mix_GetNumMusicDecoders() -> libc::c_int; + pub fn Mix_GetNumMusicDecoders() -> c_int; } extern "C" { - pub fn Mix_GetMusicDecoder(index: libc::c_int) -> *const libc::c_char; + pub fn Mix_GetMusicDecoder(index: c_int) -> *const c_char; } extern "C" { - pub fn Mix_HasMusicDecoder(name: *const libc::c_char) -> SDL_bool; + pub fn Mix_HasMusicDecoder(name: *const c_char) -> SDL_bool; } extern "C" { pub fn Mix_GetMusicType(music: *const Mix_Music) -> Mix_MusicType; @@ -203,166 +211,166 @@ extern "C" { extern "C" { pub fn Mix_SetPostMix( mix_func: ::core::option::Option< - unsafe extern "C" fn(udata: *mut libc::c_void, stream: *mut Uint8, len: libc::c_int), + unsafe extern "C" fn(udata: *mut c_void, stream: *mut Uint8, len: c_int), >, - arg: *mut libc::c_void, + arg: *mut c_void, ); } extern "C" { pub fn Mix_HookMusic( mix_func: ::core::option::Option< - unsafe extern "C" fn(udata: *mut libc::c_void, stream: *mut Uint8, len: libc::c_int), + unsafe extern "C" fn(udata: *mut c_void, stream: *mut Uint8, len: c_int), >, - arg: *mut libc::c_void, + arg: *mut c_void, ); } extern "C" { pub fn Mix_HookMusicFinished(music_finished: ::core::option::Option); } extern "C" { - pub fn Mix_GetMusicHookData() -> *mut libc::c_void; + pub fn Mix_GetMusicHookData() -> *mut c_void; } extern "C" { pub fn Mix_ChannelFinished( - channel_finished: ::core::option::Option, + channel_finished: ::core::option::Option, ); } pub type Mix_EffectFunc_t = ::core::option::Option< unsafe extern "C" fn( - chan: libc::c_int, - stream: *mut libc::c_void, - len: libc::c_int, - udata: *mut libc::c_void, + chan: c_int, + stream: *mut c_void, + len: c_int, + udata: *mut c_void, ), >; pub type Mix_EffectDone_t = - ::core::option::Option; + ::core::option::Option; extern "C" { pub fn Mix_RegisterEffect( - chan: libc::c_int, + chan: c_int, f: Mix_EffectFunc_t, d: Mix_EffectDone_t, - arg: *mut libc::c_void, - ) -> libc::c_int; + arg: *mut c_void, + ) -> c_int; } extern "C" { - pub fn Mix_UnregisterEffect(channel: libc::c_int, f: Mix_EffectFunc_t) -> libc::c_int; + pub fn Mix_UnregisterEffect(channel: c_int, f: Mix_EffectFunc_t) -> c_int; } extern "C" { - pub fn Mix_UnregisterAllEffects(channel: libc::c_int) -> libc::c_int; + pub fn Mix_UnregisterAllEffects(channel: c_int) -> c_int; } extern "C" { - pub fn Mix_SetPanning(channel: libc::c_int, left: Uint8, right: Uint8) -> libc::c_int; + pub fn Mix_SetPanning(channel: c_int, left: Uint8, right: Uint8) -> c_int; } extern "C" { - pub fn Mix_SetPosition(channel: libc::c_int, angle: Sint16, distance: Uint8) -> libc::c_int; + pub fn Mix_SetPosition(channel: c_int, angle: Sint16, distance: Uint8) -> c_int; } extern "C" { - pub fn Mix_SetDistance(channel: libc::c_int, distance: Uint8) -> libc::c_int; + pub fn Mix_SetDistance(channel: c_int, distance: Uint8) -> c_int; } extern "C" { - pub fn Mix_SetReverseStereo(channel: libc::c_int, flip: libc::c_int) -> libc::c_int; + pub fn Mix_SetReverseStereo(channel: c_int, flip: c_int) -> c_int; } extern "C" { - pub fn Mix_ReserveChannels(num: libc::c_int) -> libc::c_int; + pub fn Mix_ReserveChannels(num: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupChannel(which: libc::c_int, tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupChannel(which: c_int, tag: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupChannels(from: libc::c_int, to: libc::c_int, tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupChannels(from: c_int, to: c_int, tag: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupAvailable(tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupAvailable(tag: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupCount(tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupCount(tag: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupOldest(tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupOldest(tag: c_int) -> c_int; } extern "C" { - pub fn Mix_GroupNewer(tag: libc::c_int) -> libc::c_int; + pub fn Mix_GroupNewer(tag: c_int) -> c_int; } extern "C" { pub fn Mix_PlayChannelTimed( - channel: libc::c_int, + channel: c_int, chunk: *mut Mix_Chunk, - loops: libc::c_int, - ticks: libc::c_int, - ) -> libc::c_int; + loops: c_int, + ticks: c_int, + ) -> c_int; } extern "C" { - pub fn Mix_PlayMusic(music: *mut Mix_Music, loops: libc::c_int) -> libc::c_int; + pub fn Mix_PlayMusic(music: *mut Mix_Music, loops: c_int) -> c_int; } extern "C" { pub fn Mix_FadeInMusic( music: *mut Mix_Music, - loops: libc::c_int, - ms: libc::c_int, - ) -> libc::c_int; + loops: c_int, + ms: c_int, + ) -> c_int; } extern "C" { pub fn Mix_FadeInMusicPos( music: *mut Mix_Music, - loops: libc::c_int, - ms: libc::c_int, + loops: c_int, + ms: c_int, position: f64, - ) -> libc::c_int; + ) -> c_int; } extern "C" { pub fn Mix_FadeInChannelTimed( - channel: libc::c_int, + channel: c_int, chunk: *mut Mix_Chunk, - loops: libc::c_int, - ms: libc::c_int, - ticks: libc::c_int, - ) -> libc::c_int; + loops: c_int, + ms: c_int, + ticks: c_int, + ) -> c_int; } extern "C" { - pub fn Mix_Volume(channel: libc::c_int, volume: libc::c_int) -> libc::c_int; + pub fn Mix_Volume(channel: c_int, volume: c_int) -> c_int; } extern "C" { - pub fn Mix_VolumeChunk(chunk: *mut Mix_Chunk, volume: libc::c_int) -> libc::c_int; + pub fn Mix_VolumeChunk(chunk: *mut Mix_Chunk, volume: c_int) -> c_int; } extern "C" { - pub fn Mix_VolumeMusic(volume: libc::c_int) -> libc::c_int; + pub fn Mix_VolumeMusic(volume: c_int) -> c_int; } extern "C" { - pub fn Mix_HaltChannel(channel: libc::c_int) -> libc::c_int; + pub fn Mix_HaltChannel(channel: c_int) -> c_int; } extern "C" { - pub fn Mix_HaltGroup(tag: libc::c_int) -> libc::c_int; + pub fn Mix_HaltGroup(tag: c_int) -> c_int; } extern "C" { - pub fn Mix_HaltMusic() -> libc::c_int; + pub fn Mix_HaltMusic() -> c_int; } extern "C" { - pub fn Mix_ExpireChannel(channel: libc::c_int, ticks: libc::c_int) -> libc::c_int; + pub fn Mix_ExpireChannel(channel: c_int, ticks: c_int) -> c_int; } extern "C" { - pub fn Mix_FadeOutChannel(which: libc::c_int, ms: libc::c_int) -> libc::c_int; + pub fn Mix_FadeOutChannel(which: c_int, ms: c_int) -> c_int; } extern "C" { - pub fn Mix_FadeOutGroup(tag: libc::c_int, ms: libc::c_int) -> libc::c_int; + pub fn Mix_FadeOutGroup(tag: c_int, ms: c_int) -> c_int; } extern "C" { - pub fn Mix_FadeOutMusic(ms: libc::c_int) -> libc::c_int; + pub fn Mix_FadeOutMusic(ms: c_int) -> c_int; } extern "C" { pub fn Mix_FadingMusic() -> Mix_Fading; } extern "C" { - pub fn Mix_FadingChannel(which: libc::c_int) -> Mix_Fading; + pub fn Mix_FadingChannel(which: c_int) -> Mix_Fading; } extern "C" { - pub fn Mix_Pause(channel: libc::c_int); + pub fn Mix_Pause(channel: c_int); } extern "C" { - pub fn Mix_Resume(channel: libc::c_int); + pub fn Mix_Resume(channel: c_int); } extern "C" { - pub fn Mix_Paused(channel: libc::c_int) -> libc::c_int; + pub fn Mix_Paused(channel: c_int) -> c_int; } extern "C" { pub fn Mix_PauseMusic(); @@ -374,42 +382,42 @@ extern "C" { pub fn Mix_RewindMusic(); } extern "C" { - pub fn Mix_PausedMusic() -> libc::c_int; + pub fn Mix_PausedMusic() -> c_int; } extern "C" { - pub fn Mix_SetMusicPosition(position: f64) -> libc::c_int; + pub fn Mix_SetMusicPosition(position: f64) -> c_int; } extern "C" { - pub fn Mix_Playing(channel: libc::c_int) -> libc::c_int; + pub fn Mix_Playing(channel: c_int) -> c_int; } extern "C" { - pub fn Mix_PlayingMusic() -> libc::c_int; + pub fn Mix_PlayingMusic() -> c_int; } extern "C" { - pub fn Mix_SetMusicCMD(command: *const libc::c_char) -> libc::c_int; + pub fn Mix_SetMusicCMD(command: *const c_char) -> c_int; } extern "C" { - pub fn Mix_SetSynchroValue(value: libc::c_int) -> libc::c_int; + pub fn Mix_SetSynchroValue(value: c_int) -> c_int; } extern "C" { - pub fn Mix_GetSynchroValue() -> libc::c_int; + pub fn Mix_GetSynchroValue() -> c_int; } extern "C" { - pub fn Mix_SetSoundFonts(paths: *const libc::c_char) -> libc::c_int; + pub fn Mix_SetSoundFonts(paths: *const c_char) -> c_int; } extern "C" { - pub fn Mix_GetSoundFonts() -> *const libc::c_char; + pub fn Mix_GetSoundFonts() -> *const c_char; } extern "C" { pub fn Mix_EachSoundFont( function: ::core::option::Option< - unsafe extern "C" fn(arg1: *const libc::c_char, arg2: *mut libc::c_void) -> libc::c_int, + unsafe extern "C" fn(arg1: *const c_char, arg2: *mut c_void) -> c_int, >, - data: *mut libc::c_void, - ) -> libc::c_int; + data: *mut c_void, + ) -> c_int; } extern "C" { - pub fn Mix_GetChunk(channel: libc::c_int) -> *mut Mix_Chunk; + pub fn Mix_GetChunk(channel: c_int) -> *mut Mix_Chunk; } extern "C" { pub fn Mix_CloseAudio(); diff --git a/sdl2-sys/sdl_ttf_bindings.rs b/sdl2-sys/sdl_ttf_bindings.rs index 523764cb19f..dc830b916b4 100644 --- a/sdl2-sys/sdl_ttf_bindings.rs +++ b/sdl2-sys/sdl_ttf_bindings.rs @@ -14,12 +14,12 @@ pub const TTF_HINTING_NORMAL: u32 = 0; pub const TTF_HINTING_LIGHT: u32 = 1; pub const TTF_HINTING_MONO: u32 = 2; pub const TTF_HINTING_NONE: u32 = 3; -pub type __uint8_t = libc::c_uchar; -pub type __uint16_t = libc::c_ushort; -pub type __uint32_t = libc::c_uint; -pub type __int64_t = libc::c_long; -pub type __off_t = libc::c_long; -pub type __off64_t = libc::c_long; +pub type __uint8_t = std::os::raw::c_uchar; +pub type __uint16_t = std::os::raw::c_ushort; +pub type __uint32_t = std::os::raw::c_uint; +pub type __int64_t = std::os::raw::c_long; +pub type __off_t = std::os::raw::c_long; +pub type __off64_t = std::os::raw::c_long; pub type Uint8 = u8; pub type Uint16 = u16; pub type Uint32 = u32; @@ -28,7 +28,7 @@ extern "C" { pub fn TTF_Linked_Version() -> *const SDL_version; } extern "C" { - pub fn TTF_ByteSwappedUNICODE(swapped: libc::c_int); + pub fn TTF_ByteSwappedUNICODE(swapped: std::os::raw::c_int); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -37,130 +37,130 @@ pub struct _TTF_Font { } pub type TTF_Font = _TTF_Font; extern "C" { - pub fn TTF_Init() -> libc::c_int; + pub fn TTF_Init() -> std::os::raw::c_int; } extern "C" { - pub fn TTF_OpenFont(file: *const libc::c_char, ptsize: libc::c_int) -> *mut TTF_Font; + pub fn TTF_OpenFont(file: *const std::os::raw::c_char, ptsize: std::os::raw::c_int) -> *mut TTF_Font; } extern "C" { pub fn TTF_OpenFontIndex( - file: *const libc::c_char, - ptsize: libc::c_int, - index: libc::c_long, + file: *const std::os::raw::c_char, + ptsize: std::os::raw::c_int, + index: std::os::raw::c_long, ) -> *mut TTF_Font; } extern "C" { pub fn TTF_OpenFontRW( src: *mut SDL_RWops, - freesrc: libc::c_int, - ptsize: libc::c_int, + freesrc: std::os::raw::c_int, + ptsize: std::os::raw::c_int, ) -> *mut TTF_Font; } extern "C" { pub fn TTF_OpenFontIndexRW( src: *mut SDL_RWops, - freesrc: libc::c_int, - ptsize: libc::c_int, - index: libc::c_long, + freesrc: std::os::raw::c_int, + ptsize: std::os::raw::c_int, + index: std::os::raw::c_long, ) -> *mut TTF_Font; } extern "C" { - pub fn TTF_GetFontStyle(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_GetFontStyle(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_SetFontStyle(font: *mut TTF_Font, style: libc::c_int); + pub fn TTF_SetFontStyle(font: *mut TTF_Font, style: std::os::raw::c_int); } extern "C" { - pub fn TTF_GetFontOutline(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_GetFontOutline(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_SetFontOutline(font: *mut TTF_Font, outline: libc::c_int); + pub fn TTF_SetFontOutline(font: *mut TTF_Font, outline: std::os::raw::c_int); } extern "C" { - pub fn TTF_GetFontHinting(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_GetFontHinting(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_SetFontHinting(font: *mut TTF_Font, hinting: libc::c_int); + pub fn TTF_SetFontHinting(font: *mut TTF_Font, hinting: std::os::raw::c_int); } extern "C" { - pub fn TTF_FontHeight(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_FontHeight(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_FontAscent(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_FontAscent(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_FontDescent(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_FontDescent(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_FontLineSkip(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_FontLineSkip(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_GetFontKerning(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_GetFontKerning(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_SetFontKerning(font: *mut TTF_Font, allowed: libc::c_int); + pub fn TTF_SetFontKerning(font: *mut TTF_Font, allowed: std::os::raw::c_int); } extern "C" { - pub fn TTF_FontFaces(font: *const TTF_Font) -> libc::c_long; + pub fn TTF_FontFaces(font: *const TTF_Font) -> std::os::raw::c_long; } extern "C" { - pub fn TTF_FontFaceIsFixedWidth(font: *const TTF_Font) -> libc::c_int; + pub fn TTF_FontFaceIsFixedWidth(font: *const TTF_Font) -> std::os::raw::c_int; } extern "C" { - pub fn TTF_FontFaceFamilyName(font: *const TTF_Font) -> *mut libc::c_char; + pub fn TTF_FontFaceFamilyName(font: *const TTF_Font) -> *mut std::os::raw::c_char; } extern "C" { - pub fn TTF_FontFaceStyleName(font: *const TTF_Font) -> *mut libc::c_char; + pub fn TTF_FontFaceStyleName(font: *const TTF_Font) -> *mut std::os::raw::c_char; } extern "C" { - pub fn TTF_GlyphIsProvided(font: *const TTF_Font, ch: Uint16) -> libc::c_int; + pub fn TTF_GlyphIsProvided(font: *const TTF_Font, ch: Uint16) -> std::os::raw::c_int; } extern "C" { pub fn TTF_GlyphMetrics( font: *mut TTF_Font, ch: Uint16, - minx: *mut libc::c_int, - maxx: *mut libc::c_int, - miny: *mut libc::c_int, - maxy: *mut libc::c_int, - advance: *mut libc::c_int, - ) -> libc::c_int; + minx: *mut std::os::raw::c_int, + maxx: *mut std::os::raw::c_int, + miny: *mut std::os::raw::c_int, + maxy: *mut std::os::raw::c_int, + advance: *mut std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn TTF_SizeText( font: *mut TTF_Font, - text: *const libc::c_char, - w: *mut libc::c_int, - h: *mut libc::c_int, - ) -> libc::c_int; + text: *const std::os::raw::c_char, + w: *mut std::os::raw::c_int, + h: *mut std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn TTF_SizeUTF8( font: *mut TTF_Font, - text: *const libc::c_char, - w: *mut libc::c_int, - h: *mut libc::c_int, - ) -> libc::c_int; + text: *const std::os::raw::c_char, + w: *mut std::os::raw::c_int, + h: *mut std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn TTF_SizeUNICODE( font: *mut TTF_Font, text: *const Uint16, - w: *mut libc::c_int, - h: *mut libc::c_int, - ) -> libc::c_int; + w: *mut std::os::raw::c_int, + h: *mut std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn TTF_RenderText_Solid( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, ) -> *mut SDL_Surface; } extern "C" { pub fn TTF_RenderUTF8_Solid( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, ) -> *mut SDL_Surface; } @@ -181,7 +181,7 @@ extern "C" { extern "C" { pub fn TTF_RenderText_Shaded( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, bg: SDL_Color, ) -> *mut SDL_Surface; @@ -189,7 +189,7 @@ extern "C" { extern "C" { pub fn TTF_RenderUTF8_Shaded( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, bg: SDL_Color, ) -> *mut SDL_Surface; @@ -213,14 +213,14 @@ extern "C" { extern "C" { pub fn TTF_RenderText_Blended( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, ) -> *mut SDL_Surface; } extern "C" { pub fn TTF_RenderUTF8_Blended( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, ) -> *mut SDL_Surface; } @@ -234,7 +234,7 @@ extern "C" { extern "C" { pub fn TTF_RenderText_Blended_Wrapped( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, wrapLength: Uint32, ) -> *mut SDL_Surface; @@ -242,7 +242,7 @@ extern "C" { extern "C" { pub fn TTF_RenderUTF8_Blended_Wrapped( font: *mut TTF_Font, - text: *const libc::c_char, + text: *const std::os::raw::c_char, fg: SDL_Color, wrapLength: Uint32, ) -> *mut SDL_Surface; @@ -269,19 +269,19 @@ extern "C" { pub fn TTF_Quit(); } extern "C" { - pub fn TTF_WasInit() -> libc::c_int; + pub fn TTF_WasInit() -> std::os::raw::c_int; } extern "C" { pub fn TTF_GetFontKerningSize( font: *mut TTF_Font, - prev_index: libc::c_int, - index: libc::c_int, - ) -> libc::c_int; + prev_index: std::os::raw::c_int, + index: std::os::raw::c_int, + ) -> std::os::raw::c_int; } extern "C" { pub fn TTF_GetFontKerningSizeGlyphs( font: *mut TTF_Font, previous_ch: Uint16, ch: Uint16, - ) -> libc::c_int; + ) -> std::os::raw::c_int; } diff --git a/src/sdl2/audio.rs b/src/sdl2/audio.rs index 7b5c9ce3040..091650212ad 100644 --- a/src/sdl2/audio.rs +++ b/src/sdl2/audio.rs @@ -52,7 +52,7 @@ //! std::thread::sleep(Duration::from_millis(2000)); //! ``` -use libc::{c_char, c_int, c_void}; +use std::os::raw::{c_char, c_int, c_void}; use std::convert::TryFrom; use std::ffi::{CStr, CString}; use std::marker::PhantomData; diff --git a/src/sdl2/clipboard.rs b/src/sdl2/clipboard.rs index 3a7c1e9ffa6..2cf23165503 100644 --- a/src/sdl2/clipboard.rs +++ b/src/sdl2/clipboard.rs @@ -1,6 +1,6 @@ use crate::get_error; -use libc::c_char; -use libc::c_void; +use std::os::raw::c_char; +use std::os::raw::c_void; use std::ffi::{CStr, CString}; use crate::sys; diff --git a/src/sdl2/common.rs b/src/sdl2/common.rs index 9492b20595a..9316de452b6 100644 --- a/src/sdl2/common.rs +++ b/src/sdl2/common.rs @@ -9,7 +9,7 @@ pub enum IntegerOrSdlError { SdlError(String), } /// Validates and converts the given u32 to a positive C integer. -pub fn validate_int(value: u32, name: &'static str) -> Result<::libc::c_int, IntegerOrSdlError> { +pub fn validate_int(value: u32, name: &'static str) -> Result<::std::os::raw::c_int, IntegerOrSdlError> { use self::IntegerOrSdlError::*; // Many SDL functions will accept `int` values, even if it doesn't make sense // for the values to be negative. @@ -21,7 +21,7 @@ pub fn validate_int(value: u32, name: &'static str) -> Result<::libc::c_int, Int if value >= 1 << 31 { Err(IntegerOverflows(name, value)) } else { - Ok(value as ::libc::c_int) + Ok(value as ::std::os::raw::c_int) } } diff --git a/src/sdl2/controller.rs b/src/sdl2/controller.rs index 508387d387e..4be128e99ba 100644 --- a/src/sdl2/controller.rs +++ b/src/sdl2/controller.rs @@ -1,5 +1,5 @@ use crate::rwops::RWops; -use libc::c_char; +use std::os::raw::c_char; use std::error; use std::ffi::{CStr, CString, NulError}; use std::fmt; @@ -578,7 +578,7 @@ impl GameController { let result = unsafe { sys::SDL_GameControllerSendEffect( self.raw, - data.as_ptr() as *const libc::c_void, + data.as_ptr() as *const std::os::raw::c_void, data.len() as i32, ) }; diff --git a/src/sdl2/event.rs b/src/sdl2/event.rs index 1af80dd94e9..ff9ca12f86c 100644 --- a/src/sdl2/event.rs +++ b/src/sdl2/event.rs @@ -13,8 +13,8 @@ use std::mem::transmute; use std::ptr; use std::sync::Mutex; -use libc::c_int; -use libc::c_void; +use std::os::raw::c_int; +use std::os::raw::c_void; use crate::controller; use crate::controller::{Axis, Button}; @@ -143,8 +143,8 @@ impl crate::EventSubsystem { /// window_id: 0, /// type_: custom_event_type_id, /// code: 456, - /// data1: 0x1234 as *mut libc::c_void, - /// data2: 0x5678 as *mut libc::c_void, + /// data1: 0x1234 as *mut std::os::raw::c_void, + /// data2: 0x5678 as *mut std::os::raw::c_void, /// }; /// /// ev.push_event(event); @@ -159,7 +159,7 @@ impl crate::EventSubsystem { /// /// Returns an error, if no more user events can be created. pub unsafe fn register_events(&self, nr: u32) -> Result, String> { - let result = sys::SDL_RegisterEvents(nr as ::libc::c_int); + let result = sys::SDL_RegisterEvents(nr as ::std::os::raw::c_int); const ERR_NR: u32 = ::std::u32::MAX - 1; match result { diff --git a/src/sdl2/filesystem.rs b/src/sdl2/filesystem.rs index 598c2aa5ce6..ff9c2fa05ed 100644 --- a/src/sdl2/filesystem.rs +++ b/src/sdl2/filesystem.rs @@ -1,6 +1,6 @@ use crate::get_error; -use libc::c_char; -use libc::c_void; +use std::os::raw::c_char; +use std::os::raw::c_void; use std::error; use std::ffi::{CStr, CString, NulError}; use std::fmt; diff --git a/src/sdl2/gfx/framerate.rs b/src/sdl2/gfx/framerate.rs index b7d7d0fee21..90fed4ba9eb 100644 --- a/src/sdl2/gfx/framerate.rs +++ b/src/sdl2/gfx/framerate.rs @@ -2,7 +2,7 @@ use get_error; use libc; -use libc::{c_void, size_t}; +use std::os::raw::{c_void, size_t}; use std::mem; use sys::gfx; @@ -16,7 +16,7 @@ impl FPSManager { pub fn new() -> FPSManager { unsafe { let size = mem::size_of::() as size_t; - let raw = libc::malloc(size) as *mut gfx::framerate::FPSmanager; + let raw = std::os::raw::malloc(size) as *mut gfx::framerate::FPSmanager; gfx::framerate::SDL_initFramerate(raw); FPSManager { raw: raw } } @@ -51,6 +51,6 @@ impl FPSManager { impl Drop for FPSManager { fn drop(&mut self) { - unsafe { libc::free(self.raw as *mut c_void) } + unsafe { std::os::raw::free(self.raw as *mut c_void) } } } diff --git a/src/sdl2/gfx/imagefilter.rs b/src/sdl2/gfx/imagefilter.rs index 0fb336b817b..f1559644a0c 100644 --- a/src/sdl2/gfx/imagefilter.rs +++ b/src/sdl2/gfx/imagefilter.rs @@ -2,7 +2,7 @@ use c_vec::CVec; use get_error; -use libc::{self, c_int, c_uint, c_void, size_t}; +use std::os::raw::{self, c_int, c_uint, c_void, size_t}; use std::mem; use sys::gfx::imagefilter; @@ -24,8 +24,8 @@ pub fn mmx_on() { #[inline] fn cvec_with_size(sz: usize) -> CVec { unsafe { - let p = libc::malloc(sz as size_t) as *mut u8; - CVec::new_with_dtor(p, sz, move |p| libc::free(p as *mut c_void)) + let p = std::os::raw::malloc(sz as size_t) as *mut u8; + CVec::new_with_dtor(p, sz, move |p| std::os::raw::free(p as *mut c_void)) } } diff --git a/src/sdl2/gfx/primitives.rs b/src/sdl2/gfx/primitives.rs index b3e634a64cb..584f281305b 100644 --- a/src/sdl2/gfx/primitives.rs +++ b/src/sdl2/gfx/primitives.rs @@ -1,8 +1,8 @@ //! Graphic Primitives use get_error; -use libc::c_void; -use libc::{c_char, c_int}; +use std::os::raw::c_void; +use std::os::raw::{c_char, c_int}; use pixels; use render::Canvas; use std::convert::TryFrom; diff --git a/src/sdl2/gfx/rotozoom.rs b/src/sdl2/gfx/rotozoom.rs index 9e7d7855757..ebd886cb9a8 100644 --- a/src/sdl2/gfx/rotozoom.rs +++ b/src/sdl2/gfx/rotozoom.rs @@ -1,7 +1,7 @@ //! Surface Rotozoomer use get_error; -use libc::c_int; +use std::os::raw::c_int; pub use std::f64::consts::PI; use surface::Surface; use sys::gfx::rotozoom; diff --git a/src/sdl2/hint.rs b/src/sdl2/hint.rs index 58f7173b6de..6b493a682ed 100644 --- a/src/sdl2/hint.rs +++ b/src/sdl2/hint.rs @@ -1,5 +1,5 @@ use crate::sys; -use libc::c_char; +use std::os::raw::c_char; use std::ffi::{CStr, CString}; const VIDEO_MINIMIZE_ON_FOCUS_LOSS: &str = "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"; diff --git a/src/sdl2/image/mod.rs b/src/sdl2/image/mod.rs index b722dddcaa4..90f2ca40951 100644 --- a/src/sdl2/image/mod.rs +++ b/src/sdl2/image/mod.rs @@ -155,7 +155,7 @@ impl LoadTexture for TextureCreator { fn load_texture_bytes(&self, buf: &[u8]) -> Result { //! Loads an SDL Texture from a buffer that the format must be something supported by SDL2_image (png, jpeg, ect, but NOT RGBA8888 bytes for instance) unsafe { - let buf = sdl2_sys::SDL_RWFromMem(buf.as_ptr() as *mut libc::c_void, buf.len() as i32); + let buf = sdl2_sys::SDL_RWFromMem(buf.as_ptr() as *mut std::os::raw::c_void, buf.len() as i32); let raw = image::IMG_LoadTexture_RW(self.raw(), buf, 1); // close(free) buff after load if (raw as *mut ()).is_null() { Err(get_error()) diff --git a/src/sdl2/joystick.rs b/src/sdl2/joystick.rs index 222a0c4dea4..1bdc10f5d92 100644 --- a/src/sdl2/joystick.rs +++ b/src/sdl2/joystick.rs @@ -5,7 +5,7 @@ use crate::clear_error; use crate::common::{validate_int, IntegerOrSdlError}; use crate::get_error; use crate::JoystickSubsystem; -use libc::c_char; +use std::os::raw::c_char; use std::ffi::{CStr, CString, NulError}; use std::fmt::{Display, Error, Formatter}; @@ -471,7 +471,7 @@ impl Joystick { let result = unsafe { sys::SDL_JoystickSendEffect( self.raw, - data.as_ptr() as *const libc::c_void, + data.as_ptr() as *const std::os::raw::c_void, data.len() as i32, ) }; diff --git a/src/sdl2/keyboard/keycode.rs b/src/sdl2/keyboard/keycode.rs index 03f7c6f0a51..d1659dd4977 100644 --- a/src/sdl2/keyboard/keycode.rs +++ b/src/sdl2/keyboard/keycode.rs @@ -1,6 +1,6 @@ #![allow(unreachable_patterns)] -use libc::c_char; +use std::os::raw::c_char; use std::ffi::{CStr, CString}; use std::mem::transmute; diff --git a/src/sdl2/keyboard/scancode.rs b/src/sdl2/keyboard/scancode.rs index 1b61891a9ca..e22cc77d789 100644 --- a/src/sdl2/keyboard/scancode.rs +++ b/src/sdl2/keyboard/scancode.rs @@ -1,6 +1,6 @@ #![allow(unreachable_patterns)] -use libc::c_char; +use std::os::raw::c_char; use std::ffi::{CStr, CString}; use std::mem::transmute; diff --git a/src/sdl2/log.rs b/src/sdl2/log.rs index 2303d89a38b..f81b432b423 100644 --- a/src/sdl2/log.rs +++ b/src/sdl2/log.rs @@ -75,10 +75,10 @@ fn dummy(_priority: Priority, _category: Category, _message: &str) {} static mut custom_log_fn: fn(Priority, Category, &str) = dummy; unsafe extern "C" fn rust_sdl2_log_fn( - _userdata: *mut libc::c_void, - category: libc::c_int, + _userdata: *mut std::os::raw::c_void, + category: std::os::raw::c_int, priority: sys::SDL_LogPriority, - message: *const libc::c_char, + message: *const std::os::raw::c_char, ) { let category = Category::from_ll(category as u32); let priority = Priority::from_ll(priority); diff --git a/src/sdl2/mixer/mod.rs b/src/sdl2/mixer/mod.rs index 4516bbd24e5..ac5b40c2273 100644 --- a/src/sdl2/mixer/mod.rs +++ b/src/sdl2/mixer/mod.rs @@ -22,8 +22,8 @@ use audio::AudioFormatNum; use get_error; -use libc::c_void; -use libc::{c_double, c_int, c_uint}; +use std::os::raw::c_void; +use std::os::raw::{c_double, c_int, c_uint}; use rwops::RWops; use std::borrow::ToOwned; use std::convert::TryInto; diff --git a/src/sdl2/pixels.rs b/src/sdl2/pixels.rs index 765782197fc..ddc558a737f 100644 --- a/src/sdl2/pixels.rs +++ b/src/sdl2/pixels.rs @@ -45,7 +45,7 @@ impl Palette { let pal = Self::new(colors.len())?; // Already validated, so don't check again - let ncolors = colors.len() as ::libc::c_int; + let ncolors = colors.len() as ::std::os::raw::c_int; let result = unsafe { let mut raw_colors: Vec = diff --git a/src/sdl2/raw_window_handle.rs b/src/sdl2/raw_window_handle.rs index fb88fc5d48c..8b0a1ccfcac 100644 --- a/src/sdl2/raw_window_handle.rs +++ b/src/sdl2/raw_window_handle.rs @@ -36,8 +36,8 @@ unsafe impl HasRawWindowHandle for Window { use self::raw_window_handle::Win32WindowHandle; let mut handle = Win32WindowHandle::empty(); - handle.hwnd = unsafe { wm_info.info.win }.window as *mut libc::c_void; - handle.hinstance = unsafe { wm_info.info.win }.hinstance as *mut libc::c_void; + handle.hwnd = unsafe { wm_info.info.win }.window as *mut std::os::raw::c_void; + handle.hinstance = unsafe { wm_info.info.win }.hinstance as *mut std::os::raw::c_void; RawWindowHandle::Win32(handle) } @@ -61,7 +61,7 @@ unsafe impl HasRawWindowHandle for Window { use self::raw_window_handle::WaylandWindowHandle; let mut handle = WaylandWindowHandle::empty(); - handle.surface = unsafe { wm_info.info.wl }.surface as *mut libc::c_void; + handle.surface = unsafe { wm_info.info.wl }.surface as *mut std::os::raw::c_void; RawWindowHandle::Wayland(handle) } @@ -85,7 +85,7 @@ unsafe impl HasRawWindowHandle for Window { use self::raw_window_handle::AppKitWindowHandle; let mut handle = AppKitWindowHandle::empty(); - handle.ns_window = unsafe { wm_info.info.cocoa }.window as *mut libc::c_void; + handle.ns_window = unsafe { wm_info.info.cocoa }.window as *mut std::os::raw::c_void; handle.ns_view = if self.context().metal_view.is_null() { panic!("metal_view not initialized, please call WindowBuilder::metal_view() when building the window"); } else { @@ -99,8 +99,8 @@ unsafe impl HasRawWindowHandle for Window { use self::raw_window_handle::UiKitWindowHandle; let mut handle = UiKitHandle::empty(); - handle.ui_window = unsafe { wm_info.info.uikit }.window as *mut libc::c_void; - handle.ui_view = 0 as *mut libc::c_void; // consumer of RawWindowHandle should determine this + handle.ui_window = unsafe { wm_info.info.uikit }.window as *mut std::os::raw::c_void; + handle.ui_view = 0 as *mut std::os::raw::c_void; // consumer of RawWindowHandle should determine this RawWindowHandle::UiKit(handle) } @@ -110,7 +110,7 @@ unsafe impl HasRawWindowHandle for Window { let mut handle = AndroidNdkWindowHandle::empty(); handle.a_native_window = - unsafe { wm_info.info.android }.window as *mut libc::c_void; + unsafe { wm_info.info.android }.window as *mut std::os::raw::c_void; RawWindowHandle::AndroidNdk(handle) } @@ -171,7 +171,7 @@ unsafe impl HasRawDisplayHandle for Window { use self::raw_window_handle::WaylandDisplayHandle; let mut handle = WaylandDisplayHandle::empty(); - handle.display = unsafe { wm_info.info.wl }.display as *mut libc::c_void; + handle.display = unsafe { wm_info.info.wl }.display as *mut std::os::raw::c_void; RawDisplayHandle::Wayland(handle) } @@ -186,7 +186,7 @@ unsafe impl HasRawDisplayHandle for Window { use self::raw_window_handle::XlibDisplayHandle; let mut handle = XlibDisplayHandle::empty(); - handle.display = unsafe { wm_info.info.x11 }.display as *mut libc::c_void; + handle.display = unsafe { wm_info.info.x11 }.display as *mut std::os::raw::c_void; RawDisplayHandle::Xlib(handle) } @@ -330,19 +330,19 @@ pub mod windows { #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct HWND { - pub unused: libc::c_int, + pub unused: std::os::raw::c_int, } #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct HDC { - pub unused: libc::c_int, + pub unused: std::os::raw::c_int, } #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] pub struct HINSTANCE { - pub unused: libc::c_int, + pub unused: std::os::raw::c_int, } #[repr(C)] @@ -434,7 +434,7 @@ pub mod linux { _unused: [u8; 0], } - pub type Window = libc::c_ulong; + pub type Window = std::os::raw::c_ulong; } #[cfg(target_os = "macos")] diff --git a/src/sdl2/render.rs b/src/sdl2/render.rs index cb645752b9d..7a993c8ef4a 100644 --- a/src/sdl2/render.rs +++ b/src/sdl2/render.rs @@ -37,8 +37,8 @@ use crate::rect::Rect; use crate::surface; use crate::surface::{Surface, SurfaceContext, SurfaceRef}; use crate::video::{Window, WindowContext}; -use libc::c_void; -use libc::{c_double, c_int}; +use std::os::raw::c_void; +use std::os::raw::{c_double, c_int}; use std::convert::TryFrom; use std::error::Error; use std::ffi::CStr; diff --git a/src/sdl2/rwops.rs b/src/sdl2/rwops.rs index d48332b7e88..309d9e6d8fb 100644 --- a/src/sdl2/rwops.rs +++ b/src/sdl2/rwops.rs @@ -1,6 +1,7 @@ use crate::get_error; -use libc::c_void; -use libc::{c_char, c_int, size_t}; +use std::os::raw::c_void; +use std::os::raw::{c_char, c_int}; +use sys::size_t; use std::ffi::CString; use std::io; use std::marker::PhantomData; diff --git a/src/sdl2/sdl.rs b/src/sdl2/sdl.rs index dc8f781c93c..bc9099aecfa 100644 --- a/src/sdl2/sdl.rs +++ b/src/sdl2/sdl.rs @@ -1,4 +1,4 @@ -use libc::c_char; +use std::os::raw::c_char; use std::cell::Cell; use std::error; use std::ffi::{CStr, CString, NulError}; diff --git a/src/sdl2/sensor.rs b/src/sdl2/sensor.rs index 4201592476b..68769af3e00 100644 --- a/src/sdl2/sensor.rs +++ b/src/sdl2/sensor.rs @@ -21,7 +21,7 @@ use crate::sys; use crate::common::{validate_int, IntegerOrSdlError}; use crate::get_error; use crate::SensorSubsystem; -use libc::c_char; +use std::os::raw::c_char; use std::ffi::CStr; use sys::SDL_SensorGetData; use sys::SDL_SensorType; diff --git a/src/sdl2/surface.rs b/src/sdl2/surface.rs index 9fe7d022e41..f17d292fc6a 100644 --- a/src/sdl2/surface.rs +++ b/src/sdl2/surface.rs @@ -10,7 +10,7 @@ use crate::rect::Rect; use crate::render::{BlendMode, Canvas}; use crate::render::{Texture, TextureCreator, TextureValueError}; use crate::rwops::RWops; -use libc::c_int; +use std::os::raw::c_int; use std::convert::TryFrom; use std::mem::transmute; use std::ptr; diff --git a/src/sdl2/timer.rs b/src/sdl2/timer.rs index 678f36518cf..2ac5b22ed08 100644 --- a/src/sdl2/timer.rs +++ b/src/sdl2/timer.rs @@ -1,5 +1,5 @@ use crate::sys; -use libc::c_void; +use std::os::raw::c_void; use std::marker::PhantomData; use std::mem; diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index 35c070b51bb..013b07cb19e 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -1,4 +1,4 @@ -use libc::{c_char, c_float, c_int, c_uint}; +use std::os::raw::{c_char, c_float, c_int, c_uint}; use std::convert::TryFrom; use std::error::Error; use std::ffi::{CStr, CString, NulError}; diff --git a/tests/events.rs b/tests/events.rs index ca96e1f4f5d..daa773cf6dd 100644 --- a/tests/events.rs +++ b/tests/events.rs @@ -47,8 +47,8 @@ fn test2(ev: &sdl2::EventSubsystem, ep: &mut sdl2::EventPump) { window_id: 0, type_: user_event_id, code: 456, - data1: 0x12_34 as *mut libc::c_void, - data2: 0x56_78 as *mut libc::c_void, + data1: 0x12_34 as *mut std::os::raw::c_void, + data2: 0x56_78 as *mut std::os::raw::c_void, }; let (w1, t1, c1, a1, a2) = match event { diff --git a/tests/raw_window_handle.rs b/tests/raw_window_handle.rs index 2124e9f8164..31b2be73530 100644 --- a/tests/raw_window_handle.rs +++ b/tests/raw_window_handle.rs @@ -14,7 +14,7 @@ mod raw_window_handle_test { let window = new_hidden_window(); match window.raw_window_handle() { RawWindowHandle::Win32(windows_handle) => { - assert_ne!(windows_handle.hwnd, 0 as *mut libc::c_void); + assert_ne!(windows_handle.hwnd, 0 as *mut std::os::raw::c_void); println!("Successfully received Windows RawWindowHandle!"); } x => assert!( @@ -50,7 +50,7 @@ mod raw_window_handle_test { } RawWindowHandle::Wayland(wayland_handle) => { assert_ne!( - wayland_handle.surface, 0 as *mut libc::c_void, + wayland_handle.surface, 0 as *mut std::os::raw::c_void, "Surface for Wayland should not be null" ); println!("Successfully received linux Wayland RawWindowHandle!"); @@ -64,13 +64,13 @@ mod raw_window_handle_test { match window.raw_display_handle() { RawDisplayHandle::Xlib(x11_display) => { assert_ne!( - x11_display.display, 0 as *mut libc::c_void, + x11_display.display, 0 as *mut std::os::raw::c_void, "Display for X11 should not be null" ); } RawDisplayHandle::Wayland(wayland_display) => { assert_ne!( - wayland_display.display, 0 as *mut libc::c_void, + wayland_display.display, 0 as *mut std::os::raw::c_void, "Display for Wayland should not be null" ); } @@ -89,11 +89,11 @@ mod raw_window_handle_test { match window.raw_window_handle() { RawWindowHandle::AppKit(macos_handle) => { assert_ne!( - macos_handle.ns_window, 0 as *mut libc::c_void, + macos_handle.ns_window, 0 as *mut std::os::raw::c_void, "ns_window should not be null" ); assert_ne!( - macos_handle.ns_view, 0 as *mut libc::c_void, + macos_handle.ns_view, 0 as *mut std::os::raw::c_void, "nw_view should not be null" ); println!("Successfully received macOS RawWindowHandle!");