Created
May 26, 2021 20:25
-
-
Save saivert/9471f981f31029656bb4d7a793330673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen 0.58.1 */ | |
#[repr(C)] | |
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] | |
pub struct __BindgenBitfieldUnit<Storage> { | |
storage: Storage, | |
} | |
impl<Storage> __BindgenBitfieldUnit<Storage> { | |
#[inline] | |
pub const fn new(storage: Storage) -> Self { | |
Self { storage } | |
} | |
} | |
impl<Storage> __BindgenBitfieldUnit<Storage> | |
where | |
Storage: AsRef<[u8]> + AsMut<[u8]>, | |
{ | |
#[inline] | |
pub fn get_bit(&self, index: usize) -> bool { | |
debug_assert!(index / 8 < self.storage.as_ref().len()); | |
let byte_index = index / 8; | |
let byte = self.storage.as_ref()[byte_index]; | |
let bit_index = if cfg!(target_endian = "big") { | |
7 - (index % 8) | |
} else { | |
index % 8 | |
}; | |
let mask = 1 << bit_index; | |
byte & mask == mask | |
} | |
#[inline] | |
pub fn set_bit(&mut self, index: usize, val: bool) { | |
debug_assert!(index / 8 < self.storage.as_ref().len()); | |
let byte_index = index / 8; | |
let byte = &mut self.storage.as_mut()[byte_index]; | |
let bit_index = if cfg!(target_endian = "big") { | |
7 - (index % 8) | |
} else { | |
index % 8 | |
}; | |
let mask = 1 << bit_index; | |
if val { | |
*byte |= mask; | |
} else { | |
*byte &= !mask; | |
} | |
} | |
#[inline] | |
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { | |
debug_assert!(bit_width <= 64); | |
debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); | |
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); | |
let mut val = 0; | |
for i in 0..(bit_width as usize) { | |
if self.get_bit(i + bit_offset) { | |
let index = if cfg!(target_endian = "big") { | |
bit_width as usize - 1 - i | |
} else { | |
i | |
}; | |
val |= 1 << index; | |
} | |
} | |
val | |
} | |
#[inline] | |
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { | |
debug_assert!(bit_width <= 64); | |
debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); | |
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); | |
for i in 0..(bit_width as usize) { | |
let mask = 1 << i; | |
let val_bit_is_set = val & mask == mask; | |
let index = if cfg!(target_endian = "big") { | |
bit_width as usize - 1 - i | |
} else { | |
i | |
}; | |
self.set_bit(index + bit_offset, val_bit_is_set); | |
} | |
} | |
} | |
#[repr(C)] | |
#[derive(Default)] | |
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]); | |
impl<T> __IncompleteArrayField<T> { | |
#[inline] | |
pub const fn new() -> Self { | |
__IncompleteArrayField(::std::marker::PhantomData, []) | |
} | |
#[inline] | |
pub fn as_ptr(&self) -> *const T { | |
self as *const _ as *const T | |
} | |
#[inline] | |
pub fn as_mut_ptr(&mut self) -> *mut T { | |
self as *mut _ as *mut T | |
} | |
#[inline] | |
pub unsafe fn as_slice(&self, len: usize) -> &[T] { | |
::std::slice::from_raw_parts(self.as_ptr(), len) | |
} | |
#[inline] | |
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { | |
::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) | |
} | |
} | |
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> { | |
fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { | |
fmt.write_str("__IncompleteArrayField") | |
} | |
} | |
#[repr(C)] | |
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); | |
impl<T> __BindgenUnionField<T> { | |
#[inline] | |
pub const fn new() -> Self { | |
__BindgenUnionField(::std::marker::PhantomData) | |
} | |
#[inline] | |
pub unsafe fn as_ref(&self) -> &T { | |
::std::mem::transmute(self) | |
} | |
#[inline] | |
pub unsafe fn as_mut(&mut self) -> &mut T { | |
::std::mem::transmute(self) | |
} | |
} | |
impl<T> ::std::default::Default for __BindgenUnionField<T> { | |
#[inline] | |
fn default() -> Self { | |
Self::new() | |
} | |
} | |
impl<T> ::std::clone::Clone for __BindgenUnionField<T> { | |
#[inline] | |
fn clone(&self) -> Self { | |
Self::new() | |
} | |
} | |
impl<T> ::std::marker::Copy for __BindgenUnionField<T> {} | |
impl<T> ::std::fmt::Debug for __BindgenUnionField<T> { | |
fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { | |
fmt.write_str("__BindgenUnionField") | |
} | |
} | |
impl<T> ::std::hash::Hash for __BindgenUnionField<T> { | |
fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {} | |
} | |
impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> { | |
fn eq(&self, _other: &__BindgenUnionField<T>) -> bool { | |
true | |
} | |
} | |
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {} | |
pub const _STDINT_H: u32 = 1; | |
pub const _FEATURES_H: u32 = 1; | |
pub const _DEFAULT_SOURCE: u32 = 1; | |
pub const __GLIBC_USE_ISOC2X: u32 = 0; | |
pub const __USE_ISOC11: u32 = 1; | |
pub const __USE_ISOC99: u32 = 1; | |
pub const __USE_ISOC95: u32 = 1; | |
pub const __USE_POSIX_IMPLICITLY: u32 = 1; | |
pub const _POSIX_SOURCE: u32 = 1; | |
pub const _POSIX_C_SOURCE: u32 = 200809; | |
pub const __USE_POSIX: u32 = 1; | |
pub const __USE_POSIX2: u32 = 1; | |
pub const __USE_POSIX199309: u32 = 1; | |
pub const __USE_POSIX199506: u32 = 1; | |
pub const __USE_XOPEN2K: u32 = 1; | |
pub const __USE_XOPEN2K8: u32 = 1; | |
pub const _ATFILE_SOURCE: u32 = 1; | |
pub const __USE_MISC: u32 = 1; | |
pub const __USE_ATFILE: u32 = 1; | |
pub const __USE_FORTIFY_LEVEL: u32 = 0; | |
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; | |
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; | |
pub const _STDC_PREDEF_H: u32 = 1; | |
pub const __STDC_IEC_559__: u32 = 1; | |
pub const __STDC_IEC_559_COMPLEX__: u32 = 1; | |
pub const __STDC_ISO_10646__: u32 = 201706; | |
pub const __GNU_LIBRARY__: u32 = 6; | |
pub const __GLIBC__: u32 = 2; | |
pub const __GLIBC_MINOR__: u32 = 33; | |
pub const _SYS_CDEFS_H: u32 = 1; | |
pub const __glibc_c99_flexarr_available: u32 = 1; | |
pub const __WORDSIZE: u32 = 64; | |
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; | |
pub const __SYSCALL_WORDSIZE: u32 = 64; | |
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; | |
pub const __HAVE_GENERIC_SELECTION: u32 = 1; | |
pub const __GLIBC_USE_LIB_EXT2: u32 = 0; | |
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; | |
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; | |
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; | |
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; | |
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; | |
pub const _BITS_TYPES_H: u32 = 1; | |
pub const __TIMESIZE: u32 = 64; | |
pub const _BITS_TYPESIZES_H: u32 = 1; | |
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; | |
pub const __INO_T_MATCHES_INO64_T: u32 = 1; | |
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; | |
pub const __STATFS_MATCHES_STATFS64: u32 = 1; | |
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; | |
pub const __FD_SETSIZE: u32 = 1024; | |
pub const _BITS_TIME64_H: u32 = 1; | |
pub const _BITS_WCHAR_H: u32 = 1; | |
pub const _BITS_STDINT_INTN_H: u32 = 1; | |
pub const _BITS_STDINT_UINTN_H: u32 = 1; | |
pub const INT8_MIN: i32 = -128; | |
pub const INT16_MIN: i32 = -32768; | |
pub const INT32_MIN: i32 = -2147483648; | |
pub const INT8_MAX: u32 = 127; | |
pub const INT16_MAX: u32 = 32767; | |
pub const INT32_MAX: u32 = 2147483647; | |
pub const UINT8_MAX: u32 = 255; | |
pub const UINT16_MAX: u32 = 65535; | |
pub const UINT32_MAX: u32 = 4294967295; | |
pub const INT_LEAST8_MIN: i32 = -128; | |
pub const INT_LEAST16_MIN: i32 = -32768; | |
pub const INT_LEAST32_MIN: i32 = -2147483648; | |
pub const INT_LEAST8_MAX: u32 = 127; | |
pub const INT_LEAST16_MAX: u32 = 32767; | |
pub const INT_LEAST32_MAX: u32 = 2147483647; | |
pub const UINT_LEAST8_MAX: u32 = 255; | |
pub const UINT_LEAST16_MAX: u32 = 65535; | |
pub const UINT_LEAST32_MAX: u32 = 4294967295; | |
pub const INT_FAST8_MIN: i32 = -128; | |
pub const INT_FAST16_MIN: i64 = -9223372036854775808; | |
pub const INT_FAST32_MIN: i64 = -9223372036854775808; | |
pub const INT_FAST8_MAX: u32 = 127; | |
pub const INT_FAST16_MAX: u64 = 9223372036854775807; | |
pub const INT_FAST32_MAX: u64 = 9223372036854775807; | |
pub const UINT_FAST8_MAX: u32 = 255; | |
pub const UINT_FAST16_MAX: i32 = -1; | |
pub const UINT_FAST32_MAX: i32 = -1; | |
pub const INTPTR_MIN: i64 = -9223372036854775808; | |
pub const INTPTR_MAX: u64 = 9223372036854775807; | |
pub const UINTPTR_MAX: i32 = -1; | |
pub const PTRDIFF_MIN: i64 = -9223372036854775808; | |
pub const PTRDIFF_MAX: u64 = 9223372036854775807; | |
pub const SIG_ATOMIC_MIN: i32 = -2147483648; | |
pub const SIG_ATOMIC_MAX: u32 = 2147483647; | |
pub const SIZE_MAX: i32 = -1; | |
pub const WINT_MIN: u32 = 0; | |
pub const WINT_MAX: u32 = 4294967295; | |
pub const _TIME_H: u32 = 1; | |
pub const _BITS_TIME_H: u32 = 1; | |
pub const CLOCK_REALTIME: u32 = 0; | |
pub const CLOCK_MONOTONIC: u32 = 1; | |
pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; | |
pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; | |
pub const CLOCK_MONOTONIC_RAW: u32 = 4; | |
pub const CLOCK_REALTIME_COARSE: u32 = 5; | |
pub const CLOCK_MONOTONIC_COARSE: u32 = 6; | |
pub const CLOCK_BOOTTIME: u32 = 7; | |
pub const CLOCK_REALTIME_ALARM: u32 = 8; | |
pub const CLOCK_BOOTTIME_ALARM: u32 = 9; | |
pub const CLOCK_TAI: u32 = 11; | |
pub const TIMER_ABSTIME: u32 = 1; | |
pub const __clock_t_defined: u32 = 1; | |
pub const __time_t_defined: u32 = 1; | |
pub const __struct_tm_defined: u32 = 1; | |
pub const _STRUCT_TIMESPEC: u32 = 1; | |
pub const _BITS_ENDIAN_H: u32 = 1; | |
pub const __LITTLE_ENDIAN: u32 = 1234; | |
pub const __BIG_ENDIAN: u32 = 4321; | |
pub const __PDP_ENDIAN: u32 = 3412; | |
pub const _BITS_ENDIANNESS_H: u32 = 1; | |
pub const __BYTE_ORDER: u32 = 1234; | |
pub const __FLOAT_WORD_ORDER: u32 = 1234; | |
pub const __clockid_t_defined: u32 = 1; | |
pub const __timer_t_defined: u32 = 1; | |
pub const __itimerspec_defined: u32 = 1; | |
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; | |
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; | |
pub const TIME_UTC: u32 = 1; | |
pub const _STDIO_H: u32 = 1; | |
pub const __GNUC_VA_LIST: u32 = 1; | |
pub const _____fpos_t_defined: u32 = 1; | |
pub const ____mbstate_t_defined: u32 = 1; | |
pub const _____fpos64_t_defined: u32 = 1; | |
pub const ____FILE_defined: u32 = 1; | |
pub const __FILE_defined: u32 = 1; | |
pub const __struct_FILE_defined: u32 = 1; | |
pub const _IO_EOF_SEEN: u32 = 16; | |
pub const _IO_ERR_SEEN: u32 = 32; | |
pub const _IO_USER_LOCK: u32 = 32768; | |
pub const _IOFBF: u32 = 0; | |
pub const _IOLBF: u32 = 1; | |
pub const _IONBF: u32 = 2; | |
pub const BUFSIZ: u32 = 8192; | |
pub const EOF: i32 = -1; | |
pub const SEEK_SET: u32 = 0; | |
pub const SEEK_CUR: u32 = 1; | |
pub const SEEK_END: u32 = 2; | |
pub const P_tmpdir: &'static [u8; 5usize] = b"/tmp\0"; | |
pub const _BITS_STDIO_LIM_H: u32 = 1; | |
pub const L_tmpnam: u32 = 20; | |
pub const TMP_MAX: u32 = 238328; | |
pub const FILENAME_MAX: u32 = 4096; | |
pub const L_ctermid: u32 = 9; | |
pub const FOPEN_MAX: u32 = 16; | |
pub const __HAVE_FLOAT128: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; | |
pub const __HAVE_FLOAT64X: u32 = 1; | |
pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; | |
pub const __HAVE_FLOAT16: u32 = 0; | |
pub const __HAVE_FLOAT32: u32 = 1; | |
pub const __HAVE_FLOAT64: u32 = 1; | |
pub const __HAVE_FLOAT32X: u32 = 1; | |
pub const __HAVE_FLOAT128X: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; | |
pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; | |
pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; | |
pub const _DIRENT_H: u32 = 1; | |
pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; | |
pub const _BITS_POSIX1_LIM_H: u32 = 1; | |
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; | |
pub const _POSIX_AIO_MAX: u32 = 1; | |
pub const _POSIX_ARG_MAX: u32 = 4096; | |
pub const _POSIX_CHILD_MAX: u32 = 25; | |
pub const _POSIX_DELAYTIMER_MAX: u32 = 32; | |
pub const _POSIX_HOST_NAME_MAX: u32 = 255; | |
pub const _POSIX_LINK_MAX: u32 = 8; | |
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; | |
pub const _POSIX_MAX_CANON: u32 = 255; | |
pub const _POSIX_MAX_INPUT: u32 = 255; | |
pub const _POSIX_MQ_OPEN_MAX: u32 = 8; | |
pub const _POSIX_MQ_PRIO_MAX: u32 = 32; | |
pub const _POSIX_NAME_MAX: u32 = 14; | |
pub const _POSIX_NGROUPS_MAX: u32 = 8; | |
pub const _POSIX_OPEN_MAX: u32 = 20; | |
pub const _POSIX_PATH_MAX: u32 = 256; | |
pub const _POSIX_PIPE_BUF: u32 = 512; | |
pub const _POSIX_RE_DUP_MAX: u32 = 255; | |
pub const _POSIX_RTSIG_MAX: u32 = 8; | |
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; | |
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; | |
pub const _POSIX_SIGQUEUE_MAX: u32 = 32; | |
pub const _POSIX_SSIZE_MAX: u32 = 32767; | |
pub const _POSIX_STREAM_MAX: u32 = 8; | |
pub const _POSIX_SYMLINK_MAX: u32 = 255; | |
pub const _POSIX_SYMLOOP_MAX: u32 = 8; | |
pub const _POSIX_TIMER_MAX: u32 = 32; | |
pub const _POSIX_TTY_NAME_MAX: u32 = 9; | |
pub const _POSIX_TZNAME_MAX: u32 = 6; | |
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; | |
pub const NR_OPEN: u32 = 1024; | |
pub const NGROUPS_MAX: u32 = 65536; | |
pub const ARG_MAX: u32 = 131072; | |
pub const LINK_MAX: u32 = 127; | |
pub const MAX_CANON: u32 = 255; | |
pub const MAX_INPUT: u32 = 255; | |
pub const NAME_MAX: u32 = 255; | |
pub const PATH_MAX: u32 = 4096; | |
pub const PIPE_BUF: u32 = 4096; | |
pub const XATTR_NAME_MAX: u32 = 255; | |
pub const XATTR_SIZE_MAX: u32 = 65536; | |
pub const XATTR_LIST_MAX: u32 = 65536; | |
pub const RTSIG_MAX: u32 = 32; | |
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; | |
pub const PTHREAD_KEYS_MAX: u32 = 1024; | |
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; | |
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; | |
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; | |
pub const AIO_PRIO_DELTA_MAX: u32 = 20; | |
pub const PTHREAD_STACK_MIN: u32 = 16384; | |
pub const DELAYTIMER_MAX: u32 = 2147483647; | |
pub const TTY_NAME_MAX: u32 = 32; | |
pub const LOGIN_NAME_MAX: u32 = 256; | |
pub const HOST_NAME_MAX: u32 = 64; | |
pub const MQ_PRIO_MAX: u32 = 32768; | |
pub const SEM_VALUE_MAX: u32 = 2147483647; | |
pub const MAXNAMLEN: u32 = 255; | |
pub const DB_API_VERSION_MAJOR: u32 = 1; | |
pub const DB_API_VERSION_MINOR: u32 = 14; | |
pub const DDB_API_LEVEL: u32 = 14; | |
pub const DDB_DEFAULT_CTMAPPING : & 'static [u8 ; 219usize] = b"audio/mpeg {stdmpg ffmpeg} audio/x-mpeg {stdmpg ffmpeg} application/ogg {stdogg opus ffmpeg} audio/ogg {stdogg opus ffmpeg} audio/aac {aac ffmpeg} audio/aacp {aac ffmpeg} audio/x-m4a {aac ffmpeg} audio/wma {wma ffmpeg}\0" ; | |
pub const PL_MAIN: u32 = 0; | |
pub const PL_SEARCH: u32 = 1; | |
pub const JUNK_STRIP_ID3V2: u32 = 1; | |
pub const JUNK_STRIP_APEV2: u32 = 2; | |
pub const JUNK_STRIP_ID3V1: u32 = 4; | |
pub const JUNK_WRITE_ID3V2: u32 = 8; | |
pub const JUNK_WRITE_APEV2: u32 = 16; | |
pub const JUNK_WRITE_ID3V1: u32 = 32; | |
pub const DDB_FREQ_BANDS: u32 = 256; | |
pub const DDB_FREQ_MAX_CHANNELS: u32 = 9; | |
pub type __u_char = ::std::os::raw::c_uchar; | |
pub type __u_short = ::std::os::raw::c_ushort; | |
pub type __u_int = ::std::os::raw::c_uint; | |
pub type __u_long = ::std::os::raw::c_ulong; | |
pub type __int8_t = ::std::os::raw::c_schar; | |
pub type __uint8_t = ::std::os::raw::c_uchar; | |
pub type __int16_t = ::std::os::raw::c_short; | |
pub type __uint16_t = ::std::os::raw::c_ushort; | |
pub type __int32_t = ::std::os::raw::c_int; | |
pub type __uint32_t = ::std::os::raw::c_uint; | |
pub type __int64_t = ::std::os::raw::c_long; | |
pub type __uint64_t = ::std::os::raw::c_ulong; | |
pub type __int_least8_t = __int8_t; | |
pub type __uint_least8_t = __uint8_t; | |
pub type __int_least16_t = __int16_t; | |
pub type __uint_least16_t = __uint16_t; | |
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 = ::std::os::raw::c_long; | |
pub type __u_quad_t = ::std::os::raw::c_ulong; | |
pub type __intmax_t = ::std::os::raw::c_long; | |
pub type __uintmax_t = ::std::os::raw::c_ulong; | |
pub type __dev_t = ::std::os::raw::c_ulong; | |
pub type __uid_t = ::std::os::raw::c_uint; | |
pub type __gid_t = ::std::os::raw::c_uint; | |
pub type __ino_t = ::std::os::raw::c_ulong; | |
pub type __ino64_t = ::std::os::raw::c_ulong; | |
pub type __mode_t = ::std::os::raw::c_uint; | |
pub type __nlink_t = ::std::os::raw::c_ulong; | |
pub type __off_t = ::std::os::raw::c_long; | |
pub type __off64_t = ::std::os::raw::c_long; | |
pub type __pid_t = ::std::os::raw::c_int; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct __fsid_t { | |
pub __val: [::std::os::raw::c_int; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout___fsid_t() { | |
assert_eq!( | |
::std::mem::size_of::<__fsid_t>(), | |
8usize, | |
concat!("Size of: ", stringify!(__fsid_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__fsid_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__fsid_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__fsid_t), | |
"::", | |
stringify!(__val) | |
) | |
); | |
} | |
pub type __clock_t = ::std::os::raw::c_long; | |
pub type __rlim_t = ::std::os::raw::c_ulong; | |
pub type __rlim64_t = ::std::os::raw::c_ulong; | |
pub type __id_t = ::std::os::raw::c_uint; | |
pub type __time_t = ::std::os::raw::c_long; | |
pub type __useconds_t = ::std::os::raw::c_uint; | |
pub type __suseconds_t = ::std::os::raw::c_long; | |
pub type __suseconds64_t = ::std::os::raw::c_long; | |
pub type __daddr_t = ::std::os::raw::c_int; | |
pub type __key_t = ::std::os::raw::c_int; | |
pub type __clockid_t = ::std::os::raw::c_int; | |
pub type __timer_t = *mut ::std::os::raw::c_void; | |
pub type __blksize_t = ::std::os::raw::c_long; | |
pub type __blkcnt_t = ::std::os::raw::c_long; | |
pub type __blkcnt64_t = ::std::os::raw::c_long; | |
pub type __fsblkcnt_t = ::std::os::raw::c_ulong; | |
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; | |
pub type __fsfilcnt_t = ::std::os::raw::c_ulong; | |
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; | |
pub type __fsword_t = ::std::os::raw::c_long; | |
pub type __ssize_t = ::std::os::raw::c_long; | |
pub type __syscall_slong_t = ::std::os::raw::c_long; | |
pub type __syscall_ulong_t = ::std::os::raw::c_ulong; | |
pub type __loff_t = __off64_t; | |
pub type __caddr_t = *mut ::std::os::raw::c_char; | |
pub type __intptr_t = ::std::os::raw::c_long; | |
pub type __socklen_t = ::std::os::raw::c_uint; | |
pub type __sig_atomic_t = ::std::os::raw::c_int; | |
pub type int_least8_t = __int_least8_t; | |
pub type int_least16_t = __int_least16_t; | |
pub type int_least32_t = __int_least32_t; | |
pub type int_least64_t = __int_least64_t; | |
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 = ::std::os::raw::c_schar; | |
pub type int_fast16_t = ::std::os::raw::c_long; | |
pub type int_fast32_t = ::std::os::raw::c_long; | |
pub type int_fast64_t = ::std::os::raw::c_long; | |
pub type uint_fast8_t = ::std::os::raw::c_uchar; | |
pub type uint_fast16_t = ::std::os::raw::c_ulong; | |
pub type uint_fast32_t = ::std::os::raw::c_ulong; | |
pub type uint_fast64_t = ::std::os::raw::c_ulong; | |
pub type intmax_t = __intmax_t; | |
pub type uintmax_t = __uintmax_t; | |
pub type size_t = ::std::os::raw::c_ulong; | |
pub type clock_t = __clock_t; | |
pub type time_t = __time_t; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct tm { | |
pub tm_sec: ::std::os::raw::c_int, | |
pub tm_min: ::std::os::raw::c_int, | |
pub tm_hour: ::std::os::raw::c_int, | |
pub tm_mday: ::std::os::raw::c_int, | |
pub tm_mon: ::std::os::raw::c_int, | |
pub tm_year: ::std::os::raw::c_int, | |
pub tm_wday: ::std::os::raw::c_int, | |
pub tm_yday: ::std::os::raw::c_int, | |
pub tm_isdst: ::std::os::raw::c_int, | |
pub tm_gmtoff: ::std::os::raw::c_long, | |
pub tm_zone: *const ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_tm() { | |
assert_eq!( | |
::std::mem::size_of::<tm>(), | |
56usize, | |
concat!("Size of: ", stringify!(tm)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<tm>(), | |
8usize, | |
concat!("Alignment of ", stringify!(tm)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_sec as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_sec) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_min as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_min) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_hour as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_hour) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_mday as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_mday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_mon as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_mon) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_year as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_year) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_wday as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_wday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_yday as *const _ as usize }, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_yday) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_isdst as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_isdst) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_gmtoff as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_gmtoff) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<tm>())).tm_zone as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(tm), | |
"::", | |
stringify!(tm_zone) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct timespec { | |
pub tv_sec: __time_t, | |
pub tv_nsec: __syscall_slong_t, | |
} | |
#[test] | |
fn bindgen_test_layout_timespec() { | |
assert_eq!( | |
::std::mem::size_of::<timespec>(), | |
16usize, | |
concat!("Size of: ", stringify!(timespec)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<timespec>(), | |
8usize, | |
concat!("Alignment of ", stringify!(timespec)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timespec), | |
"::", | |
stringify!(tv_sec) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(timespec), | |
"::", | |
stringify!(tv_nsec) | |
) | |
); | |
} | |
pub type clockid_t = __clockid_t; | |
pub type timer_t = __timer_t; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct itimerspec { | |
pub it_interval: timespec, | |
pub it_value: timespec, | |
} | |
#[test] | |
fn bindgen_test_layout_itimerspec() { | |
assert_eq!( | |
::std::mem::size_of::<itimerspec>(), | |
32usize, | |
concat!("Size of: ", stringify!(itimerspec)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<itimerspec>(), | |
8usize, | |
concat!("Alignment of ", stringify!(itimerspec)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<itimerspec>())).it_interval as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(itimerspec), | |
"::", | |
stringify!(it_interval) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<itimerspec>())).it_value as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(itimerspec), | |
"::", | |
stringify!(it_value) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct sigevent { | |
_unused: [u8; 0], | |
} | |
pub type pid_t = __pid_t; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct __locale_struct { | |
pub __locales: [*mut __locale_data; 13usize], | |
pub __ctype_b: *const ::std::os::raw::c_ushort, | |
pub __ctype_tolower: *const ::std::os::raw::c_int, | |
pub __ctype_toupper: *const ::std::os::raw::c_int, | |
pub __names: [*const ::std::os::raw::c_char; 13usize], | |
} | |
#[test] | |
fn bindgen_test_layout___locale_struct() { | |
assert_eq!( | |
::std::mem::size_of::<__locale_struct>(), | |
232usize, | |
concat!("Size of: ", stringify!(__locale_struct)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__locale_struct>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__locale_struct)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__locales as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__locale_struct), | |
"::", | |
stringify!(__locales) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_b as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__locale_struct), | |
"::", | |
stringify!(__ctype_b) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_tolower as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__locale_struct), | |
"::", | |
stringify!(__ctype_tolower) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_toupper as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__locale_struct), | |
"::", | |
stringify!(__ctype_toupper) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__names as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__locale_struct), | |
"::", | |
stringify!(__names) | |
) | |
); | |
} | |
pub type __locale_t = *mut __locale_struct; | |
pub type locale_t = __locale_t; | |
extern "C" { | |
pub fn clock() -> clock_t; | |
} | |
extern "C" { | |
pub fn time(__timer: *mut time_t) -> time_t; | |
} | |
extern "C" { | |
pub fn difftime(__time1: time_t, __time0: time_t) -> f64; | |
} | |
extern "C" { | |
pub fn mktime(__tp: *mut tm) -> time_t; | |
} | |
extern "C" { | |
pub fn strftime( | |
__s: *mut ::std::os::raw::c_char, | |
__maxsize: size_t, | |
__format: *const ::std::os::raw::c_char, | |
__tp: *const tm, | |
) -> size_t; | |
} | |
extern "C" { | |
pub fn strftime_l( | |
__s: *mut ::std::os::raw::c_char, | |
__maxsize: size_t, | |
__format: *const ::std::os::raw::c_char, | |
__tp: *const tm, | |
__loc: locale_t, | |
) -> size_t; | |
} | |
extern "C" { | |
pub fn gmtime(__timer: *const time_t) -> *mut tm; | |
} | |
extern "C" { | |
pub fn localtime(__timer: *const time_t) -> *mut tm; | |
} | |
extern "C" { | |
pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; | |
} | |
extern "C" { | |
pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; | |
} | |
extern "C" { | |
pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn asctime_r( | |
__tp: *const tm, | |
__buf: *mut ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn ctime_r( | |
__timer: *const time_t, | |
__buf: *mut ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; | |
} | |
extern "C" { | |
pub static mut __daylight: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub static mut __timezone: ::std::os::raw::c_long; | |
} | |
extern "C" { | |
pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; | |
} | |
extern "C" { | |
pub fn tzset(); | |
} | |
extern "C" { | |
pub static mut daylight: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub static mut timezone: ::std::os::raw::c_long; | |
} | |
extern "C" { | |
pub fn timegm(__tp: *mut tm) -> time_t; | |
} | |
extern "C" { | |
pub fn timelocal(__tp: *mut tm) -> time_t; | |
} | |
extern "C" { | |
pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn nanosleep( | |
__requested_time: *const timespec, | |
__remaining: *mut timespec, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clock_nanosleep( | |
__clock_id: clockid_t, | |
__flags: ::std::os::raw::c_int, | |
__req: *const timespec, | |
__rem: *mut timespec, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timer_create( | |
__clock_id: clockid_t, | |
__evp: *mut sigevent, | |
__timerid: *mut timer_t, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timer_settime( | |
__timerid: timer_t, | |
__flags: ::std::os::raw::c_int, | |
__value: *const itimerspec, | |
__ovalue: *mut itimerspec, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn timespec_get( | |
__ts: *mut timespec, | |
__base: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
pub type va_list = __builtin_va_list; | |
pub type __gnuc_va_list = __builtin_va_list; | |
#[repr(C)] | |
pub struct __mbstate_t { | |
pub __count: ::std::os::raw::c_int, | |
pub __value: __mbstate_t__bindgen_ty_1, | |
} | |
#[repr(C)] | |
pub struct __mbstate_t__bindgen_ty_1 { | |
pub __wch: __BindgenUnionField<::std::os::raw::c_uint>, | |
pub __wchb: __BindgenUnionField<[::std::os::raw::c_char; 4usize]>, | |
pub bindgen_union_field: u32, | |
} | |
#[test] | |
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() { | |
assert_eq!( | |
::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(), | |
4usize, | |
concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wch as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t__bindgen_ty_1), | |
"::", | |
stringify!(__wch) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wchb as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t__bindgen_ty_1), | |
"::", | |
stringify!(__wchb) | |
) | |
); | |
} | |
#[test] | |
fn bindgen_test_layout___mbstate_t() { | |
assert_eq!( | |
::std::mem::size_of::<__mbstate_t>(), | |
8usize, | |
concat!("Size of: ", stringify!(__mbstate_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__mbstate_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(__mbstate_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__count as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t), | |
"::", | |
stringify!(__count) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__value as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__mbstate_t), | |
"::", | |
stringify!(__value) | |
) | |
); | |
} | |
#[repr(C)] | |
pub struct _G_fpos_t { | |
pub __pos: __off_t, | |
pub __state: __mbstate_t, | |
} | |
#[test] | |
fn bindgen_test_layout__G_fpos_t() { | |
assert_eq!( | |
::std::mem::size_of::<_G_fpos_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(_G_fpos_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_G_fpos_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_G_fpos_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__pos as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_G_fpos_t), | |
"::", | |
stringify!(__pos) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__state as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_G_fpos_t), | |
"::", | |
stringify!(__state) | |
) | |
); | |
} | |
pub type __fpos_t = _G_fpos_t; | |
#[repr(C)] | |
pub struct _G_fpos64_t { | |
pub __pos: __off64_t, | |
pub __state: __mbstate_t, | |
} | |
#[test] | |
fn bindgen_test_layout__G_fpos64_t() { | |
assert_eq!( | |
::std::mem::size_of::<_G_fpos64_t>(), | |
16usize, | |
concat!("Size of: ", stringify!(_G_fpos64_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_G_fpos64_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_G_fpos64_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__pos as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_G_fpos64_t), | |
"::", | |
stringify!(__pos) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__state as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_G_fpos64_t), | |
"::", | |
stringify!(__state) | |
) | |
); | |
} | |
pub type __fpos64_t = _G_fpos64_t; | |
pub type __FILE = _IO_FILE; | |
pub type FILE = _IO_FILE; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct _IO_marker { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct _IO_codecvt { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct _IO_wide_data { | |
_unused: [u8; 0], | |
} | |
pub type _IO_lock_t = ::std::os::raw::c_void; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct _IO_FILE { | |
pub _flags: ::std::os::raw::c_int, | |
pub _IO_read_ptr: *mut ::std::os::raw::c_char, | |
pub _IO_read_end: *mut ::std::os::raw::c_char, | |
pub _IO_read_base: *mut ::std::os::raw::c_char, | |
pub _IO_write_base: *mut ::std::os::raw::c_char, | |
pub _IO_write_ptr: *mut ::std::os::raw::c_char, | |
pub _IO_write_end: *mut ::std::os::raw::c_char, | |
pub _IO_buf_base: *mut ::std::os::raw::c_char, | |
pub _IO_buf_end: *mut ::std::os::raw::c_char, | |
pub _IO_save_base: *mut ::std::os::raw::c_char, | |
pub _IO_backup_base: *mut ::std::os::raw::c_char, | |
pub _IO_save_end: *mut ::std::os::raw::c_char, | |
pub _markers: *mut _IO_marker, | |
pub _chain: *mut _IO_FILE, | |
pub _fileno: ::std::os::raw::c_int, | |
pub _flags2: ::std::os::raw::c_int, | |
pub _old_offset: __off_t, | |
pub _cur_column: ::std::os::raw::c_ushort, | |
pub _vtable_offset: ::std::os::raw::c_schar, | |
pub _shortbuf: [::std::os::raw::c_char; 1usize], | |
pub _lock: *mut _IO_lock_t, | |
pub _offset: __off64_t, | |
pub _codecvt: *mut _IO_codecvt, | |
pub _wide_data: *mut _IO_wide_data, | |
pub _freeres_list: *mut _IO_FILE, | |
pub _freeres_buf: *mut ::std::os::raw::c_void, | |
pub __pad5: size_t, | |
pub _mode: ::std::os::raw::c_int, | |
pub _unused2: [::std::os::raw::c_char; 20usize], | |
} | |
#[test] | |
fn bindgen_test_layout__IO_FILE() { | |
assert_eq!( | |
::std::mem::size_of::<_IO_FILE>(), | |
216usize, | |
concat!("Size of: ", stringify!(_IO_FILE)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<_IO_FILE>(), | |
8usize, | |
concat!("Alignment of ", stringify!(_IO_FILE)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_read_ptr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_read_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_read_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_write_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_write_ptr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_write_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_buf_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_buf_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize }, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_save_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize }, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_backup_base) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize }, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_IO_save_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize }, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_markers) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_chain) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_fileno) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize }, | |
116usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_flags2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_old_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_cur_column) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize }, | |
130usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_vtable_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize }, | |
131usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_shortbuf) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize }, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_lock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._codecvt as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_codecvt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._wide_data as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_wide_data) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_list as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_freeres_list) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_buf as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_freeres_buf) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(__pad5) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_mode) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize }, | |
196usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(_IO_FILE), | |
"::", | |
stringify!(_unused2) | |
) | |
); | |
} | |
pub type off_t = __off_t; | |
pub type ssize_t = __ssize_t; | |
pub type fpos_t = __fpos_t; | |
extern "C" { | |
pub static mut stdin: *mut FILE; | |
} | |
extern "C" { | |
pub static mut stdout: *mut FILE; | |
} | |
extern "C" { | |
pub static mut stderr: *mut FILE; | |
} | |
extern "C" { | |
pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn rename( | |
__old: *const ::std::os::raw::c_char, | |
__new: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn renameat( | |
__oldfd: ::std::os::raw::c_int, | |
__old: *const ::std::os::raw::c_char, | |
__newfd: ::std::os::raw::c_int, | |
__new: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn tmpfile() -> *mut FILE; | |
} | |
extern "C" { | |
pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn tempnam( | |
__dir: *const ::std::os::raw::c_char, | |
__pfx: *const ::std::os::raw::c_char, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fopen( | |
__filename: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
pub fn freopen( | |
__filename: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char, | |
__stream: *mut FILE, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char) | |
-> *mut FILE; | |
} | |
extern "C" { | |
pub fn fmemopen( | |
__s: *mut ::std::os::raw::c_void, | |
__len: size_t, | |
__modes: *const ::std::os::raw::c_char, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
pub fn open_memstream( | |
__bufloc: *mut *mut ::std::os::raw::c_char, | |
__sizeloc: *mut size_t, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); | |
} | |
extern "C" { | |
pub fn setvbuf( | |
__stream: *mut FILE, | |
__buf: *mut ::std::os::raw::c_char, | |
__modes: ::std::os::raw::c_int, | |
__n: size_t, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: size_t); | |
} | |
extern "C" { | |
pub fn setlinebuf(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn fprintf( | |
__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn sprintf( | |
__s: *mut ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vfprintf( | |
__s: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vprintf( | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vsprintf( | |
__s: *mut ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn snprintf( | |
__s: *mut ::std::os::raw::c_char, | |
__maxlen: ::std::os::raw::c_ulong, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vsnprintf( | |
__s: *mut ::std::os::raw::c_char, | |
__maxlen: ::std::os::raw::c_ulong, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vdprintf( | |
__fd: ::std::os::raw::c_int, | |
__fmt: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn dprintf( | |
__fd: ::std::os::raw::c_int, | |
__fmt: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fscanf( | |
__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn sscanf( | |
__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
pub type _Float32 = f32; | |
pub type _Float64 = f64; | |
pub type _Float32x = f64; | |
pub type _Float64x = u128; | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_fscanf"] | |
pub fn fscanf1( | |
__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_scanf"] | |
pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_sscanf"] | |
pub fn sscanf1( | |
__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
... | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vfscanf( | |
__s: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vscanf( | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn vsscanf( | |
__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_vfscanf"] | |
pub fn vfscanf1( | |
__s: *mut FILE, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_vscanf"] | |
pub fn vscanf1( | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}__isoc99_vsscanf"] | |
pub fn vsscanf1( | |
__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getchar() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getchar_unlocked() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fgets( | |
__s: *mut ::std::os::raw::c_char, | |
__n: ::std::os::raw::c_int, | |
__stream: *mut FILE, | |
) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn __getdelim( | |
__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut size_t, | |
__delimiter: ::std::os::raw::c_int, | |
__stream: *mut FILE, | |
) -> __ssize_t; | |
} | |
extern "C" { | |
pub fn getdelim( | |
__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut size_t, | |
__delimiter: ::std::os::raw::c_int, | |
__stream: *mut FILE, | |
) -> __ssize_t; | |
} | |
extern "C" { | |
pub fn getline( | |
__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut size_t, | |
__stream: *mut FILE, | |
) -> __ssize_t; | |
} | |
extern "C" { | |
pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fread( | |
__ptr: *mut ::std::os::raw::c_void, | |
__size: ::std::os::raw::c_ulong, | |
__n: ::std::os::raw::c_ulong, | |
__stream: *mut FILE, | |
) -> ::std::os::raw::c_ulong; | |
} | |
extern "C" { | |
pub fn fwrite( | |
__ptr: *const ::std::os::raw::c_void, | |
__size: ::std::os::raw::c_ulong, | |
__n: ::std::os::raw::c_ulong, | |
__s: *mut FILE, | |
) -> ::std::os::raw::c_ulong; | |
} | |
extern "C" { | |
pub fn fread_unlocked( | |
__ptr: *mut ::std::os::raw::c_void, | |
__size: size_t, | |
__n: size_t, | |
__stream: *mut FILE, | |
) -> size_t; | |
} | |
extern "C" { | |
pub fn fwrite_unlocked( | |
__ptr: *const ::std::os::raw::c_void, | |
__size: size_t, | |
__n: size_t, | |
__stream: *mut FILE, | |
) -> size_t; | |
} | |
extern "C" { | |
pub fn fseek( | |
__stream: *mut FILE, | |
__off: ::std::os::raw::c_long, | |
__whence: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
pub fn rewind(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn fseeko( | |
__stream: *mut FILE, | |
__off: __off_t, | |
__whence: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ftello(__stream: *mut FILE) -> __off_t; | |
} | |
extern "C" { | |
pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clearerr(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn clearerr_unlocked(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn perror(__s: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn popen( | |
__command: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char, | |
) -> *mut FILE; | |
} | |
extern "C" { | |
pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
pub fn flockfile(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn funlockfile(__stream: *mut FILE); | |
} | |
extern "C" { | |
pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
#[repr(C)] | |
pub struct dirent { | |
pub d_ino: __ino_t, | |
pub d_off: __off_t, | |
pub d_reclen: ::std::os::raw::c_ushort, | |
pub d_type: ::std::os::raw::c_uchar, | |
pub d_name: [::std::os::raw::c_char; 256usize], | |
} | |
#[test] | |
fn bindgen_test_layout_dirent() { | |
assert_eq!( | |
::std::mem::size_of::<dirent>(), | |
280usize, | |
concat!("Size of: ", stringify!(dirent)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<dirent>(), | |
8usize, | |
concat!("Alignment of ", stringify!(dirent)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<dirent>())).d_ino as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(dirent), | |
"::", | |
stringify!(d_ino) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<dirent>())).d_off as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(dirent), | |
"::", | |
stringify!(d_off) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<dirent>())).d_reclen as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(dirent), | |
"::", | |
stringify!(d_reclen) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<dirent>())).d_type as *const _ as usize }, | |
18usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(dirent), | |
"::", | |
stringify!(d_type) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<dirent>())).d_name as *const _ as usize }, | |
19usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(dirent), | |
"::", | |
stringify!(d_name) | |
) | |
); | |
} | |
pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; | |
pub const DT_FIFO: ::std::os::raw::c_uint = 1; | |
pub const DT_CHR: ::std::os::raw::c_uint = 2; | |
pub const DT_DIR: ::std::os::raw::c_uint = 4; | |
pub const DT_BLK: ::std::os::raw::c_uint = 6; | |
pub const DT_REG: ::std::os::raw::c_uint = 8; | |
pub const DT_LNK: ::std::os::raw::c_uint = 10; | |
pub const DT_SOCK: ::std::os::raw::c_uint = 12; | |
pub const DT_WHT: ::std::os::raw::c_uint = 14; | |
pub type _bindgen_ty_1 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct __dirstream { | |
_unused: [u8; 0], | |
} | |
pub type DIR = __dirstream; | |
extern "C" { | |
pub fn opendir(__name: *const ::std::os::raw::c_char) -> *mut DIR; | |
} | |
extern "C" { | |
pub fn fdopendir(__fd: ::std::os::raw::c_int) -> *mut DIR; | |
} | |
extern "C" { | |
pub fn closedir(__dirp: *mut DIR) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn readdir(__dirp: *mut DIR) -> *mut dirent; | |
} | |
extern "C" { | |
pub fn readdir_r( | |
__dirp: *mut DIR, | |
__entry: *mut dirent, | |
__result: *mut *mut dirent, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn rewinddir(__dirp: *mut DIR); | |
} | |
extern "C" { | |
pub fn seekdir(__dirp: *mut DIR, __pos: ::std::os::raw::c_long); | |
} | |
extern "C" { | |
pub fn telldir(__dirp: *mut DIR) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
pub fn dirfd(__dirp: *mut DIR) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn scandir( | |
__dir: *const ::std::os::raw::c_char, | |
__namelist: *mut *mut *mut dirent, | |
__selector: ::std::option::Option< | |
unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, | |
>, | |
__cmp: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut *const dirent, | |
arg2: *mut *const dirent, | |
) -> ::std::os::raw::c_int, | |
>, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn alphasort(__e1: *mut *const dirent, __e2: *mut *const dirent) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
pub fn getdirentries( | |
__fd: ::std::os::raw::c_int, | |
__buf: *mut ::std::os::raw::c_char, | |
__nbytes: size_t, | |
__basep: *mut __off_t, | |
) -> __ssize_t; | |
} | |
pub const DDB_IS_SUBTRACK: ::std::os::raw::c_uint = 1; | |
pub const DDB_IS_READONLY: ::std::os::raw::c_uint = 2; | |
pub const DDB_HAS_EMBEDDED_CUESHEET: ::std::os::raw::c_uint = 4; | |
pub const DDB_TAG_ID3V1: ::std::os::raw::c_uint = 256; | |
pub const DDB_TAG_ID3V22: ::std::os::raw::c_uint = 512; | |
pub const DDB_TAG_ID3V23: ::std::os::raw::c_uint = 1024; | |
pub const DDB_TAG_ID3V24: ::std::os::raw::c_uint = 2048; | |
pub const DDB_TAG_APEV2: ::std::os::raw::c_uint = 4096; | |
pub const DDB_TAG_VORBISCOMMENTS: ::std::os::raw::c_uint = 8192; | |
pub const DDB_TAG_CUESHEET: ::std::os::raw::c_uint = 16384; | |
pub const DDB_TAG_ICY: ::std::os::raw::c_uint = 32768; | |
pub const DDB_TAG_ITUNES: ::std::os::raw::c_uint = 65536; | |
pub const DDB_TAG_MASK: ::std::os::raw::c_uint = 1048320; | |
pub type _bindgen_ty_2 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_playItem_s { | |
pub startsample: i32, | |
pub endsample: i32, | |
pub shufflerating: i32, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_playItem_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_playItem_s>(), | |
12usize, | |
concat!("Size of: ", stringify!(DB_playItem_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_playItem_s>(), | |
4usize, | |
concat!("Alignment of ", stringify!(DB_playItem_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playItem_s>())).startsample as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playItem_s), | |
"::", | |
stringify!(startsample) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playItem_s>())).endsample as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playItem_s), | |
"::", | |
stringify!(endsample) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playItem_s>())).shufflerating as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playItem_s), | |
"::", | |
stringify!(shufflerating) | |
) | |
); | |
} | |
pub type ddb_playItem_t = DB_playItem_s; | |
pub type DB_playItem_t = ddb_playItem_t; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_playlist_t { | |
pub unused: ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_playlist_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_playlist_t>(), | |
1usize, | |
concat!("Size of: ", stringify!(ddb_playlist_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_playlist_t>(), | |
1usize, | |
concat!("Alignment of ", stringify!(ddb_playlist_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_playlist_t>())).unused as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_playlist_t), | |
"::", | |
stringify!(unused) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_metaInfo_s { | |
pub next: *mut DB_metaInfo_s, | |
pub key: *const ::std::os::raw::c_char, | |
pub value: *const ::std::os::raw::c_char, | |
pub valuesize: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_metaInfo_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_metaInfo_s>(), | |
32usize, | |
concat!("Size of: ", stringify!(DB_metaInfo_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_metaInfo_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_metaInfo_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_metaInfo_s>())).next as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_metaInfo_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_metaInfo_s>())).key as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_metaInfo_s), | |
"::", | |
stringify!(key) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_metaInfo_s>())).value as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_metaInfo_s), | |
"::", | |
stringify!(value) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_metaInfo_s>())).valuesize as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_metaInfo_s), | |
"::", | |
stringify!(valuesize) | |
) | |
); | |
} | |
pub type DB_metaInfo_t = DB_metaInfo_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_id3v2_frame_s { | |
pub next: *mut DB_id3v2_frame_s, | |
pub id: [::std::os::raw::c_char; 5usize], | |
pub size: u32, | |
pub flags: [u8; 2usize], | |
pub data: __IncompleteArrayField<u8>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_id3v2_frame_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_id3v2_frame_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(DB_id3v2_frame_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_id3v2_frame_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_id3v2_frame_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_frame_s>())).next as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_frame_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_frame_s>())).id as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_frame_s), | |
"::", | |
stringify!(id) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_frame_s>())).size as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_frame_s), | |
"::", | |
stringify!(size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_frame_s>())).flags as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_frame_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_frame_s>())).data as *const _ as usize }, | |
22usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_frame_s), | |
"::", | |
stringify!(data) | |
) | |
); | |
} | |
pub type DB_id3v2_frame_t = DB_id3v2_frame_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_id3v2_tag_s { | |
pub version: [u8; 2usize], | |
pub flags: u8, | |
pub frames: *mut DB_id3v2_frame_t, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_id3v2_tag_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_id3v2_tag_s>(), | |
16usize, | |
concat!("Size of: ", stringify!(DB_id3v2_tag_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_id3v2_tag_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_id3v2_tag_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_tag_s>())).version as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_tag_s), | |
"::", | |
stringify!(version) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_tag_s>())).flags as *const _ as usize }, | |
2usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_tag_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_id3v2_tag_s>())).frames as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_id3v2_tag_s), | |
"::", | |
stringify!(frames) | |
) | |
); | |
} | |
pub type DB_id3v2_tag_t = DB_id3v2_tag_s; | |
#[repr(C)] | |
pub struct DB_apev2_frame_s { | |
pub next: *mut DB_apev2_frame_s, | |
pub flags: u32, | |
pub key: [::std::os::raw::c_char; 256usize], | |
pub size: u32, | |
pub data: __IncompleteArrayField<u8>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_apev2_frame_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_apev2_frame_s>(), | |
272usize, | |
concat!("Size of: ", stringify!(DB_apev2_frame_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_apev2_frame_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_apev2_frame_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_frame_s>())).next as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_frame_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_frame_s>())).flags as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_frame_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_frame_s>())).key as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_frame_s), | |
"::", | |
stringify!(key) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_frame_s>())).size as *const _ as usize }, | |
268usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_frame_s), | |
"::", | |
stringify!(size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_frame_s>())).data as *const _ as usize }, | |
272usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_frame_s), | |
"::", | |
stringify!(data) | |
) | |
); | |
} | |
pub type DB_apev2_frame_t = DB_apev2_frame_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_apev2_tag_s { | |
pub version: u32, | |
pub flags: u32, | |
pub frames: *mut DB_apev2_frame_t, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_apev2_tag_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_apev2_tag_s>(), | |
16usize, | |
concat!("Size of: ", stringify!(DB_apev2_tag_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_apev2_tag_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_apev2_tag_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_tag_s>())).version as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_tag_s), | |
"::", | |
stringify!(version) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_tag_s>())).flags as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_tag_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_apev2_tag_s>())).frames as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_apev2_tag_s), | |
"::", | |
stringify!(frames) | |
) | |
); | |
} | |
pub type DB_apev2_tag_t = DB_apev2_tag_s; | |
pub const DB_PLUGIN_DECODER: ::std::os::raw::c_uint = 1; | |
pub const DB_PLUGIN_OUTPUT: ::std::os::raw::c_uint = 2; | |
pub const DB_PLUGIN_DSP: ::std::os::raw::c_uint = 3; | |
pub const DB_PLUGIN_MISC: ::std::os::raw::c_uint = 4; | |
pub const DB_PLUGIN_VFS: ::std::os::raw::c_uint = 5; | |
pub const DB_PLUGIN_PLAYLIST: ::std::os::raw::c_uint = 6; | |
pub const DB_PLUGIN_GUI: ::std::os::raw::c_uint = 7; | |
pub const DB_PLUGIN_MEDIASOURCE: ::std::os::raw::c_uint = 8; | |
pub type _bindgen_ty_3 = ::std::os::raw::c_uint; | |
pub const output_state_t_OUTPUT_STATE_STOPPED: output_state_t = 0; | |
pub const output_state_t_OUTPUT_STATE_PLAYING: output_state_t = 1; | |
pub const output_state_t_OUTPUT_STATE_PAUSED: output_state_t = 2; | |
pub type output_state_t = ::std::os::raw::c_uint; | |
pub const ddb_playback_state_e_DDB_PLAYBACK_STATE_STOPPED: ddb_playback_state_e = 0; | |
pub const ddb_playback_state_e_DDB_PLAYBACK_STATE_PLAYING: ddb_playback_state_e = 1; | |
pub const ddb_playback_state_e_DDB_PLAYBACK_STATE_PAUSED: ddb_playback_state_e = 2; | |
pub type ddb_playback_state_e = ::std::os::raw::c_uint; | |
pub use self::ddb_playback_state_e as ddb_playback_state_t; | |
pub const playback_order_t_PLAYBACK_ORDER_LINEAR: playback_order_t = 0; | |
pub const playback_order_t_PLAYBACK_ORDER_SHUFFLE_TRACKS: playback_order_t = 1; | |
pub const playback_order_t_PLAYBACK_ORDER_RANDOM: playback_order_t = 2; | |
pub const playback_order_t_PLAYBACK_ORDER_SHUFFLE_ALBUMS: playback_order_t = 3; | |
pub type playback_order_t = ::std::os::raw::c_uint; | |
pub const playback_mode_t_PLAYBACK_MODE_LOOP_ALL: playback_mode_t = 0; | |
pub const playback_mode_t_PLAYBACK_MODE_NOLOOP: playback_mode_t = 1; | |
pub const playback_mode_t_PLAYBACK_MODE_LOOP_SINGLE: playback_mode_t = 2; | |
pub type playback_mode_t = ::std::os::raw::c_uint; | |
pub const ddb_shuffle_e_DDB_SHUFFLE_OFF: ddb_shuffle_e = 0; | |
pub const ddb_shuffle_e_DDB_SHUFFLE_TRACKS: ddb_shuffle_e = 1; | |
pub const ddb_shuffle_e_DDB_SHUFFLE_RANDOM: ddb_shuffle_e = 2; | |
pub const ddb_shuffle_e_DDB_SHUFFLE_ALBUMS: ddb_shuffle_e = 3; | |
pub type ddb_shuffle_e = ::std::os::raw::c_uint; | |
pub use self::ddb_shuffle_e as ddb_shuffle_t; | |
pub const ddb_repeat_e_DDB_REPEAT_ALL: ddb_repeat_e = 0; | |
pub const ddb_repeat_e_DDB_REPEAT_OFF: ddb_repeat_e = 1; | |
pub const ddb_repeat_e_DDB_REPEAT_SINGLE: ddb_repeat_e = 2; | |
pub type ddb_repeat_e = ::std::os::raw::c_uint; | |
pub use self::ddb_repeat_e as ddb_repeat_t; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_CONTENT: ddb_playlist_change_t = 0; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_CREATED: ddb_playlist_change_t = 1; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_DELETED: ddb_playlist_change_t = 2; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_POSITION: ddb_playlist_change_t = 3; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_TITLE: ddb_playlist_change_t = 4; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_SELECTION: ddb_playlist_change_t = 5; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_SEARCHRESULT: ddb_playlist_change_t = 6; | |
pub const ddb_playlist_change_t_DDB_PLAYLIST_CHANGE_PLAYQUEUE: ddb_playlist_change_t = 7; | |
pub type ddb_playlist_change_t = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_event_t { | |
pub event: ::std::os::raw::c_int, | |
pub size: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_event_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_event_t>(), | |
8usize, | |
concat!("Size of: ", stringify!(ddb_event_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_event_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(ddb_event_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_t>())).event as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_t), | |
"::", | |
stringify!(event) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_t>())).size as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_t), | |
"::", | |
stringify!(size) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_event_track_t { | |
pub ev: ddb_event_t, | |
pub track: *mut DB_playItem_t, | |
pub playtime: f32, | |
pub started_timestamp: time_t, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_event_track_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_event_track_t>(), | |
32usize, | |
concat!("Size of: ", stringify!(ddb_event_track_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_event_track_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_event_track_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_track_t>())).ev as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_track_t), | |
"::", | |
stringify!(ev) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_track_t>())).track as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_track_t), | |
"::", | |
stringify!(track) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_track_t>())).playtime as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_track_t), | |
"::", | |
stringify!(playtime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_event_track_t>())).started_timestamp as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_track_t), | |
"::", | |
stringify!(started_timestamp) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_event_trackchange_t { | |
pub ev: ddb_event_t, | |
pub from: *mut DB_playItem_t, | |
pub to: *mut DB_playItem_t, | |
pub playtime: f32, | |
pub started_timestamp: time_t, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_event_trackchange_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_event_trackchange_t>(), | |
40usize, | |
concat!("Size of: ", stringify!(ddb_event_trackchange_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_event_trackchange_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_event_trackchange_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_trackchange_t>())).ev as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_trackchange_t), | |
"::", | |
stringify!(ev) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_trackchange_t>())).from as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_trackchange_t), | |
"::", | |
stringify!(from) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_trackchange_t>())).to as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_trackchange_t), | |
"::", | |
stringify!(to) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_event_trackchange_t>())).playtime as *const _ as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_trackchange_t), | |
"::", | |
stringify!(playtime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_event_trackchange_t>())).started_timestamp as *const _ | |
as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_trackchange_t), | |
"::", | |
stringify!(started_timestamp) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_event_state_t { | |
pub ev: ddb_event_t, | |
pub state: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_event_state_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_event_state_t>(), | |
12usize, | |
concat!("Size of: ", stringify!(ddb_event_state_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_event_state_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(ddb_event_state_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_state_t>())).ev as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_state_t), | |
"::", | |
stringify!(ev) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_state_t>())).state as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_state_t), | |
"::", | |
stringify!(state) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_event_playpos_t { | |
pub ev: ddb_event_t, | |
pub track: *mut DB_playItem_t, | |
pub playpos: f32, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_event_playpos_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_event_playpos_t>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_event_playpos_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_event_playpos_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_event_playpos_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_playpos_t>())).ev as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_playpos_t), | |
"::", | |
stringify!(ev) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_playpos_t>())).track as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_playpos_t), | |
"::", | |
stringify!(track) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_event_playpos_t>())).playpos as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_event_playpos_t), | |
"::", | |
stringify!(playpos) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_conf_item_s { | |
pub key: *mut ::std::os::raw::c_char, | |
pub value: *mut ::std::os::raw::c_char, | |
pub next: *mut DB_conf_item_s, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_conf_item_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_conf_item_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(DB_conf_item_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_conf_item_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_conf_item_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_conf_item_s>())).key as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_conf_item_s), | |
"::", | |
stringify!(key) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_conf_item_s>())).value as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_conf_item_s), | |
"::", | |
stringify!(value) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_conf_item_s>())).next as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_conf_item_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
} | |
pub type DB_conf_item_t = DB_conf_item_s; | |
pub type DB_callback_t = ::std::option::Option< | |
unsafe extern "C" fn(arg1: *mut ddb_event_t, data: usize) -> ::std::os::raw::c_int, | |
>; | |
pub const DB_EV_NEXT: ::std::os::raw::c_uint = 1; | |
pub const DB_EV_PREV: ::std::os::raw::c_uint = 2; | |
pub const DB_EV_PLAY_CURRENT: ::std::os::raw::c_uint = 3; | |
pub const DB_EV_PLAY_NUM: ::std::os::raw::c_uint = 4; | |
pub const DB_EV_STOP: ::std::os::raw::c_uint = 5; | |
pub const DB_EV_PAUSE: ::std::os::raw::c_uint = 6; | |
pub const DB_EV_PLAY_RANDOM: ::std::os::raw::c_uint = 7; | |
pub const DB_EV_TERMINATE: ::std::os::raw::c_uint = 8; | |
pub const DB_EV_PLAYLIST_REFRESH: ::std::os::raw::c_uint = 9; | |
pub const DB_EV_REINIT_SOUND: ::std::os::raw::c_uint = 10; | |
pub const DB_EV_CONFIGCHANGED: ::std::os::raw::c_uint = 11; | |
pub const DB_EV_TOGGLE_PAUSE: ::std::os::raw::c_uint = 12; | |
pub const DB_EV_ACTIVATED: ::std::os::raw::c_uint = 13; | |
pub const DB_EV_PAUSED: ::std::os::raw::c_uint = 14; | |
pub const DB_EV_PLAYLISTCHANGED: ::std::os::raw::c_uint = 15; | |
pub const DB_EV_VOLUMECHANGED: ::std::os::raw::c_uint = 16; | |
pub const DB_EV_OUTPUTCHANGED: ::std::os::raw::c_uint = 17; | |
pub const DB_EV_PLAYLISTSWITCHED: ::std::os::raw::c_uint = 18; | |
pub const DB_EV_SEEK: ::std::os::raw::c_uint = 19; | |
pub const DB_EV_ACTIONSCHANGED: ::std::os::raw::c_uint = 20; | |
pub const DB_EV_DSPCHAINCHANGED: ::std::os::raw::c_uint = 21; | |
pub const DB_EV_SELCHANGED: ::std::os::raw::c_uint = 22; | |
pub const DB_EV_PLUGINSLOADED: ::std::os::raw::c_uint = 23; | |
pub const DB_EV_FOCUS_SELECTION: ::std::os::raw::c_uint = 24; | |
pub const DB_EV_FIRST: ::std::os::raw::c_uint = 1000; | |
pub const DB_EV_SONGCHANGED: ::std::os::raw::c_uint = 1000; | |
pub const DB_EV_SONGSTARTED: ::std::os::raw::c_uint = 1001; | |
pub const DB_EV_SONGFINISHED: ::std::os::raw::c_uint = 1002; | |
pub const DB_EV_TRACKINFOCHANGED: ::std::os::raw::c_uint = 1004; | |
pub const DB_EV_SEEKED: ::std::os::raw::c_uint = 1005; | |
pub const DB_EV_TRACKFOCUSCURRENT: ::std::os::raw::c_uint = 1006; | |
pub const DB_EV_CURSOR_MOVED: ::std::os::raw::c_uint = 1007; | |
pub const DB_EV_MAX: ::std::os::raw::c_uint = 1008; | |
pub type _bindgen_ty_4 = ::std::os::raw::c_uint; | |
pub const pl_column_t_DB_COLUMN_STANDARD: pl_column_t = -1; | |
pub const pl_column_t_DB_COLUMN_FILENUMBER: pl_column_t = 0; | |
pub const pl_column_t_DB_COLUMN_PLAYING: pl_column_t = 1; | |
pub const pl_column_t_DB_COLUMN_ALBUM_ART: pl_column_t = 8; | |
pub const pl_column_t_DB_COLUMN_CUSTOM: pl_column_t = 9; | |
pub type pl_column_t = ::std::os::raw::c_int; | |
pub const DDB_REPLAYGAIN_ALBUMGAIN: ::std::os::raw::c_uint = 0; | |
pub const DDB_REPLAYGAIN_ALBUMPEAK: ::std::os::raw::c_uint = 1; | |
pub const DDB_REPLAYGAIN_TRACKGAIN: ::std::os::raw::c_uint = 2; | |
pub const DDB_REPLAYGAIN_TRACKPEAK: ::std::os::raw::c_uint = 3; | |
pub type _bindgen_ty_5 = ::std::os::raw::c_uint; | |
pub const ddb_rg_source_mode_e_DDB_RG_SOURCE_MODE_PLAYBACK_ORDER: ddb_rg_source_mode_e = 0; | |
pub const ddb_rg_source_mode_e_DDB_RG_SOURCE_MODE_TRACK: ddb_rg_source_mode_e = 1; | |
pub const ddb_rg_source_mode_e_DDB_RG_SOURCE_MODE_ALBUM: ddb_rg_source_mode_e = 2; | |
pub type ddb_rg_source_mode_e = ::std::os::raw::c_uint; | |
pub use self::ddb_rg_source_mode_e as ddb_rg_source_mode_t; | |
pub const ddb_rg_processing_e_DDB_RG_PROCESSING_NONE: ddb_rg_processing_e = 0; | |
pub const ddb_rg_processing_e_DDB_RG_PROCESSING_GAIN: ddb_rg_processing_e = 1; | |
pub const ddb_rg_processing_e_DDB_RG_PROCESSING_PREVENT_CLIPPING: ddb_rg_processing_e = 2; | |
pub type ddb_rg_processing_e = ::std::os::raw::c_uint; | |
pub use self::ddb_rg_processing_e as ddb_rg_processing_t; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_replaygain_settings_t { | |
pub _size: ::std::os::raw::c_int, | |
pub source_mode: ::std::os::raw::c_int, | |
pub processing_flags: u32, | |
pub preamp_with_rg: f32, | |
pub preamp_without_rg: f32, | |
pub has_album_gain: ::std::os::raw::c_int, | |
pub has_track_gain: ::std::os::raw::c_int, | |
pub albumgain: f32, | |
pub albumpeak: f32, | |
pub trackgain: f32, | |
pub trackpeak: f32, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_replaygain_settings_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_replaygain_settings_t>(), | |
44usize, | |
concat!("Size of: ", stringify!(ddb_replaygain_settings_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_replaygain_settings_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(ddb_replaygain_settings_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_replaygain_settings_t>()))._size as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).source_mode as *const _ as usize | |
}, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(source_mode) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).processing_flags as *const _ | |
as usize | |
}, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(processing_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).preamp_with_rg as *const _ | |
as usize | |
}, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(preamp_with_rg) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).preamp_without_rg as *const _ | |
as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(preamp_without_rg) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).has_album_gain as *const _ | |
as usize | |
}, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(has_album_gain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).has_track_gain as *const _ | |
as usize | |
}, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(has_track_gain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).albumgain as *const _ as usize | |
}, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(albumgain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).albumpeak as *const _ as usize | |
}, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(albumpeak) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).trackgain as *const _ as usize | |
}, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(trackgain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<ddb_replaygain_settings_t>())).trackpeak as *const _ as usize | |
}, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_replaygain_settings_t), | |
"::", | |
stringify!(trackpeak) | |
) | |
); | |
} | |
pub const ddb_sort_order_t_DDB_SORT_DESCENDING: ddb_sort_order_t = 0; | |
pub const ddb_sort_order_t_DDB_SORT_ASCENDING: ddb_sort_order_t = 1; | |
pub const ddb_sort_order_t_DDB_SORT_RANDOM: ddb_sort_order_t = 2; | |
pub type ddb_sort_order_t = ::std::os::raw::c_uint; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_CONFIG: ddb_sys_directory_t = 1; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_PREFIX: ddb_sys_directory_t = 2; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_DOC: ddb_sys_directory_t = 3; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_PLUGIN: ddb_sys_directory_t = 4; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_PIXMAP: ddb_sys_directory_t = 5; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_CACHE: ddb_sys_directory_t = 6; | |
pub const ddb_sys_directory_t_DDB_SYS_DIR_PLUGIN_RESOURCES: ddb_sys_directory_t = 7; | |
pub type ddb_sys_directory_t = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_FILE { | |
pub vfs: *mut DB_vfs_s, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_FILE() { | |
assert_eq!( | |
::std::mem::size_of::<DB_FILE>(), | |
8usize, | |
concat!("Size of: ", stringify!(DB_FILE)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_FILE>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_FILE)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_FILE>())).vfs as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_FILE), | |
"::", | |
stringify!(vfs) | |
) | |
); | |
} | |
#[repr(C)] | |
pub struct DB_md5_s { | |
pub data: [::std::os::raw::c_char; 88usize], | |
} | |
#[test] | |
fn bindgen_test_layout_DB_md5_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_md5_s>(), | |
88usize, | |
concat!("Size of: ", stringify!(DB_md5_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_md5_s>(), | |
1usize, | |
concat!("Alignment of ", stringify!(DB_md5_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_md5_s>())).data as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_md5_s), | |
"::", | |
stringify!(data) | |
) | |
); | |
} | |
pub type DB_md5_t = DB_md5_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_waveformat_t { | |
pub bps: ::std::os::raw::c_int, | |
pub channels: ::std::os::raw::c_int, | |
pub samplerate: ::std::os::raw::c_int, | |
pub channelmask: u32, | |
pub is_float: ::std::os::raw::c_int, | |
pub is_bigendian: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_waveformat_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_waveformat_t>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_waveformat_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_waveformat_t>(), | |
4usize, | |
concat!("Alignment of ", stringify!(ddb_waveformat_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).bps as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(bps) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).channels as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(channels) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).samplerate as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(samplerate) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).channelmask as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(channelmask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).is_float as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(is_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_waveformat_t>())).is_bigendian as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_waveformat_t), | |
"::", | |
stringify!(is_bigendian) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_audio_data_s { | |
pub fmt: *const ddb_waveformat_t, | |
pub data: *const f32, | |
pub nframes: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_audio_data_s() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_audio_data_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_audio_data_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_audio_data_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_audio_data_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_audio_data_s>())).fmt as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_audio_data_s), | |
"::", | |
stringify!(fmt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_audio_data_s>())).data as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_audio_data_s), | |
"::", | |
stringify!(data) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_audio_data_s>())).nframes as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_audio_data_s), | |
"::", | |
stringify!(nframes) | |
) | |
); | |
} | |
pub type ddb_audio_data_t = ddb_audio_data_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_fileadd_data_s { | |
pub visibility: ::std::os::raw::c_int, | |
pub plt: *mut ddb_playlist_t, | |
pub track: *mut ddb_playItem_t, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_fileadd_data_s() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_fileadd_data_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_fileadd_data_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_fileadd_data_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_fileadd_data_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_fileadd_data_s>())).visibility as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_fileadd_data_s), | |
"::", | |
stringify!(visibility) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_fileadd_data_s>())).plt as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_fileadd_data_s), | |
"::", | |
stringify!(plt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_fileadd_data_s>())).track as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_fileadd_data_s), | |
"::", | |
stringify!(track) | |
) | |
); | |
} | |
pub type ddb_fileadd_data_t = ddb_fileadd_data_s; | |
pub const DDB_TF_CONTEXT_HAS_INDEX: ::std::os::raw::c_uint = 1; | |
pub const DDB_TF_CONTEXT_HAS_ID: ::std::os::raw::c_uint = 2; | |
pub const DDB_TF_CONTEXT_NO_DYNAMIC: ::std::os::raw::c_uint = 4; | |
pub const DDB_TF_CONTEXT_MULTILINE: ::std::os::raw::c_uint = 8; | |
pub const DDB_TF_CONTEXT_TEXT_DIM: ::std::os::raw::c_uint = 16; | |
pub const DDB_TF_CONTEXT_NO_MUTEX_LOCK: ::std::os::raw::c_uint = 32; | |
pub type _bindgen_ty_6 = ::std::os::raw::c_uint; | |
pub const DDB_TF_ESC_DIM: ::std::os::raw::c_uint = 1; | |
pub const DDB_TF_ESC_RGB: ::std::os::raw::c_uint = 2; | |
pub type _bindgen_ty_7 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_file_found_data_s { | |
pub plt: *mut ddb_playlist_t, | |
pub filename: *const ::std::os::raw::c_char, | |
pub is_dir: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_file_found_data_s() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_file_found_data_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_file_found_data_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_file_found_data_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_file_found_data_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_file_found_data_s>())).plt as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_file_found_data_s), | |
"::", | |
stringify!(plt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_file_found_data_s>())).filename as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_file_found_data_s), | |
"::", | |
stringify!(filename) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_file_found_data_s>())).is_dir as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_file_found_data_s), | |
"::", | |
stringify!(is_dir) | |
) | |
); | |
} | |
pub type ddb_file_found_data_t = ddb_file_found_data_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_tf_context_t { | |
pub _size: ::std::os::raw::c_int, | |
pub flags: u32, | |
pub it: *mut ddb_playItem_t, | |
pub plt: *mut ddb_playlist_t, | |
pub idx: ::std::os::raw::c_int, | |
pub id: ::std::os::raw::c_int, | |
pub iter: ::std::os::raw::c_int, | |
pub update: ::std::os::raw::c_int, | |
pub dimmed: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_tf_context_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_tf_context_t>(), | |
48usize, | |
concat!("Size of: ", stringify!(ddb_tf_context_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_tf_context_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_tf_context_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>()))._size as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).flags as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).it as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(it) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).plt as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(plt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).idx as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).id as *const _ as usize }, | |
28usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(id) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).iter as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(iter) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).update as *const _ as usize }, | |
36usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(update) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_tf_context_t>())).dimmed as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_tf_context_t), | |
"::", | |
stringify!(dimmed) | |
) | |
); | |
} | |
pub const DDB_LOG_LAYER_DEFAULT: ::std::os::raw::c_uint = 0; | |
pub const DDB_LOG_LAYER_INFO: ::std::os::raw::c_uint = 1; | |
pub type _bindgen_ty_8 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_functions_t { | |
pub vmajor: ::std::os::raw::c_int, | |
pub vminor: ::std::os::raw::c_int, | |
pub md5: ::std::option::Option< | |
unsafe extern "C" fn( | |
sig: *mut u8, | |
in_: *const ::std::os::raw::c_char, | |
len: ::std::os::raw::c_int, | |
), | |
>, | |
pub md5_to_str: ::std::option::Option< | |
unsafe extern "C" fn(str_: *mut ::std::os::raw::c_char, sig: *const u8), | |
>, | |
pub md5_init: ::std::option::Option<unsafe extern "C" fn(s: *mut DB_md5_t)>, | |
pub md5_append: ::std::option::Option< | |
unsafe extern "C" fn(s: *mut DB_md5_t, data: *const u8, nbytes: ::std::os::raw::c_int), | |
>, | |
pub md5_finish: ::std::option::Option<unsafe extern "C" fn(s: *mut DB_md5_t, digest: *mut u8)>, | |
pub get_output: ::std::option::Option<unsafe extern "C" fn() -> *mut DB_output_s>, | |
pub playback_get_pos: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub playback_set_pos: ::std::option::Option<unsafe extern "C" fn(pos: f32)>, | |
pub streamer_get_playing_track: | |
::std::option::Option<unsafe extern "C" fn() -> *mut DB_playItem_t>, | |
pub streamer_get_streaming_track: | |
::std::option::Option<unsafe extern "C" fn() -> *mut DB_playItem_t>, | |
pub streamer_get_playpos: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub streamer_ok_to_read: ::std::option::Option< | |
unsafe extern "C" fn(len: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub streamer_reset: ::std::option::Option<unsafe extern "C" fn(full: ::std::os::raw::c_int)>, | |
pub streamer_read: ::std::option::Option< | |
unsafe extern "C" fn( | |
bytes: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub streamer_set_bitrate: | |
::std::option::Option<unsafe extern "C" fn(bitrate: ::std::os::raw::c_int)>, | |
pub streamer_get_apx_bitrate: | |
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub streamer_get_current_fileinfo: | |
::std::option::Option<unsafe extern "C" fn() -> *mut DB_fileinfo_s>, | |
pub streamer_get_current_playlist: | |
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub streamer_get_dsp_chain: | |
::std::option::Option<unsafe extern "C" fn() -> *mut ddb_dsp_context_s>, | |
pub streamer_set_dsp_chain: | |
::std::option::Option<unsafe extern "C" fn(chain: *mut ddb_dsp_context_s)>, | |
pub streamer_dsp_refresh: ::std::option::Option<unsafe extern "C" fn()>, | |
pub get_config_dir: | |
::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>, | |
pub get_prefix: ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>, | |
pub get_doc_dir: ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>, | |
pub get_plugin_dir: | |
::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>, | |
pub get_pixmap_dir: | |
::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>, | |
pub do_not_call: ::std::option::Option<unsafe extern "C" fn()>, | |
pub thread_start: ::std::option::Option< | |
unsafe extern "C" fn( | |
fn_: ::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>, | |
ctx: *mut ::std::os::raw::c_void, | |
) -> isize, | |
>, | |
pub thread_start_low_priority: ::std::option::Option< | |
unsafe extern "C" fn( | |
fn_: ::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>, | |
ctx: *mut ::std::os::raw::c_void, | |
) -> isize, | |
>, | |
pub thread_join: | |
::std::option::Option<unsafe extern "C" fn(tid: isize) -> ::std::os::raw::c_int>, | |
pub thread_detach: | |
::std::option::Option<unsafe extern "C" fn(tid: isize) -> ::std::os::raw::c_int>, | |
pub thread_exit: | |
::std::option::Option<unsafe extern "C" fn(retval: *mut ::std::os::raw::c_void)>, | |
pub mutex_create: ::std::option::Option<unsafe extern "C" fn() -> usize>, | |
pub mutex_create_nonrecursive: ::std::option::Option<unsafe extern "C" fn() -> usize>, | |
pub mutex_free: ::std::option::Option<unsafe extern "C" fn(mtx: usize)>, | |
pub mutex_lock: | |
::std::option::Option<unsafe extern "C" fn(mtx: usize) -> ::std::os::raw::c_int>, | |
pub mutex_unlock: | |
::std::option::Option<unsafe extern "C" fn(mtx: usize) -> ::std::os::raw::c_int>, | |
pub cond_create: ::std::option::Option<unsafe extern "C" fn() -> usize>, | |
pub cond_free: ::std::option::Option<unsafe extern "C" fn(cond: usize)>, | |
pub cond_wait: ::std::option::Option< | |
unsafe extern "C" fn(cond: usize, mutex: usize) -> ::std::os::raw::c_int, | |
>, | |
pub cond_signal: | |
::std::option::Option<unsafe extern "C" fn(cond: usize) -> ::std::os::raw::c_int>, | |
pub cond_broadcast: | |
::std::option::Option<unsafe extern "C" fn(cond: usize) -> ::std::os::raw::c_int>, | |
pub plt_ref: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_unref: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_get_count: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub plt_get_head: ::std::option::Option< | |
unsafe extern "C" fn(plt: ::std::os::raw::c_int) -> *mut DB_playItem_t, | |
>, | |
pub plt_get_sel_count: ::std::option::Option< | |
unsafe extern "C" fn(plt: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub plt_add: ::std::option::Option< | |
unsafe extern "C" fn( | |
before: ::std::os::raw::c_int, | |
title: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_remove: ::std::option::Option<unsafe extern "C" fn(plt: ::std::os::raw::c_int)>, | |
pub plt_clear: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub pl_clear: ::std::option::Option<unsafe extern "C" fn()>, | |
pub plt_set_curr: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_set_curr_idx: ::std::option::Option<unsafe extern "C" fn(plt: ::std::os::raw::c_int)>, | |
pub plt_get_curr: ::std::option::Option<unsafe extern "C" fn() -> *mut ddb_playlist_t>, | |
pub plt_get_curr_idx: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub plt_move: ::std::option::Option< | |
unsafe extern "C" fn(from: ::std::os::raw::c_int, before: ::std::os::raw::c_int), | |
>, | |
pub plt_load: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_save: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
first: *mut DB_playItem_t, | |
last: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_get_for_idx: ::std::option::Option< | |
unsafe extern "C" fn(idx: ::std::os::raw::c_int) -> *mut ddb_playlist_t, | |
>, | |
pub plt_get_title: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
buffer: *mut ::std::os::raw::c_char, | |
bufsize: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_set_title: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
title: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_modified: ::std::option::Option<unsafe extern "C" fn(handle: *mut ddb_playlist_t)>, | |
pub plt_get_modification_idx: ::std::option::Option< | |
unsafe extern "C" fn(handle: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub plt_get_item_idx: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
it: *mut DB_playItem_t, | |
iter: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_add_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub plt_replace_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub plt_append_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub plt_set_meta_int: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
value: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_set_meta_float: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
value: f32, | |
), | |
>, | |
pub plt_find_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub plt_get_metadata_head: ::std::option::Option< | |
unsafe extern "C" fn(handle: *mut ddb_playlist_t) -> *mut DB_metaInfo_t, | |
>, | |
pub plt_delete_metadata: ::std::option::Option< | |
unsafe extern "C" fn(handle: *mut ddb_playlist_t, meta: *mut DB_metaInfo_t), | |
>, | |
pub plt_find_meta_int: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
def: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_find_meta_float: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
def: f32, | |
) -> f32, | |
>, | |
pub plt_delete_all_meta: | |
::std::option::Option<unsafe extern "C" fn(handle: *mut ddb_playlist_t)>, | |
pub plt_insert_item: ::std::option::Option< | |
unsafe extern "C" fn( | |
playlist: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
it: *mut DB_playItem_t, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_insert_file: ::std::option::Option< | |
unsafe extern "C" fn( | |
playlist: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_insert_dir: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
dirname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_set_item_duration: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t, it: *mut DB_playItem_t, duration: f32), | |
>, | |
pub plt_remove_item: ::std::option::Option< | |
unsafe extern "C" fn( | |
playlist: *mut ddb_playlist_t, | |
it: *mut DB_playItem_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_getselcount: ::std::option::Option< | |
unsafe extern "C" fn(playlist: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub plt_get_totaltime: | |
::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> f32>, | |
pub plt_get_item_count: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_delete_selected: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub plt_set_cursor: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
cursor: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_get_cursor: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_select_all: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_crop_selected: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_get_first: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_get_last: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_get_item_for_idx: ::std::option::Option< | |
unsafe extern "C" fn( | |
playlist: *mut ddb_playlist_t, | |
idx: ::std::os::raw::c_int, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_move_items: ::std::option::Option< | |
unsafe extern "C" fn( | |
to: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
from: *mut ddb_playlist_t, | |
drop_before: *mut DB_playItem_t, | |
indexes: *mut u32, | |
count: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_copy_items: ::std::option::Option< | |
unsafe extern "C" fn( | |
to: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
from: *mut ddb_playlist_t, | |
before: *mut DB_playItem_t, | |
indices: *mut u32, | |
cnt: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_search_reset: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_search_process: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t, text: *const ::std::os::raw::c_char), | |
>, | |
pub plt_sort: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
id: ::std::os::raw::c_int, | |
format: *const ::std::os::raw::c_char, | |
order: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_add_file: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
fname: *const ::std::os::raw::c_char, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_add_dir: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
dirname: *const ::std::os::raw::c_char, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_insert_cue_from_buffer: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
origin: *mut DB_playItem_t, | |
buffer: *const u8, | |
buffersize: ::std::os::raw::c_int, | |
numsamples: ::std::os::raw::c_int, | |
samplerate: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_insert_cue: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
origin: *mut DB_playItem_t, | |
numsamples: ::std::os::raw::c_int, | |
samplerate: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_lock: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_unlock: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_item_alloc: ::std::option::Option<unsafe extern "C" fn() -> *mut DB_playItem_t>, | |
pub pl_item_alloc_init: ::std::option::Option< | |
unsafe extern "C" fn( | |
fname: *const ::std::os::raw::c_char, | |
decoder_id: *const ::std::os::raw::c_char, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_item_ref: ::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t)>, | |
pub pl_item_unref: ::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t)>, | |
pub pl_item_copy: ::std::option::Option< | |
unsafe extern "C" fn(out: *mut DB_playItem_t, in_: *mut DB_playItem_t), | |
>, | |
pub pl_add_files_begin: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub pl_add_files_end: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_get_idx_of: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub pl_get_idx_of_iter: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
iter: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_get_for_idx: ::std::option::Option< | |
unsafe extern "C" fn(idx: ::std::os::raw::c_int) -> *mut DB_playItem_t, | |
>, | |
pub pl_get_for_idx_and_iter: ::std::option::Option< | |
unsafe extern "C" fn( | |
idx: ::std::os::raw::c_int, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_get_totaltime: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub pl_getcount: ::std::option::Option< | |
unsafe extern "C" fn(iter: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub pl_delete_selected: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pl_set_cursor: ::std::option::Option< | |
unsafe extern "C" fn(iter: ::std::os::raw::c_int, cursor: ::std::os::raw::c_int), | |
>, | |
pub pl_get_cursor: ::std::option::Option< | |
unsafe extern "C" fn(iter: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub pl_crop_selected: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_getselcount: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pl_get_first: ::std::option::Option< | |
unsafe extern "C" fn(iter: ::std::os::raw::c_int) -> *mut DB_playItem_t, | |
>, | |
pub pl_get_last: ::std::option::Option< | |
unsafe extern "C" fn(iter: ::std::os::raw::c_int) -> *mut DB_playItem_t, | |
>, | |
pub pl_set_selected: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, sel: ::std::os::raw::c_int), | |
>, | |
pub pl_is_selected: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub pl_save_current: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pl_save_all: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pl_select_all: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_get_next: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_get_prev: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_format_title: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
idx: ::std::os::raw::c_int, | |
s: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
id: ::std::os::raw::c_int, | |
fmt: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_format_title_escaped: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
idx: ::std::os::raw::c_int, | |
s: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
id: ::std::os::raw::c_int, | |
fmt: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_format_time: ::std::option::Option< | |
unsafe extern "C" fn(t: f32, dur: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int), | |
>, | |
pub pl_get_playlist: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> *mut ddb_playlist_t>, | |
pub pl_get_metadata_head: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> *mut DB_metaInfo_t>, | |
pub pl_delete_metadata: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, meta: *mut DB_metaInfo_t), | |
>, | |
pub pl_add_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub pl_append_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub pl_set_meta_int: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
value: ::std::os::raw::c_int, | |
), | |
>, | |
pub pl_set_meta_float: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
value: f32, | |
), | |
>, | |
pub pl_delete_meta: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, key: *const ::std::os::raw::c_char), | |
>, | |
pub pl_find_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub pl_find_meta_int: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
def: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_find_meta_float: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
def: f32, | |
) -> f32, | |
>, | |
pub pl_replace_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub pl_delete_all_meta: ::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t)>, | |
pub pl_get_item_duration: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> f32>, | |
pub pl_get_item_flags: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> u32>, | |
pub pl_set_item_flags: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t, flags: u32)>, | |
pub pl_items_copy_junk: ::std::option::Option< | |
unsafe extern "C" fn( | |
from: *mut DB_playItem_t, | |
first: *mut DB_playItem_t, | |
last: *mut DB_playItem_t, | |
), | |
>, | |
pub pl_set_item_replaygain: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, idx: ::std::os::raw::c_int, value: f32), | |
>, | |
pub pl_get_item_replaygain: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, idx: ::std::os::raw::c_int) -> f32, | |
>, | |
pub pl_playqueue_push: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub pl_playqueue_clear: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_playqueue_pop: ::std::option::Option<unsafe extern "C" fn()>, | |
pub pl_playqueue_remove: ::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t)>, | |
pub pl_playqueue_test: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub volume_set_db: ::std::option::Option<unsafe extern "C" fn(dB: f32)>, | |
pub volume_get_db: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub volume_set_amp: ::std::option::Option<unsafe extern "C" fn(amp: f32)>, | |
pub volume_get_amp: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub volume_get_min_db: ::std::option::Option<unsafe extern "C" fn() -> f32>, | |
pub junk_id3v1_read: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, fp: *mut DB_FILE) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v1_find: | |
::std::option::Option<unsafe extern "C" fn(fp: *mut DB_FILE) -> ::std::os::raw::c_int>, | |
pub junk_id3v1_write: ::std::option::Option< | |
unsafe extern "C" fn( | |
fp: *mut FILE, | |
it: *mut DB_playItem_t, | |
enc: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_find: ::std::option::Option< | |
unsafe extern "C" fn( | |
fp: *mut DB_FILE, | |
psize: *mut ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_read: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, fp: *mut DB_FILE) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_read_full: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
tag: *mut DB_id3v2_tag_t, | |
fp: *mut DB_FILE, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_convert_24_to_23: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag24: *mut DB_id3v2_tag_t, | |
tag23: *mut DB_id3v2_tag_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_convert_23_to_24: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag23: *mut DB_id3v2_tag_t, | |
tag24: *mut DB_id3v2_tag_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_convert_22_to_24: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag22: *mut DB_id3v2_tag_t, | |
tag24: *mut DB_id3v2_tag_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_free: ::std::option::Option<unsafe extern "C" fn(tag: *mut DB_id3v2_tag_t)>, | |
pub junk_id3v2_write: ::std::option::Option< | |
unsafe extern "C" fn(file: *mut FILE, tag: *mut DB_id3v2_tag_t) -> ::std::os::raw::c_int, | |
>, | |
pub junk_id3v2_add_text_frame: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag: *mut DB_id3v2_tag_t, | |
frame_id: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
) -> *mut DB_id3v2_frame_t, | |
>, | |
pub junk_id3v2_remove_frames: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag: *mut DB_id3v2_tag_t, | |
frame_id: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_read: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t, fp: *mut DB_FILE) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_read_mem: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
mem: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_read_full: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
tag_store: *mut DB_apev2_tag_t, | |
fp: *mut DB_FILE, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_read_full_mem: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
tag_store: *mut DB_apev2_tag_t, | |
mem: *mut ::std::os::raw::c_char, | |
memsize: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_find: ::std::option::Option< | |
unsafe extern "C" fn( | |
fp: *mut DB_FILE, | |
psize: *mut i32, | |
pflags: *mut u32, | |
pnumitems: *mut u32, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_remove_frames: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag: *mut DB_apev2_tag_t, | |
frame_id: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_apev2_add_text_frame: ::std::option::Option< | |
unsafe extern "C" fn( | |
tag: *mut DB_apev2_tag_t, | |
frame_id: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
) -> *mut DB_apev2_frame_t, | |
>, | |
pub junk_apev2_free: ::std::option::Option<unsafe extern "C" fn(tag: *mut DB_apev2_tag_t)>, | |
pub junk_apev2_write: ::std::option::Option< | |
unsafe extern "C" fn( | |
fp: *mut FILE, | |
tag: *mut DB_apev2_tag_t, | |
write_header: ::std::os::raw::c_int, | |
write_footer: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_get_leading_size: | |
::std::option::Option<unsafe extern "C" fn(fp: *mut DB_FILE) -> ::std::os::raw::c_int>, | |
pub junk_get_leading_size_stdio: | |
::std::option::Option<unsafe extern "C" fn(fp: *mut FILE) -> ::std::os::raw::c_int>, | |
pub do_not_call2: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut DB_playItem_t, | |
arg2: *mut DB_playItem_t, | |
arg3: *mut DB_playItem_t, | |
), | |
>, | |
pub junk_detect_charset: ::std::option::Option< | |
unsafe extern "C" fn(s: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char, | |
>, | |
pub junk_recode: ::std::option::Option< | |
unsafe extern "C" fn( | |
in_: *const ::std::os::raw::c_char, | |
inlen: ::std::os::raw::c_int, | |
out: *mut ::std::os::raw::c_char, | |
outlen: ::std::os::raw::c_int, | |
cs: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_iconv: ::std::option::Option< | |
unsafe extern "C" fn( | |
in_: *const ::std::os::raw::c_char, | |
inlen: ::std::os::raw::c_int, | |
out: *mut ::std::os::raw::c_char, | |
outlen: ::std::os::raw::c_int, | |
cs_in: *const ::std::os::raw::c_char, | |
cs_out: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub junk_rewrite_tags: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
flags: u32, | |
id3v2_version: ::std::os::raw::c_int, | |
id3v1_encoding: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub fopen: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> *mut DB_FILE, | |
>, | |
pub fclose: ::std::option::Option<unsafe extern "C" fn(f: *mut DB_FILE)>, | |
pub fread: ::std::option::Option< | |
unsafe extern "C" fn( | |
ptr: *mut ::std::os::raw::c_void, | |
size: size_t, | |
nmemb: size_t, | |
stream: *mut DB_FILE, | |
) -> size_t, | |
>, | |
pub fseek: ::std::option::Option< | |
unsafe extern "C" fn( | |
stream: *mut DB_FILE, | |
offset: i64, | |
whence: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub ftell: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE) -> i64>, | |
pub rewind: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE)>, | |
pub fgetlength: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE) -> i64>, | |
pub fget_content_type: ::std::option::Option< | |
unsafe extern "C" fn(stream: *mut DB_FILE) -> *const ::std::os::raw::c_char, | |
>, | |
pub fset_track: | |
::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE, it: *mut DB_playItem_t)>, | |
pub fabort: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE)>, | |
pub sendmessage: ::std::option::Option< | |
unsafe extern "C" fn(id: u32, ctx: usize, p1: u32, p2: u32) -> ::std::os::raw::c_int, | |
>, | |
pub event_alloc: ::std::option::Option<unsafe extern "C" fn(id: u32) -> *mut ddb_event_t>, | |
pub event_free: ::std::option::Option<unsafe extern "C" fn(ev: *mut ddb_event_t)>, | |
pub event_send: ::std::option::Option< | |
unsafe extern "C" fn(ev: *mut ddb_event_t, p1: u32, p2: u32) -> ::std::os::raw::c_int, | |
>, | |
pub conf_lock: ::std::option::Option<unsafe extern "C" fn()>, | |
pub conf_unlock: ::std::option::Option<unsafe extern "C" fn()>, | |
pub conf_get_str_fast: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
def: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub conf_get_str: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
def: *const ::std::os::raw::c_char, | |
buffer: *mut ::std::os::raw::c_char, | |
buffer_size: ::std::os::raw::c_int, | |
), | |
>, | |
pub conf_get_float: ::std::option::Option< | |
unsafe extern "C" fn(key: *const ::std::os::raw::c_char, def: f32) -> f32, | |
>, | |
pub conf_get_int: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
def: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub conf_get_int64: ::std::option::Option< | |
unsafe extern "C" fn(key: *const ::std::os::raw::c_char, def: i64) -> i64, | |
>, | |
pub conf_set_str: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
val: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub conf_set_int: ::std::option::Option< | |
unsafe extern "C" fn(key: *const ::std::os::raw::c_char, val: ::std::os::raw::c_int), | |
>, | |
pub conf_set_int64: | |
::std::option::Option<unsafe extern "C" fn(key: *const ::std::os::raw::c_char, val: i64)>, | |
pub conf_set_float: | |
::std::option::Option<unsafe extern "C" fn(key: *const ::std::os::raw::c_char, val: f32)>, | |
pub conf_find: ::std::option::Option< | |
unsafe extern "C" fn( | |
group: *const ::std::os::raw::c_char, | |
prev: *mut DB_conf_item_t, | |
) -> *mut DB_conf_item_t, | |
>, | |
pub conf_remove_items: | |
::std::option::Option<unsafe extern "C" fn(key: *const ::std::os::raw::c_char)>, | |
pub conf_save: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub plug_get_decoder_list: | |
::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_decoder_s>, | |
pub plug_get_vfs_list: ::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_vfs_s>, | |
pub plug_get_output_list: | |
::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_output_s>, | |
pub plug_get_dsp_list: ::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_dsp_s>, | |
pub plug_get_playlist_list: | |
::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_playlist_s>, | |
pub plug_get_list: ::std::option::Option<unsafe extern "C" fn() -> *mut *mut DB_plugin_s>, | |
pub plug_get_gui_names: | |
::std::option::Option<unsafe extern "C" fn() -> *mut *const ::std::os::raw::c_char>, | |
pub plug_get_decoder_id: ::std::option::Option< | |
unsafe extern "C" fn(id: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char, | |
>, | |
pub plug_remove_decoder_id: | |
::std::option::Option<unsafe extern "C" fn(id: *const ::std::os::raw::c_char)>, | |
pub plug_get_for_id: ::std::option::Option< | |
unsafe extern "C" fn(id: *const ::std::os::raw::c_char) -> *mut DB_plugin_s, | |
>, | |
pub is_local_file: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int, | |
>, | |
pub pcm_convert: ::std::option::Option< | |
unsafe extern "C" fn( | |
inputfmt: *const ddb_waveformat_t, | |
input: *const ::std::os::raw::c_char, | |
outputfmt: *const ddb_waveformat_t, | |
output: *mut ::std::os::raw::c_char, | |
inputsize: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub dsp_preset_load: ::std::option::Option< | |
unsafe extern "C" fn( | |
fname: *const ::std::os::raw::c_char, | |
head: *mut *mut ddb_dsp_context_s, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub dsp_preset_save: ::std::option::Option< | |
unsafe extern "C" fn( | |
fname: *const ::std::os::raw::c_char, | |
head: *mut ddb_dsp_context_s, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub dsp_preset_free: ::std::option::Option<unsafe extern "C" fn(head: *mut ddb_dsp_context_s)>, | |
pub plt_alloc: ::std::option::Option< | |
unsafe extern "C" fn(title: *const ::std::os::raw::c_char) -> *mut ddb_playlist_t, | |
>, | |
pub plt_free: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_set_fast_mode: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t, fast: ::std::os::raw::c_int), | |
>, | |
pub plt_is_fast_mode: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub metacache_add_string: ::std::option::Option< | |
unsafe extern "C" fn(str_: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char, | |
>, | |
pub metacache_remove_string: | |
::std::option::Option<unsafe extern "C" fn(str_: *const ::std::os::raw::c_char)>, | |
pub metacache_ref: | |
::std::option::Option<unsafe extern "C" fn(str_: *const ::std::os::raw::c_char)>, | |
pub metacache_unref: | |
::std::option::Option<unsafe extern "C" fn(str_: *const ::std::os::raw::c_char)>, | |
pub pl_find_meta_raw: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub streamer_dsp_chain_save: | |
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pl_get_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
val: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_get_meta_raw: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
val: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_get_meta: ::std::option::Option< | |
unsafe extern "C" fn( | |
handle: *mut ddb_playlist_t, | |
key: *const ::std::os::raw::c_char, | |
val: *mut ::std::os::raw::c_char, | |
size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_meta_exists: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub vis_waveform_listen: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ::std::os::raw::c_void, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void, data: *mut ddb_audio_data_t), | |
>, | |
), | |
>, | |
pub vis_waveform_unlisten: | |
::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>, | |
pub vis_spectrum_listen: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ::std::os::raw::c_void, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void, data: *mut ddb_audio_data_t), | |
>, | |
), | |
>, | |
pub vis_spectrum_unlisten: | |
::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>, | |
pub audio_set_mute: ::std::option::Option<unsafe extern "C" fn(mute: ::std::os::raw::c_int)>, | |
pub audio_is_mute: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub background_job_increment: ::std::option::Option<unsafe extern "C" fn()>, | |
pub background_job_decrement: ::std::option::Option<unsafe extern "C" fn()>, | |
pub have_background_jobs: | |
::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub plt_get_idx: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub plt_save_n: ::std::option::Option< | |
unsafe extern "C" fn(n: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub plt_save_config: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub listen_file_added: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
data: *mut ddb_fileadd_data_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub unlisten_file_added: ::std::option::Option<unsafe extern "C" fn(id: ::std::os::raw::c_int)>, | |
pub listen_file_add_beginend: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback_begin: ::std::option::Option< | |
unsafe extern "C" fn( | |
data: *mut ddb_fileadd_data_t, | |
user_data: *mut ::std::os::raw::c_void, | |
), | |
>, | |
callback_end: ::std::option::Option< | |
unsafe extern "C" fn( | |
data: *mut ddb_fileadd_data_t, | |
user_data: *mut ::std::os::raw::c_void, | |
), | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub unlisten_file_add_beginend: | |
::std::option::Option<unsafe extern "C" fn(id: ::std::os::raw::c_int)>, | |
pub plt_load2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
plt: *mut ddb_playlist_t, | |
after: *mut ddb_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut DB_playItem_t, | |
>, | |
pub plt_add_file2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
plt: *mut ddb_playlist_t, | |
fname: *const ::std::os::raw::c_char, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_add_dir2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
plt: *mut ddb_playlist_t, | |
dirname: *const ::std::os::raw::c_char, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_insert_file2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
playlist: *mut ddb_playlist_t, | |
after: *mut ddb_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut ddb_playItem_t, | |
>, | |
pub plt_insert_dir2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
plt: *mut ddb_playlist_t, | |
after: *mut ddb_playItem_t, | |
dirname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut ddb_playItem_t, | |
>, | |
pub plt_add_files_begin: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
visibility: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_add_files_end: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t, visibility: ::std::os::raw::c_int), | |
>, | |
pub plt_deselect_all: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub plt_set_scroll: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t, scroll: ::std::os::raw::c_int), | |
>, | |
pub plt_get_scroll: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub tf_compile: ::std::option::Option< | |
unsafe extern "C" fn(script: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, | |
>, | |
pub tf_free: ::std::option::Option<unsafe extern "C" fn(code: *mut ::std::os::raw::c_char)>, | |
pub tf_eval: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ddb_tf_context_t, | |
code: *const ::std::os::raw::c_char, | |
out: *mut ::std::os::raw::c_char, | |
outlen: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_sort_v2: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
id: ::std::os::raw::c_int, | |
format: *const ::std::os::raw::c_char, | |
order: ::std::os::raw::c_int, | |
), | |
>, | |
pub playqueue_push: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub playqueue_pop: ::std::option::Option<unsafe extern "C" fn()>, | |
pub playqueue_remove: ::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t)>, | |
pub playqueue_clear: ::std::option::Option<unsafe extern "C" fn()>, | |
pub playqueue_test: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub playqueue_get_count: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub playqueue_get_item: | |
::std::option::Option<unsafe extern "C" fn(n: ::std::os::raw::c_int) -> *mut DB_playItem_t>, | |
pub playqueue_remove_nth: ::std::option::Option< | |
unsafe extern "C" fn(n: ::std::os::raw::c_int) -> ::std::os::raw::c_int, | |
>, | |
pub playqueue_insert_at: ::std::option::Option< | |
unsafe extern "C" fn(n: ::std::os::raw::c_int, it: *mut DB_playItem_t), | |
>, | |
pub get_system_dir: ::std::option::Option< | |
unsafe extern "C" fn(dir_id: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char, | |
>, | |
pub action_set_playlist: ::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t)>, | |
pub action_get_playlist: ::std::option::Option<unsafe extern "C" fn() -> *mut ddb_playlist_t>, | |
pub tf_import_legacy: ::std::option::Option< | |
unsafe extern "C" fn( | |
fmt: *const ::std::os::raw::c_char, | |
out: *mut ::std::os::raw::c_char, | |
outsize: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_search_process2: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
text: *const ::std::os::raw::c_char, | |
select_results: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_process_cue: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
it: *mut DB_playItem_t, | |
numsamples: u64, | |
samplerate: ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
pub pl_meta_for_key: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *mut DB_metaInfo_t, | |
>, | |
pub log_detailed: ::std::option::Option< | |
unsafe extern "C" fn( | |
plugin: *mut DB_plugin_s, | |
layers: u32, | |
fmt: *const ::std::os::raw::c_char, | |
... | |
), | |
>, | |
pub vlog_detailed: ::std::option::Option< | |
unsafe extern "C" fn( | |
plugin: *mut DB_plugin_s, | |
layer: u32, | |
fmt: *const ::std::os::raw::c_char, | |
ap: *mut __va_list_tag, | |
), | |
>, | |
pub log: ::std::option::Option<unsafe extern "C" fn(fmt: *const ::std::os::raw::c_char, ...)>, | |
pub vlog: ::std::option::Option< | |
unsafe extern "C" fn(fmt: *const ::std::os::raw::c_char, ap: *mut __va_list_tag), | |
>, | |
pub log_viewer_register: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
plugin: *mut DB_plugin_s, | |
layers: u32, | |
text: *const ::std::os::raw::c_char, | |
ctx: *mut ::std::os::raw::c_void, | |
), | |
>, | |
ctx: *mut ::std::os::raw::c_void, | |
), | |
>, | |
pub log_viewer_unregister: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
plugin: *mut DB_plugin_s, | |
layers: u32, | |
text: *const ::std::os::raw::c_char, | |
ctx: *mut ::std::os::raw::c_void, | |
), | |
>, | |
ctx: *mut ::std::os::raw::c_void, | |
), | |
>, | |
pub register_fileadd_filter: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
data: *mut ddb_file_found_data_t, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub unregister_fileadd_filter: | |
::std::option::Option<unsafe extern "C" fn(id: ::std::os::raw::c_int)>, | |
pub metacache_get_string: ::std::option::Option< | |
unsafe extern "C" fn(str_: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char, | |
>, | |
pub metacache_add_value: ::std::option::Option< | |
unsafe extern "C" fn( | |
value: *const ::std::os::raw::c_char, | |
valuesize: size_t, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub metacache_get_value: ::std::option::Option< | |
unsafe extern "C" fn( | |
value: *const ::std::os::raw::c_char, | |
valuesize: size_t, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub metacache_remove_value: ::std::option::Option< | |
unsafe extern "C" fn(value: *const ::std::os::raw::c_char, valuesize: size_t), | |
>, | |
pub replaygain_apply: ::std::option::Option< | |
unsafe extern "C" fn( | |
fmt: *mut ddb_waveformat_t, | |
bytes: *mut ::std::os::raw::c_char, | |
numbytes: ::std::os::raw::c_int, | |
), | |
>, | |
pub replaygain_apply_with_settings: ::std::option::Option< | |
unsafe extern "C" fn( | |
settings: *mut ddb_replaygain_settings_t, | |
fmt: *mut ddb_waveformat_t, | |
bytes: *mut ::std::os::raw::c_char, | |
numbytes: ::std::os::raw::c_int, | |
), | |
>, | |
pub replaygain_init_settings: ::std::option::Option< | |
unsafe extern "C" fn(settings: *mut ddb_replaygain_settings_t, it: *mut DB_playItem_t), | |
>, | |
pub sort_track_array: ::std::option::Option< | |
unsafe extern "C" fn( | |
playlist: *mut ddb_playlist_t, | |
tracks: *mut *mut DB_playItem_t, | |
num_tracks: ::std::os::raw::c_int, | |
format: *const ::std::os::raw::c_char, | |
order: ::std::os::raw::c_int, | |
), | |
>, | |
pub pl_item_init: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> *mut DB_playItem_t, | |
>, | |
pub pl_item_get_startsample: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> i64>, | |
pub pl_item_get_endsample: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t) -> i64>, | |
pub pl_item_set_startsample: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t, sample: i64)>, | |
pub pl_item_set_endsample: | |
::std::option::Option<unsafe extern "C" fn(it: *mut DB_playItem_t, sample: i64)>, | |
pub plt_get_selection_playback_time: | |
::std::option::Option<unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> f32>, | |
pub junk_get_tail_size: | |
::std::option::Option<unsafe extern "C" fn(fp: *mut DB_FILE) -> ::std::os::raw::c_int>, | |
pub junk_get_tag_offsets: ::std::option::Option< | |
unsafe extern "C" fn(fp: *mut DB_FILE, head: *mut u32, tail: *mut u32), | |
>, | |
pub plt_is_loading_cue: ::std::option::Option< | |
unsafe extern "C" fn(plt: *mut ddb_playlist_t) -> ::std::os::raw::c_int, | |
>, | |
pub streamer_set_shuffle: ::std::option::Option<unsafe extern "C" fn(shuffle: ddb_shuffle_t)>, | |
pub streamer_get_shuffle: ::std::option::Option<unsafe extern "C" fn() -> ddb_shuffle_t>, | |
pub streamer_set_repeat: ::std::option::Option<unsafe extern "C" fn(repeat: ddb_repeat_t)>, | |
pub streamer_get_repeat: ::std::option::Option<unsafe extern "C" fn() -> ddb_repeat_t>, | |
pub pl_meta_for_key_with_override: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut ddb_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *mut DB_metaInfo_t, | |
>, | |
pub pl_find_meta_with_override: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> *const ::std::os::raw::c_char, | |
>, | |
pub pl_get_meta_with_override: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut ddb_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
val: *mut ::std::os::raw::c_char, | |
size: size_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub pl_meta_exists_with_override: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
key: *const ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub plt_item_set_selected: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
it: *mut ddb_playItem_t, | |
sel: ::std::os::raw::c_int, | |
), | |
>, | |
pub plt_find_by_name: ::std::option::Option< | |
unsafe extern "C" fn(name: *const ::std::os::raw::c_char) -> *mut ddb_playlist_t, | |
>, | |
pub plt_append: ::std::option::Option< | |
unsafe extern "C" fn(title: *const ::std::os::raw::c_char) -> *mut ddb_playlist_t, | |
>, | |
pub plt_get_head_item: ::std::option::Option< | |
unsafe extern "C" fn( | |
p: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut ddb_playItem_t, | |
>, | |
pub plt_get_tail_item: ::std::option::Option< | |
unsafe extern "C" fn( | |
p: *mut ddb_playlist_t, | |
iter: ::std::os::raw::c_int, | |
) -> *mut ddb_playItem_t, | |
>, | |
pub plug_get_path_for_plugin_ptr: ::std::option::Option< | |
unsafe extern "C" fn(plugin_ptr: *mut DB_plugin_s) -> *const ::std::os::raw::c_char, | |
>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_functions_t() { | |
assert_eq!( | |
::std::mem::size_of::<DB_functions_t>(), | |
2664usize, | |
concat!("Size of: ", stringify!(DB_functions_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_functions_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_functions_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).vmajor as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vmajor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).vminor as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vminor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).md5 as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(md5) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).md5_to_str as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(md5_to_str) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).md5_init as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(md5_init) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).md5_append as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(md5_append) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).md5_finish as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(md5_finish) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_output as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_output) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playback_get_pos as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playback_get_pos) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playback_set_pos as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playback_set_pos) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_playing_track as *const _ | |
as usize | |
}, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_playing_track) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_streaming_track as *const _ | |
as usize | |
}, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_streaming_track) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_playpos as *const _ as usize | |
}, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_playpos) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_ok_to_read as *const _ as usize | |
}, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_ok_to_read) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).streamer_reset as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_reset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).streamer_read as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_read) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_set_bitrate as *const _ as usize | |
}, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_set_bitrate) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_apx_bitrate as *const _ as usize | |
}, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_apx_bitrate) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_current_fileinfo as *const _ | |
as usize | |
}, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_current_fileinfo) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_current_playlist as *const _ | |
as usize | |
}, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_current_playlist) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_dsp_chain as *const _ as usize | |
}, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_dsp_chain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_set_dsp_chain as *const _ as usize | |
}, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_set_dsp_chain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_dsp_refresh as *const _ as usize | |
}, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_dsp_refresh) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_config_dir as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_config_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_prefix as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_prefix) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_doc_dir as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_doc_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_plugin_dir as *const _ as usize }, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_plugin_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_pixmap_dir as *const _ as usize }, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_pixmap_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).do_not_call as *const _ as usize }, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(do_not_call) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).thread_start as *const _ as usize }, | |
224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(thread_start) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).thread_start_low_priority as *const _ | |
as usize | |
}, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(thread_start_low_priority) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).thread_join as *const _ as usize }, | |
240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(thread_join) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).thread_detach as *const _ as usize }, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(thread_detach) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).thread_exit as *const _ as usize }, | |
256usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(thread_exit) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).mutex_create as *const _ as usize }, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(mutex_create) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).mutex_create_nonrecursive as *const _ | |
as usize | |
}, | |
272usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(mutex_create_nonrecursive) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).mutex_free as *const _ as usize }, | |
280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(mutex_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).mutex_lock as *const _ as usize }, | |
288usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(mutex_lock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).mutex_unlock as *const _ as usize }, | |
296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(mutex_unlock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).cond_create as *const _ as usize }, | |
304usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(cond_create) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).cond_free as *const _ as usize }, | |
312usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(cond_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).cond_wait as *const _ as usize }, | |
320usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(cond_wait) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).cond_signal as *const _ as usize }, | |
328usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(cond_signal) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).cond_broadcast as *const _ as usize }, | |
336usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(cond_broadcast) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_ref as *const _ as usize }, | |
344usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_ref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_unref as *const _ as usize }, | |
352usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_unref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_count as *const _ as usize }, | |
360usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_count) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_head as *const _ as usize }, | |
368usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_head) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_sel_count as *const _ as usize | |
}, | |
376usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_sel_count) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add as *const _ as usize }, | |
384usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_remove as *const _ as usize }, | |
392usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_remove) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_clear as *const _ as usize }, | |
400usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_clear) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_clear as *const _ as usize }, | |
408usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_clear) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_curr as *const _ as usize }, | |
416usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_curr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_curr_idx as *const _ as usize }, | |
424usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_curr_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_curr as *const _ as usize }, | |
432usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_curr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_curr_idx as *const _ as usize }, | |
440usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_curr_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_move as *const _ as usize }, | |
448usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_move) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_load as *const _ as usize }, | |
456usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_load) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_save as *const _ as usize }, | |
464usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_save) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_for_idx as *const _ as usize }, | |
472usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_for_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_title as *const _ as usize }, | |
480usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_title) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_title as *const _ as usize }, | |
488usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_title) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_modified as *const _ as usize }, | |
496usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_modified) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_modification_idx as *const _ as usize | |
}, | |
504usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_modification_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_item_idx as *const _ as usize }, | |
512usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_item_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add_meta as *const _ as usize }, | |
520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_replace_meta as *const _ as usize }, | |
528usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_replace_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_append_meta as *const _ as usize }, | |
536usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_append_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_meta_int as *const _ as usize }, | |
544usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_meta_int) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_set_meta_float as *const _ as usize | |
}, | |
552usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_meta_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_find_meta as *const _ as usize }, | |
560usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_find_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_metadata_head as *const _ as usize | |
}, | |
568usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_metadata_head) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_delete_metadata as *const _ as usize | |
}, | |
576usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_delete_metadata) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_find_meta_int as *const _ as usize | |
}, | |
584usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_find_meta_int) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_find_meta_float as *const _ as usize | |
}, | |
592usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_find_meta_float) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_delete_all_meta as *const _ as usize | |
}, | |
600usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_delete_all_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_item as *const _ as usize }, | |
608usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_item) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_file as *const _ as usize }, | |
616usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_file) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_dir as *const _ as usize }, | |
624usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_set_item_duration as *const _ as usize | |
}, | |
632usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_item_duration) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_remove_item as *const _ as usize }, | |
640usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_remove_item) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_getselcount as *const _ as usize }, | |
648usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_getselcount) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_totaltime as *const _ as usize | |
}, | |
656usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_totaltime) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_item_count as *const _ as usize | |
}, | |
664usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_item_count) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_delete_selected as *const _ as usize | |
}, | |
672usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_delete_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_cursor as *const _ as usize }, | |
680usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_cursor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_cursor as *const _ as usize }, | |
688usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_cursor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_select_all as *const _ as usize }, | |
696usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_select_all) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_crop_selected as *const _ as usize | |
}, | |
704usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_crop_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_first as *const _ as usize }, | |
712usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_first) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_last as *const _ as usize }, | |
720usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_last) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_item_for_idx as *const _ as usize | |
}, | |
728usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_item_for_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_move_items as *const _ as usize }, | |
736usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_move_items) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_copy_items as *const _ as usize }, | |
744usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_copy_items) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_search_reset as *const _ as usize }, | |
752usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_search_reset) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_search_process as *const _ as usize | |
}, | |
760usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_search_process) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_sort as *const _ as usize }, | |
768usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_sort) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add_file as *const _ as usize }, | |
776usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_file) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add_dir as *const _ as usize }, | |
784usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_insert_cue_from_buffer as *const _ | |
as usize | |
}, | |
792usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_cue_from_buffer) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_cue as *const _ as usize }, | |
800usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_cue) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_lock as *const _ as usize }, | |
808usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_lock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_unlock as *const _ as usize }, | |
816usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_unlock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_item_alloc as *const _ as usize }, | |
824usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_alloc) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_item_alloc_init as *const _ as usize | |
}, | |
832usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_alloc_init) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_item_ref as *const _ as usize }, | |
840usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_ref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_item_unref as *const _ as usize }, | |
848usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_unref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_item_copy as *const _ as usize }, | |
856usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_copy) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_add_files_begin as *const _ as usize | |
}, | |
864usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_add_files_begin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_add_files_end as *const _ as usize }, | |
872usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_add_files_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_idx_of as *const _ as usize }, | |
880usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_idx_of) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_idx_of_iter as *const _ as usize | |
}, | |
888usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_idx_of_iter) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_for_idx as *const _ as usize }, | |
896usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_for_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_for_idx_and_iter as *const _ as usize | |
}, | |
904usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_for_idx_and_iter) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_totaltime as *const _ as usize }, | |
912usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_totaltime) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_getcount as *const _ as usize }, | |
920usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_getcount) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_delete_selected as *const _ as usize | |
}, | |
928usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_delete_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_set_cursor as *const _ as usize }, | |
936usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_cursor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_cursor as *const _ as usize }, | |
944usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_cursor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_crop_selected as *const _ as usize }, | |
952usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_crop_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_getselcount as *const _ as usize }, | |
960usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_getselcount) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_first as *const _ as usize }, | |
968usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_first) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_last as *const _ as usize }, | |
976usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_last) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_set_selected as *const _ as usize }, | |
984usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_is_selected as *const _ as usize }, | |
992usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_is_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_save_current as *const _ as usize }, | |
1000usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_save_current) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_save_all as *const _ as usize }, | |
1008usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_save_all) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_select_all as *const _ as usize }, | |
1016usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_select_all) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_next as *const _ as usize }, | |
1024usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_next) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_prev as *const _ as usize }, | |
1032usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_prev) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_format_title as *const _ as usize }, | |
1040usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_format_title) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_format_title_escaped as *const _ as usize | |
}, | |
1048usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_format_title_escaped) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_format_time as *const _ as usize }, | |
1056usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_format_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_playlist as *const _ as usize }, | |
1064usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_playlist) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_metadata_head as *const _ as usize | |
}, | |
1072usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_metadata_head) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_delete_metadata as *const _ as usize | |
}, | |
1080usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_delete_metadata) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_add_meta as *const _ as usize }, | |
1088usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_add_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_append_meta as *const _ as usize }, | |
1096usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_append_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_set_meta_int as *const _ as usize }, | |
1104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_meta_int) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_set_meta_float as *const _ as usize | |
}, | |
1112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_meta_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_delete_meta as *const _ as usize }, | |
1120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_delete_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_find_meta as *const _ as usize }, | |
1128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_find_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_find_meta_int as *const _ as usize }, | |
1136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_find_meta_int) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_find_meta_float as *const _ as usize | |
}, | |
1144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_find_meta_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_replace_meta as *const _ as usize }, | |
1152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_replace_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_delete_all_meta as *const _ as usize | |
}, | |
1160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_delete_all_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_item_duration as *const _ as usize | |
}, | |
1168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_item_duration) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_item_flags as *const _ as usize | |
}, | |
1176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_item_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_set_item_flags as *const _ as usize | |
}, | |
1184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_item_flags) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_items_copy_junk as *const _ as usize | |
}, | |
1192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_items_copy_junk) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_set_item_replaygain as *const _ as usize | |
}, | |
1200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_set_item_replaygain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_item_replaygain as *const _ as usize | |
}, | |
1208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_item_replaygain) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_playqueue_push as *const _ as usize | |
}, | |
1216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_playqueue_push) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_playqueue_clear as *const _ as usize | |
}, | |
1224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_playqueue_clear) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_playqueue_pop as *const _ as usize }, | |
1232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_playqueue_pop) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_playqueue_remove as *const _ as usize | |
}, | |
1240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_playqueue_remove) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_playqueue_test as *const _ as usize | |
}, | |
1248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_playqueue_test) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).volume_set_db as *const _ as usize }, | |
1256usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(volume_set_db) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).volume_get_db as *const _ as usize }, | |
1264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(volume_get_db) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).volume_set_amp as *const _ as usize }, | |
1272usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(volume_set_amp) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).volume_get_amp as *const _ as usize }, | |
1280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(volume_get_amp) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).volume_get_min_db as *const _ as usize | |
}, | |
1288usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(volume_get_min_db) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v1_read as *const _ as usize }, | |
1296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v1_read) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v1_find as *const _ as usize }, | |
1304usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v1_find) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v1_write as *const _ as usize }, | |
1312usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v1_write) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_find as *const _ as usize }, | |
1320usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_find) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_read as *const _ as usize }, | |
1328usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_read) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_read_full as *const _ as usize | |
}, | |
1336usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_read_full) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_convert_24_to_23 as *const _ | |
as usize | |
}, | |
1344usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_convert_24_to_23) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_convert_23_to_24 as *const _ | |
as usize | |
}, | |
1352usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_convert_23_to_24) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_convert_22_to_24 as *const _ | |
as usize | |
}, | |
1360usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_convert_22_to_24) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_free as *const _ as usize }, | |
1368usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_write as *const _ as usize }, | |
1376usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_write) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_add_text_frame as *const _ | |
as usize | |
}, | |
1384usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_add_text_frame) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_id3v2_remove_frames as *const _ as usize | |
}, | |
1392usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_id3v2_remove_frames) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_read as *const _ as usize }, | |
1400usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_read) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_read_mem as *const _ as usize | |
}, | |
1408usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_read_mem) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_read_full as *const _ as usize | |
}, | |
1416usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_read_full) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_read_full_mem as *const _ as usize | |
}, | |
1424usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_read_full_mem) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_find as *const _ as usize }, | |
1432usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_find) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_remove_frames as *const _ as usize | |
}, | |
1440usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_remove_frames) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_add_text_frame as *const _ | |
as usize | |
}, | |
1448usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_add_text_frame) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_free as *const _ as usize }, | |
1456usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_apev2_write as *const _ as usize }, | |
1464usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_apev2_write) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_get_leading_size as *const _ as usize | |
}, | |
1472usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_get_leading_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_get_leading_size_stdio as *const _ | |
as usize | |
}, | |
1480usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_get_leading_size_stdio) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).do_not_call2 as *const _ as usize }, | |
1488usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(do_not_call2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_detect_charset as *const _ as usize | |
}, | |
1496usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_detect_charset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_recode as *const _ as usize }, | |
1504usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_recode) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).junk_iconv as *const _ as usize }, | |
1512usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_iconv) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_rewrite_tags as *const _ as usize | |
}, | |
1520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_rewrite_tags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fopen as *const _ as usize }, | |
1528usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fopen) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fclose as *const _ as usize }, | |
1536usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fclose) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fread as *const _ as usize }, | |
1544usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fread) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fseek as *const _ as usize }, | |
1552usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fseek) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).ftell as *const _ as usize }, | |
1560usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(ftell) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).rewind as *const _ as usize }, | |
1568usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(rewind) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fgetlength as *const _ as usize }, | |
1576usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fgetlength) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).fget_content_type as *const _ as usize | |
}, | |
1584usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fget_content_type) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fset_track as *const _ as usize }, | |
1592usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fset_track) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).fabort as *const _ as usize }, | |
1600usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(fabort) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).sendmessage as *const _ as usize }, | |
1608usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(sendmessage) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).event_alloc as *const _ as usize }, | |
1616usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(event_alloc) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).event_free as *const _ as usize }, | |
1624usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(event_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).event_send as *const _ as usize }, | |
1632usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(event_send) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_lock as *const _ as usize }, | |
1640usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_lock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_unlock as *const _ as usize }, | |
1648usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_unlock) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).conf_get_str_fast as *const _ as usize | |
}, | |
1656usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_get_str_fast) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_get_str as *const _ as usize }, | |
1664usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_get_str) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_get_float as *const _ as usize }, | |
1672usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_get_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_get_int as *const _ as usize }, | |
1680usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_get_int) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_get_int64 as *const _ as usize }, | |
1688usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_get_int64) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_set_str as *const _ as usize }, | |
1696usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_set_str) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_set_int as *const _ as usize }, | |
1704usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_set_int) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_set_int64 as *const _ as usize }, | |
1712usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_set_int64) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_set_float as *const _ as usize }, | |
1720usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_set_float) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_find as *const _ as usize }, | |
1728usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_find) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).conf_remove_items as *const _ as usize | |
}, | |
1736usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_remove_items) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).conf_save as *const _ as usize }, | |
1744usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(conf_save) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_decoder_list as *const _ as usize | |
}, | |
1752usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_decoder_list) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_vfs_list as *const _ as usize | |
}, | |
1760usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_vfs_list) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_output_list as *const _ as usize | |
}, | |
1768usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_output_list) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_dsp_list as *const _ as usize | |
}, | |
1776usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_dsp_list) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_playlist_list as *const _ as usize | |
}, | |
1784usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_playlist_list) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plug_get_list as *const _ as usize }, | |
1792usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_list) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_gui_names as *const _ as usize | |
}, | |
1800usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_gui_names) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_decoder_id as *const _ as usize | |
}, | |
1808usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_decoder_id) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_remove_decoder_id as *const _ as usize | |
}, | |
1816usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_remove_decoder_id) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plug_get_for_id as *const _ as usize }, | |
1824usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_for_id) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).is_local_file as *const _ as usize }, | |
1832usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(is_local_file) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pcm_convert as *const _ as usize }, | |
1840usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pcm_convert) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).dsp_preset_load as *const _ as usize }, | |
1848usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(dsp_preset_load) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).dsp_preset_save as *const _ as usize }, | |
1856usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(dsp_preset_save) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).dsp_preset_free as *const _ as usize }, | |
1864usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(dsp_preset_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_alloc as *const _ as usize }, | |
1872usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_alloc) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_free as *const _ as usize }, | |
1880usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_free) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_set_fast_mode as *const _ as usize | |
}, | |
1888usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_fast_mode) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_is_fast_mode as *const _ as usize }, | |
1896usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_is_fast_mode) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_add_string as *const _ as usize | |
}, | |
1904usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_add_string) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_remove_string as *const _ as usize | |
}, | |
1912usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_remove_string) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).metacache_ref as *const _ as usize }, | |
1920usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_ref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).metacache_unref as *const _ as usize }, | |
1928usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_unref) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_find_meta_raw as *const _ as usize }, | |
1936usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_find_meta_raw) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_dsp_chain_save as *const _ as usize | |
}, | |
1944usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_dsp_chain_save) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_meta as *const _ as usize }, | |
1952usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_get_meta_raw as *const _ as usize }, | |
1960usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_meta_raw) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_meta as *const _ as usize }, | |
1968usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_meta) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_meta_exists as *const _ as usize }, | |
1976usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_meta_exists) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).vis_waveform_listen as *const _ as usize | |
}, | |
1984usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vis_waveform_listen) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).vis_waveform_unlisten as *const _ as usize | |
}, | |
1992usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vis_waveform_unlisten) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).vis_spectrum_listen as *const _ as usize | |
}, | |
2000usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vis_spectrum_listen) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).vis_spectrum_unlisten as *const _ as usize | |
}, | |
2008usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vis_spectrum_unlisten) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).audio_set_mute as *const _ as usize }, | |
2016usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(audio_set_mute) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).audio_is_mute as *const _ as usize }, | |
2024usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(audio_is_mute) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).background_job_increment as *const _ as usize | |
}, | |
2032usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(background_job_increment) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).background_job_decrement as *const _ as usize | |
}, | |
2040usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(background_job_decrement) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).have_background_jobs as *const _ as usize | |
}, | |
2048usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(have_background_jobs) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_idx as *const _ as usize }, | |
2056usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_idx) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_save_n as *const _ as usize }, | |
2064usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_save_n) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_save_config as *const _ as usize }, | |
2072usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_save_config) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).listen_file_added as *const _ as usize | |
}, | |
2080usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(listen_file_added) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).unlisten_file_added as *const _ as usize | |
}, | |
2088usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(unlisten_file_added) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).listen_file_add_beginend as *const _ as usize | |
}, | |
2096usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(listen_file_add_beginend) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).unlisten_file_add_beginend as *const _ | |
as usize | |
}, | |
2104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(unlisten_file_add_beginend) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_load2 as *const _ as usize }, | |
2112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_load2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add_file2 as *const _ as usize }, | |
2120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_file2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_add_dir2 as *const _ as usize }, | |
2128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_dir2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_file2 as *const _ as usize }, | |
2136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_file2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_insert_dir2 as *const _ as usize }, | |
2144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_insert_dir2) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_add_files_begin as *const _ as usize | |
}, | |
2152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_files_begin) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_add_files_end as *const _ as usize | |
}, | |
2160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_add_files_end) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_deselect_all as *const _ as usize }, | |
2168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_deselect_all) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_set_scroll as *const _ as usize }, | |
2176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_set_scroll) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_get_scroll as *const _ as usize }, | |
2184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_scroll) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).tf_compile as *const _ as usize }, | |
2192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(tf_compile) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).tf_free as *const _ as usize }, | |
2200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(tf_free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).tf_eval as *const _ as usize }, | |
2208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(tf_eval) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_sort_v2 as *const _ as usize }, | |
2216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_sort_v2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playqueue_push as *const _ as usize }, | |
2224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_push) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playqueue_pop as *const _ as usize }, | |
2232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_pop) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playqueue_remove as *const _ as usize }, | |
2240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_remove) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playqueue_clear as *const _ as usize }, | |
2248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_clear) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).playqueue_test as *const _ as usize }, | |
2256usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_test) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).playqueue_get_count as *const _ as usize | |
}, | |
2264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_get_count) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).playqueue_get_item as *const _ as usize | |
}, | |
2272usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_get_item) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).playqueue_remove_nth as *const _ as usize | |
}, | |
2280usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_remove_nth) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).playqueue_insert_at as *const _ as usize | |
}, | |
2288usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(playqueue_insert_at) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).get_system_dir as *const _ as usize }, | |
2296usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(get_system_dir) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).action_set_playlist as *const _ as usize | |
}, | |
2304usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(action_set_playlist) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).action_get_playlist as *const _ as usize | |
}, | |
2312usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(action_get_playlist) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).tf_import_legacy as *const _ as usize }, | |
2320usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(tf_import_legacy) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_search_process2 as *const _ as usize | |
}, | |
2328usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_search_process2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_process_cue as *const _ as usize }, | |
2336usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_process_cue) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_meta_for_key as *const _ as usize }, | |
2344usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_meta_for_key) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).log_detailed as *const _ as usize }, | |
2352usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(log_detailed) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).vlog_detailed as *const _ as usize }, | |
2360usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vlog_detailed) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).log as *const _ as usize }, | |
2368usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(log) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).vlog as *const _ as usize }, | |
2376usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(vlog) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).log_viewer_register as *const _ as usize | |
}, | |
2384usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(log_viewer_register) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).log_viewer_unregister as *const _ as usize | |
}, | |
2392usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(log_viewer_unregister) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).register_fileadd_filter as *const _ as usize | |
}, | |
2400usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(register_fileadd_filter) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).unregister_fileadd_filter as *const _ | |
as usize | |
}, | |
2408usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(unregister_fileadd_filter) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_get_string as *const _ as usize | |
}, | |
2416usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_get_string) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_add_value as *const _ as usize | |
}, | |
2424usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_add_value) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_get_value as *const _ as usize | |
}, | |
2432usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_get_value) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).metacache_remove_value as *const _ as usize | |
}, | |
2440usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(metacache_remove_value) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).replaygain_apply as *const _ as usize }, | |
2448usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(replaygain_apply) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).replaygain_apply_with_settings as *const _ | |
as usize | |
}, | |
2456usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(replaygain_apply_with_settings) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).replaygain_init_settings as *const _ as usize | |
}, | |
2464usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(replaygain_init_settings) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).sort_track_array as *const _ as usize }, | |
2472usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(sort_track_array) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).pl_item_init as *const _ as usize }, | |
2480usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_init) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_item_get_startsample as *const _ as usize | |
}, | |
2488usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_get_startsample) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_item_get_endsample as *const _ as usize | |
}, | |
2496usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_get_endsample) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_item_set_startsample as *const _ as usize | |
}, | |
2504usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_set_startsample) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_item_set_endsample as *const _ as usize | |
}, | |
2512usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_item_set_endsample) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_selection_playback_time as *const _ | |
as usize | |
}, | |
2520usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_selection_playback_time) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_get_tail_size as *const _ as usize | |
}, | |
2528usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_get_tail_size) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).junk_get_tag_offsets as *const _ as usize | |
}, | |
2536usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(junk_get_tag_offsets) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_is_loading_cue as *const _ as usize | |
}, | |
2544usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_is_loading_cue) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_set_shuffle as *const _ as usize | |
}, | |
2552usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_set_shuffle) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_shuffle as *const _ as usize | |
}, | |
2560usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_shuffle) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_set_repeat as *const _ as usize | |
}, | |
2568usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_set_repeat) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).streamer_get_repeat as *const _ as usize | |
}, | |
2576usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(streamer_get_repeat) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_meta_for_key_with_override as *const _ | |
as usize | |
}, | |
2584usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_meta_for_key_with_override) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_find_meta_with_override as *const _ | |
as usize | |
}, | |
2592usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_find_meta_with_override) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_get_meta_with_override as *const _ | |
as usize | |
}, | |
2600usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_get_meta_with_override) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).pl_meta_exists_with_override as *const _ | |
as usize | |
}, | |
2608usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(pl_meta_exists_with_override) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_item_set_selected as *const _ as usize | |
}, | |
2616usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_item_set_selected) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_find_by_name as *const _ as usize }, | |
2624usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_find_by_name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_functions_t>())).plt_append as *const _ as usize }, | |
2632usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_append) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_head_item as *const _ as usize | |
}, | |
2640usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_head_item) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plt_get_tail_item as *const _ as usize | |
}, | |
2648usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plt_get_tail_item) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::std::ptr::null::<DB_functions_t>())).plug_get_path_for_plugin_ptr as *const _ | |
as usize | |
}, | |
2656usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_functions_t), | |
"::", | |
stringify!(plug_get_path_for_plugin_ptr) | |
) | |
); | |
} | |
pub const DB_ACTION_COMMON: ::std::os::raw::c_uint = 1; | |
pub const DB_ACTION_SINGLE_TRACK: ::std::os::raw::c_uint = 2; | |
pub const DB_ACTION_MULTIPLE_TRACKS: ::std::os::raw::c_uint = 4; | |
pub const DB_ACTION_ALLOW_MULTIPLE_TRACKS: ::std::os::raw::c_uint = 4; | |
pub const DB_ACTION_CAN_MULTIPLE_TRACKS: ::std::os::raw::c_uint = 8; | |
pub const DB_ACTION_DISABLED: ::std::os::raw::c_uint = 16; | |
pub const DB_ACTION_PLAYLIST: ::std::os::raw::c_uint = 32; | |
pub const DB_ACTION_ADD_MENU: ::std::os::raw::c_uint = 64; | |
pub const DB_ACTION_EXCLUDE_FROM_CTX_PLAYLIST: ::std::os::raw::c_uint = 128; | |
pub type _bindgen_ty_9 = ::std::os::raw::c_uint; | |
pub const ddb_action_context_e_DDB_ACTION_CTX_MAIN: ddb_action_context_e = 0; | |
pub const ddb_action_context_e_DDB_ACTION_CTX_SELECTION: ddb_action_context_e = 1; | |
pub const ddb_action_context_e_DDB_ACTION_CTX_PLAYLIST: ddb_action_context_e = 2; | |
pub const ddb_action_context_e_DDB_ACTION_CTX_NOWPLAYING: ddb_action_context_e = 3; | |
pub const ddb_action_context_e_DDB_ACTION_CTX_COUNT: ddb_action_context_e = 4; | |
pub type ddb_action_context_e = ::std::os::raw::c_uint; | |
pub use self::ddb_action_context_e as ddb_action_context_t; | |
pub type DB_plugin_action_callback_t = ::std::option::Option< | |
unsafe extern "C" fn( | |
action: *mut DB_plugin_action_s, | |
userdata: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>; | |
pub type DB_plugin_action_callback2_t = ::std::option::Option< | |
unsafe extern "C" fn( | |
action: *mut DB_plugin_action_s, | |
ctx: ddb_action_context_t, | |
) -> ::std::os::raw::c_int, | |
>; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_plugin_action_s { | |
pub title: *const ::std::os::raw::c_char, | |
pub name: *const ::std::os::raw::c_char, | |
pub flags: u32, | |
pub callback: DB_plugin_action_callback_t, | |
pub next: *mut DB_plugin_action_s, | |
pub callback2: DB_plugin_action_callback2_t, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_plugin_action_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_plugin_action_s>(), | |
48usize, | |
concat!("Size of: ", stringify!(DB_plugin_action_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_plugin_action_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_plugin_action_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).title as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(title) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).name as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).flags as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).callback as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(callback) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).next as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_action_s>())).callback2 as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_action_s), | |
"::", | |
stringify!(callback2) | |
) | |
); | |
} | |
pub type DB_plugin_action_t = DB_plugin_action_s; | |
pub const DDB_PLUGIN_FLAG_LOGGING: ::std::os::raw::c_uint = 1; | |
pub const DDB_PLUGIN_FLAG_REPLAYGAIN: ::std::os::raw::c_uint = 2; | |
pub type _bindgen_ty_10 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_plugin_s { | |
pub type_: i32, | |
pub api_vmajor: i16, | |
pub api_vminor: i16, | |
pub version_major: i16, | |
pub version_minor: i16, | |
pub flags: u32, | |
pub reserved1: u32, | |
pub reserved2: u32, | |
pub reserved3: u32, | |
pub id: *const ::std::os::raw::c_char, | |
pub name: *const ::std::os::raw::c_char, | |
pub descr: *const ::std::os::raw::c_char, | |
pub copyright: *const ::std::os::raw::c_char, | |
pub website: *const ::std::os::raw::c_char, | |
pub command: ::std::option::Option< | |
unsafe extern "C" fn(cmd: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int, | |
>, | |
pub start: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub stop: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub connect: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub disconnect: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub exec_cmdline: ::std::option::Option< | |
unsafe extern "C" fn( | |
cmdline: *const ::std::os::raw::c_char, | |
cmdline_size: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub get_actions: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> *mut DB_plugin_action_t, | |
>, | |
pub message: ::std::option::Option< | |
unsafe extern "C" fn(id: u32, ctx: usize, p1: u32, p2: u32) -> ::std::os::raw::c_int, | |
>, | |
pub configdialog: *const ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_plugin_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_plugin_s>(), | |
144usize, | |
concat!("Size of: ", stringify!(DB_plugin_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_plugin_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_plugin_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).type_ as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(type_) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).api_vmajor as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(api_vmajor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).api_vminor as *const _ as usize }, | |
6usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(api_vminor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).version_major as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(version_major) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).version_minor as *const _ as usize }, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(version_minor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).flags as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(flags) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).reserved1 as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(reserved1) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).reserved2 as *const _ as usize }, | |
20usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(reserved2) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).reserved3 as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(reserved3) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).id as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(id) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).name as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).descr as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(descr) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).copyright as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(copyright) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).website as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(website) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).command as *const _ as usize }, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(command) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).start as *const _ as usize }, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(start) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).stop as *const _ as usize }, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(stop) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).connect as *const _ as usize }, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(connect) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).disconnect as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(disconnect) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).exec_cmdline as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(exec_cmdline) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).get_actions as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(get_actions) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).message as *const _ as usize }, | |
128usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(message) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_plugin_s>())).configdialog as *const _ as usize }, | |
136usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_plugin_s), | |
"::", | |
stringify!(configdialog) | |
) | |
); | |
} | |
pub type DB_plugin_t = DB_plugin_s; | |
pub const DDB_SPEAKER_FRONT_LEFT: ::std::os::raw::c_uint = 1; | |
pub const DDB_SPEAKER_FRONT_RIGHT: ::std::os::raw::c_uint = 2; | |
pub const DDB_SPEAKER_FRONT_CENTER: ::std::os::raw::c_uint = 4; | |
pub const DDB_SPEAKER_LOW_FREQUENCY: ::std::os::raw::c_uint = 8; | |
pub const DDB_SPEAKER_BACK_LEFT: ::std::os::raw::c_uint = 16; | |
pub const DDB_SPEAKER_BACK_RIGHT: ::std::os::raw::c_uint = 32; | |
pub const DDB_SPEAKER_FRONT_LEFT_OF_CENTER: ::std::os::raw::c_uint = 64; | |
pub const DDB_SPEAKER_FRONT_RIGHT_OF_CENTER: ::std::os::raw::c_uint = 128; | |
pub const DDB_SPEAKER_BACK_CENTER: ::std::os::raw::c_uint = 256; | |
pub const DDB_SPEAKER_SIDE_LEFT: ::std::os::raw::c_uint = 512; | |
pub const DDB_SPEAKER_SIDE_RIGHT: ::std::os::raw::c_uint = 1024; | |
pub const DDB_SPEAKER_TOP_CENTER: ::std::os::raw::c_uint = 2048; | |
pub const DDB_SPEAKER_TOP_FRONT_LEFT: ::std::os::raw::c_uint = 4096; | |
pub const DDB_SPEAKER_TOP_FRONT_CENTER: ::std::os::raw::c_uint = 8192; | |
pub const DDB_SPEAKER_TOP_FRONT_RIGHT: ::std::os::raw::c_uint = 16384; | |
pub const DDB_SPEAKER_TOP_BACK_LEFT: ::std::os::raw::c_uint = 32768; | |
pub const DDB_SPEAKER_TOP_BACK_CENTER: ::std::os::raw::c_uint = 65536; | |
pub const DDB_SPEAKER_TOP_BACK_RIGHT: ::std::os::raw::c_uint = 131072; | |
pub type _bindgen_ty_11 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_fileinfo_s { | |
pub plugin: *mut DB_decoder_s, | |
pub fmt: ddb_waveformat_t, | |
pub readpos: f32, | |
pub file: *mut DB_FILE, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_fileinfo_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_fileinfo_s>(), | |
48usize, | |
concat!("Size of: ", stringify!(DB_fileinfo_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_fileinfo_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_fileinfo_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_fileinfo_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_fileinfo_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_fileinfo_s>())).fmt as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_fileinfo_s), | |
"::", | |
stringify!(fmt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_fileinfo_s>())).readpos as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_fileinfo_s), | |
"::", | |
stringify!(readpos) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_fileinfo_s>())).file as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_fileinfo_s), | |
"::", | |
stringify!(file) | |
) | |
); | |
} | |
pub type DB_fileinfo_t = DB_fileinfo_s; | |
pub const DDB_DECODER_HINT_16BIT: ::std::os::raw::c_uint = 1; | |
pub const DDB_DECODER_HINT_NEED_BITRATE: ::std::os::raw::c_uint = 2; | |
pub const DDB_DECODER_HINT_CAN_LOOP: ::std::os::raw::c_uint = 4; | |
pub const DDB_DECODER_HINT_RAW_SIGNAL: ::std::os::raw::c_uint = 8; | |
pub type _bindgen_ty_12 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_decoder_s { | |
pub plugin: DB_plugin_t, | |
pub open: ::std::option::Option<unsafe extern "C" fn(hints: u32) -> *mut DB_fileinfo_t>, | |
pub init: ::std::option::Option< | |
unsafe extern "C" fn( | |
info: *mut DB_fileinfo_t, | |
it: *mut DB_playItem_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub free: ::std::option::Option<unsafe extern "C" fn(info: *mut DB_fileinfo_t)>, | |
pub read: ::std::option::Option< | |
unsafe extern "C" fn( | |
info: *mut DB_fileinfo_t, | |
buffer: *mut ::std::os::raw::c_char, | |
nbytes: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub seek: ::std::option::Option< | |
unsafe extern "C" fn(info: *mut DB_fileinfo_t, seconds: f32) -> ::std::os::raw::c_int, | |
>, | |
pub seek_sample: ::std::option::Option< | |
unsafe extern "C" fn( | |
info: *mut DB_fileinfo_t, | |
sample: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub insert: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
) -> *mut DB_playItem_t, | |
>, | |
pub numvoices: ::std::option::Option< | |
unsafe extern "C" fn(info: *mut DB_fileinfo_t) -> ::std::os::raw::c_int, | |
>, | |
pub mutevoice: ::std::option::Option< | |
unsafe extern "C" fn( | |
info: *mut DB_fileinfo_t, | |
voice: ::std::os::raw::c_int, | |
mute: ::std::os::raw::c_int, | |
), | |
>, | |
pub read_metadata: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub write_metadata: ::std::option::Option< | |
unsafe extern "C" fn(it: *mut DB_playItem_t) -> ::std::os::raw::c_int, | |
>, | |
pub exts: *mut *const ::std::os::raw::c_char, | |
pub prefixes: *mut *const ::std::os::raw::c_char, | |
pub open2: ::std::option::Option< | |
unsafe extern "C" fn(hints: u32, it: *mut DB_playItem_t) -> *mut DB_fileinfo_t, | |
>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_decoder_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_decoder_s>(), | |
256usize, | |
concat!("Size of: ", stringify!(DB_decoder_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_decoder_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_decoder_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).open as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(open) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).init as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(init) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).free as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).read as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(read) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).seek as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(seek) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).seek_sample as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(seek_sample) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).insert as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(insert) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).numvoices as *const _ as usize }, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(numvoices) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).mutevoice as *const _ as usize }, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(mutevoice) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).read_metadata as *const _ as usize }, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(read_metadata) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).write_metadata as *const _ as usize }, | |
224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(write_metadata) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).exts as *const _ as usize }, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(exts) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).prefixes as *const _ as usize }, | |
240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(prefixes) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_decoder_s>())).open2 as *const _ as usize }, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_decoder_s), | |
"::", | |
stringify!(open2) | |
) | |
); | |
} | |
pub type DB_decoder_t = DB_decoder_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_output_s { | |
pub plugin: DB_plugin_t, | |
pub init: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub free: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub setformat: ::std::option::Option< | |
unsafe extern "C" fn(fmt: *mut ddb_waveformat_t) -> ::std::os::raw::c_int, | |
>, | |
pub play: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub stop: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub pause: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub unpause: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub state: ::std::option::Option<unsafe extern "C" fn() -> ddb_playback_state_t>, | |
pub enum_soundcards: ::std::option::Option< | |
unsafe extern "C" fn( | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
name: *const ::std::os::raw::c_char, | |
desc: *const ::std::os::raw::c_char, | |
arg1: *mut ::std::os::raw::c_void, | |
), | |
>, | |
userdata: *mut ::std::os::raw::c_void, | |
), | |
>, | |
pub fmt: ddb_waveformat_t, | |
pub has_volume: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_output_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_output_s>(), | |
248usize, | |
concat!("Size of: ", stringify!(DB_output_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_output_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_output_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).init as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(init) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).free as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(free) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).setformat as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(setformat) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).play as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(play) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).stop as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(stop) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).pause as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(pause) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).unpause as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(unpause) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).state as *const _ as usize }, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(state) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).enum_soundcards as *const _ as usize }, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(enum_soundcards) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).fmt as *const _ as usize }, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(fmt) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_output_s>())).has_volume as *const _ as usize }, | |
240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_output_s), | |
"::", | |
stringify!(has_volume) | |
) | |
); | |
} | |
pub type DB_output_t = DB_output_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_dsp_context_s { | |
pub plugin: *mut DB_dsp_s, | |
pub next: *mut ddb_dsp_context_s, | |
pub _bitfield_align_1: [u8; 0], | |
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, | |
pub __bindgen_padding_0: [u8; 7usize], | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_dsp_context_s() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_dsp_context_s>(), | |
24usize, | |
concat!("Size of: ", stringify!(ddb_dsp_context_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_dsp_context_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_dsp_context_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dsp_context_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dsp_context_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dsp_context_s>())).next as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dsp_context_s), | |
"::", | |
stringify!(next) | |
) | |
); | |
} | |
impl ddb_dsp_context_s { | |
#[inline] | |
pub fn enabled(&self) -> ::std::os::raw::c_uint { | |
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } | |
} | |
#[inline] | |
pub fn set_enabled(&mut self, val: ::std::os::raw::c_uint) { | |
unsafe { | |
let val: u32 = ::std::mem::transmute(val); | |
self._bitfield_1.set(0usize, 1u8, val as u64) | |
} | |
} | |
#[inline] | |
pub fn new_bitfield_1(enabled: ::std::os::raw::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { | |
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); | |
__bindgen_bitfield_unit.set(0usize, 1u8, { | |
let enabled: u32 = unsafe { ::std::mem::transmute(enabled) }; | |
enabled as u64 | |
}); | |
__bindgen_bitfield_unit | |
} | |
} | |
pub type ddb_dsp_context_t = ddb_dsp_context_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_dsp_s { | |
pub plugin: DB_plugin_t, | |
pub open: ::std::option::Option<unsafe extern "C" fn() -> *mut ddb_dsp_context_t>, | |
pub close: ::std::option::Option<unsafe extern "C" fn(ctx: *mut ddb_dsp_context_t)>, | |
pub process: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ddb_dsp_context_t, | |
samples: *mut f32, | |
frames: ::std::os::raw::c_int, | |
maxframes: ::std::os::raw::c_int, | |
fmt: *mut ddb_waveformat_t, | |
ratio: *mut f32, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub reset: ::std::option::Option<unsafe extern "C" fn(ctx: *mut ddb_dsp_context_t)>, | |
pub num_params: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub get_param_name: ::std::option::Option< | |
unsafe extern "C" fn(p: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char, | |
>, | |
pub set_param: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ddb_dsp_context_t, | |
p: ::std::os::raw::c_int, | |
val: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub get_param: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ddb_dsp_context_t, | |
p: ::std::os::raw::c_int, | |
str_: *mut ::std::os::raw::c_char, | |
len: ::std::os::raw::c_int, | |
), | |
>, | |
pub configdialog: *const ::std::os::raw::c_char, | |
pub can_bypass: ::std::option::Option< | |
unsafe extern "C" fn( | |
ctx: *mut ddb_dsp_context_t, | |
fmt: *mut ddb_waveformat_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_dsp_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_dsp_s>(), | |
224usize, | |
concat!("Size of: ", stringify!(DB_dsp_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_dsp_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_dsp_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).open as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(open) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).close as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(close) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).process as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(process) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).reset as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(reset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).num_params as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(num_params) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).get_param_name as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(get_param_name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).set_param as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(set_param) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).get_param as *const _ as usize }, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(get_param) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).configdialog as *const _ as usize }, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(configdialog) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_dsp_s>())).can_bypass as *const _ as usize }, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_dsp_s), | |
"::", | |
stringify!(can_bypass) | |
) | |
); | |
} | |
pub type DB_dsp_t = DB_dsp_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_misc_t { | |
pub plugin: DB_plugin_t, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_misc_t() { | |
assert_eq!( | |
::std::mem::size_of::<DB_misc_t>(), | |
144usize, | |
concat!("Size of: ", stringify!(DB_misc_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_misc_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_misc_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_misc_t>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_misc_t), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_vfs_s { | |
pub plugin: DB_plugin_t, | |
pub get_schemes: | |
::std::option::Option<unsafe extern "C" fn() -> *mut *const ::std::os::raw::c_char>, | |
pub is_streaming: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, | |
pub is_container: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int, | |
>, | |
pub abort: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE)>, | |
pub open: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> *mut DB_FILE, | |
>, | |
pub close: ::std::option::Option<unsafe extern "C" fn(f: *mut DB_FILE)>, | |
pub read: ::std::option::Option< | |
unsafe extern "C" fn( | |
ptr: *mut ::std::os::raw::c_void, | |
size: size_t, | |
nmemb: size_t, | |
stream: *mut DB_FILE, | |
) -> size_t, | |
>, | |
pub seek: ::std::option::Option< | |
unsafe extern "C" fn( | |
stream: *mut DB_FILE, | |
offset: i64, | |
whence: ::std::os::raw::c_int, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub tell: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE) -> i64>, | |
pub rewind: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE)>, | |
pub getlength: ::std::option::Option<unsafe extern "C" fn(stream: *mut DB_FILE) -> i64>, | |
pub get_content_type: ::std::option::Option< | |
unsafe extern "C" fn(stream: *mut DB_FILE) -> *const ::std::os::raw::c_char, | |
>, | |
pub set_track: | |
::std::option::Option<unsafe extern "C" fn(f: *mut DB_FILE, it: *mut DB_playItem_t)>, | |
pub scandir: ::std::option::Option< | |
unsafe extern "C" fn( | |
dir: *const ::std::os::raw::c_char, | |
namelist: *mut *mut *mut dirent, | |
selector: ::std::option::Option< | |
unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, | |
>, | |
cmp: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut *const dirent, | |
arg2: *mut *const dirent, | |
) -> ::std::os::raw::c_int, | |
>, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub get_scheme_for_name: ::std::option::Option< | |
unsafe extern "C" fn(fname: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char, | |
>, | |
pub get_identifier: ::std::option::Option<unsafe extern "C" fn(f: *mut DB_FILE) -> u64>, | |
pub abort_with_identifier: ::std::option::Option<unsafe extern "C" fn(identifier: u64)>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_vfs_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_vfs_s>(), | |
280usize, | |
concat!("Size of: ", stringify!(DB_vfs_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_vfs_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_vfs_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).get_schemes as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(get_schemes) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).is_streaming as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(is_streaming) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).is_container as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(is_container) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).abort as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(abort) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).open as *const _ as usize }, | |
176usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(open) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).close as *const _ as usize }, | |
184usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(close) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).read as *const _ as usize }, | |
192usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(read) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).seek as *const _ as usize }, | |
200usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(seek) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).tell as *const _ as usize }, | |
208usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(tell) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).rewind as *const _ as usize }, | |
216usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(rewind) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).getlength as *const _ as usize }, | |
224usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(getlength) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).get_content_type as *const _ as usize }, | |
232usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(get_content_type) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).set_track as *const _ as usize }, | |
240usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(set_track) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).scandir as *const _ as usize }, | |
248usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(scandir) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).get_scheme_for_name as *const _ as usize }, | |
256usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(get_scheme_for_name) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).get_identifier as *const _ as usize }, | |
264usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(get_identifier) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_vfs_s>())).abort_with_identifier as *const _ as usize }, | |
272usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_vfs_s), | |
"::", | |
stringify!(abort_with_identifier) | |
) | |
); | |
} | |
pub type DB_vfs_t = DB_vfs_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct ddb_dialog_t { | |
pub title: *const ::std::os::raw::c_char, | |
pub layout: *const ::std::os::raw::c_char, | |
pub set_param: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
value: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub get_param: ::std::option::Option< | |
unsafe extern "C" fn( | |
key: *const ::std::os::raw::c_char, | |
value: *mut ::std::os::raw::c_char, | |
len: ::std::os::raw::c_int, | |
def: *const ::std::os::raw::c_char, | |
), | |
>, | |
pub parent: *mut ::std::os::raw::c_void, | |
} | |
#[test] | |
fn bindgen_test_layout_ddb_dialog_t() { | |
assert_eq!( | |
::std::mem::size_of::<ddb_dialog_t>(), | |
40usize, | |
concat!("Size of: ", stringify!(ddb_dialog_t)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<ddb_dialog_t>(), | |
8usize, | |
concat!("Alignment of ", stringify!(ddb_dialog_t)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dialog_t>())).title as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dialog_t), | |
"::", | |
stringify!(title) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dialog_t>())).layout as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dialog_t), | |
"::", | |
stringify!(layout) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dialog_t>())).set_param as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dialog_t), | |
"::", | |
stringify!(set_param) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dialog_t>())).get_param as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dialog_t), | |
"::", | |
stringify!(get_param) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<ddb_dialog_t>())).parent as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(ddb_dialog_t), | |
"::", | |
stringify!(parent) | |
) | |
); | |
} | |
pub const ddb_button_ok: ::std::os::raw::c_uint = 0; | |
pub const ddb_button_cancel: ::std::os::raw::c_uint = 1; | |
pub const ddb_button_close: ::std::os::raw::c_uint = 2; | |
pub const ddb_button_apply: ::std::os::raw::c_uint = 3; | |
pub const ddb_button_yes: ::std::os::raw::c_uint = 4; | |
pub const ddb_button_no: ::std::os::raw::c_uint = 5; | |
pub const ddb_button_max: ::std::os::raw::c_uint = 6; | |
pub type _bindgen_ty_13 = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_gui_s { | |
pub plugin: DB_plugin_t, | |
pub run_dialog: ::std::option::Option< | |
unsafe extern "C" fn( | |
dlg: *mut ddb_dialog_t, | |
buttons: u32, | |
callback: ::std::option::Option< | |
unsafe extern "C" fn( | |
button: ::std::os::raw::c_int, | |
ctx: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
ctx: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_gui_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_gui_s>(), | |
152usize, | |
concat!("Size of: ", stringify!(DB_gui_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_gui_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_gui_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_gui_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_gui_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_gui_s>())).run_dialog as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_gui_s), | |
"::", | |
stringify!(run_dialog) | |
) | |
); | |
} | |
pub type DB_gui_t = DB_gui_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct DB_playlist_s { | |
pub plugin: DB_plugin_t, | |
pub load: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
cb: ::std::option::Option< | |
unsafe extern "C" fn( | |
it: *mut DB_playItem_t, | |
data: *mut ::std::os::raw::c_void, | |
) -> ::std::os::raw::c_int, | |
>, | |
user_data: *mut ::std::os::raw::c_void, | |
) -> *mut DB_playItem_t, | |
>, | |
pub save: ::std::option::Option< | |
unsafe extern "C" fn( | |
plt: *mut ddb_playlist_t, | |
fname: *const ::std::os::raw::c_char, | |
first: *mut DB_playItem_t, | |
last: *mut DB_playItem_t, | |
) -> ::std::os::raw::c_int, | |
>, | |
pub extensions: *mut *const ::std::os::raw::c_char, | |
pub load2: ::std::option::Option< | |
unsafe extern "C" fn( | |
visibility: ::std::os::raw::c_int, | |
plt: *mut ddb_playlist_t, | |
after: *mut DB_playItem_t, | |
fname: *const ::std::os::raw::c_char, | |
pabort: *mut ::std::os::raw::c_int, | |
) -> *mut DB_playItem_t, | |
>, | |
} | |
#[test] | |
fn bindgen_test_layout_DB_playlist_s() { | |
assert_eq!( | |
::std::mem::size_of::<DB_playlist_s>(), | |
176usize, | |
concat!("Size of: ", stringify!(DB_playlist_s)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<DB_playlist_s>(), | |
8usize, | |
concat!("Alignment of ", stringify!(DB_playlist_s)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playlist_s>())).plugin as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playlist_s), | |
"::", | |
stringify!(plugin) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playlist_s>())).load as *const _ as usize }, | |
144usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playlist_s), | |
"::", | |
stringify!(load) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playlist_s>())).save as *const _ as usize }, | |
152usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playlist_s), | |
"::", | |
stringify!(save) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playlist_s>())).extensions as *const _ as usize }, | |
160usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playlist_s), | |
"::", | |
stringify!(extensions) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<DB_playlist_s>())).load2 as *const _ as usize }, | |
168usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(DB_playlist_s), | |
"::", | |
stringify!(load2) | |
) | |
); | |
} | |
pub type DB_playlist_t = DB_playlist_s; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct __locale_data { | |
pub _address: u8, | |
} | |
pub type __builtin_va_list = [__va_list_tag; 1usize]; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct __va_list_tag { | |
pub gp_offset: ::std::os::raw::c_uint, | |
pub fp_offset: ::std::os::raw::c_uint, | |
pub overflow_arg_area: *mut ::std::os::raw::c_void, | |
pub reg_save_area: *mut ::std::os::raw::c_void, | |
} | |
#[test] | |
fn bindgen_test_layout___va_list_tag() { | |
assert_eq!( | |
::std::mem::size_of::<__va_list_tag>(), | |
24usize, | |
concat!("Size of: ", stringify!(__va_list_tag)) | |
); | |
assert_eq!( | |
::std::mem::align_of::<__va_list_tag>(), | |
8usize, | |
concat!("Alignment of ", stringify!(__va_list_tag)) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(gp_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(fp_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(overflow_arg_area) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(__va_list_tag), | |
"::", | |
stringify!(reg_save_area) | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment