/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align> {
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage, align: [] }
}
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
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);
}
}
}
pub const G_GNUC_FUNCTION: &'static [u8; 1usize] = b"\0";
pub const G_GNUC_PRETTY_FUNCTION: &'static [u8; 1usize] = b"\0";
pub const G_ANALYZER_ANALYZING: u32 = 0;
pub const FALSE: u32 = 0;
pub const _LIBC_LIMITS_H_: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __STDC_NO_THREADS__: u32 = 1;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 27;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const MB_LEN_MAX: u32 = 16;
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 _BITS_POSIX2_LIM_H: u32 = 1;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const COLL_WEIGHTS_MAX: u32 = 255;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const CHARCLASS_NAME_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 32767;
pub const G_GINT16_MODIFIER: &'static [u8; 2usize] = b"h\0";
pub const G_GINT16_FORMAT: &'static [u8; 3usize] = b"hi\0";
pub const G_GUINT16_FORMAT: &'static [u8; 3usize] = b"hu\0";
pub const G_GINT32_MODIFIER: &'static [u8; 1usize] = b"\0";
pub const G_GINT32_FORMAT: &'static [u8; 2usize] = b"i\0";
pub const G_GUINT32_FORMAT: &'static [u8; 2usize] = b"u\0";
pub const G_HAVE_GINT64: u32 = 1;
pub const G_GINT64_MODIFIER: &'static [u8; 2usize] = b"l\0";
pub const G_GINT64_FORMAT: &'static [u8; 3usize] = b"li\0";
pub const G_GUINT64_FORMAT: &'static [u8; 3usize] = b"lu\0";
pub const GLIB_SIZEOF_VOID_P: u32 = 8;
pub const GLIB_SIZEOF_LONG: u32 = 8;
pub const GLIB_SIZEOF_SIZE_T: u32 = 8;
pub const GLIB_SIZEOF_SSIZE_T: u32 = 8;
pub const G_GSIZE_MODIFIER: &'static [u8; 2usize] = b"l\0";
pub const G_GSSIZE_MODIFIER: &'static [u8; 2usize] = b"l\0";
pub const G_GSIZE_FORMAT: &'static [u8; 3usize] = b"lu\0";
pub const G_GSSIZE_FORMAT: &'static [u8; 3usize] = b"li\0";
pub const G_GOFFSET_MODIFIER: &'static [u8; 2usize] = b"l\0";
pub const G_GOFFSET_FORMAT: &'static [u8; 3usize] = b"li\0";
pub const G_POLLFD_FORMAT: &'static [u8; 3usize] = b"%d\0";
pub const G_GINTPTR_MODIFIER: &'static [u8; 2usize] = b"l\0";
pub const G_GINTPTR_FORMAT: &'static [u8; 3usize] = b"li\0";
pub const G_GUINTPTR_FORMAT: &'static [u8; 3usize] = b"lu\0";
pub const GLIB_MAJOR_VERSION: u32 = 2;
pub const GLIB_MINOR_VERSION: u32 = 56;
pub const GLIB_MICRO_VERSION: u32 = 4;
pub const G_VA_COPY_AS_ARRAY: u32 = 1;
pub const G_HAVE_ISO_VARARGS: u32 = 1;
pub const G_HAVE_GNUC_VARARGS: u32 = 1;
pub const G_HAVE_GROWING_STACK: u32 = 0;
pub const G_HAVE_GNUC_VISIBILITY: u32 = 1;
pub const G_MODULE_SUFFIX: &'static [u8; 3usize] = b"so\0";
pub const G_PID_FORMAT: &'static [u8; 2usize] = b"i\0";
pub const GLIB_SYSDEF_AF_UNIX: u32 = 1;
pub const GLIB_SYSDEF_AF_INET: u32 = 2;
pub const GLIB_SYSDEF_AF_INET6: u32 = 10;
pub const GLIB_SYSDEF_MSG_OOB: u32 = 1;
pub const GLIB_SYSDEF_MSG_PEEK: u32 = 2;
pub const GLIB_SYSDEF_MSG_DONTROUTE: u32 = 4;
pub const G_DIR_SEPARATOR: u8 = 47u8;
pub const G_DIR_SEPARATOR_S: &'static [u8; 2usize] = b"/\0";
pub const G_SEARCHPATH_SEPARATOR: u8 = 58u8;
pub const G_SEARCHPATH_SEPARATOR_S: &'static [u8; 2usize] = b":\0";
pub const _TIME_H: u32 = 1;
pub const _BITS_TIME_H: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const 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 __timespec_defined: u32 = 1;
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 G_E: f64 = 2.718281828459045;
pub const G_LN2: f64 = 0.6931471805599453;
pub const G_LN10: f64 = 2.302585092994046;
pub const G_PI: f64 = 3.141592653589793;
pub const G_PI_2: f64 = 1.5707963267948966;
pub const G_PI_4: f64 = 0.7853981633974483;
pub const G_SQRT2: f64 = 1.4142135623730951;
pub const G_LITTLE_ENDIAN: u32 = 1234;
pub const G_BIG_ENDIAN: u32 = 4321;
pub const G_PDP_ENDIAN: u32 = 3412;
pub const G_IEEE754_FLOAT_BIAS: u32 = 127;
pub const G_IEEE754_DOUBLE_BIAS: u32 = 1023;
pub const G_LOG_2_BASE_10: f64 = 0.3010299956639812;
pub const __GNUC_VA_LIST: u32 = 1;
pub const _STDLIB_H: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
pub const WEXITED: u32 = 4;
pub const WCONTINUED: u32 = 8;
pub const WNOWAIT: u32 = 16777216;
pub const __WNOTHREAD: u32 = 536870912;
pub const __WALL: u32 = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __ENUM_IDTYPE_T: u32 = 1;
pub const __W_CONTINUED: u32 = 65535;
pub const __WCOREFLAG: u32 = 128;
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 __ldiv_t_defined: u32 = 1;
pub const __lldiv_t_defined: u32 = 1;
pub const RAND_MAX: u32 = 2147483647;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const _SYS_TYPES_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _SYS_SYSMACROS_H: u32 = 1;
pub const _BITS_SYSMACROS_H: u32 = 1;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const __PTHREAD_MUTEX_LOCK_ELISION: u32 = 1;
pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND: u32 = 0;
pub const __PTHREAD_MUTEX_USE_UNION: u32 = 0;
pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const _ALLOCA_H: u32 = 1;
pub const _BITS_SIGNUM_H: u32 = 1;
pub const _BITS_SIGNUM_GENERIC_H: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGILL: u32 = 4;
pub const SIGABRT: u32 = 6;
pub const SIGFPE: u32 = 8;
pub const SIGSEGV: u32 = 11;
pub const SIGTERM: u32 = 15;
pub const SIGHUP: u32 = 1;
pub const SIGQUIT: u32 = 3;
pub const SIGTRAP: u32 = 5;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGPOLL: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const SIGWINCH: u32 = 28;
pub const SIGIO: u32 = 23;
pub const SIGIOT: u32 = 6;
pub const SIGCLD: u32 = 20;
pub const __SIGRTMIN: u32 = 32;
pub const __SIGRTMAX: u32 = 32;
pub const _NSIG: u32 = 33;
pub const SIGSTKFLT: u32 = 16;
pub const SIGPWR: u32 = 30;
pub const __sig_atomic_t_defined: u32 = 1;
pub const __siginfo_t_defined: u32 = 1;
pub const __SI_MAX_SIZE: u32 = 128;
pub const _BITS_SIGINFO_ARCH_H: u32 = 1;
pub const __SI_ERRNO_THEN_CODE: u32 = 1;
pub const __SI_HAVE_SIGSYS: u32 = 1;
pub const _BITS_SIGINFO_CONSTS_H: u32 = 1;
pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1;
pub const __sigevent_t_defined: u32 = 1;
pub const __SIGEV_MAX_SIZE: u32 = 64;
pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1;
pub const NSIG: u32 = 33;
pub const SA_NOCLDSTOP: u32 = 1;
pub const SA_NOCLDWAIT: u32 = 2;
pub const SA_SIGINFO: u32 = 4;
pub const SA_ONSTACK: u32 = 134217728;
pub const SA_RESTART: u32 = 268435456;
pub const SA_NODEFER: u32 = 1073741824;
pub const SA_RESETHAND: u32 = 2147483648;
pub const SA_INTERRUPT: u32 = 536870912;
pub const SA_NOMASK: u32 = 1073741824;
pub const SA_ONESHOT: u32 = 2147483648;
pub const SA_STACK: u32 = 134217728;
pub const SIG_BLOCK: u32 = 0;
pub const SIG_UNBLOCK: u32 = 1;
pub const SIG_SETMASK: u32 = 2;
pub const _BITS_SIGCONTEXT_H: u32 = 1;
pub const FP_XSTATE_MAGIC1: u32 = 1179670611;
pub const FP_XSTATE_MAGIC2: u32 = 1179670597;
pub const __stack_t_defined: u32 = 1;
pub const _SYS_UCONTEXT_H: u32 = 1;
pub const __NGREG: u32 = 23;
pub const NGREG: u32 = 23;
pub const _BITS_SIGSTACK_H: u32 = 1;
pub const MINSIGSTKSZ: u32 = 2048;
pub const SIGSTKSZ: u32 = 8192;
pub const _BITS_SS_FLAGS_H: u32 = 1;
pub const __sigstack_defined: u32 = 1;
pub const _BITS_SIGTHREAD_H: u32 = 1;
pub const G_DATALIST_FLAGS_MASK: u32 = 3;
pub const G_DATE_BAD_JULIAN: u32 = 0;
pub const G_DATE_BAD_DAY: u32 = 0;
pub const G_DATE_BAD_YEAR: u32 = 0;
pub const _DIRENT_H: u32 = 1;
pub const _DIRENT_MATCHES_DIRENT64: u32 = 1;
pub const MAXNAMLEN: u32 = 255;
pub const G_MEM_ALIGN: u32 = 8;
pub const G_HOOK_FLAG_USER_SHIFT: u32 = 4;
pub const G_PRIORITY_HIGH: i32 = -100;
pub const G_PRIORITY_DEFAULT: u32 = 0;
pub const G_PRIORITY_HIGH_IDLE: u32 = 100;
pub const G_PRIORITY_DEFAULT_IDLE: u32 = 200;
pub const G_PRIORITY_LOW: u32 = 300;
pub const G_SOURCE_REMOVE: u32 = 0;
pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: u32 = 18;
pub const G_KEY_FILE_DESKTOP_GROUP: &'static [u8; 14usize] = b"Desktop Entry\0";
pub const G_KEY_FILE_DESKTOP_ACTION_GROUP_PREFIX: &'static [u8; 15usize] = b"Desktop Action\0";
pub const G_KEY_FILE_DESKTOP_KEY_TYPE: &'static [u8; 5usize] = b"Type\0";
pub const G_KEY_FILE_DESKTOP_KEY_VERSION: &'static [u8; 8usize] = b"Version\0";
pub const G_KEY_FILE_DESKTOP_KEY_NAME: &'static [u8; 5usize] = b"Name\0";
pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &'static [u8; 12usize] = b"GenericName\0";
pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &'static [u8; 10usize] = b"NoDisplay\0";
pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: &'static [u8; 8usize] = b"Comment\0";
pub const G_KEY_FILE_DESKTOP_KEY_ICON: &'static [u8; 5usize] = b"Icon\0";
pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: &'static [u8; 7usize] = b"Hidden\0";
pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &'static [u8; 11usize] = b"OnlyShowIn\0";
pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &'static [u8; 10usize] = b"NotShowIn\0";
pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: &'static [u8; 8usize] = b"TryExec\0";
pub const G_KEY_FILE_DESKTOP_KEY_EXEC: &'static [u8; 5usize] = b"Exec\0";
pub const G_KEY_FILE_DESKTOP_KEY_PATH: &'static [u8; 5usize] = b"Path\0";
pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: &'static [u8; 9usize] = b"Terminal\0";
pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: &'static [u8; 9usize] = b"MimeType\0";
pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: &'static [u8; 11usize] = b"Categories\0";
pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &'static [u8; 14usize] = b"StartupNotify\0";
pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &'static [u8; 15usize] = b"StartupWMClass\0";
pub const G_KEY_FILE_DESKTOP_KEY_URL: &'static [u8; 4usize] = b"URL\0";
pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &'static [u8; 16usize] = b"DBusActivatable\0";
pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: &'static [u8; 8usize] = b"Actions\0";
pub const G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN: &'static [u8; 23usize] =
b"X-GNOME-Gettext-Domain\0";
pub const G_KEY_FILE_DESKTOP_KEY_FULLNAME: &'static [u8; 17usize] = b"X-GNOME-FullName\0";
pub const G_KEY_FILE_DESKTOP_KEY_KEYWORDS: &'static [u8; 9usize] = b"Keywords\0";
pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: &'static [u8; 12usize] = b"Application\0";
pub const G_KEY_FILE_DESKTOP_TYPE_LINK: &'static [u8; 5usize] = b"Link\0";
pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: &'static [u8; 10usize] = b"Directory\0";
pub const G_LOG_LEVEL_USER_SHIFT: u32 = 8;
pub const G_OPTION_REMAINING: &'static [u8; 1usize] = b"\0";
pub const G_CSET_A_2_Z: &'static [u8; 27usize] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0";
pub const G_CSET_a_2_z: &'static [u8; 27usize] = b"abcdefghijklmnopqrstuvwxyz\0";
pub const G_CSET_DIGITS: &'static [u8; 11usize] = b"0123456789\0";
pub const G_CSET_LATINC: [u8; 31usize] = [
192u8, 193u8, 194u8, 195u8, 196u8, 197u8, 198u8, 199u8, 200u8, 201u8, 202u8, 203u8, 204u8,
205u8, 206u8, 207u8, 208u8, 209u8, 210u8, 211u8, 212u8, 213u8, 214u8, 216u8, 217u8, 218u8,
219u8, 220u8, 221u8, 222u8, 0u8,
];
pub const G_CSET_LATINS: [u8; 33usize] = [
223u8, 224u8, 225u8, 226u8, 227u8, 228u8, 229u8, 230u8, 231u8, 232u8, 233u8, 234u8, 235u8,
236u8, 237u8, 238u8, 239u8, 240u8, 241u8, 242u8, 243u8, 244u8, 245u8, 246u8, 248u8, 249u8,
250u8, 251u8, 252u8, 253u8, 254u8, 255u8, 0u8,
];
pub const G_STR_DELIMITERS: &'static [u8; 8usize] = b"_-|> <.\0";
pub const G_ASCII_DTOSTR_BUF_SIZE: u32 = 39;
pub const _STRING_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub const G_USEC_PER_SEC: u32 = 1000000;
pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &'static [u8; 8usize] = b":/?#[]@\0";
pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &'static [u8; 12usize] = b"!$&'()*+,;=\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT: &'static [u8; 14usize] = b"!$&'()*+,;=:@\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH: &'static [u8; 15usize] = b"!$&'()*+,;=:@/\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO: &'static [u8; 13usize] = b"!$&'()*+,;=:\0";
pub const G_ALLOC_ONLY: u32 = 1;
pub const G_ALLOC_AND_FREE: u32 = 2;
pub const G_ALLOCATOR_LIST: u32 = 1;
pub const G_ALLOCATOR_SLIST: u32 = 2;
pub const G_ALLOCATOR_NODE: u32 = 3;
pub const _PTHREAD_H: u32 = 1;
pub const _SCHED_H: u32 = 1;
pub const _BITS_SCHED_H: u32 = 1;
pub const SCHED_OTHER: u32 = 0;
pub const SCHED_FIFO: u32 = 1;
pub const SCHED_RR: u32 = 2;
pub const _BITS_CPU_SET_H: u32 = 1;
pub const __CPU_SETSIZE: u32 = 1024;
pub const _BITS_SETJMP_H: u32 = 1;
pub const PTHREAD_ONCE_INIT: u32 = 0;
pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1;
pub const _STDIO_H: u32 = 1;
pub const ____FILE_defined: u32 = 1;
pub const __FILE_defined: u32 = 1;
pub const _BITS_LIBIO_H: u32 = 1;
pub const _BITS_G_CONFIG_H: u32 = 1;
pub const ____mbstate_t_defined: u32 = 1;
pub const _G_HAVE_MMAP: u32 = 1;
pub const _G_HAVE_MREMAP: u32 = 1;
pub const _G_IO_IO_FILE_VERSION: u32 = 131073;
pub const _G_BUFSIZ: u32 = 8192;
pub const _IO_BUFSIZ: u32 = 8192;
pub const _IO_UNIFIED_JUMPTABLES: u32 = 1;
pub const EOF: i32 = -1;
pub const _IOS_INPUT: u32 = 1;
pub const _IOS_OUTPUT: u32 = 2;
pub const _IOS_ATEND: u32 = 4;
pub const _IOS_APPEND: u32 = 8;
pub const _IOS_TRUNC: u32 = 16;
pub const _IOS_NOCREATE: u32 = 32;
pub const _IOS_NOREPLACE: u32 = 64;
pub const _IOS_BIN: u32 = 128;
pub const _IO_MAGIC: u32 = 4222418944;
pub const _OLD_STDIO_MAGIC: u32 = 4206624768;
pub const _IO_MAGIC_MASK: u32 = 4294901760;
pub const _IO_USER_BUF: u32 = 1;
pub const _IO_UNBUFFERED: u32 = 2;
pub const _IO_NO_READS: u32 = 4;
pub const _IO_NO_WRITES: u32 = 8;
pub const _IO_EOF_SEEN: u32 = 16;
pub const _IO_ERR_SEEN: u32 = 32;
pub const _IO_DELETE_DONT_CLOSE: u32 = 64;
pub const _IO_LINKED: u32 = 128;
pub const _IO_IN_BACKUP: u32 = 256;
pub const _IO_LINE_BUF: u32 = 512;
pub const _IO_TIED_PUT_GET: u32 = 1024;
pub const _IO_CURRENTLY_PUTTING: u32 = 2048;
pub const _IO_IS_APPENDING: u32 = 4096;
pub const _IO_IS_FILEBUF: u32 = 8192;
pub const _IO_BAD_SEEN: u32 = 16384;
pub const _IO_USER_LOCK: u32 = 32768;
pub const _IO_FLAGS2_MMAP: u32 = 1;
pub const _IO_FLAGS2_NOTCANCEL: u32 = 2;
pub const _IO_FLAGS2_USER_WBUF: u32 = 8;
pub const _IO_SKIPWS: u32 = 1;
pub const _IO_LEFT: u32 = 2;
pub const _IO_RIGHT: u32 = 4;
pub const _IO_INTERNAL: u32 = 8;
pub const _IO_DEC: u32 = 16;
pub const _IO_OCT: u32 = 32;
pub const _IO_HEX: u32 = 64;
pub const _IO_SHOWBASE: u32 = 128;
pub const _IO_SHOWPOINT: u32 = 256;
pub const _IO_UPPERCASE: u32 = 512;
pub const _IO_SHOWPOS: u32 = 1024;
pub const _IO_SCIENTIFIC: u32 = 2048;
pub const _IO_FIXED: u32 = 4096;
pub const _IO_UNITBUF: u32 = 8192;
pub const _IO_STDIO: u32 = 16384;
pub const _IO_DONT_CLOSE: u32 = 32768;
pub const _IO_BOOLALPHA: u32 = 65536;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 8192;
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 _SYS_STAT_H: u32 = 1;
pub const _BITS_STAT_H: u32 = 1;
pub const _STAT_VER_KERNEL: u32 = 0;
pub const _STAT_VER_LINUX: u32 = 1;
pub const _MKNOD_VER_LINUX: u32 = 0;
pub const _STAT_VER: u32 = 1;
pub const __S_IFMT: u32 = 61440;
pub const __S_IFDIR: u32 = 16384;
pub const __S_IFCHR: u32 = 8192;
pub const __S_IFBLK: u32 = 24576;
pub const __S_IFREG: u32 = 32768;
pub const __S_IFIFO: u32 = 4096;
pub const __S_IFLNK: u32 = 40960;
pub const __S_IFSOCK: u32 = 49152;
pub const __S_ISUID: u32 = 2048;
pub const __S_ISGID: u32 = 1024;
pub const __S_ISVTX: u32 = 512;
pub const __S_IREAD: u32 = 256;
pub const __S_IWRITE: u32 = 128;
pub const __S_IEXEC: u32 = 64;
pub const UTIME_NOW: u32 = 1073741823;
pub const UTIME_OMIT: u32 = 1073741822;
pub const S_IFMT: u32 = 61440;
pub const S_IFDIR: u32 = 16384;
pub const S_IFCHR: u32 = 8192;
pub const S_IFBLK: u32 = 24576;
pub const S_IFREG: u32 = 32768;
pub const S_IFIFO: u32 = 4096;
pub const S_IFLNK: u32 = 40960;
pub const S_IFSOCK: u32 = 49152;
pub const S_ISUID: u32 = 2048;
pub const S_ISGID: u32 = 1024;
pub const S_ISVTX: u32 = 512;
pub const S_IRUSR: u32 = 256;
pub const S_IWUSR: u32 = 128;
pub const S_IXUSR: u32 = 64;
pub const S_IRWXU: u32 = 448;
pub const S_IREAD: u32 = 256;
pub const S_IWRITE: u32 = 128;
pub const S_IEXEC: u32 = 64;
pub const S_IRGRP: u32 = 32;
pub const S_IWGRP: u32 = 16;
pub const S_IXGRP: u32 = 8;
pub const S_IRWXG: u32 = 56;
pub const S_IROTH: u32 = 4;
pub const S_IWOTH: u32 = 2;
pub const S_IXOTH: u32 = 1;
pub const S_IRWXO: u32 = 7;
pub const ACCESSPERMS: u32 = 511;
pub const ALLPERMS: u32 = 4095;
pub const DEFFILEMODE: u32 = 438;
pub const S_BLKSIZE: u32 = 512;
pub const _MKNOD_VER: u32 = 0;
pub const G_TYPE_FUNDAMENTAL_SHIFT: u32 = 2;
pub const G_TYPE_RESERVED_GLIB_FIRST: u32 = 22;
pub const G_TYPE_RESERVED_GLIB_LAST: u32 = 31;
pub const G_TYPE_RESERVED_BSE_FIRST: u32 = 32;
pub const G_TYPE_RESERVED_BSE_LAST: u32 = 48;
pub const G_TYPE_RESERVED_USER_FIRST: u32 = 49;
pub const G_VALUE_NOCOPY_CONTENTS: u32 = 134217728;
pub const G_PARAM_MASK: u32 = 255;
pub const G_PARAM_USER_SHIFT: u32 = 8;
pub const G_SIGNAL_FLAGS_MASK: u32 = 511;
pub const G_SIGNAL_MATCH_MASK: u32 = 63;
pub const _MATH_H: u32 = 1;
pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1;
pub const __FP_LOGB0_IS_MIN: u32 = 1;
pub const __FP_LOGBNAN_IS_MIN: u32 = 1;
pub const FP_ILOGB0: i32 = -2147483648;
pub const FP_ILOGBNAN: i32 = -2147483648;
pub const __MATH_DECLARING_DOUBLE: u32 = 1;
pub const __MATH_DECLARING_FLOATN: u32 = 0;
pub const __MATH_DECLARE_LDOUBLE: u32 = 1;
pub const MATH_ERRNO: u32 = 1;
pub const MATH_ERREXCEPT: u32 = 2;
pub const math_errhandling: u32 = 3;
pub const M_E: f64 = 2.718281828459045;
pub const M_LOG2E: f64 = 1.4426950408889634;
pub const M_LOG10E: f64 = 0.4342944819032518;
pub const M_LN2: f64 = 0.6931471805599453;
pub const M_LN10: f64 = 2.302585092994046;
pub const M_PI: f64 = 3.141592653589793;
pub const M_PI_2: f64 = 1.5707963267948966;
pub const M_PI_4: f64 = 0.7853981633974483;
pub const M_1_PI: f64 = 0.3183098861837907;
pub const M_2_PI: f64 = 0.6366197723675814;
pub const M_2_SQRTPI: f64 = 1.1283791670955126;
pub const M_SQRT2: f64 = 1.4142135623730951;
pub const M_SQRT1_2: f64 = 0.7071067811865476;
pub const VIPS_PI: f64 = 3.141592653589793;
pub const VIPS_PATH_MAX: u32 = 4096;
pub const VIPS_VERSION: &'static [u8; 6usize] = b"8.4.5\0";
pub const VIPS_VERSION_STRING: &'static [u8; 35usize] = b"8.4.5-Wed Jan 18 12:36:44 UTC 2017\0";
pub const VIPS_MAJOR_VERSION: u32 = 8;
pub const VIPS_MINOR_VERSION: u32 = 4;
pub const VIPS_MICRO_VERSION: u32 = 5;
pub const VIPS_EXEEXT: &'static [u8; 1usize] = b"\0";
pub const VIPS_ENABLE_DEPRECATED: u32 = 1;
pub const VIPS_SPARE: u32 = 8;
pub const VIPS__WINDOW_MARGIN_PIXELS: u32 = 128;
pub const VIPS__WINDOW_MARGIN_BYTES: u32 = 10485760;
pub const VIPS_SIZEOF_HEADER: u32 = 64;
pub const VIPS__TILE_WIDTH: u32 = 128;
pub const VIPS__TILE_HEIGHT: u32 = 128;
pub const VIPS__THINSTRIP_HEIGHT: u32 = 1;
pub const VIPS__FATSTRIP_HEIGHT: u32 = 16;
pub const VIPS_MAGIC_INTEL: u32 = 3064394248;
pub const VIPS_MAGIC_SPARC: u32 = 150120118;
pub const VIPS_MAX_COORD: u32 = 10000000;
pub const VIPS_TRANSFORM_SHIFT: u32 = 6;
pub const VIPS_TRANSFORM_SCALE: u32 = 64;
pub const VIPS_INTERPOLATE_SHIFT: u32 = 12;
pub const VIPS_INTERPOLATE_SCALE: u32 = 4096;
pub const VIPS_META_EXIF_NAME: &'static [u8; 10usize] = b"exif-data\0";
pub const VIPS_META_XMP_NAME: &'static [u8; 9usize] = b"xmp-data\0";
pub const VIPS_META_IPCT_NAME: &'static [u8; 10usize] = b"ipct-data\0";
pub const VIPS_META_PHOTOSHOP_NAME: &'static [u8; 15usize] = b"photoshop-data\0";
pub const VIPS_META_ICC_NAME: &'static [u8; 17usize] = b"icc-profile-data\0";
pub const VIPS_META_XML: &'static [u8; 11usize] = b"xml-header\0";
pub const VIPS_META_IMAGEDESCRIPTION: &'static [u8; 18usize] = b"image-description\0";
pub const VIPS_META_RESOLUTION_UNIT: &'static [u8; 16usize] = b"resolution-unit\0";
pub const VIPS_META_LOADER: &'static [u8; 12usize] = b"vips-loader\0";
pub const VIPS_META_ORIENTATION: &'static [u8; 12usize] = b"orientation\0";
pub const VIPS_D93_X0: f64 = 89.74;
pub const VIPS_D93_Y0: f64 = 100.0;
pub const VIPS_D93_Z0: f64 = 130.77;
pub const VIPS_D75_X0: f64 = 94.9682;
pub const VIPS_D75_Y0: f64 = 100.0;
pub const VIPS_D75_Z0: f64 = 122.571;
pub const VIPS_D65_X0: f64 = 95.047;
pub const VIPS_D65_Y0: f64 = 100.0;
pub const VIPS_D65_Z0: f64 = 108.8827;
pub const VIPS_D55_X0: f64 = 95.6831;
pub const VIPS_D55_Y0: f64 = 100.0;
pub const VIPS_D55_Z0: f64 = 92.0871;
pub const VIPS_D50_X0: f64 = 96.425;
pub const VIPS_D50_Y0: f64 = 100.0;
pub const VIPS_D50_Z0: f64 = 82.468;
pub const VIPS_A_X0: f64 = 109.8503;
pub const VIPS_A_Y0: f64 = 100.0;
pub const VIPS_A_Z0: f64 = 35.5849;
pub const VIPS_B_X0: f64 = 99.072;
pub const VIPS_B_Y0: f64 = 100.0;
pub const VIPS_B_Z0: f64 = 85.223;
pub const VIPS_C_X0: f64 = 98.07;
pub const VIPS_C_Y0: f64 = 100.0;
pub const VIPS_C_Z0: f64 = 118.23;
pub const VIPS_E_X0: f64 = 100.0;
pub const VIPS_E_Y0: f64 = 100.0;
pub const VIPS_E_Z0: f64 = 100.0;
pub const VIPS_D3250_X0: f64 = 105.659;
pub const VIPS_D3250_Y0: f64 = 100.0;
pub const VIPS_D3250_Z0: f64 = 45.8501;
pub const IM_D93_X0: f64 = 89.74;
pub const IM_D93_Y0: f64 = 100.0;
pub const IM_D93_Z0: f64 = 130.77;
pub const IM_D75_X0: f64 = 94.9682;
pub const IM_D75_Y0: f64 = 100.0;
pub const IM_D75_Z0: f64 = 122.571;
pub const IM_D65_X0: f64 = 95.047;
pub const IM_D65_Y0: f64 = 100.0;
pub const IM_D65_Z0: f64 = 108.8827;
pub const IM_D55_X0: f64 = 95.6831;
pub const IM_D55_Y0: f64 = 100.0;
pub const IM_D55_Z0: f64 = 92.0871;
pub const IM_D50_X0: f64 = 96.425;
pub const IM_D50_Y0: f64 = 100.0;
pub const IM_D50_Z0: f64 = 82.468;
pub const IM_A_X0: f64 = 109.8503;
pub const IM_A_Y0: f64 = 100.0;
pub const IM_A_Z0: f64 = 35.5849;
pub const IM_B_X0: f64 = 99.072;
pub const IM_B_Y0: f64 = 100.0;
pub const IM_B_Z0: f64 = 85.223;
pub const IM_C_X0: f64 = 98.07;
pub const IM_C_Y0: f64 = 100.0;
pub const IM_C_Z0: f64 = 118.23;
pub const IM_E_X0: f64 = 100.0;
pub const IM_E_Y0: f64 = 100.0;
pub const IM_E_Z0: f64 = 100.0;
pub const IM_D3250_X0: f64 = 105.659;
pub const IM_D3250_Y0: f64 = 100.0;
pub const IM_D3250_Z0: f64 = 45.8501;
pub const IM_PI: f64 = 3.141592653589793;
pub const IM_META_EXIF_NAME: &'static [u8; 10usize] = b"exif-data\0";
pub const IM_META_ICC_NAME: &'static [u8; 17usize] = b"icc-profile-data\0";
pub const IM_META_XML: &'static [u8; 11usize] = b"xml-header\0";
pub const IM_META_RESOLUTION_UNIT: &'static [u8; 16usize] = b"resolution-unit\0";
pub const IM_VERSION_STRING: &'static [u8; 35usize] = b"8.4.5-Wed Jan 18 12:36:44 UTC 2017\0";
pub const IM_MAJOR_VERSION: u32 = 8;
pub const IM_MINOR_VERSION: u32 = 4;
pub const IM_MICRO_VERSION: u32 = 5;
pub const IM_EXEEXT: &'static [u8; 1usize] = b"\0";
pub const IM_SIZEOF_HEADER: u32 = 64;
pub const IM_TYPE_IMAGEVEC: &'static [u8; 9usize] = b"imagevec\0";
pub const IM_TYPE_DOUBLEVEC: &'static [u8; 10usize] = b"doublevec\0";
pub const IM_TYPE_INTVEC: &'static [u8; 7usize] = b"intvec\0";
pub const IM_TYPE_DOUBLE: &'static [u8; 7usize] = b"double\0";
pub const IM_TYPE_INT: &'static [u8; 8usize] = b"integer\0";
pub const IM_TYPE_COMPLEX: &'static [u8; 8usize] = b"complex\0";
pub const IM_TYPE_STRING: &'static [u8; 7usize] = b"string\0";
pub const IM_TYPE_IMASK: &'static [u8; 8usize] = b"intmask\0";
pub const IM_TYPE_DMASK: &'static [u8; 11usize] = b"doublemask\0";
pub const IM_TYPE_IMAGE: &'static [u8; 6usize] = b"image\0";
pub const IM_TYPE_DISPLAY: &'static [u8; 8usize] = b"display\0";
pub const IM_TYPE_GVALUE: &'static [u8; 7usize] = b"gvalue\0";
pub const IM_TYPE_INTERPOLATE: &'static [u8; 12usize] = b"interpolate\0";
pub const IM_MAX_ARGS: u32 = 1000;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
assert_eq!(
::std::mem::size_of::<max_align_t>(),
32usize,
concat!("Size of: ", stringify!(max_align_t))
);
assert_eq!(
::std::mem::align_of::<max_align_t>(),
16usize,
concat!("Alignment of ", stringify!(max_align_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce2)
)
);
}
pub type gint8 = ::std::os::raw::c_schar;
pub type guint8 = ::std::os::raw::c_uchar;
pub type gint16 = ::std::os::raw::c_short;
pub type guint16 = ::std::os::raw::c_ushort;
pub type gint32 = ::std::os::raw::c_int;
pub type guint32 = ::std::os::raw::c_uint;
pub type gint64 = ::std::os::raw::c_long;
pub type guint64 = ::std::os::raw::c_ulong;
pub type gssize = ::std::os::raw::c_long;
pub type gsize = ::std::os::raw::c_ulong;
pub type goffset = gint64;
pub type gintptr = ::std::os::raw::c_long;
pub type guintptr = ::std::os::raw::c_ulong;
pub type GPid = ::std::os::raw::c_int;
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
assert_eq!(
::std::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::std::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(__fsid_t), "::", stringify!(__val))
);
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type clock_t = __clock_t;
pub type time_t = __time_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
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, Copy, Clone)]
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, Copy, Clone)]
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))
);
}
pub type pid_t = __pid_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
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: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
) -> usize;
}
extern "C" {
pub fn strftime_l(
__s: *mut ::std::os::raw::c_char,
__maxsize: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
__loc: locale_t,
) -> usize;
}
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 stime(__when: *const time_t) -> ::std::os::raw::c_int;
}
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 gchar = ::std::os::raw::c_char;
pub type gshort = ::std::os::raw::c_short;
pub type glong = ::std::os::raw::c_long;
pub type gint = ::std::os::raw::c_int;
pub type gboolean = gint;
pub type guchar = ::std::os::raw::c_uchar;
pub type gushort = ::std::os::raw::c_ushort;
pub type gulong = ::std::os::raw::c_ulong;
pub type guint = ::std::os::raw::c_uint;
pub type gfloat = f32;
pub type gdouble = f64;
pub type gpointer = *mut ::std::os::raw::c_void;
pub type gconstpointer = *const ::std::os::raw::c_void;
pub type GCompareFunc =
::std::option::Option<unsafe extern "C" fn(a: gconstpointer, b: gconstpointer) -> gint>;
pub type GCompareDataFunc = ::std::option::Option<
unsafe extern "C" fn(a: gconstpointer, b: gconstpointer, user_data: gpointer) -> gint,
>;
pub type GEqualFunc =
::std::option::Option<unsafe extern "C" fn(a: gconstpointer, b: gconstpointer) -> gboolean>;
pub type GDestroyNotify = ::std::option::Option<unsafe extern "C" fn(data: gpointer)>;
pub type GFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer, user_data: gpointer)>;
pub type GHashFunc = ::std::option::Option<unsafe extern "C" fn(key: gconstpointer) -> guint>;
pub type GHFunc = ::std::option::Option<
unsafe extern "C" fn(key: gpointer, value: gpointer, user_data: gpointer),
>;
pub type GFreeFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer)>;
pub type GTranslateFunc =
::std::option::Option<unsafe extern "C" fn(str: *const gchar, data: gpointer) -> *const gchar>;
pub type GDoubleIEEE754 = _GDoubleIEEE754;
pub type GFloatIEEE754 = _GFloatIEEE754;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GFloatIEEE754 {
pub v_float: gfloat,
pub mpn: _GFloatIEEE754__bindgen_ty_1,
_bindgen_union_align: u32,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct _GFloatIEEE754__bindgen_ty_1 {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
}
#[test]
fn bindgen_test_layout__GFloatIEEE754__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GFloatIEEE754__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(_GFloatIEEE754__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GFloatIEEE754__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(_GFloatIEEE754__bindgen_ty_1))
);
}
impl _GFloatIEEE754__bindgen_ty_1 {
#[inline]
pub fn mantissa(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 23u8) as u32) }
}
#[inline]
pub fn set_mantissa(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 23u8, val as u64)
}
}
#[inline]
pub fn biased_exponent(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 8u8) as u32) }
}
#[inline]
pub fn set_biased_exponent(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(23usize, 8u8, val as u64)
}
}
#[inline]
pub fn sign(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
}
#[inline]
pub fn set_sign(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(31usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
mantissa: guint,
biased_exponent: guint,
sign: guint,
) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 23u8, {
let mantissa: u32 = unsafe { ::std::mem::transmute(mantissa) };
mantissa as u64
});
__bindgen_bitfield_unit.set(23usize, 8u8, {
let biased_exponent: u32 = unsafe { ::std::mem::transmute(biased_exponent) };
biased_exponent as u64
});
__bindgen_bitfield_unit.set(31usize, 1u8, {
let sign: u32 = unsafe { ::std::mem::transmute(sign) };
sign as u64
});
__bindgen_bitfield_unit
}
}
#[test]
fn bindgen_test_layout__GFloatIEEE754() {
assert_eq!(
::std::mem::size_of::<_GFloatIEEE754>(),
4usize,
concat!("Size of: ", stringify!(_GFloatIEEE754))
);
assert_eq!(
::std::mem::align_of::<_GFloatIEEE754>(),
4usize,
concat!("Alignment of ", stringify!(_GFloatIEEE754))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFloatIEEE754>())).v_float as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GFloatIEEE754), "::", stringify!(v_float))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFloatIEEE754>())).mpn as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GFloatIEEE754), "::", stringify!(mpn))
);
}
impl ::std::fmt::Debug for _GFloatIEEE754 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GFloatIEEE754 {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GDoubleIEEE754 {
pub v_double: gdouble,
pub mpn: _GDoubleIEEE754__bindgen_ty_1,
_bindgen_union_align: u64,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct _GDoubleIEEE754__bindgen_ty_1 {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u32>,
}
#[test]
fn bindgen_test_layout__GDoubleIEEE754__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GDoubleIEEE754__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(_GDoubleIEEE754__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GDoubleIEEE754__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(_GDoubleIEEE754__bindgen_ty_1))
);
}
impl _GDoubleIEEE754__bindgen_ty_1 {
#[inline]
pub fn mantissa_low(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 32u8) as u32) }
}
#[inline]
pub fn set_mantissa_low(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 32u8, val as u64)
}
}
#[inline]
pub fn mantissa_high(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 20u8) as u32) }
}
#[inline]
pub fn set_mantissa_high(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(32usize, 20u8, val as u64)
}
}
#[inline]
pub fn biased_exponent(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 11u8) as u32) }
}
#[inline]
pub fn set_biased_exponent(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(52usize, 11u8, val as u64)
}
}
#[inline]
pub fn sign(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u32) }
}
#[inline]
pub fn set_sign(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(63usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
mantissa_low: guint,
mantissa_high: guint,
biased_exponent: guint,
sign: guint,
) -> __BindgenBitfieldUnit<[u8; 8usize], u32> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize], u32> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 32u8, {
let mantissa_low: u32 = unsafe { ::std::mem::transmute(mantissa_low) };
mantissa_low as u64
});
__bindgen_bitfield_unit.set(32usize, 20u8, {
let mantissa_high: u32 = unsafe { ::std::mem::transmute(mantissa_high) };
mantissa_high as u64
});
__bindgen_bitfield_unit.set(52usize, 11u8, {
let biased_exponent: u32 = unsafe { ::std::mem::transmute(biased_exponent) };
biased_exponent as u64
});
__bindgen_bitfield_unit.set(63usize, 1u8, {
let sign: u32 = unsafe { ::std::mem::transmute(sign) };
sign as u64
});
__bindgen_bitfield_unit
}
}
#[test]
fn bindgen_test_layout__GDoubleIEEE754() {
assert_eq!(
::std::mem::size_of::<_GDoubleIEEE754>(),
8usize,
concat!("Size of: ", stringify!(_GDoubleIEEE754))
);
assert_eq!(
::std::mem::align_of::<_GDoubleIEEE754>(),
8usize,
concat!("Alignment of ", stringify!(_GDoubleIEEE754))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GDoubleIEEE754>())).v_double as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GDoubleIEEE754), "::", stringify!(v_double))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GDoubleIEEE754>())).mpn as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GDoubleIEEE754), "::", stringify!(mpn))
);
}
impl ::std::fmt::Debug for _GDoubleIEEE754 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GDoubleIEEE754 {{ union }}")
}
}
pub type GTimeVal = _GTimeVal;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTimeVal {
pub tv_sec: glong,
pub tv_usec: glong,
}
#[test]
fn bindgen_test_layout__GTimeVal() {
assert_eq!(
::std::mem::size_of::<_GTimeVal>(),
16usize,
concat!("Size of: ", stringify!(_GTimeVal))
);
assert_eq!(
::std::mem::align_of::<_GTimeVal>(),
8usize,
concat!("Alignment of ", stringify!(_GTimeVal))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTimeVal>())).tv_sec as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTimeVal), "::", stringify!(tv_sec))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTimeVal>())).tv_usec as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GTimeVal), "::", stringify!(tv_usec))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBytes {
_unused: [u8; 0],
}
pub type GBytes = _GBytes;
pub type GArray = _GArray;
pub type GByteArray = _GByteArray;
pub type GPtrArray = _GPtrArray;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GArray {
pub data: *mut gchar,
pub len: guint,
}
#[test]
fn bindgen_test_layout__GArray() {
assert_eq!(
::std::mem::size_of::<_GArray>(),
16usize,
concat!("Size of: ", stringify!(_GArray))
);
assert_eq!(
::std::mem::align_of::<_GArray>(),
8usize,
concat!("Alignment of ", stringify!(_GArray))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GArray>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GArray), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GArray>())).len as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GArray), "::", stringify!(len))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GByteArray {
pub data: *mut guint8,
pub len: guint,
}
#[test]
fn bindgen_test_layout__GByteArray() {
assert_eq!(
::std::mem::size_of::<_GByteArray>(),
16usize,
concat!("Size of: ", stringify!(_GByteArray))
);
assert_eq!(
::std::mem::align_of::<_GByteArray>(),
8usize,
concat!("Alignment of ", stringify!(_GByteArray))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GByteArray>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GByteArray), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GByteArray>())).len as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GByteArray), "::", stringify!(len))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPtrArray {
pub pdata: *mut gpointer,
pub len: guint,
}
#[test]
fn bindgen_test_layout__GPtrArray() {
assert_eq!(
::std::mem::size_of::<_GPtrArray>(),
16usize,
concat!("Size of: ", stringify!(_GPtrArray))
);
assert_eq!(
::std::mem::align_of::<_GPtrArray>(),
8usize,
concat!("Alignment of ", stringify!(_GPtrArray))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPtrArray>())).pdata as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GPtrArray), "::", stringify!(pdata))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPtrArray>())).len as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GPtrArray), "::", stringify!(len))
);
}
extern "C" {
pub fn g_array_new(
zero_terminated: gboolean,
clear_: gboolean,
element_size: guint,
) -> *mut GArray;
}
extern "C" {
pub fn g_array_sized_new(
zero_terminated: gboolean,
clear_: gboolean,
element_size: guint,
reserved_size: guint,
) -> *mut GArray;
}
extern "C" {
pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut gchar;
}
extern "C" {
pub fn g_array_ref(array: *mut GArray) -> *mut GArray;
}
extern "C" {
pub fn g_array_unref(array: *mut GArray);
}
extern "C" {
pub fn g_array_get_element_size(array: *mut GArray) -> guint;
}
extern "C" {
pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: guint) -> *mut GArray;
}
extern "C" {
pub fn g_array_prepend_vals(array: *mut GArray, data: gconstpointer, len: guint)
-> *mut GArray;
}
extern "C" {
pub fn g_array_insert_vals(
array: *mut GArray,
index_: guint,
data: gconstpointer,
len: guint,
) -> *mut GArray;
}
extern "C" {
pub fn g_array_set_size(array: *mut GArray, length: guint) -> *mut GArray;
}
extern "C" {
pub fn g_array_remove_index(array: *mut GArray, index_: guint) -> *mut GArray;
}
extern "C" {
pub fn g_array_remove_index_fast(array: *mut GArray, index_: guint) -> *mut GArray;
}
extern "C" {
pub fn g_array_remove_range(array: *mut GArray, index_: guint, length: guint) -> *mut GArray;
}
extern "C" {
pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc);
}
extern "C" {
pub fn g_array_sort_with_data(
array: *mut GArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify);
}
extern "C" {
pub fn g_ptr_array_new() -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_new_with_free_func(element_free_func: GDestroyNotify) -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_sized_new(reserved_size: guint) -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_new_full(
reserved_size: guint,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_free(array: *mut GPtrArray, free_seg: gboolean) -> *mut gpointer;
}
extern "C" {
pub fn g_ptr_array_ref(array: *mut GPtrArray) -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_unref(array: *mut GPtrArray);
}
extern "C" {
pub fn g_ptr_array_set_free_func(array: *mut GPtrArray, element_free_func: GDestroyNotify);
}
extern "C" {
pub fn g_ptr_array_set_size(array: *mut GPtrArray, length: gint);
}
extern "C" {
pub fn g_ptr_array_remove_index(array: *mut GPtrArray, index_: guint) -> gpointer;
}
extern "C" {
pub fn g_ptr_array_remove_index_fast(array: *mut GPtrArray, index_: guint) -> gpointer;
}
extern "C" {
pub fn g_ptr_array_remove(array: *mut GPtrArray, data: gpointer) -> gboolean;
}
extern "C" {
pub fn g_ptr_array_remove_fast(array: *mut GPtrArray, data: gpointer) -> gboolean;
}
extern "C" {
pub fn g_ptr_array_remove_range(
array: *mut GPtrArray,
index_: guint,
length: guint,
) -> *mut GPtrArray;
}
extern "C" {
pub fn g_ptr_array_add(array: *mut GPtrArray, data: gpointer);
}
extern "C" {
pub fn g_ptr_array_insert(array: *mut GPtrArray, index_: gint, data: gpointer);
}
extern "C" {
pub fn g_ptr_array_sort(array: *mut GPtrArray, compare_func: GCompareFunc);
}
extern "C" {
pub fn g_ptr_array_sort_with_data(
array: *mut GPtrArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_ptr_array_foreach(array: *mut GPtrArray, func: GFunc, user_data: gpointer);
}
extern "C" {
pub fn g_ptr_array_find(
haystack: *mut GPtrArray,
needle: gconstpointer,
index_: *mut guint,
) -> gboolean;
}
extern "C" {
pub fn g_ptr_array_find_with_equal_func(
haystack: *mut GPtrArray,
needle: gconstpointer,
equal_func: GEqualFunc,
index_: *mut guint,
) -> gboolean;
}
extern "C" {
pub fn g_byte_array_new() -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_new_take(data: *mut guint8, len: gsize) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_sized_new(reserved_size: guint) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut guint8;
}
extern "C" {
pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes;
}
extern "C" {
pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_unref(array: *mut GByteArray);
}
extern "C" {
pub fn g_byte_array_append(
array: *mut GByteArray,
data: *const guint8,
len: guint,
) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_prepend(
array: *mut GByteArray,
data: *const guint8,
len: guint,
) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_set_size(array: *mut GByteArray, length: guint) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: guint) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_remove_index_fast(array: *mut GByteArray, index_: guint)
-> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_remove_range(
array: *mut GByteArray,
index_: guint,
length: guint,
) -> *mut GByteArray;
}
extern "C" {
pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc);
}
extern "C" {
pub fn g_byte_array_sort_with_data(
array: *mut GByteArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_atomic_int_get(atomic: *const gint) -> gint;
}
extern "C" {
pub fn g_atomic_int_set(atomic: *mut gint, newval: gint);
}
extern "C" {
pub fn g_atomic_int_inc(atomic: *mut gint);
}
extern "C" {
pub fn g_atomic_int_dec_and_test(atomic: *mut gint) -> gboolean;
}
extern "C" {
pub fn g_atomic_int_compare_and_exchange(
atomic: *mut gint,
oldval: gint,
newval: gint,
) -> gboolean;
}
extern "C" {
pub fn g_atomic_int_add(atomic: *mut gint, val: gint) -> gint;
}
extern "C" {
pub fn g_atomic_int_and(atomic: *mut guint, val: guint) -> guint;
}
extern "C" {
pub fn g_atomic_int_or(atomic: *mut guint, val: guint) -> guint;
}
extern "C" {
pub fn g_atomic_int_xor(atomic: *mut guint, val: guint) -> guint;
}
extern "C" {
pub fn g_atomic_pointer_get(atomic: *const ::std::os::raw::c_void) -> gpointer;
}
extern "C" {
pub fn g_atomic_pointer_set(atomic: *mut ::std::os::raw::c_void, newval: gpointer);
}
extern "C" {
pub fn g_atomic_pointer_compare_and_exchange(
atomic: *mut ::std::os::raw::c_void,
oldval: gpointer,
newval: gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_atomic_pointer_add(atomic: *mut ::std::os::raw::c_void, val: gssize) -> gssize;
}
extern "C" {
pub fn g_atomic_pointer_and(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize;
}
extern "C" {
pub fn g_atomic_pointer_or(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize;
}
extern "C" {
pub fn g_atomic_pointer_xor(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize;
}
extern "C" {
pub fn g_atomic_int_exchange_and_add(atomic: *mut gint, val: gint) -> gint;
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type GQuark = guint32;
extern "C" {
pub fn g_quark_try_string(string: *const gchar) -> GQuark;
}
extern "C" {
pub fn g_quark_from_static_string(string: *const gchar) -> GQuark;
}
extern "C" {
pub fn g_quark_from_string(string: *const gchar) -> GQuark;
}
extern "C" {
pub fn g_quark_to_string(quark: GQuark) -> *const gchar;
}
extern "C" {
pub fn g_intern_string(string: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_intern_static_string(string: *const gchar) -> *const gchar;
}
pub type GError = _GError;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GError {
pub domain: GQuark,
pub code: gint,
pub message: *mut gchar,
}
#[test]
fn bindgen_test_layout__GError() {
assert_eq!(
::std::mem::size_of::<_GError>(),
16usize,
concat!("Size of: ", stringify!(_GError))
);
assert_eq!(
::std::mem::align_of::<_GError>(),
8usize,
concat!("Alignment of ", stringify!(_GError))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GError>())).domain as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GError), "::", stringify!(domain))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GError>())).code as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_GError), "::", stringify!(code))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GError>())).message as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GError), "::", stringify!(message))
);
}
extern "C" {
pub fn g_error_new(domain: GQuark, code: gint, format: *const gchar, ...) -> *mut GError;
}
extern "C" {
pub fn g_error_new_literal(domain: GQuark, code: gint, message: *const gchar) -> *mut GError;
}
extern "C" {
pub fn g_error_new_valist(
domain: GQuark,
code: gint,
format: *const gchar,
args: *mut __va_list_tag,
) -> *mut GError;
}
extern "C" {
pub fn g_error_free(error: *mut GError);
}
extern "C" {
pub fn g_error_copy(error: *const GError) -> *mut GError;
}
extern "C" {
pub fn g_error_matches(error: *const GError, domain: GQuark, code: gint) -> gboolean;
}
extern "C" {
pub fn g_set_error(
err: *mut *mut GError,
domain: GQuark,
code: gint,
format: *const gchar,
...
);
}
extern "C" {
pub fn g_set_error_literal(
err: *mut *mut GError,
domain: GQuark,
code: gint,
message: *const gchar,
);
}
extern "C" {
pub fn g_propagate_error(dest: *mut *mut GError, src: *mut GError);
}
extern "C" {
pub fn g_clear_error(err: *mut *mut GError);
}
extern "C" {
pub fn g_prefix_error(err: *mut *mut GError, format: *const gchar, ...);
}
extern "C" {
pub fn g_propagate_prefixed_error(
dest: *mut *mut GError,
src: *mut GError,
format: *const gchar,
...
);
}
extern "C" {
pub fn g_get_user_name() -> *const gchar;
}
extern "C" {
pub fn g_get_real_name() -> *const gchar;
}
extern "C" {
pub fn g_get_home_dir() -> *const gchar;
}
extern "C" {
pub fn g_get_tmp_dir() -> *const gchar;
}
extern "C" {
pub fn g_get_host_name() -> *const gchar;
}
extern "C" {
pub fn g_get_prgname() -> *const gchar;
}
extern "C" {
pub fn g_set_prgname(prgname: *const gchar);
}
extern "C" {
pub fn g_get_application_name() -> *const gchar;
}
extern "C" {
pub fn g_set_application_name(application_name: *const gchar);
}
extern "C" {
pub fn g_reload_user_special_dirs_cache();
}
extern "C" {
pub fn g_get_user_data_dir() -> *const gchar;
}
extern "C" {
pub fn g_get_user_config_dir() -> *const gchar;
}
extern "C" {
pub fn g_get_user_cache_dir() -> *const gchar;
}
extern "C" {
pub fn g_get_system_data_dirs() -> *const *const gchar;
}
extern "C" {
pub fn g_get_system_config_dirs() -> *const *const gchar;
}
extern "C" {
pub fn g_get_user_runtime_dir() -> *const gchar;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GUserDirectory {
G_USER_DIRECTORY_DESKTOP = 0,
G_USER_DIRECTORY_DOCUMENTS = 1,
G_USER_DIRECTORY_DOWNLOAD = 2,
G_USER_DIRECTORY_MUSIC = 3,
G_USER_DIRECTORY_PICTURES = 4,
G_USER_DIRECTORY_PUBLIC_SHARE = 5,
G_USER_DIRECTORY_TEMPLATES = 6,
G_USER_DIRECTORY_VIDEOS = 7,
G_USER_N_DIRECTORIES = 8,
}
extern "C" {
pub fn g_get_user_special_dir(directory: GUserDirectory) -> *const gchar;
}
pub type GDebugKey = _GDebugKey;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDebugKey {
pub key: *const gchar,
pub value: guint,
}
#[test]
fn bindgen_test_layout__GDebugKey() {
assert_eq!(
::std::mem::size_of::<_GDebugKey>(),
16usize,
concat!("Size of: ", stringify!(_GDebugKey))
);
assert_eq!(
::std::mem::align_of::<_GDebugKey>(),
8usize,
concat!("Alignment of ", stringify!(_GDebugKey))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GDebugKey>())).key as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GDebugKey), "::", stringify!(key))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GDebugKey>())).value as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GDebugKey), "::", stringify!(value))
);
}
extern "C" {
pub fn g_parse_debug_string(
string: *const gchar,
keys: *const GDebugKey,
nkeys: guint,
) -> guint;
}
extern "C" {
pub fn g_snprintf(string: *mut gchar, n: gulong, format: *const gchar, ...) -> gint;
}
extern "C" {
pub fn g_vsnprintf(
string: *mut gchar,
n: gulong,
format: *const gchar,
args: *mut __va_list_tag,
) -> gint;
}
extern "C" {
pub fn g_nullify_pointer(nullify_location: *mut gpointer);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GFormatSizeFlags {
G_FORMAT_SIZE_DEFAULT = 0,
G_FORMAT_SIZE_LONG_FORMAT = 1,
G_FORMAT_SIZE_IEC_UNITS = 2,
G_FORMAT_SIZE_BITS = 4,
}
extern "C" {
pub fn g_format_size_full(size: guint64, flags: GFormatSizeFlags) -> *mut gchar;
}
extern "C" {
pub fn g_format_size(size: guint64) -> *mut gchar;
}
extern "C" {
pub fn g_format_size_for_display(size: goffset) -> *mut gchar;
}
pub type GVoidFunc = ::std::option::Option<unsafe extern "C" fn()>;
extern "C" {
pub fn g_atexit(func: GVoidFunc);
}
extern "C" {
pub fn g_find_program_in_path(program: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_bit_nth_lsf(mask: gulong, nth_bit: gint) -> gint;
}
extern "C" {
pub fn g_bit_nth_msf(mask: gulong, nth_bit: gint) -> gint;
}
extern "C" {
pub fn g_bit_storage(number: gulong) -> guint;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum idtype_t {
P_ALL = 0,
P_PID = 1,
P_PGID = 2,
}
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
assert_eq!(::std::mem::size_of::<div_t>(), 8usize, concat!("Size of: ", stringify!(div_t)));
assert_eq!(
::std::mem::align_of::<div_t>(),
4usize,
concat!("Alignment of ", stringify!(div_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<div_t>())).quot as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(div_t), "::", stringify!(quot))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<div_t>())).rem as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(div_t), "::", stringify!(rem))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
assert_eq!(::std::mem::size_of::<ldiv_t>(), 16usize, concat!("Size of: ", stringify!(ldiv_t)));
assert_eq!(
::std::mem::align_of::<ldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(ldiv_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ldiv_t>())).quot as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(ldiv_t), "::", stringify!(quot))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ldiv_t>())).rem as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(ldiv_t), "::", stringify!(rem))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
assert_eq!(
::std::mem::size_of::<lldiv_t>(),
16usize,
concat!("Size of: ", stringify!(lldiv_t))
);
assert_eq!(
::std::mem::align_of::<lldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(lldiv_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lldiv_t>())).quot as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(lldiv_t), "::", stringify!(quot))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<lldiv_t>())).rem as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(lldiv_t), "::", stringify!(rem))
);
}
extern "C" {
pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtod(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtof(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
extern "C" {
pub fn strtold(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> u128;
}
extern "C" {
pub fn strtol(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn strtoul(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtoq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtouq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn strtoll(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoull(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type off_t = __off_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulong;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
assert_eq!(
::std::mem::size_of::<__sigset_t>(),
128usize,
concat!("Size of: ", stringify!(__sigset_t))
);
assert_eq!(
::std::mem::align_of::<__sigset_t>(),
8usize,
concat!("Alignment of ", stringify!(__sigset_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__sigset_t>())).__val as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(__sigset_t), "::", stringify!(__val))
);
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
assert_eq!(
::std::mem::size_of::<timeval>(),
16usize,
concat!("Size of: ", stringify!(timeval))
);
assert_eq!(
::std::mem::align_of::<timeval>(),
8usize,
concat!("Alignment of ", stringify!(timeval))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(timeval), "::", stringify!(tv_sec))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(timeval), "::", stringify!(tv_usec))
);
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
pub __fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
assert_eq!(::std::mem::size_of::<fd_set>(), 128usize, concat!("Size of: ", stringify!(fd_set)));
assert_eq!(
::std::mem::align_of::<fd_set>(),
8usize,
concat!("Alignment of ", stringify!(fd_set))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<fd_set>())).__fds_bits as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(fd_set), "::", stringify!(__fds_bits))
);
}
pub type fd_mask = __fd_mask;
extern "C" {
pub fn select(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *mut timeval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pselect(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *const timespec,
__sigmask: *const __sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gnu_dev_major(__dev: __dev_t) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn gnu_dev_minor(__dev: __dev_t) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn gnu_dev_makedev(
__major: ::std::os::raw::c_uint,
__minor: ::std::os::raw::c_uint,
) -> __dev_t;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
pub __readers: ::std::os::raw::c_uint,
pub __writers: ::std::os::raw::c_uint,
pub __wrphase_futex: ::std::os::raw::c_uint,
pub __writers_futex: ::std::os::raw::c_uint,
pub __pad3: ::std::os::raw::c_uint,
pub __pad4: ::std::os::raw::c_uint,
pub __cur_writer: ::std::os::raw::c_int,
pub __shared: ::std::os::raw::c_int,
pub __rwelision: ::std::os::raw::c_schar,
pub __pad1: [::std::os::raw::c_uchar; 7usize],
pub __pad2: ::std::os::raw::c_ulong,
pub __flags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
assert_eq!(
::std::mem::size_of::<__pthread_rwlock_arch_t>(),
56usize,
concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
::std::mem::align_of::<__pthread_rwlock_arch_t>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__readers as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__readers)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__wrphase_futex as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__wrphase_futex)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers_futex as *const _ as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers_futex)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad3 as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad3))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad4 as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad4))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__cur_writer as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__cur_writer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__shared as *const _ as usize
},
28usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__shared)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__rwelision as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__rwelision)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad1 as *const _ as usize },
33usize,
concat!("Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad2 as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__flags as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__flags)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
pub __prev: *mut __pthread_internal_list,
pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
assert_eq!(
::std::mem::size_of::<__pthread_internal_list>(),
16usize,
concat!("Size of: ", stringify!(__pthread_internal_list))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_list>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_internal_list))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__prev as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(__pthread_internal_list), "::", stringify!(__prev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__next as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(__pthread_internal_list), "::", stringify!(__next))
);
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
pub __lock: ::std::os::raw::c_int,
pub __count: ::std::os::raw::c_uint,
pub __owner: ::std::os::raw::c_int,
pub __nusers: ::std::os::raw::c_uint,
pub __kind: ::std::os::raw::c_int,
pub __spins: ::std::os::raw::c_short,
pub __elision: ::std::os::raw::c_short,
pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s>(),
40usize,
concat!("Size of: ", stringify!(__pthread_mutex_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_mutex_s))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__lock as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__lock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__count as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__owner as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__owner))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__nusers as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__nusers))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__kind as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__kind))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__spins as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__spins))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__elision as *const _ as usize },
22usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__elision))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__list as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__list))
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
pub __g_refs: [::std::os::raw::c_uint; 2usize],
pub __g_size: [::std::os::raw::c_uint; 2usize],
pub __g1_orig_size: ::std::os::raw::c_uint,
pub __wrefs: ::std::os::raw::c_uint,
pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_1 {
pub __wseq: ::std::os::raw::c_ulonglong,
pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
_bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
pub __low: ::std::os::raw::c_uint,
pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__low
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(__low)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__high
as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(__high)
)
);
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_1),
"::",
stringify!(__wseq)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq32 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_1),
"::",
stringify!(__wseq32)
)
);
}
impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_cond_s__bindgen_ty_2 {
pub __g1_start: ::std::os::raw::c_ulonglong,
pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
_bindgen_union_align: u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
pub __low: ::std::os::raw::c_uint,
pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__low
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
"::",
stringify!(__low)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__high
as *const _ as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
"::",
stringify!(__high)
)
);
}
#[test]
fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2() {
assert_eq!(
::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2>(),
8usize,
concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_2),
"::",
stringify!(__g1_start)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start32 as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s__bindgen_ty_2),
"::",
stringify!(__g1_start32)
)
);
}
impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
}
}
#[test]
fn bindgen_test_layout___pthread_cond_s() {
assert_eq!(
::std::mem::size_of::<__pthread_cond_s>(),
48usize,
concat!("Size of: ", stringify!(__pthread_cond_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cond_s))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_refs as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_refs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_size as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g1_orig_size as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_orig_size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__wrefs as *const _ as usize },
36usize,
concat!("Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__wrefs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_signals as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_signals))
);
}
impl ::std::fmt::Debug for __pthread_cond_s {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "__pthread_cond_s {{ __bindgen_anon_1: {:?}, __bindgen_anon_2: {:?}, __g_refs: {:?}, __g_size: {:?}, __g1_orig_size: {:?}, __wrefs: {:?}, __g_signals: {:?} }}" , self . __bindgen_anon_1 , self . __bindgen_anon_2 , self . __g_refs , self . __g_size , self . __g1_orig_size , self . __wrefs , self . __g_signals )
}
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_mutexattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutexattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_mutexattr_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_mutexattr_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_mutexattr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_mutexattr_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_condattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_condattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_condattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_condattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_condattr_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_condattr_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_condattr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_condattr_t {{ union }}")
}
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
pub __size: [::std::os::raw::c_char; 56usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
assert_eq!(
::std::mem::size_of::<pthread_attr_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_attr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_attr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_attr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_attr_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_attr_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_attr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_attr_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
pub __data: __pthread_mutex_s,
pub __size: [::std::os::raw::c_char; 40usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 5usize],
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
assert_eq!(
::std::mem::size_of::<pthread_mutex_t>(),
40usize,
concat!("Size of: ", stringify!(pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutex_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_mutex_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_mutex_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_mutex_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
pub __data: __pthread_cond_s,
pub __size: [::std::os::raw::c_char; 48usize],
pub __align: ::std::os::raw::c_longlong,
_bindgen_union_align: [u64; 6usize],
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
assert_eq!(
::std::mem::size_of::<pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<pthread_cond_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_cond_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_cond_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_cond_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
pub __data: __pthread_rwlock_arch_t,
pub __size: [::std::os::raw::c_char; 56usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
assert_eq!(
::std::mem::size_of::<pthread_rwlock_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlock_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlock_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_rwlock_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_rwlock_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
pub __size: [::std::os::raw::c_char; 8usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Size of: ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_rwlockattr_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_rwlockattr_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_rwlockattr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_rwlockattr_t {{ union }}")
}
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
pub __size: [::std::os::raw::c_char; 32usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 4usize],
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
assert_eq!(
::std::mem::size_of::<pthread_barrier_t>(),
32usize,
concat!("Size of: ", stringify!(pthread_barrier_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrier_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_barrier_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_barrier_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_barrier_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_barrier_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_barrier_t {{ union }}")
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
_bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_barrierattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrierattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_barrierattr_t), "::", stringify!(__size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__align as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(pthread_barrierattr_t), "::", stringify!(__align))
);
}
impl ::std::fmt::Debug for pthread_barrierattr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_barrierattr_t {{ union }}")
}
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn initstate(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
pub fptr: *mut i32,
pub rptr: *mut i32,
pub state: *mut i32,
pub rand_type: ::std::os::raw::c_int,
pub rand_deg: ::std::os::raw::c_int,
pub rand_sep: ::std::os::raw::c_int,
pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
assert_eq!(
::std::mem::size_of::<random_data>(),
48usize,
concat!("Size of: ", stringify!(random_data))
);
assert_eq!(
::std::mem::align_of::<random_data>(),
8usize,
concat!("Alignment of ", stringify!(random_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).fptr as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(fptr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rptr as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(rptr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).state as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(state))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_type as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(rand_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_deg as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(rand_deg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_sep as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(rand_sep))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).end_ptr as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(random_data), "::", stringify!(end_ptr))
);
}
extern "C" {
pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srandom_r(
__seed: ::std::os::raw::c_uint,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate_r(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setstate_r(
__statebuf: *mut ::std::os::raw::c_char,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
pub __x: [::std::os::raw::c_ushort; 3usize],
pub __old_x: [::std::os::raw::c_ushort; 3usize],
pub __c: ::std::os::raw::c_ushort,
pub __init: ::std::os::raw::c_ushort,
pub __a: ::std::os::raw::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
assert_eq!(
::std::mem::size_of::<drand48_data>(),
24usize,
concat!("Size of: ", stringify!(drand48_data))
);
assert_eq!(
::std::mem::align_of::<drand48_data>(),
8usize,
concat!("Alignment of ", stringify!(drand48_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__x as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(drand48_data), "::", stringify!(__x))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__old_x as *const _ as usize },
6usize,
concat!("Offset of field: ", stringify!(drand48_data), "::", stringify!(__old_x))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__c as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(drand48_data), "::", stringify!(__c))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__init as *const _ as usize },
14usize,
concat!("Offset of field: ", stringify!(drand48_data), "::", stringify!(__init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__a as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(drand48_data), "::", stringify!(__a))
);
}
extern "C" {
pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn erand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn jrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand48_r(
__seedval: ::std::os::raw::c_long,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn seed48_r(
__seed16v: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcong48_r(
__param: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__nmemb: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn aligned_alloc(__alignment: usize, __size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn abort();
}
extern "C" {
pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn at_quick_exit(
__func: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn on_exit(
__func: ::std::option::Option<
unsafe extern "C" fn(
__status: ::std::os::raw::c_int,
__arg: *mut ::std::os::raw::c_void,
),
>,
__arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn quick_exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn _Exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__replace: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemps(
__template: *mut ::std::os::raw::c_char,
__suffixlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn realpath(
__name: *const ::std::os::raw::c_char,
__resolved: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
);
}
extern "C" {
pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn lldiv(
__numer: ::std::os::raw::c_longlong,
__denom: ::std::os::raw::c_longlong,
) -> lldiv_t;
}
extern "C" {
pub fn ecvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qecvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qfcvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qgcvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ecvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fcvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qecvt_r(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qfcvt_r(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbtowc(
__pwc: *mut wchar_t,
__s: *const ::std::os::raw::c_char,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsubopt(
__optionp: *mut *mut ::std::os::raw::c_char,
__tokens: *const *mut ::std::os::raw::c_char,
__valuep: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_thread_error_quark() -> GQuark;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GThreadError {
G_THREAD_ERROR_AGAIN = 0,
}
pub type GThreadFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer) -> gpointer>;
pub type GThread = _GThread;
pub type GMutex = _GMutex;
pub type GRecMutex = _GRecMutex;
pub type GRWLock = _GRWLock;
pub type GCond = _GCond;
pub type GPrivate = _GPrivate;
pub type GOnce = _GOnce;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GMutex {
pub p: gpointer,
pub i: [guint; 2usize],
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout__GMutex() {
assert_eq!(::std::mem::size_of::<_GMutex>(), 8usize, concat!("Size of: ", stringify!(_GMutex)));
assert_eq!(
::std::mem::align_of::<_GMutex>(),
8usize,
concat!("Alignment of ", stringify!(_GMutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMutex>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GMutex), "::", stringify!(p))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMutex>())).i as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GMutex), "::", stringify!(i))
);
}
impl ::std::fmt::Debug for _GMutex {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GMutex {{ union }}")
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRWLock {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[test]
fn bindgen_test_layout__GRWLock() {
assert_eq!(
::std::mem::size_of::<_GRWLock>(),
16usize,
concat!("Size of: ", stringify!(_GRWLock))
);
assert_eq!(
::std::mem::align_of::<_GRWLock>(),
8usize,
concat!("Alignment of ", stringify!(_GRWLock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GRWLock>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GRWLock), "::", stringify!(p))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GRWLock>())).i as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GRWLock), "::", stringify!(i))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCond {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[test]
fn bindgen_test_layout__GCond() {
assert_eq!(::std::mem::size_of::<_GCond>(), 16usize, concat!("Size of: ", stringify!(_GCond)));
assert_eq!(
::std::mem::align_of::<_GCond>(),
8usize,
concat!("Alignment of ", stringify!(_GCond))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCond>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GCond), "::", stringify!(p))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCond>())).i as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GCond), "::", stringify!(i))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRecMutex {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[test]
fn bindgen_test_layout__GRecMutex() {
assert_eq!(
::std::mem::size_of::<_GRecMutex>(),
16usize,
concat!("Size of: ", stringify!(_GRecMutex))
);
assert_eq!(
::std::mem::align_of::<_GRecMutex>(),
8usize,
concat!("Alignment of ", stringify!(_GRecMutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GRecMutex>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GRecMutex), "::", stringify!(p))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GRecMutex>())).i as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GRecMutex), "::", stringify!(i))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPrivate {
pub p: gpointer,
pub notify: GDestroyNotify,
pub future: [gpointer; 2usize],
}
#[test]
fn bindgen_test_layout__GPrivate() {
assert_eq!(
::std::mem::size_of::<_GPrivate>(),
32usize,
concat!("Size of: ", stringify!(_GPrivate))
);
assert_eq!(
::std::mem::align_of::<_GPrivate>(),
8usize,
concat!("Alignment of ", stringify!(_GPrivate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPrivate>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GPrivate), "::", stringify!(p))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPrivate>())).notify as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GPrivate), "::", stringify!(notify))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPrivate>())).future as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GPrivate), "::", stringify!(future))
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GOnceStatus {
G_ONCE_STATUS_NOTCALLED = 0,
G_ONCE_STATUS_PROGRESS = 1,
G_ONCE_STATUS_READY = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GOnce {
pub status: GOnceStatus,
pub retval: gpointer,
}
#[test]
fn bindgen_test_layout__GOnce() {
assert_eq!(::std::mem::size_of::<_GOnce>(), 16usize, concat!("Size of: ", stringify!(_GOnce)));
assert_eq!(
::std::mem::align_of::<_GOnce>(),
8usize,
concat!("Alignment of ", stringify!(_GOnce))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOnce>())).status as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GOnce), "::", stringify!(status))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOnce>())).retval as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GOnce), "::", stringify!(retval))
);
}
extern "C" {
pub fn g_thread_ref(thread: *mut GThread) -> *mut GThread;
}
extern "C" {
pub fn g_thread_unref(thread: *mut GThread);
}
extern "C" {
pub fn g_thread_new(name: *const gchar, func: GThreadFunc, data: gpointer) -> *mut GThread;
}
extern "C" {
pub fn g_thread_try_new(
name: *const gchar,
func: GThreadFunc,
data: gpointer,
error: *mut *mut GError,
) -> *mut GThread;
}
extern "C" {
pub fn g_thread_self() -> *mut GThread;
}
extern "C" {
pub fn g_thread_exit(retval: gpointer);
}
extern "C" {
pub fn g_thread_join(thread: *mut GThread) -> gpointer;
}
extern "C" {
pub fn g_thread_yield();
}
extern "C" {
pub fn g_mutex_init(mutex: *mut GMutex);
}
extern "C" {
pub fn g_mutex_clear(mutex: *mut GMutex);
}
extern "C" {
pub fn g_mutex_lock(mutex: *mut GMutex);
}
extern "C" {
pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean;
}
extern "C" {
pub fn g_mutex_unlock(mutex: *mut GMutex);
}
extern "C" {
pub fn g_rw_lock_init(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rw_lock_clear(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rw_lock_writer_lock(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rw_lock_writer_trylock(rw_lock: *mut GRWLock) -> gboolean;
}
extern "C" {
pub fn g_rw_lock_writer_unlock(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rw_lock_reader_lock(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rw_lock_reader_trylock(rw_lock: *mut GRWLock) -> gboolean;
}
extern "C" {
pub fn g_rw_lock_reader_unlock(rw_lock: *mut GRWLock);
}
extern "C" {
pub fn g_rec_mutex_init(rec_mutex: *mut GRecMutex);
}
extern "C" {
pub fn g_rec_mutex_clear(rec_mutex: *mut GRecMutex);
}
extern "C" {
pub fn g_rec_mutex_lock(rec_mutex: *mut GRecMutex);
}
extern "C" {
pub fn g_rec_mutex_trylock(rec_mutex: *mut GRecMutex) -> gboolean;
}
extern "C" {
pub fn g_rec_mutex_unlock(rec_mutex: *mut GRecMutex);
}
extern "C" {
pub fn g_cond_init(cond: *mut GCond);
}
extern "C" {
pub fn g_cond_clear(cond: *mut GCond);
}
extern "C" {
pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex);
}
extern "C" {
pub fn g_cond_signal(cond: *mut GCond);
}
extern "C" {
pub fn g_cond_broadcast(cond: *mut GCond);
}
extern "C" {
pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: gint64) -> gboolean;
}
extern "C" {
pub fn g_private_get(key: *mut GPrivate) -> gpointer;
}
extern "C" {
pub fn g_private_set(key: *mut GPrivate, value: gpointer);
}
extern "C" {
pub fn g_private_replace(key: *mut GPrivate, value: gpointer);
}
extern "C" {
pub fn g_once_impl(once: *mut GOnce, func: GThreadFunc, arg: gpointer) -> gpointer;
}
extern "C" {
pub fn g_once_init_enter(location: *mut ::std::os::raw::c_void) -> gboolean;
}
extern "C" {
pub fn g_once_init_leave(location: *mut ::std::os::raw::c_void, result: gsize);
}
extern "C" {
pub fn g_get_num_processors() -> guint;
}
pub type GMutexLocker = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAsyncQueue {
_unused: [u8; 0],
}
pub type GAsyncQueue = _GAsyncQueue;
extern "C" {
pub fn g_async_queue_new() -> *mut GAsyncQueue;
}
extern "C" {
pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue;
}
extern "C" {
pub fn g_async_queue_lock(queue: *mut GAsyncQueue);
}
extern "C" {
pub fn g_async_queue_unlock(queue: *mut GAsyncQueue);
}
extern "C" {
pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue;
}
extern "C" {
pub fn g_async_queue_unref(queue: *mut GAsyncQueue);
}
extern "C" {
pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue);
}
extern "C" {
pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue);
}
extern "C" {
pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer);
}
extern "C" {
pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer);
}
extern "C" {
pub fn g_async_queue_push_sorted(
queue: *mut GAsyncQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_async_queue_push_sorted_unlocked(
queue: *mut GAsyncQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer;
}
extern "C" {
pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
}
extern "C" {
pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer;
}
extern "C" {
pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
}
extern "C" {
pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: guint64) -> gpointer;
}
extern "C" {
pub fn g_async_queue_timeout_pop_unlocked(
queue: *mut GAsyncQueue,
timeout: guint64,
) -> gpointer;
}
extern "C" {
pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> gint;
}
extern "C" {
pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> gint;
}
extern "C" {
pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer);
}
extern "C" {
pub fn g_async_queue_sort_unlocked(
queue: *mut GAsyncQueue,
func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
}
extern "C" {
pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
}
extern "C" {
pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer);
}
extern "C" {
pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer);
}
extern "C" {
pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer;
}
extern "C" {
pub fn g_async_queue_timed_pop_unlocked(
queue: *mut GAsyncQueue,
end_time: *mut GTimeVal,
) -> gpointer;
}
pub type sig_atomic_t = __sig_atomic_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
pub sival_int: ::std::os::raw::c_int,
pub sival_ptr: *mut ::std::os::raw::c_void,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_sigval() {
assert_eq!(::std::mem::size_of::<sigval>(), 8usize, concat!("Size of: ", stringify!(sigval)));
assert_eq!(
::std::mem::align_of::<sigval>(),
8usize,
concat!("Alignment of ", stringify!(sigval))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigval>())).sival_int as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigval), "::", stringify!(sival_int))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigval>())).sival_ptr as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigval), "::", stringify!(sival_ptr))
);
}
impl ::std::fmt::Debug for sigval {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "sigval {{ union }}")
}
}
pub type __sigval_t = sigval;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t {
pub si_signo: ::std::os::raw::c_int,
pub si_errno: ::std::os::raw::c_int,
pub si_code: ::std::os::raw::c_int,
pub __pad0: ::std::os::raw::c_int,
pub _sifields: siginfo_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1 {
pub _pad: [::std::os::raw::c_int; 28usize],
pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1,
pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2,
pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3,
pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4,
pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5,
pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6,
pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7,
_bindgen_union_align: [u64; 14usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 {
pub si_pid: __pid_t,
pub si_uid: __uid_t,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_1>())).si_pid as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(si_pid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_1>())).si_uid as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(si_uid)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 {
pub si_tid: ::std::os::raw::c_int,
pub si_overrun: ::std::os::raw::c_int,
pub si_sigval: __sigval_t,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_2() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2>(),
16usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_2>())).si_tid as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(si_tid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_2>())).si_overrun as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(si_overrun)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_2>())).si_sigval as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(si_sigval)
)
);
}
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_2 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "siginfo_t__bindgen_ty_1__bindgen_ty_2 {{ si_tid: {:?}, si_overrun: {:?}, si_sigval: {:?} }}" , self . si_tid , self . si_overrun , self . si_sigval )
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 {
pub si_pid: __pid_t,
pub si_uid: __uid_t,
pub si_sigval: __sigval_t,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_3() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_3>(),
16usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_3>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_3>())).si_pid as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(si_pid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_3>())).si_uid as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(si_uid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_3>())).si_sigval as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(si_sigval)
)
);
}
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_3 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "siginfo_t__bindgen_ty_1__bindgen_ty_3 {{ si_pid: {:?}, si_uid: {:?}, si_sigval: {:?} }}" , self . si_pid , self . si_uid , self . si_sigval )
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 {
pub si_pid: __pid_t,
pub si_uid: __uid_t,
pub si_status: ::std::os::raw::c_int,
pub si_utime: __clock_t,
pub si_stime: __clock_t,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_4() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_4>(),
32usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_4>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_4>())).si_pid as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(si_pid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_4>())).si_uid as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(si_uid)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_4>())).si_status as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(si_status)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_4>())).si_utime as *const _
as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(si_utime)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_4>())).si_stime as *const _
as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(si_stime)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 {
pub si_addr: *mut ::std::os::raw::c_void,
pub si_addr_lsb: ::std::os::raw::c_short,
pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 {
pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1,
pub _pkey: __uint32_t,
_bindgen_union_align: [u64; 2usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 {
pub _lower: *mut ::std::os::raw::c_void,
pub _upper: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(),
16usize,
concat!(
"Size of: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<
siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1,
>()))
._lower as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(_lower)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<
siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1,
>()))
._upper as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(_upper)
)
);
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1>()))
._addr_bnd as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1),
"::",
stringify!(_addr_bnd)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1>()))._pkey
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1),
"::",
stringify!(_pkey)
)
);
}
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5>(),
32usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_5>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_5>())).si_addr as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5),
"::",
stringify!(si_addr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_5>())).si_addr_lsb
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5),
"::",
stringify!(si_addr_lsb)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_5>()))._bounds as *const _
as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5),
"::",
stringify!(_bounds)
)
);
}
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_5 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "siginfo_t__bindgen_ty_1__bindgen_ty_5 {{ si_addr: {:?}, si_addr_lsb: {:?}, _bounds: {:?} }}" , self . si_addr , self . si_addr_lsb , self . _bounds )
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 {
pub si_band: ::std::os::raw::c_long,
pub si_fd: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_6() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_6>(),
16usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_6>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_6>())).si_band as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(si_band)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_6>())).si_fd as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6),
"::",
stringify!(si_fd)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 {
pub _call_addr: *mut ::std::os::raw::c_void,
pub _syscall: ::std::os::raw::c_int,
pub _arch: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_7() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_7>(),
16usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_7>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_7>()))._call_addr as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(_call_addr)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_7>()))._syscall as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(_syscall)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1__bindgen_ty_7>()))._arch as *const _
as usize
},
12usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7),
"::",
stringify!(_arch)
)
);
}
#[test]
fn bindgen_test_layout_siginfo_t__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<siginfo_t__bindgen_ty_1>(),
112usize,
concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<siginfo_t__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._pad as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_pad))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._kill as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_kill))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._timer as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_timer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._rt as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_rt))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._sigchld as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1),
"::",
stringify!(_sigchld)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._sigfault as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1),
"::",
stringify!(_sigfault)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._sigpoll as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1),
"::",
stringify!(_sigpoll)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t__bindgen_ty_1>()))._sigsys as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(siginfo_t__bindgen_ty_1),
"::",
stringify!(_sigsys)
)
);
}
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "siginfo_t__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_siginfo_t() {
assert_eq!(
::std::mem::size_of::<siginfo_t>(),
128usize,
concat!("Size of: ", stringify!(siginfo_t))
);
assert_eq!(
::std::mem::align_of::<siginfo_t>(),
8usize,
concat!("Alignment of ", stringify!(siginfo_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t>())).si_signo as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_signo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t>())).si_errno as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_errno))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t>())).si_code as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_code))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t>())).__pad0 as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(siginfo_t), "::", stringify!(__pad0))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<siginfo_t>()))._sifields as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(siginfo_t), "::", stringify!(_sifields))
);
}
impl ::std::fmt::Debug for siginfo_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "siginfo_t {{ si_signo: {:?}, si_errno: {:?}, si_code: {:?}, __pad0: {:?}, _sifields: {:?} }}" , self . si_signo , self . si_errno , self . si_code , self . __pad0 , self . _sifields )
}
}
pub const SI_ASYNCNL: _bindgen_ty_1 = _bindgen_ty_1::SI_ASYNCNL;
pub const SI_TKILL: _bindgen_ty_1 = _bindgen_ty_1::SI_TKILL;
pub const SI_SIGIO: _bindgen_ty_1 = _bindgen_ty_1::SI_SIGIO;
pub const SI_ASYNCIO: _bindgen_ty_1 = _bindgen_ty_1::SI_ASYNCIO;
pub const SI_MESGQ: _bindgen_ty_1 = _bindgen_ty_1::SI_MESGQ;
pub const SI_TIMER: _bindgen_ty_1 = _bindgen_ty_1::SI_TIMER;
pub const SI_QUEUE: _bindgen_ty_1 = _bindgen_ty_1::SI_QUEUE;
pub const SI_USER: _bindgen_ty_1 = _bindgen_ty_1::SI_USER;
pub const SI_KERNEL: _bindgen_ty_1 = _bindgen_ty_1::SI_KERNEL;
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_1 {
SI_ASYNCNL = -60,
SI_TKILL = -6,
SI_SIGIO = -5,
SI_ASYNCIO = -4,
SI_MESGQ = -3,
SI_TIMER = -2,
SI_QUEUE = -1,
SI_USER = 0,
SI_KERNEL = 128,
}
pub const ILL_ILLOPC: _bindgen_ty_2 = _bindgen_ty_2::ILL_ILLOPC;
pub const ILL_ILLOPN: _bindgen_ty_2 = _bindgen_ty_2::ILL_ILLOPN;
pub const ILL_ILLADR: _bindgen_ty_2 = _bindgen_ty_2::ILL_ILLADR;
pub const ILL_ILLTRP: _bindgen_ty_2 = _bindgen_ty_2::ILL_ILLTRP;
pub const ILL_PRVOPC: _bindgen_ty_2 = _bindgen_ty_2::ILL_PRVOPC;
pub const ILL_PRVREG: _bindgen_ty_2 = _bindgen_ty_2::ILL_PRVREG;
pub const ILL_COPROC: _bindgen_ty_2 = _bindgen_ty_2::ILL_COPROC;
pub const ILL_BADSTK: _bindgen_ty_2 = _bindgen_ty_2::ILL_BADSTK;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_2 {
ILL_ILLOPC = 1,
ILL_ILLOPN = 2,
ILL_ILLADR = 3,
ILL_ILLTRP = 4,
ILL_PRVOPC = 5,
ILL_PRVREG = 6,
ILL_COPROC = 7,
ILL_BADSTK = 8,
}
pub const FPE_INTDIV: _bindgen_ty_3 = _bindgen_ty_3::FPE_INTDIV;
pub const FPE_INTOVF: _bindgen_ty_3 = _bindgen_ty_3::FPE_INTOVF;
pub const FPE_FLTDIV: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTDIV;
pub const FPE_FLTOVF: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTOVF;
pub const FPE_FLTUND: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTUND;
pub const FPE_FLTRES: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTRES;
pub const FPE_FLTINV: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTINV;
pub const FPE_FLTSUB: _bindgen_ty_3 = _bindgen_ty_3::FPE_FLTSUB;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_3 {
FPE_INTDIV = 1,
FPE_INTOVF = 2,
FPE_FLTDIV = 3,
FPE_FLTOVF = 4,
FPE_FLTUND = 5,
FPE_FLTRES = 6,
FPE_FLTINV = 7,
FPE_FLTSUB = 8,
}
pub const SEGV_MAPERR: _bindgen_ty_4 = _bindgen_ty_4::SEGV_MAPERR;
pub const SEGV_ACCERR: _bindgen_ty_4 = _bindgen_ty_4::SEGV_ACCERR;
pub const SEGV_BNDERR: _bindgen_ty_4 = _bindgen_ty_4::SEGV_BNDERR;
pub const SEGV_PKUERR: _bindgen_ty_4 = _bindgen_ty_4::SEGV_PKUERR;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_4 {
SEGV_MAPERR = 1,
SEGV_ACCERR = 2,
SEGV_BNDERR = 3,
SEGV_PKUERR = 4,
}
pub const BUS_ADRALN: _bindgen_ty_5 = _bindgen_ty_5::BUS_ADRALN;
pub const BUS_ADRERR: _bindgen_ty_5 = _bindgen_ty_5::BUS_ADRERR;
pub const BUS_OBJERR: _bindgen_ty_5 = _bindgen_ty_5::BUS_OBJERR;
pub const BUS_MCEERR_AR: _bindgen_ty_5 = _bindgen_ty_5::BUS_MCEERR_AR;
pub const BUS_MCEERR_AO: _bindgen_ty_5 = _bindgen_ty_5::BUS_MCEERR_AO;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_5 {
BUS_ADRALN = 1,
BUS_ADRERR = 2,
BUS_OBJERR = 3,
BUS_MCEERR_AR = 4,
BUS_MCEERR_AO = 5,
}
pub const CLD_EXITED: _bindgen_ty_6 = _bindgen_ty_6::CLD_EXITED;
pub const CLD_KILLED: _bindgen_ty_6 = _bindgen_ty_6::CLD_KILLED;
pub const CLD_DUMPED: _bindgen_ty_6 = _bindgen_ty_6::CLD_DUMPED;
pub const CLD_TRAPPED: _bindgen_ty_6 = _bindgen_ty_6::CLD_TRAPPED;
pub const CLD_STOPPED: _bindgen_ty_6 = _bindgen_ty_6::CLD_STOPPED;
pub const CLD_CONTINUED: _bindgen_ty_6 = _bindgen_ty_6::CLD_CONTINUED;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_6 {
CLD_EXITED = 1,
CLD_KILLED = 2,
CLD_DUMPED = 3,
CLD_TRAPPED = 4,
CLD_STOPPED = 5,
CLD_CONTINUED = 6,
}
pub const POLL_IN: _bindgen_ty_7 = _bindgen_ty_7::POLL_IN;
pub const POLL_OUT: _bindgen_ty_7 = _bindgen_ty_7::POLL_OUT;
pub const POLL_MSG: _bindgen_ty_7 = _bindgen_ty_7::POLL_MSG;
pub const POLL_ERR: _bindgen_ty_7 = _bindgen_ty_7::POLL_ERR;
pub const POLL_PRI: _bindgen_ty_7 = _bindgen_ty_7::POLL_PRI;
pub const POLL_HUP: _bindgen_ty_7 = _bindgen_ty_7::POLL_HUP;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_7 {
POLL_IN = 1,
POLL_OUT = 2,
POLL_MSG = 3,
POLL_ERR = 4,
POLL_PRI = 5,
POLL_HUP = 6,
}
pub type sigval_t = __sigval_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_value: __sigval_t,
pub sigev_signo: ::std::os::raw::c_int,
pub sigev_notify: ::std::os::raw::c_int,
pub _sigev_un: sigevent__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigevent__bindgen_ty_1 {
pub _pad: [::std::os::raw::c_int; 12usize],
pub _tid: __pid_t,
pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1,
_bindgen_union_align: [u64; 6usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigevent__bindgen_ty_1__bindgen_ty_1 {
pub _function: ::std::option::Option<unsafe extern "C" fn(arg1: __sigval_t)>,
pub _attribute: *mut pthread_attr_t,
}
#[test]
fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<sigevent__bindgen_ty_1__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<sigevent__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigevent__bindgen_ty_1__bindgen_ty_1>()))._function as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigevent__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(_function)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigevent__bindgen_ty_1__bindgen_ty_1>()))._attribute as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(sigevent__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(_attribute)
)
);
}
#[test]
fn bindgen_test_layout_sigevent__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<sigevent__bindgen_ty_1>(),
48usize,
concat!("Size of: ", stringify!(sigevent__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<sigevent__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent__bindgen_ty_1>()))._pad as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigevent__bindgen_ty_1), "::", stringify!(_pad))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent__bindgen_ty_1>()))._tid as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigevent__bindgen_ty_1), "::", stringify!(_tid))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigevent__bindgen_ty_1>()))._sigev_thread as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigevent__bindgen_ty_1),
"::",
stringify!(_sigev_thread)
)
);
}
impl ::std::fmt::Debug for sigevent__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "sigevent__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_sigevent() {
assert_eq!(
::std::mem::size_of::<sigevent>(),
64usize,
concat!("Size of: ", stringify!(sigevent))
);
assert_eq!(
::std::mem::align_of::<sigevent>(),
8usize,
concat!("Alignment of ", stringify!(sigevent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_value as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_signo as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_signo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent>())).sigev_notify as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_notify))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigevent>()))._sigev_un as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(sigevent), "::", stringify!(_sigev_un))
);
}
impl ::std::fmt::Debug for sigevent {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "sigevent {{ sigev_value: {:?}, sigev_signo: {:?}, sigev_notify: {:?}, _sigev_un: {:?} }}" , self . sigev_value , self . sigev_signo , self . sigev_notify , self . _sigev_un )
}
}
pub type sigevent_t = sigevent;
pub const SIGEV_SIGNAL: _bindgen_ty_8 = _bindgen_ty_8::SIGEV_SIGNAL;
pub const SIGEV_NONE: _bindgen_ty_8 = _bindgen_ty_8::SIGEV_NONE;
pub const SIGEV_THREAD: _bindgen_ty_8 = _bindgen_ty_8::SIGEV_THREAD;
pub const SIGEV_THREAD_ID: _bindgen_ty_8 = _bindgen_ty_8::SIGEV_THREAD_ID;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_8 {
SIGEV_SIGNAL = 0,
SIGEV_NONE = 1,
SIGEV_THREAD = 2,
SIGEV_THREAD_ID = 4,
}
pub type __sighandler_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
extern "C" {
pub fn __sysv_signal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t)
-> __sighandler_t;
}
extern "C" {
pub fn signal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t) -> __sighandler_t;
}
extern "C" {
pub fn kill(__pid: __pid_t, __sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn killpg(__pgrp: __pid_t, __sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn raise(__sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ssignal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t) -> __sighandler_t;
}
extern "C" {
pub fn gsignal(__sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn psignal(__sig: ::std::os::raw::c_int, __s: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn psiginfo(__pinfo: *const siginfo_t, __s: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn sigblock(__mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigsetmask(__mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn siggetmask() -> ::std::os::raw::c_int;
}
pub type sig_t = __sighandler_t;
extern "C" {
pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigaddset(__set: *mut sigset_t, __signo: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigdelset(__set: *mut sigset_t, __signo: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigismember(
__set: *const sigset_t,
__signo: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sigaction_handler: sigaction__bindgen_ty_1,
pub sa_mask: __sigset_t,
pub sa_flags: ::std::os::raw::c_int,
pub sa_restorer: ::std::option::Option<unsafe extern "C" fn()>,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigaction__bindgen_ty_1 {
pub sa_handler: __sighandler_t,
pub sa_sigaction: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: *mut siginfo_t,
arg3: *mut ::std::os::raw::c_void,
),
>,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_sigaction__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<sigaction__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(sigaction__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<sigaction__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigaction__bindgen_ty_1>())).sa_handler as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigaction__bindgen_ty_1),
"::",
stringify!(sa_handler)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigaction__bindgen_ty_1>())).sa_sigaction as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigaction__bindgen_ty_1),
"::",
stringify!(sa_sigaction)
)
);
}
impl ::std::fmt::Debug for sigaction__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "sigaction__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_sigaction() {
assert_eq!(
::std::mem::size_of::<sigaction>(),
152usize,
concat!("Size of: ", stringify!(sigaction))
);
assert_eq!(
::std::mem::align_of::<sigaction>(),
8usize,
concat!("Alignment of ", stringify!(sigaction))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigaction>())).__sigaction_handler as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigaction), "::", stringify!(__sigaction_handler))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigaction>())).sa_mask as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(sigaction), "::", stringify!(sa_mask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigaction>())).sa_flags as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(sigaction), "::", stringify!(sa_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigaction>())).sa_restorer as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(sigaction), "::", stringify!(sa_restorer))
);
}
impl ::std::fmt::Debug for sigaction {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "sigaction {{ __sigaction_handler: {:?}, sa_mask: {:?}, sa_flags: {:?}, sa_restorer: {:?} }}" , self . __sigaction_handler , self . sa_mask , self . sa_flags , self . sa_restorer )
}
}
extern "C" {
pub fn sigprocmask(
__how: ::std::os::raw::c_int,
__set: *const sigset_t,
__oset: *mut sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigsuspend(__set: *const sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigaction(
__sig: ::std::os::raw::c_int,
__act: *const sigaction,
__oact: *mut sigaction,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigwait(
__set: *const sigset_t,
__sig: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigtimedwait(
__set: *const sigset_t,
__info: *mut siginfo_t,
__timeout: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sigqueue(
__pid: __pid_t,
__sig: ::std::os::raw::c_int,
__val: sigval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut _sys_siglist: [*const ::std::os::raw::c_char; 65usize];
}
extern "C" {
pub static mut sys_siglist: [*const ::std::os::raw::c_char; 65usize];
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _fpx_sw_bytes {
pub magic1: __uint32_t,
pub extended_size: __uint32_t,
pub xstate_bv: __uint64_t,
pub xstate_size: __uint32_t,
pub __glibc_reserved1: [__uint32_t; 7usize],
}
#[test]
fn bindgen_test_layout__fpx_sw_bytes() {
assert_eq!(
::std::mem::size_of::<_fpx_sw_bytes>(),
48usize,
concat!("Size of: ", stringify!(_fpx_sw_bytes))
);
assert_eq!(
::std::mem::align_of::<_fpx_sw_bytes>(),
8usize,
concat!("Alignment of ", stringify!(_fpx_sw_bytes))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).magic1 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(magic1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).extended_size as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(extended_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xstate_bv as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(xstate_bv))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xstate_size as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(xstate_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).__glibc_reserved1 as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_fpx_sw_bytes),
"::",
stringify!(__glibc_reserved1)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _fpreg {
pub significand: [::std::os::raw::c_ushort; 4usize],
pub exponent: ::std::os::raw::c_ushort,
}
#[test]
fn bindgen_test_layout__fpreg() {
assert_eq!(::std::mem::size_of::<_fpreg>(), 10usize, concat!("Size of: ", stringify!(_fpreg)));
assert_eq!(
::std::mem::align_of::<_fpreg>(),
2usize,
concat!("Alignment of ", stringify!(_fpreg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpreg>())).significand as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_fpreg), "::", stringify!(significand))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpreg>())).exponent as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_fpreg), "::", stringify!(exponent))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _fpxreg {
pub significand: [::std::os::raw::c_ushort; 4usize],
pub exponent: ::std::os::raw::c_ushort,
pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize],
}
#[test]
fn bindgen_test_layout__fpxreg() {
assert_eq!(
::std::mem::size_of::<_fpxreg>(),
16usize,
concat!("Size of: ", stringify!(_fpxreg))
);
assert_eq!(
::std::mem::align_of::<_fpxreg>(),
2usize,
concat!("Alignment of ", stringify!(_fpxreg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpxreg>())).significand as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_fpxreg), "::", stringify!(significand))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpxreg>())).exponent as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_fpxreg), "::", stringify!(exponent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpxreg>())).__glibc_reserved1 as *const _ as usize },
10usize,
concat!("Offset of field: ", stringify!(_fpxreg), "::", stringify!(__glibc_reserved1))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _xmmreg {
pub element: [__uint32_t; 4usize],
}
#[test]
fn bindgen_test_layout__xmmreg() {
assert_eq!(
::std::mem::size_of::<_xmmreg>(),
16usize,
concat!("Size of: ", stringify!(_xmmreg))
);
assert_eq!(
::std::mem::align_of::<_xmmreg>(),
4usize,
concat!("Alignment of ", stringify!(_xmmreg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xmmreg>())).element as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_xmmreg), "::", stringify!(element))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _fpstate {
pub cwd: __uint16_t,
pub swd: __uint16_t,
pub ftw: __uint16_t,
pub fop: __uint16_t,
pub rip: __uint64_t,
pub rdp: __uint64_t,
pub mxcsr: __uint32_t,
pub mxcr_mask: __uint32_t,
pub _st: [_fpxreg; 8usize],
pub _xmm: [_xmmreg; 16usize],
pub __glibc_reserved1: [__uint32_t; 24usize],
}
#[test]
fn bindgen_test_layout__fpstate() {
assert_eq!(
::std::mem::size_of::<_fpstate>(),
512usize,
concat!("Size of: ", stringify!(_fpstate))
);
assert_eq!(
::std::mem::align_of::<_fpstate>(),
8usize,
concat!("Alignment of ", stringify!(_fpstate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).cwd as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(cwd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).swd as *const _ as usize },
2usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(swd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).ftw as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(ftw))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).fop as *const _ as usize },
6usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(fop))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).rip as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(rip))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).rdp as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(rdp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).mxcsr as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(mxcsr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).mxcr_mask as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(mxcr_mask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>()))._st as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>()))._xmm as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(_xmm))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_fpstate>())).__glibc_reserved1 as *const _ as usize },
416usize,
concat!("Offset of field: ", stringify!(_fpstate), "::", stringify!(__glibc_reserved1))
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigcontext {
pub r8: __uint64_t,
pub r9: __uint64_t,
pub r10: __uint64_t,
pub r11: __uint64_t,
pub r12: __uint64_t,
pub r13: __uint64_t,
pub r14: __uint64_t,
pub r15: __uint64_t,
pub rdi: __uint64_t,
pub rsi: __uint64_t,
pub rbp: __uint64_t,
pub rbx: __uint64_t,
pub rdx: __uint64_t,
pub rax: __uint64_t,
pub rcx: __uint64_t,
pub rsp: __uint64_t,
pub rip: __uint64_t,
pub eflags: __uint64_t,
pub cs: ::std::os::raw::c_ushort,
pub gs: ::std::os::raw::c_ushort,
pub fs: ::std::os::raw::c_ushort,
pub __pad0: ::std::os::raw::c_ushort,
pub err: __uint64_t,
pub trapno: __uint64_t,
pub oldmask: __uint64_t,
pub cr2: __uint64_t,
pub __bindgen_anon_1: sigcontext__bindgen_ty_1,
pub __reserved1: [__uint64_t; 8usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigcontext__bindgen_ty_1 {
pub fpstate: *mut _fpstate,
pub __fpstate_word: __uint64_t,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_sigcontext__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<sigcontext__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(sigcontext__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<sigcontext__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(sigcontext__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigcontext__bindgen_ty_1>())).fpstate as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigcontext__bindgen_ty_1),
"::",
stringify!(fpstate)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<sigcontext__bindgen_ty_1>())).__fpstate_word as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(sigcontext__bindgen_ty_1),
"::",
stringify!(__fpstate_word)
)
);
}
impl ::std::fmt::Debug for sigcontext__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "sigcontext__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_sigcontext() {
assert_eq!(
::std::mem::size_of::<sigcontext>(),
256usize,
concat!("Size of: ", stringify!(sigcontext))
);
assert_eq!(
::std::mem::align_of::<sigcontext>(),
8usize,
concat!("Alignment of ", stringify!(sigcontext))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r8 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r8))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r9 as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r9))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r10 as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r10))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r11 as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r11))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r12 as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r12))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r13 as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r13))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r14 as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r14))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).r15 as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(r15))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rdi as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rdi))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rsi as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rsi))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rbp as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rbp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rbx as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rbx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rdx as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rdx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rax as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rax))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rcx as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rcx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rsp as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rsp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).rip as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(rip))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).eflags as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(eflags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).cs as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(cs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).gs as *const _ as usize },
146usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(gs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).fs as *const _ as usize },
148usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(fs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).__pad0 as *const _ as usize },
150usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(__pad0))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).err as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(err))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).trapno as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(trapno))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).oldmask as *const _ as usize },
168usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(oldmask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).cr2 as *const _ as usize },
176usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(cr2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigcontext>())).__reserved1 as *const _ as usize },
192usize,
concat!("Offset of field: ", stringify!(sigcontext), "::", stringify!(__reserved1))
);
}
impl ::std::fmt::Debug for sigcontext {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "sigcontext {{ r8: {:?}, r9: {:?}, r10: {:?}, r11: {:?}, r12: {:?}, r13: {:?}, r14: {:?}, r15: {:?}, rdi: {:?}, rsi: {:?}, rbp: {:?}, rbx: {:?}, rdx: {:?}, rax: {:?}, rcx: {:?}, rsp: {:?}, rip: {:?}, eflags: {:?}, cs: {:?}, gs: {:?}, fs: {:?}, __pad0: {:?}, err: {:?}, trapno: {:?}, oldmask: {:?}, cr2: {:?}, __bindgen_anon_1: {:?}, __reserved1: {:?} }}" , self . r8 , self . r9 , self . r10 , self . r11 , self . r12 , self . r13 , self . r14 , self . r15 , self . rdi , self . rsi , self . rbp , self . rbx , self . rdx , self . rax , self . rcx , self . rsp , self . rip , self . eflags , self . cs , self . gs , self . fs , self . __pad0 , self . err , self . trapno , self . oldmask , self . cr2 , self . __bindgen_anon_1 , self . __reserved1 )
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _xsave_hdr {
pub xstate_bv: __uint64_t,
pub __glibc_reserved1: [__uint64_t; 2usize],
pub __glibc_reserved2: [__uint64_t; 5usize],
}
#[test]
fn bindgen_test_layout__xsave_hdr() {
assert_eq!(
::std::mem::size_of::<_xsave_hdr>(),
64usize,
concat!("Size of: ", stringify!(_xsave_hdr))
);
assert_eq!(
::std::mem::align_of::<_xsave_hdr>(),
8usize,
concat!("Alignment of ", stringify!(_xsave_hdr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xsave_hdr>())).xstate_bv as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(xstate_bv))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xsave_hdr>())).__glibc_reserved1 as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(__glibc_reserved1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xsave_hdr>())).__glibc_reserved2 as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(__glibc_reserved2))
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _ymmh_state {
pub ymmh_space: [__uint32_t; 64usize],
}
#[test]
fn bindgen_test_layout__ymmh_state() {
assert_eq!(
::std::mem::size_of::<_ymmh_state>(),
256usize,
concat!("Size of: ", stringify!(_ymmh_state))
);
assert_eq!(
::std::mem::align_of::<_ymmh_state>(),
4usize,
concat!("Alignment of ", stringify!(_ymmh_state))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_ymmh_state>())).ymmh_space as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_ymmh_state), "::", stringify!(ymmh_space))
);
}
impl ::std::fmt::Debug for _ymmh_state {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"_ymmh_state {{ ymmh_space: [{}] }}",
self.ymmh_space
.iter()
.enumerate()
.map(|(i, v)| format!("{}{:?}", if i > 0 { ", " } else { "" }, v))
.collect::<String>()
)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _xstate {
pub fpstate: _fpstate,
pub xstate_hdr: _xsave_hdr,
pub ymmh: _ymmh_state,
}
#[test]
fn bindgen_test_layout__xstate() {
assert_eq!(
::std::mem::size_of::<_xstate>(),
832usize,
concat!("Size of: ", stringify!(_xstate))
);
assert_eq!(
::std::mem::align_of::<_xstate>(),
8usize,
concat!("Alignment of ", stringify!(_xstate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xstate>())).fpstate as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_xstate), "::", stringify!(fpstate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xstate>())).xstate_hdr as *const _ as usize },
512usize,
concat!("Offset of field: ", stringify!(_xstate), "::", stringify!(xstate_hdr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_xstate>())).ymmh as *const _ as usize },
576usize,
concat!("Offset of field: ", stringify!(_xstate), "::", stringify!(ymmh))
);
}
impl ::std::fmt::Debug for _xstate {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"_xstate {{ fpstate: {:?}, xstate_hdr: {:?}, ymmh: {:?} }}",
self.fpstate, self.xstate_hdr, self.ymmh
)
}
}
extern "C" {
pub fn sigreturn(__scp: *mut sigcontext) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct stack_t {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_flags: ::std::os::raw::c_int,
pub ss_size: usize,
}
#[test]
fn bindgen_test_layout_stack_t() {
assert_eq!(
::std::mem::size_of::<stack_t>(),
24usize,
concat!("Size of: ", stringify!(stack_t))
);
assert_eq!(
::std::mem::align_of::<stack_t>(),
8usize,
concat!("Alignment of ", stringify!(stack_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stack_t>())).ss_sp as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(stack_t), "::", stringify!(ss_sp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stack_t>())).ss_flags as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(stack_t), "::", stringify!(ss_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stack_t>())).ss_size as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(stack_t), "::", stringify!(ss_size))
);
}
pub type greg_t = ::std::os::raw::c_longlong;
pub type gregset_t = [greg_t; 23usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_fpxreg {
pub significand: [::std::os::raw::c_ushort; 4usize],
pub exponent: ::std::os::raw::c_ushort,
pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize],
}
#[test]
fn bindgen_test_layout__libc_fpxreg() {
assert_eq!(
::std::mem::size_of::<_libc_fpxreg>(),
16usize,
concat!("Size of: ", stringify!(_libc_fpxreg))
);
assert_eq!(
::std::mem::align_of::<_libc_fpxreg>(),
2usize,
concat!("Alignment of ", stringify!(_libc_fpxreg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).significand as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(significand))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).exponent as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(exponent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).__glibc_reserved1 as *const _ as usize },
10usize,
concat!("Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(__glibc_reserved1))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_xmmreg {
pub element: [__uint32_t; 4usize],
}
#[test]
fn bindgen_test_layout__libc_xmmreg() {
assert_eq!(
::std::mem::size_of::<_libc_xmmreg>(),
16usize,
concat!("Size of: ", stringify!(_libc_xmmreg))
);
assert_eq!(
::std::mem::align_of::<_libc_xmmreg>(),
4usize,
concat!("Alignment of ", stringify!(_libc_xmmreg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_xmmreg>())).element as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_libc_xmmreg), "::", stringify!(element))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_fpstate {
pub cwd: __uint16_t,
pub swd: __uint16_t,
pub ftw: __uint16_t,
pub fop: __uint16_t,
pub rip: __uint64_t,
pub rdp: __uint64_t,
pub mxcsr: __uint32_t,
pub mxcr_mask: __uint32_t,
pub _st: [_libc_fpxreg; 8usize],
pub _xmm: [_libc_xmmreg; 16usize],
pub __glibc_reserved1: [__uint32_t; 24usize],
}
#[test]
fn bindgen_test_layout__libc_fpstate() {
assert_eq!(
::std::mem::size_of::<_libc_fpstate>(),
512usize,
concat!("Size of: ", stringify!(_libc_fpstate))
);
assert_eq!(
::std::mem::align_of::<_libc_fpstate>(),
8usize,
concat!("Alignment of ", stringify!(_libc_fpstate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).cwd as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(cwd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).swd as *const _ as usize },
2usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(swd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).ftw as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(ftw))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).fop as *const _ as usize },
6usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(fop))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).rip as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(rip))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).rdp as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(rdp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).mxcsr as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(mxcsr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).mxcr_mask as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(mxcr_mask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>()))._st as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(_st))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>()))._xmm as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(_xmm))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).__glibc_reserved1 as *const _ as usize },
416usize,
concat!(
"Offset of field: ",
stringify!(_libc_fpstate),
"::",
stringify!(__glibc_reserved1)
)
);
}
pub type fpregset_t = *mut _libc_fpstate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mcontext_t {
pub gregs: gregset_t,
pub fpregs: fpregset_t,
pub __reserved1: [::std::os::raw::c_ulonglong; 8usize],
}
#[test]
fn bindgen_test_layout_mcontext_t() {
assert_eq!(
::std::mem::size_of::<mcontext_t>(),
256usize,
concat!("Size of: ", stringify!(mcontext_t))
);
assert_eq!(
::std::mem::align_of::<mcontext_t>(),
8usize,
concat!("Alignment of ", stringify!(mcontext_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<mcontext_t>())).gregs as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(mcontext_t), "::", stringify!(gregs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<mcontext_t>())).fpregs as *const _ as usize },
184usize,
concat!("Offset of field: ", stringify!(mcontext_t), "::", stringify!(fpregs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<mcontext_t>())).__reserved1 as *const _ as usize },
192usize,
concat!("Offset of field: ", stringify!(mcontext_t), "::", stringify!(__reserved1))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ucontext_t {
pub uc_flags: ::std::os::raw::c_ulong,
pub uc_link: *mut ucontext_t,
pub uc_stack: stack_t,
pub uc_mcontext: mcontext_t,
pub uc_sigmask: sigset_t,
pub __fpregs_mem: _libc_fpstate,
}
#[test]
fn bindgen_test_layout_ucontext_t() {
assert_eq!(
::std::mem::size_of::<ucontext_t>(),
936usize,
concat!("Size of: ", stringify!(ucontext_t))
);
assert_eq!(
::std::mem::align_of::<ucontext_t>(),
8usize,
concat!("Alignment of ", stringify!(ucontext_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).uc_flags as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).uc_link as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_link))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).uc_stack as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_stack))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).uc_mcontext as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_mcontext))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).uc_sigmask as *const _ as usize },
296usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_sigmask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<ucontext_t>())).__fpregs_mem as *const _ as usize },
424usize,
concat!("Offset of field: ", stringify!(ucontext_t), "::", stringify!(__fpregs_mem))
);
}
extern "C" {
pub fn siginterrupt(
__sig: ::std::os::raw::c_int,
__interrupt: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub const SS_ONSTACK: _bindgen_ty_9 = _bindgen_ty_9::SS_ONSTACK;
pub const SS_DISABLE: _bindgen_ty_9 = _bindgen_ty_9::SS_DISABLE;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_9 {
SS_ONSTACK = 1,
SS_DISABLE = 2,
}
extern "C" {
pub fn sigaltstack(__ss: *const stack_t, __oss: *mut stack_t) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_onstack: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sigstack() {
assert_eq!(
::std::mem::size_of::<sigstack>(),
16usize,
concat!("Size of: ", stringify!(sigstack))
);
assert_eq!(
::std::mem::align_of::<sigstack>(),
8usize,
concat!("Alignment of ", stringify!(sigstack))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigstack>())).ss_sp as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sigstack), "::", stringify!(ss_sp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sigstack>())).ss_onstack as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(sigstack), "::", stringify!(ss_onstack))
);
}
extern "C" {
pub fn sigstack(__ss: *mut sigstack, __oss: *mut sigstack) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_sigmask(
__how: ::std::os::raw::c_int,
__newmask: *const __sigset_t,
__oldmask: *mut __sigset_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_kill(
__threadid: pthread_t,
__signo: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __libc_current_sigrtmin() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __libc_current_sigrtmax() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_on_error_query(prg_name: *const gchar);
}
extern "C" {
pub fn g_on_error_stack_trace(prg_name: *const gchar);
}
extern "C" {
pub fn g_base64_encode_step(
in_: *const guchar,
len: gsize,
break_lines: gboolean,
out: *mut gchar,
state: *mut gint,
save: *mut gint,
) -> gsize;
}
extern "C" {
pub fn g_base64_encode_close(
break_lines: gboolean,
out: *mut gchar,
state: *mut gint,
save: *mut gint,
) -> gsize;
}
extern "C" {
pub fn g_base64_encode(data: *const guchar, len: gsize) -> *mut gchar;
}
extern "C" {
pub fn g_base64_decode_step(
in_: *const gchar,
len: gsize,
out: *mut guchar,
state: *mut gint,
save: *mut guint,
) -> gsize;
}
extern "C" {
pub fn g_base64_decode(text: *const gchar, out_len: *mut gsize) -> *mut guchar;
}
extern "C" {
pub fn g_base64_decode_inplace(text: *mut gchar, out_len: *mut gsize) -> *mut guchar;
}
extern "C" {
pub fn g_bit_lock(address: *mut gint, lock_bit: gint);
}
extern "C" {
pub fn g_bit_trylock(address: *mut gint, lock_bit: gint) -> gboolean;
}
extern "C" {
pub fn g_bit_unlock(address: *mut gint, lock_bit: gint);
}
extern "C" {
pub fn g_pointer_bit_lock(address: *mut ::std::os::raw::c_void, lock_bit: gint);
}
extern "C" {
pub fn g_pointer_bit_trylock(address: *mut ::std::os::raw::c_void, lock_bit: gint) -> gboolean;
}
extern "C" {
pub fn g_pointer_bit_unlock(address: *mut ::std::os::raw::c_void, lock_bit: gint);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GBookmarkFileError {
G_BOOKMARK_FILE_ERROR_INVALID_URI = 0,
G_BOOKMARK_FILE_ERROR_INVALID_VALUE = 1,
G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED = 2,
G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND = 3,
G_BOOKMARK_FILE_ERROR_READ = 4,
G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING = 5,
G_BOOKMARK_FILE_ERROR_WRITE = 6,
G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND = 7,
}
extern "C" {
pub fn g_bookmark_file_error_quark() -> GQuark;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBookmarkFile {
_unused: [u8; 0],
}
pub type GBookmarkFile = _GBookmarkFile;
extern "C" {
pub fn g_bookmark_file_new() -> *mut GBookmarkFile;
}
extern "C" {
pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile);
}
extern "C" {
pub fn g_bookmark_file_load_from_file(
bookmark: *mut GBookmarkFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_load_from_data(
bookmark: *mut GBookmarkFile,
data: *const gchar,
length: gsize,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_load_from_data_dirs(
bookmark: *mut GBookmarkFile,
file: *const gchar,
full_path: *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_to_data(
bookmark: *mut GBookmarkFile,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_to_file(
bookmark: *mut GBookmarkFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_set_title(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
title: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_get_title(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_set_description(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
description: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_get_description(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_set_mime_type(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
mime_type: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_get_mime_type(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_set_groups(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
groups: *mut *const gchar,
length: gsize,
);
}
extern "C" {
pub fn g_bookmark_file_add_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_has_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_get_groups(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_add_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
exec: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_has_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_get_applications(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_set_app_info(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
exec: *const gchar,
count: gint,
stamp: time_t,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_get_app_info(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
exec: *mut *mut gchar,
count: *mut guint,
stamp: *mut time_t,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_set_is_private(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
is_private: gboolean,
);
}
extern "C" {
pub fn g_bookmark_file_get_is_private(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_set_icon(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
href: *const gchar,
mime_type: *const gchar,
);
}
extern "C" {
pub fn g_bookmark_file_get_icon(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
href: *mut *mut gchar,
mime_type: *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_set_added(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
added: time_t,
);
}
extern "C" {
pub fn g_bookmark_file_get_added(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
extern "C" {
pub fn g_bookmark_file_set_modified(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
modified: time_t,
);
}
extern "C" {
pub fn g_bookmark_file_get_modified(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
extern "C" {
pub fn g_bookmark_file_set_visited(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
visited: time_t,
);
}
extern "C" {
pub fn g_bookmark_file_get_visited(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
extern "C" {
pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> gint;
}
extern "C" {
pub fn g_bookmark_file_get_uris(
bookmark: *mut GBookmarkFile,
length: *mut gsize,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_bookmark_file_remove_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_remove_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_remove_item(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bookmark_file_move_item(
bookmark: *mut GBookmarkFile,
old_uri: *const gchar,
new_uri: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_bytes_new(data: gconstpointer, size: gsize) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_new_take(data: gpointer, size: gsize) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_new_static(data: gconstpointer, size: gsize) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_new_with_free_func(
data: gconstpointer,
size: gsize,
free_func: GDestroyNotify,
user_data: gpointer,
) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_new_from_bytes(bytes: *mut GBytes, offset: gsize, length: gsize) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut gsize) -> gconstpointer;
}
extern "C" {
pub fn g_bytes_get_size(bytes: *mut GBytes) -> gsize;
}
extern "C" {
pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes;
}
extern "C" {
pub fn g_bytes_unref(bytes: *mut GBytes);
}
extern "C" {
pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut gsize) -> gpointer;
}
extern "C" {
pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray;
}
extern "C" {
pub fn g_bytes_hash(bytes: gconstpointer) -> guint;
}
extern "C" {
pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> gint;
}
extern "C" {
pub fn g_get_charset(charset: *mut *const ::std::os::raw::c_char) -> gboolean;
}
extern "C" {
pub fn g_get_codeset() -> *mut gchar;
}
extern "C" {
pub fn g_get_language_names() -> *const *const gchar;
}
extern "C" {
pub fn g_get_locale_variants(locale: *const gchar) -> *mut *mut gchar;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GChecksumType {
G_CHECKSUM_MD5 = 0,
G_CHECKSUM_SHA1 = 1,
G_CHECKSUM_SHA256 = 2,
G_CHECKSUM_SHA512 = 3,
G_CHECKSUM_SHA384 = 4,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GChecksum {
_unused: [u8; 0],
}
pub type GChecksum = _GChecksum;
extern "C" {
pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> gssize;
}
extern "C" {
pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum;
}
extern "C" {
pub fn g_checksum_reset(checksum: *mut GChecksum);
}
extern "C" {
pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum;
}
extern "C" {
pub fn g_checksum_free(checksum: *mut GChecksum);
}
extern "C" {
pub fn g_checksum_update(checksum: *mut GChecksum, data: *const guchar, length: gssize);
}
extern "C" {
pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const gchar;
}
extern "C" {
pub fn g_checksum_get_digest(
checksum: *mut GChecksum,
buffer: *mut guint8,
digest_len: *mut gsize,
);
}
extern "C" {
pub fn g_compute_checksum_for_data(
checksum_type: GChecksumType,
data: *const guchar,
length: gsize,
) -> *mut gchar;
}
extern "C" {
pub fn g_compute_checksum_for_string(
checksum_type: GChecksumType,
str: *const gchar,
length: gssize,
) -> *mut gchar;
}
extern "C" {
pub fn g_compute_checksum_for_bytes(
checksum_type: GChecksumType,
data: *mut GBytes,
) -> *mut gchar;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GConvertError {
G_CONVERT_ERROR_NO_CONVERSION = 0,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE = 1,
G_CONVERT_ERROR_FAILED = 2,
G_CONVERT_ERROR_PARTIAL_INPUT = 3,
G_CONVERT_ERROR_BAD_URI = 4,
G_CONVERT_ERROR_NOT_ABSOLUTE_PATH = 5,
G_CONVERT_ERROR_NO_MEMORY = 6,
G_CONVERT_ERROR_EMBEDDED_NUL = 7,
}
extern "C" {
pub fn g_convert_error_quark() -> GQuark;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIConv {
_unused: [u8; 0],
}
pub type GIConv = *mut _GIConv;
extern "C" {
pub fn g_iconv_open(to_codeset: *const gchar, from_codeset: *const gchar) -> GIConv;
}
extern "C" {
pub fn g_iconv(
converter: GIConv,
inbuf: *mut *mut gchar,
inbytes_left: *mut gsize,
outbuf: *mut *mut gchar,
outbytes_left: *mut gsize,
) -> gsize;
}
extern "C" {
pub fn g_iconv_close(converter: GIConv) -> gint;
}
extern "C" {
pub fn g_convert(
str: *const gchar,
len: gssize,
to_codeset: *const gchar,
from_codeset: *const gchar,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_convert_with_iconv(
str: *const gchar,
len: gssize,
converter: GIConv,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_convert_with_fallback(
str: *const gchar,
len: gssize,
to_codeset: *const gchar,
from_codeset: *const gchar,
fallback: *const gchar,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_locale_to_utf8(
opsysstring: *const gchar,
len: gssize,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_locale_from_utf8(
utf8string: *const gchar,
len: gssize,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_filename_to_utf8(
opsysstring: *const gchar,
len: gssize,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_filename_from_utf8(
utf8string: *const gchar,
len: gssize,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_filename_from_uri(
uri: *const gchar,
hostname: *mut *mut gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_filename_to_uri(
filename: *const gchar,
hostname: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_filename_display_name(filename: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_get_filename_charsets(charsets: *mut *mut *const gchar) -> gboolean;
}
extern "C" {
pub fn g_filename_display_basename(filename: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_uri_list_extract_uris(uri_list: *const gchar) -> *mut *mut gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GData {
_unused: [u8; 0],
}
pub type GData = _GData;
pub type GDataForeachFunc = ::std::option::Option<
unsafe extern "C" fn(key_id: GQuark, data: gpointer, user_data: gpointer),
>;
extern "C" {
pub fn g_datalist_init(datalist: *mut *mut GData);
}
extern "C" {
pub fn g_datalist_clear(datalist: *mut *mut GData);
}
extern "C" {
pub fn g_datalist_id_get_data(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
}
extern "C" {
pub fn g_datalist_id_set_data_full(
datalist: *mut *mut GData,
key_id: GQuark,
data: gpointer,
destroy_func: GDestroyNotify,
);
}
pub type GDuplicateFunc =
::std::option::Option<unsafe extern "C" fn(data: gpointer, user_data: gpointer) -> gpointer>;
extern "C" {
pub fn g_datalist_id_dup_data(
datalist: *mut *mut GData,
key_id: GQuark,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
extern "C" {
pub fn g_datalist_id_replace_data(
datalist: *mut *mut GData,
key_id: GQuark,
oldval: gpointer,
newval: gpointer,
destroy: GDestroyNotify,
old_destroy: *mut GDestroyNotify,
) -> gboolean;
}
extern "C" {
pub fn g_datalist_id_remove_no_notify(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
}
extern "C" {
pub fn g_datalist_foreach(
datalist: *mut *mut GData,
func: GDataForeachFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_datalist_set_flags(datalist: *mut *mut GData, flags: guint);
}
extern "C" {
pub fn g_datalist_unset_flags(datalist: *mut *mut GData, flags: guint);
}
extern "C" {
pub fn g_datalist_get_flags(datalist: *mut *mut GData) -> guint;
}
extern "C" {
pub fn g_dataset_destroy(dataset_location: gconstpointer);
}
extern "C" {
pub fn g_dataset_id_get_data(dataset_location: gconstpointer, key_id: GQuark) -> gpointer;
}
extern "C" {
pub fn g_datalist_get_data(datalist: *mut *mut GData, key: *const gchar) -> gpointer;
}
extern "C" {
pub fn g_dataset_id_set_data_full(
dataset_location: gconstpointer,
key_id: GQuark,
data: gpointer,
destroy_func: GDestroyNotify,
);
}
extern "C" {
pub fn g_dataset_id_remove_no_notify(
dataset_location: gconstpointer,
key_id: GQuark,
) -> gpointer;
}
extern "C" {
pub fn g_dataset_foreach(
dataset_location: gconstpointer,
func: GDataForeachFunc,
user_data: gpointer,
);
}
pub type GTime = gint32;
pub type GDateYear = guint16;
pub type GDateDay = guint8;
pub type GDate = _GDate;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GDateDMY {
G_DATE_DAY = 0,
G_DATE_MONTH = 1,
G_DATE_YEAR = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GDateWeekday {
G_DATE_BAD_WEEKDAY = 0,
G_DATE_MONDAY = 1,
G_DATE_TUESDAY = 2,
G_DATE_WEDNESDAY = 3,
G_DATE_THURSDAY = 4,
G_DATE_FRIDAY = 5,
G_DATE_SATURDAY = 6,
G_DATE_SUNDAY = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GDateMonth {
G_DATE_BAD_MONTH = 0,
G_DATE_JANUARY = 1,
G_DATE_FEBRUARY = 2,
G_DATE_MARCH = 3,
G_DATE_APRIL = 4,
G_DATE_MAY = 5,
G_DATE_JUNE = 6,
G_DATE_JULY = 7,
G_DATE_AUGUST = 8,
G_DATE_SEPTEMBER = 9,
G_DATE_OCTOBER = 10,
G_DATE_NOVEMBER = 11,
G_DATE_DECEMBER = 12,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct _GDate {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize], u32>,
}
#[test]
fn bindgen_test_layout__GDate() {
assert_eq!(::std::mem::size_of::<_GDate>(), 8usize, concat!("Size of: ", stringify!(_GDate)));
assert_eq!(
::std::mem::align_of::<_GDate>(),
4usize,
concat!("Alignment of ", stringify!(_GDate))
);
}
impl _GDate {
#[inline]
pub fn julian_days(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 32u8) as u32) }
}
#[inline]
pub fn set_julian_days(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 32u8, val as u64)
}
}
#[inline]
pub fn julian(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) }
}
#[inline]
pub fn set_julian(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(32usize, 1u8, val as u64)
}
}
#[inline]
pub fn dmy(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) }
}
#[inline]
pub fn set_dmy(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(33usize, 1u8, val as u64)
}
}
#[inline]
pub fn day(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 6u8) as u32) }
}
#[inline]
pub fn set_day(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(34usize, 6u8, val as u64)
}
}
#[inline]
pub fn month(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 4u8) as u32) }
}
#[inline]
pub fn set_month(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(40usize, 4u8, val as u64)
}
}
#[inline]
pub fn year(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 16u8) as u32) }
}
#[inline]
pub fn set_year(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(44usize, 16u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
julian_days: guint,
julian: guint,
dmy: guint,
day: guint,
month: guint,
year: guint,
) -> __BindgenBitfieldUnit<[u8; 8usize], u32> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize], u32> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 32u8, {
let julian_days: u32 = unsafe { ::std::mem::transmute(julian_days) };
julian_days as u64
});
__bindgen_bitfield_unit.set(32usize, 1u8, {
let julian: u32 = unsafe { ::std::mem::transmute(julian) };
julian as u64
});
__bindgen_bitfield_unit.set(33usize, 1u8, {
let dmy: u32 = unsafe { ::std::mem::transmute(dmy) };
dmy as u64
});
__bindgen_bitfield_unit.set(34usize, 6u8, {
let day: u32 = unsafe { ::std::mem::transmute(day) };
day as u64
});
__bindgen_bitfield_unit.set(40usize, 4u8, {
let month: u32 = unsafe { ::std::mem::transmute(month) };
month as u64
});
__bindgen_bitfield_unit.set(44usize, 16u8, {
let year: u32 = unsafe { ::std::mem::transmute(year) };
year as u64
});
__bindgen_bitfield_unit
}
}
extern "C" {
pub fn g_date_new() -> *mut GDate;
}
extern "C" {
pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate;
}
extern "C" {
pub fn g_date_new_julian(julian_day: guint32) -> *mut GDate;
}
extern "C" {
pub fn g_date_free(date: *mut GDate);
}
extern "C" {
pub fn g_date_copy(date: *const GDate) -> *mut GDate;
}
extern "C" {
pub fn g_date_valid(date: *const GDate) -> gboolean;
}
extern "C" {
pub fn g_date_valid_day(day: GDateDay) -> gboolean;
}
extern "C" {
pub fn g_date_valid_month(month: GDateMonth) -> gboolean;
}
extern "C" {
pub fn g_date_valid_year(year: GDateYear) -> gboolean;
}
extern "C" {
pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean;
}
extern "C" {
pub fn g_date_valid_julian(julian_date: guint32) -> gboolean;
}
extern "C" {
pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean;
}
extern "C" {
pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday;
}
extern "C" {
pub fn g_date_get_month(date: *const GDate) -> GDateMonth;
}
extern "C" {
pub fn g_date_get_year(date: *const GDate) -> GDateYear;
}
extern "C" {
pub fn g_date_get_day(date: *const GDate) -> GDateDay;
}
extern "C" {
pub fn g_date_get_julian(date: *const GDate) -> guint32;
}
extern "C" {
pub fn g_date_get_day_of_year(date: *const GDate) -> guint;
}
extern "C" {
pub fn g_date_get_monday_week_of_year(date: *const GDate) -> guint;
}
extern "C" {
pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> guint;
}
extern "C" {
pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> guint;
}
extern "C" {
pub fn g_date_clear(date: *mut GDate, n_dates: guint);
}
extern "C" {
pub fn g_date_set_parse(date: *mut GDate, str: *const gchar);
}
extern "C" {
pub fn g_date_set_time_t(date: *mut GDate, timet: time_t);
}
extern "C" {
pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal);
}
extern "C" {
pub fn g_date_set_time(date: *mut GDate, time_: GTime);
}
extern "C" {
pub fn g_date_set_month(date: *mut GDate, month: GDateMonth);
}
extern "C" {
pub fn g_date_set_day(date: *mut GDate, day: GDateDay);
}
extern "C" {
pub fn g_date_set_year(date: *mut GDate, year: GDateYear);
}
extern "C" {
pub fn g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear);
}
extern "C" {
pub fn g_date_set_julian(date: *mut GDate, julian_date: guint32);
}
extern "C" {
pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean;
}
extern "C" {
pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean;
}
extern "C" {
pub fn g_date_add_days(date: *mut GDate, n_days: guint);
}
extern "C" {
pub fn g_date_subtract_days(date: *mut GDate, n_days: guint);
}
extern "C" {
pub fn g_date_add_months(date: *mut GDate, n_months: guint);
}
extern "C" {
pub fn g_date_subtract_months(date: *mut GDate, n_months: guint);
}
extern "C" {
pub fn g_date_add_years(date: *mut GDate, n_years: guint);
}
extern "C" {
pub fn g_date_subtract_years(date: *mut GDate, n_years: guint);
}
extern "C" {
pub fn g_date_is_leap_year(year: GDateYear) -> gboolean;
}
extern "C" {
pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> guint8;
}
extern "C" {
pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> guint8;
}
extern "C" {
pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> guint8;
}
extern "C" {
pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> gint;
}
extern "C" {
pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> gint;
}
extern "C" {
pub fn g_date_to_struct_tm(date: *const GDate, tm: *mut tm);
}
extern "C" {
pub fn g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate);
}
extern "C" {
pub fn g_date_order(date1: *mut GDate, date2: *mut GDate);
}
extern "C" {
pub fn g_date_strftime(
s: *mut gchar,
slen: gsize,
format: *const gchar,
date: *const GDate,
) -> gsize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTimeZone {
_unused: [u8; 0],
}
pub type GTimeZone = _GTimeZone;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTimeType {
G_TIME_TYPE_STANDARD = 0,
G_TIME_TYPE_DAYLIGHT = 1,
G_TIME_TYPE_UNIVERSAL = 2,
}
extern "C" {
pub fn g_time_zone_new(identifier: *const gchar) -> *mut GTimeZone;
}
extern "C" {
pub fn g_time_zone_new_utc() -> *mut GTimeZone;
}
extern "C" {
pub fn g_time_zone_new_local() -> *mut GTimeZone;
}
extern "C" {
pub fn g_time_zone_ref(tz: *mut GTimeZone) -> *mut GTimeZone;
}
extern "C" {
pub fn g_time_zone_unref(tz: *mut GTimeZone);
}
extern "C" {
pub fn g_time_zone_find_interval(tz: *mut GTimeZone, type_: GTimeType, time_: gint64) -> gint;
}
extern "C" {
pub fn g_time_zone_adjust_time(
tz: *mut GTimeZone,
type_: GTimeType,
time_: *mut gint64,
) -> gint;
}
extern "C" {
pub fn g_time_zone_get_abbreviation(tz: *mut GTimeZone, interval: gint) -> *const gchar;
}
extern "C" {
pub fn g_time_zone_get_offset(tz: *mut GTimeZone, interval: gint) -> gint32;
}
extern "C" {
pub fn g_time_zone_is_dst(tz: *mut GTimeZone, interval: gint) -> gboolean;
}
pub type GTimeSpan = gint64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDateTime {
_unused: [u8; 0],
}
pub type GDateTime = _GDateTime;
extern "C" {
pub fn g_date_time_unref(datetime: *mut GDateTime);
}
extern "C" {
pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_now_local() -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_now_utc() -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_from_unix_local(t: gint64) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_from_unix_utc(t: gint64) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_from_iso8601(
text: *const gchar,
default_tz: *mut GTimeZone,
) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new(
tz: *mut GTimeZone,
year: gint,
month: gint,
day: gint,
hour: gint,
minute: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_local(
year: gint,
month: gint,
day: gint,
hour: gint,
minute: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_new_utc(
year: gint,
month: gint,
day: gint,
hour: gint,
minute: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_years(datetime: *mut GDateTime, years: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_months(datetime: *mut GDateTime, months: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_weeks(datetime: *mut GDateTime, weeks: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_days(datetime: *mut GDateTime, days: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: gint) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_seconds(datetime: *mut GDateTime, seconds: gdouble) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_add_full(
datetime: *mut GDateTime,
years: gint,
months: gint,
days: gint,
hours: gint,
minutes: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> gint;
}
extern "C" {
pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan;
}
extern "C" {
pub fn g_date_time_hash(datetime: gconstpointer) -> guint;
}
extern "C" {
pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_date_time_get_ymd(
datetime: *mut GDateTime,
year: *mut gint,
month: *mut gint,
day: *mut gint,
);
}
extern "C" {
pub fn g_date_time_get_year(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_month(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_day_of_month(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_day_of_week(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_second(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> gint;
}
extern "C" {
pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> gdouble;
}
extern "C" {
pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> gint64;
}
extern "C" {
pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean;
}
extern "C" {
pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan;
}
extern "C" {
pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const gchar;
}
extern "C" {
pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean;
}
extern "C" {
pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime;
}
extern "C" {
pub fn g_date_time_format(datetime: *mut GDateTime, format: *const gchar) -> *mut gchar;
}
#[repr(C)]
#[derive(Copy, Clone)]
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))
);
}
impl ::std::fmt::Debug for dirent {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"dirent {{ d_ino: {:?}, d_off: {:?}, d_reclen: {:?}, d_type: {:?}, d_name: [{}] }}",
self.d_ino,
self.d_off,
self.d_reclen,
self.d_type,
self.d_name
.iter()
.enumerate()
.map(|(i, v)| format!("{}{:?}", if i > 0 { ", " } else { "" }, v))
.collect::<String>()
)
}
}
pub const DT_UNKNOWN: _bindgen_ty_10 = _bindgen_ty_10::DT_UNKNOWN;
pub const DT_FIFO: _bindgen_ty_10 = _bindgen_ty_10::DT_FIFO;
pub const DT_CHR: _bindgen_ty_10 = _bindgen_ty_10::DT_CHR;
pub const DT_DIR: _bindgen_ty_10 = _bindgen_ty_10::DT_DIR;
pub const DT_BLK: _bindgen_ty_10 = _bindgen_ty_10::DT_BLK;
pub const DT_REG: _bindgen_ty_10 = _bindgen_ty_10::DT_REG;
pub const DT_LNK: _bindgen_ty_10 = _bindgen_ty_10::DT_LNK;
pub const DT_SOCK: _bindgen_ty_10 = _bindgen_ty_10::DT_SOCK;
pub const DT_WHT: _bindgen_ty_10 = _bindgen_ty_10::DT_WHT;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_10 {
DT_UNKNOWN = 0,
DT_FIFO = 1,
DT_CHR = 2,
DT_DIR = 4,
DT_BLK = 6,
DT_REG = 8,
DT_LNK = 10,
DT_SOCK = 12,
DT_WHT = 14,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
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: usize,
__basep: *mut __off_t,
) -> __ssize_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDir {
_unused: [u8; 0],
}
pub type GDir = _GDir;
extern "C" {
pub fn g_dir_open(path: *const gchar, flags: guint, error: *mut *mut GError) -> *mut GDir;
}
extern "C" {
pub fn g_dir_read_name(dir: *mut GDir) -> *const gchar;
}
extern "C" {
pub fn g_dir_rewind(dir: *mut GDir);
}
extern "C" {
pub fn g_dir_close(dir: *mut GDir);
}
extern "C" {
pub fn g_getenv(variable: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_setenv(variable: *const gchar, value: *const gchar, overwrite: gboolean) -> gboolean;
}
extern "C" {
pub fn g_unsetenv(variable: *const gchar);
}
extern "C" {
pub fn g_listenv() -> *mut *mut gchar;
}
extern "C" {
pub fn g_get_environ() -> *mut *mut gchar;
}
extern "C" {
pub fn g_environ_getenv(envp: *mut *mut gchar, variable: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_environ_setenv(
envp: *mut *mut gchar,
variable: *const gchar,
value: *const gchar,
overwrite: gboolean,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_environ_unsetenv(envp: *mut *mut gchar, variable: *const gchar) -> *mut *mut gchar;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GFileError {
G_FILE_ERROR_EXIST = 0,
G_FILE_ERROR_ISDIR = 1,
G_FILE_ERROR_ACCES = 2,
G_FILE_ERROR_NAMETOOLONG = 3,
G_FILE_ERROR_NOENT = 4,
G_FILE_ERROR_NOTDIR = 5,
G_FILE_ERROR_NXIO = 6,
G_FILE_ERROR_NODEV = 7,
G_FILE_ERROR_ROFS = 8,
G_FILE_ERROR_TXTBSY = 9,
G_FILE_ERROR_FAULT = 10,
G_FILE_ERROR_LOOP = 11,
G_FILE_ERROR_NOSPC = 12,
G_FILE_ERROR_NOMEM = 13,
G_FILE_ERROR_MFILE = 14,
G_FILE_ERROR_NFILE = 15,
G_FILE_ERROR_BADF = 16,
G_FILE_ERROR_INVAL = 17,
G_FILE_ERROR_PIPE = 18,
G_FILE_ERROR_AGAIN = 19,
G_FILE_ERROR_INTR = 20,
G_FILE_ERROR_IO = 21,
G_FILE_ERROR_PERM = 22,
G_FILE_ERROR_NOSYS = 23,
G_FILE_ERROR_FAILED = 24,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GFileTest {
G_FILE_TEST_IS_REGULAR = 1,
G_FILE_TEST_IS_SYMLINK = 2,
G_FILE_TEST_IS_DIR = 4,
G_FILE_TEST_IS_EXECUTABLE = 8,
G_FILE_TEST_EXISTS = 16,
}
extern "C" {
pub fn g_file_error_quark() -> GQuark;
}
extern "C" {
pub fn g_file_error_from_errno(err_no: gint) -> GFileError;
}
extern "C" {
pub fn g_file_test(filename: *const gchar, test: GFileTest) -> gboolean;
}
extern "C" {
pub fn g_file_get_contents(
filename: *const gchar,
contents: *mut *mut gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_file_set_contents(
filename: *const gchar,
contents: *const gchar,
length: gssize,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_file_read_link(filename: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
extern "C" {
pub fn g_mkdtemp(tmpl: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_mkdtemp_full(tmpl: *mut gchar, mode: gint) -> *mut gchar;
}
extern "C" {
pub fn g_mkstemp(tmpl: *mut gchar) -> gint;
}
extern "C" {
pub fn g_mkstemp_full(tmpl: *mut gchar, flags: gint, mode: gint) -> gint;
}
extern "C" {
pub fn g_file_open_tmp(
tmpl: *const gchar,
name_used: *mut *mut gchar,
error: *mut *mut GError,
) -> gint;
}
extern "C" {
pub fn g_dir_make_tmp(tmpl: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
extern "C" {
pub fn g_build_path(separator: *const gchar, first_element: *const gchar, ...) -> *mut gchar;
}
extern "C" {
pub fn g_build_pathv(separator: *const gchar, args: *mut *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_build_filename(first_element: *const gchar, ...) -> *mut gchar;
}
extern "C" {
pub fn g_build_filenamev(args: *mut *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_build_filename_valist(first_element: *const gchar, args: *mut va_list) -> *mut gchar;
}
extern "C" {
pub fn g_mkdir_with_parents(pathname: *const gchar, mode: gint) -> gint;
}
extern "C" {
pub fn g_path_is_absolute(file_name: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_path_skip_root(file_name: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_basename(file_name: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_get_current_dir() -> *mut gchar;
}
extern "C" {
pub fn g_path_get_basename(file_name: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_path_get_dirname(file_name: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strip_context(msgid: *const gchar, msgval: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_dgettext(domain: *const gchar, msgid: *const gchar) -> *const gchar;
}
extern "C" {
pub fn g_dcgettext(domain: *const gchar, msgid: *const gchar, category: gint) -> *const gchar;
}
extern "C" {
pub fn g_dngettext(
domain: *const gchar,
msgid: *const gchar,
msgid_plural: *const gchar,
n: gulong,
) -> *const gchar;
}
extern "C" {
pub fn g_dpgettext(
domain: *const gchar,
msgctxtid: *const gchar,
msgidoffset: gsize,
) -> *const gchar;
}
extern "C" {
pub fn g_dpgettext2(
domain: *const gchar,
context: *const gchar,
msgid: *const gchar,
) -> *const gchar;
}
pub type GMemVTable = _GMemVTable;
extern "C" {
pub fn g_free(mem: gpointer);
}
extern "C" {
pub fn g_clear_pointer(pp: *mut gpointer, destroy: GDestroyNotify);
}
extern "C" {
pub fn g_malloc(n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_malloc0(n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_realloc(mem: gpointer, n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_malloc(n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_malloc0(n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_realloc(mem: gpointer, n_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
extern "C" {
pub fn g_try_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMemVTable {
pub malloc: ::std::option::Option<unsafe extern "C" fn(n_bytes: gsize) -> gpointer>,
pub realloc:
::std::option::Option<unsafe extern "C" fn(mem: gpointer, n_bytes: gsize) -> gpointer>,
pub free: ::std::option::Option<unsafe extern "C" fn(mem: gpointer)>,
pub calloc: ::std::option::Option<
unsafe extern "C" fn(n_blocks: gsize, n_block_bytes: gsize) -> gpointer,
>,
pub try_malloc: ::std::option::Option<unsafe extern "C" fn(n_bytes: gsize) -> gpointer>,
pub try_realloc:
::std::option::Option<unsafe extern "C" fn(mem: gpointer, n_bytes: gsize) -> gpointer>,
}
#[test]
fn bindgen_test_layout__GMemVTable() {
assert_eq!(
::std::mem::size_of::<_GMemVTable>(),
48usize,
concat!("Size of: ", stringify!(_GMemVTable))
);
assert_eq!(
::std::mem::align_of::<_GMemVTable>(),
8usize,
concat!("Alignment of ", stringify!(_GMemVTable))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).malloc as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(malloc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).realloc as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(realloc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).free as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(free))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).calloc as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(calloc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).try_malloc as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(try_malloc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMemVTable>())).try_realloc as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GMemVTable), "::", stringify!(try_realloc))
);
}
extern "C" {
pub fn g_mem_set_vtable(vtable: *mut GMemVTable);
}
extern "C" {
pub fn g_mem_is_system_malloc() -> gboolean;
}
extern "C" {
pub static mut g_mem_gc_friendly: gboolean;
}
extern "C" {
pub static mut glib_mem_profiler_table: *mut GMemVTable;
}
extern "C" {
pub fn g_mem_profile();
}
pub type GNode = _GNode;
impl GTraverseFlags {
pub const G_TRAVERSE_MASK: GTraverseFlags = GTraverseFlags::G_TRAVERSE_ALL;
}
impl GTraverseFlags {
pub const G_TRAVERSE_LEAFS: GTraverseFlags = GTraverseFlags::G_TRAVERSE_LEAVES;
}
impl GTraverseFlags {
pub const G_TRAVERSE_NON_LEAFS: GTraverseFlags = GTraverseFlags::G_TRAVERSE_NON_LEAVES;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTraverseFlags {
G_TRAVERSE_LEAVES = 1,
G_TRAVERSE_NON_LEAVES = 2,
G_TRAVERSE_ALL = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTraverseType {
G_IN_ORDER = 0,
G_PRE_ORDER = 1,
G_POST_ORDER = 2,
G_LEVEL_ORDER = 3,
}
pub type GNodeTraverseFunc =
::std::option::Option<unsafe extern "C" fn(node: *mut GNode, data: gpointer) -> gboolean>;
pub type GNodeForeachFunc =
::std::option::Option<unsafe extern "C" fn(node: *mut GNode, data: gpointer)>;
pub type GCopyFunc =
::std::option::Option<unsafe extern "C" fn(src: gconstpointer, data: gpointer) -> gpointer>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNode {
pub data: gpointer,
pub next: *mut GNode,
pub prev: *mut GNode,
pub parent: *mut GNode,
pub children: *mut GNode,
}
#[test]
fn bindgen_test_layout__GNode() {
assert_eq!(::std::mem::size_of::<_GNode>(), 40usize, concat!("Size of: ", stringify!(_GNode)));
assert_eq!(
::std::mem::align_of::<_GNode>(),
8usize,
concat!("Alignment of ", stringify!(_GNode))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GNode>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GNode), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GNode>())).next as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GNode), "::", stringify!(next))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GNode>())).prev as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GNode), "::", stringify!(prev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GNode>())).parent as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GNode), "::", stringify!(parent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GNode>())).children as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GNode), "::", stringify!(children))
);
}
extern "C" {
pub fn g_node_new(data: gpointer) -> *mut GNode;
}
extern "C" {
pub fn g_node_destroy(root: *mut GNode);
}
extern "C" {
pub fn g_node_unlink(node: *mut GNode);
}
extern "C" {
pub fn g_node_copy_deep(node: *mut GNode, copy_func: GCopyFunc, data: gpointer) -> *mut GNode;
}
extern "C" {
pub fn g_node_copy(node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_insert(parent: *mut GNode, position: gint, node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_insert_before(
parent: *mut GNode,
sibling: *mut GNode,
node: *mut GNode,
) -> *mut GNode;
}
extern "C" {
pub fn g_node_insert_after(
parent: *mut GNode,
sibling: *mut GNode,
node: *mut GNode,
) -> *mut GNode;
}
extern "C" {
pub fn g_node_prepend(parent: *mut GNode, node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_n_nodes(root: *mut GNode, flags: GTraverseFlags) -> guint;
}
extern "C" {
pub fn g_node_get_root(node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_is_ancestor(node: *mut GNode, descendant: *mut GNode) -> gboolean;
}
extern "C" {
pub fn g_node_depth(node: *mut GNode) -> guint;
}
extern "C" {
pub fn g_node_find(
root: *mut GNode,
order: GTraverseType,
flags: GTraverseFlags,
data: gpointer,
) -> *mut GNode;
}
extern "C" {
pub fn g_node_traverse(
root: *mut GNode,
order: GTraverseType,
flags: GTraverseFlags,
max_depth: gint,
func: GNodeTraverseFunc,
data: gpointer,
);
}
extern "C" {
pub fn g_node_max_height(root: *mut GNode) -> guint;
}
extern "C" {
pub fn g_node_children_foreach(
node: *mut GNode,
flags: GTraverseFlags,
func: GNodeForeachFunc,
data: gpointer,
);
}
extern "C" {
pub fn g_node_reverse_children(node: *mut GNode);
}
extern "C" {
pub fn g_node_n_children(node: *mut GNode) -> guint;
}
extern "C" {
pub fn g_node_nth_child(node: *mut GNode, n: guint) -> *mut GNode;
}
extern "C" {
pub fn g_node_last_child(node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer)
-> *mut GNode;
}
extern "C" {
pub fn g_node_child_position(node: *mut GNode, child: *mut GNode) -> gint;
}
extern "C" {
pub fn g_node_child_index(node: *mut GNode, data: gpointer) -> gint;
}
extern "C" {
pub fn g_node_first_sibling(node: *mut GNode) -> *mut GNode;
}
extern "C" {
pub fn g_node_last_sibling(node: *mut GNode) -> *mut GNode;
}
pub type GList = _GList;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GList {
pub data: gpointer,
pub next: *mut GList,
pub prev: *mut GList,
}
#[test]
fn bindgen_test_layout__GList() {
assert_eq!(::std::mem::size_of::<_GList>(), 24usize, concat!("Size of: ", stringify!(_GList)));
assert_eq!(
::std::mem::align_of::<_GList>(),
8usize,
concat!("Alignment of ", stringify!(_GList))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GList>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GList), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GList>())).next as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GList), "::", stringify!(next))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GList>())).prev as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GList), "::", stringify!(prev))
);
}
extern "C" {
pub fn g_list_alloc() -> *mut GList;
}
extern "C" {
pub fn g_list_free(list: *mut GList);
}
extern "C" {
pub fn g_list_free_1(list: *mut GList);
}
extern "C" {
pub fn g_list_free_full(list: *mut GList, free_func: GDestroyNotify);
}
extern "C" {
pub fn g_list_append(list: *mut GList, data: gpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_prepend(list: *mut GList, data: gpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_insert(list: *mut GList, data: gpointer, position: gint) -> *mut GList;
}
extern "C" {
pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc)
-> *mut GList;
}
extern "C" {
pub fn g_list_insert_sorted_with_data(
list: *mut GList,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GList;
}
extern "C" {
pub fn g_list_insert_before(
list: *mut GList,
sibling: *mut GList,
data: gpointer,
) -> *mut GList;
}
extern "C" {
pub fn g_list_concat(list1: *mut GList, list2: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_remove(list: *mut GList, data: gconstpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_remove_all(list: *mut GList, data: gconstpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_remove_link(list: *mut GList, llink: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_delete_link(list: *mut GList, link_: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_reverse(list: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_copy(list: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_copy_deep(list: *mut GList, func: GCopyFunc, user_data: gpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_nth(list: *mut GList, n: guint) -> *mut GList;
}
extern "C" {
pub fn g_list_nth_prev(list: *mut GList, n: guint) -> *mut GList;
}
extern "C" {
pub fn g_list_find(list: *mut GList, data: gconstpointer) -> *mut GList;
}
extern "C" {
pub fn g_list_find_custom(
list: *mut GList,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GList;
}
extern "C" {
pub fn g_list_position(list: *mut GList, llink: *mut GList) -> gint;
}
extern "C" {
pub fn g_list_index(list: *mut GList, data: gconstpointer) -> gint;
}
extern "C" {
pub fn g_list_last(list: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_first(list: *mut GList) -> *mut GList;
}
extern "C" {
pub fn g_list_length(list: *mut GList) -> guint;
}
extern "C" {
pub fn g_list_foreach(list: *mut GList, func: GFunc, user_data: gpointer);
}
extern "C" {
pub fn g_list_sort(list: *mut GList, compare_func: GCompareFunc) -> *mut GList;
}
extern "C" {
pub fn g_list_sort_with_data(
list: *mut GList,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GList;
}
extern "C" {
pub fn g_list_nth_data(list: *mut GList, n: guint) -> gpointer;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GHashTable {
_unused: [u8; 0],
}
pub type GHashTable = _GHashTable;
pub type GHRFunc = ::std::option::Option<
unsafe extern "C" fn(key: gpointer, value: gpointer, user_data: gpointer) -> gboolean,
>;
pub type GHashTableIter = _GHashTableIter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GHashTableIter {
pub dummy1: gpointer,
pub dummy2: gpointer,
pub dummy3: gpointer,
pub dummy4: ::std::os::raw::c_int,
pub dummy5: gboolean,
pub dummy6: gpointer,
}
#[test]
fn bindgen_test_layout__GHashTableIter() {
assert_eq!(
::std::mem::size_of::<_GHashTableIter>(),
40usize,
concat!("Size of: ", stringify!(_GHashTableIter))
);
assert_eq!(
::std::mem::align_of::<_GHashTableIter>(),
8usize,
concat!("Alignment of ", stringify!(_GHashTableIter))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy1 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy2 as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy3 as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy3))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy4 as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy4))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy5 as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy5))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHashTableIter>())).dummy6 as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy6))
);
}
extern "C" {
pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable;
}
extern "C" {
pub fn g_hash_table_new_full(
hash_func: GHashFunc,
key_equal_func: GEqualFunc,
key_destroy_func: GDestroyNotify,
value_destroy_func: GDestroyNotify,
) -> *mut GHashTable;
}
extern "C" {
pub fn g_hash_table_destroy(hash_table: *mut GHashTable);
}
extern "C" {
pub fn g_hash_table_insert(
hash_table: *mut GHashTable,
key: gpointer,
value: gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_hash_table_replace(
hash_table: *mut GHashTable,
key: gpointer,
value: gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean;
}
extern "C" {
pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_hash_table_remove_all(hash_table: *mut GHashTable);
}
extern "C" {
pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_hash_table_steal_all(hash_table: *mut GHashTable);
}
extern "C" {
pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer;
}
extern "C" {
pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_hash_table_lookup_extended(
hash_table: *mut GHashTable,
lookup_key: gconstpointer,
orig_key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer);
}
extern "C" {
pub fn g_hash_table_find(
hash_table: *mut GHashTable,
predicate: GHRFunc,
user_data: gpointer,
) -> gpointer;
}
extern "C" {
pub fn g_hash_table_foreach_remove(
hash_table: *mut GHashTable,
func: GHRFunc,
user_data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_hash_table_foreach_steal(
hash_table: *mut GHashTable,
func: GHRFunc,
user_data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_hash_table_size(hash_table: *mut GHashTable) -> guint;
}
extern "C" {
pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList;
}
extern "C" {
pub fn g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList;
}
extern "C" {
pub fn g_hash_table_get_keys_as_array(
hash_table: *mut GHashTable,
length: *mut guint,
) -> *mut gpointer;
}
extern "C" {
pub fn g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable);
}
extern "C" {
pub fn g_hash_table_iter_next(
iter: *mut GHashTableIter,
key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable;
}
extern "C" {
pub fn g_hash_table_iter_remove(iter: *mut GHashTableIter);
}
extern "C" {
pub fn g_hash_table_iter_replace(iter: *mut GHashTableIter, value: gpointer);
}
extern "C" {
pub fn g_hash_table_iter_steal(iter: *mut GHashTableIter);
}
extern "C" {
pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable;
}
extern "C" {
pub fn g_hash_table_unref(hash_table: *mut GHashTable);
}
extern "C" {
pub fn g_str_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_str_hash(v: gconstpointer) -> guint;
}
extern "C" {
pub fn g_int_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_int_hash(v: gconstpointer) -> guint;
}
extern "C" {
pub fn g_int64_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_int64_hash(v: gconstpointer) -> guint;
}
extern "C" {
pub fn g_double_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_double_hash(v: gconstpointer) -> guint;
}
extern "C" {
pub fn g_direct_hash(v: gconstpointer) -> guint;
}
extern "C" {
pub fn g_direct_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GHmac {
_unused: [u8; 0],
}
pub type GHmac = _GHmac;
extern "C" {
pub fn g_hmac_new(digest_type: GChecksumType, key: *const guchar, key_len: gsize)
-> *mut GHmac;
}
extern "C" {
pub fn g_hmac_copy(hmac: *const GHmac) -> *mut GHmac;
}
extern "C" {
pub fn g_hmac_ref(hmac: *mut GHmac) -> *mut GHmac;
}
extern "C" {
pub fn g_hmac_unref(hmac: *mut GHmac);
}
extern "C" {
pub fn g_hmac_update(hmac: *mut GHmac, data: *const guchar, length: gssize);
}
extern "C" {
pub fn g_hmac_get_string(hmac: *mut GHmac) -> *const gchar;
}
extern "C" {
pub fn g_hmac_get_digest(hmac: *mut GHmac, buffer: *mut guint8, digest_len: *mut gsize);
}
extern "C" {
pub fn g_compute_hmac_for_data(
digest_type: GChecksumType,
key: *const guchar,
key_len: gsize,
data: *const guchar,
length: gsize,
) -> *mut gchar;
}
extern "C" {
pub fn g_compute_hmac_for_string(
digest_type: GChecksumType,
key: *const guchar,
key_len: gsize,
str: *const gchar,
length: gssize,
) -> *mut gchar;
}
extern "C" {
pub fn g_compute_hmac_for_bytes(
digest_type: GChecksumType,
key: *mut GBytes,
data: *mut GBytes,
) -> *mut gchar;
}
pub type GHook = _GHook;
pub type GHookList = _GHookList;
pub type GHookCompareFunc =
::std::option::Option<unsafe extern "C" fn(new_hook: *mut GHook, sibling: *mut GHook) -> gint>;
pub type GHookFindFunc =
::std::option::Option<unsafe extern "C" fn(hook: *mut GHook, data: gpointer) -> gboolean>;
pub type GHookMarshaller =
::std::option::Option<unsafe extern "C" fn(hook: *mut GHook, marshal_data: gpointer)>;
pub type GHookCheckMarshaller = ::std::option::Option<
unsafe extern "C" fn(hook: *mut GHook, marshal_data: gpointer) -> gboolean,
>;
pub type GHookFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer)>;
pub type GHookCheckFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer) -> gboolean>;
pub type GHookFinalizeFunc =
::std::option::Option<unsafe extern "C" fn(hook_list: *mut GHookList, hook: *mut GHook)>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GHookFlagMask {
G_HOOK_FLAG_ACTIVE = 1,
G_HOOK_FLAG_IN_CALL = 2,
G_HOOK_FLAG_MASK = 15,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GHookList {
pub seq_id: gulong,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
pub hooks: *mut GHook,
pub dummy3: gpointer,
pub finalize_hook: GHookFinalizeFunc,
pub dummy: [gpointer; 2usize],
}
#[test]
fn bindgen_test_layout__GHookList() {
assert_eq!(
::std::mem::size_of::<_GHookList>(),
56usize,
concat!("Size of: ", stringify!(_GHookList))
);
assert_eq!(
::std::mem::align_of::<_GHookList>(),
8usize,
concat!("Alignment of ", stringify!(_GHookList))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHookList>())).seq_id as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GHookList), "::", stringify!(seq_id))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHookList>())).hooks as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GHookList), "::", stringify!(hooks))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHookList>())).dummy3 as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GHookList), "::", stringify!(dummy3))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHookList>())).finalize_hook as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GHookList), "::", stringify!(finalize_hook))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHookList>())).dummy as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GHookList), "::", stringify!(dummy))
);
}
impl _GHookList {
#[inline]
pub fn hook_size(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
}
#[inline]
pub fn set_hook_size(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 16u8, val as u64)
}
}
#[inline]
pub fn is_setup(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
}
#[inline]
pub fn set_is_setup(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
hook_size: guint,
is_setup: guint,
) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 16u8, {
let hook_size: u32 = unsafe { ::std::mem::transmute(hook_size) };
hook_size as u64
});
__bindgen_bitfield_unit.set(16usize, 1u8, {
let is_setup: u32 = unsafe { ::std::mem::transmute(is_setup) };
is_setup as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GHook {
pub data: gpointer,
pub next: *mut GHook,
pub prev: *mut GHook,
pub ref_count: guint,
pub hook_id: gulong,
pub flags: guint,
pub func: gpointer,
pub destroy: GDestroyNotify,
}
#[test]
fn bindgen_test_layout__GHook() {
assert_eq!(::std::mem::size_of::<_GHook>(), 64usize, concat!("Size of: ", stringify!(_GHook)));
assert_eq!(
::std::mem::align_of::<_GHook>(),
8usize,
concat!("Alignment of ", stringify!(_GHook))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).next as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(next))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).prev as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(prev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).ref_count as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).hook_id as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(hook_id))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).flags as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).func as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(func))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GHook>())).destroy as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GHook), "::", stringify!(destroy))
);
}
extern "C" {
pub fn g_hook_list_init(hook_list: *mut GHookList, hook_size: guint);
}
extern "C" {
pub fn g_hook_list_clear(hook_list: *mut GHookList);
}
extern "C" {
pub fn g_hook_alloc(hook_list: *mut GHookList) -> *mut GHook;
}
extern "C" {
pub fn g_hook_free(hook_list: *mut GHookList, hook: *mut GHook);
}
extern "C" {
pub fn g_hook_ref(hook_list: *mut GHookList, hook: *mut GHook) -> *mut GHook;
}
extern "C" {
pub fn g_hook_unref(hook_list: *mut GHookList, hook: *mut GHook);
}
extern "C" {
pub fn g_hook_destroy(hook_list: *mut GHookList, hook_id: gulong) -> gboolean;
}
extern "C" {
pub fn g_hook_destroy_link(hook_list: *mut GHookList, hook: *mut GHook);
}
extern "C" {
pub fn g_hook_prepend(hook_list: *mut GHookList, hook: *mut GHook);
}
extern "C" {
pub fn g_hook_insert_before(hook_list: *mut GHookList, sibling: *mut GHook, hook: *mut GHook);
}
extern "C" {
pub fn g_hook_insert_sorted(
hook_list: *mut GHookList,
hook: *mut GHook,
func: GHookCompareFunc,
);
}
extern "C" {
pub fn g_hook_get(hook_list: *mut GHookList, hook_id: gulong) -> *mut GHook;
}
extern "C" {
pub fn g_hook_find(
hook_list: *mut GHookList,
need_valids: gboolean,
func: GHookFindFunc,
data: gpointer,
) -> *mut GHook;
}
extern "C" {
pub fn g_hook_find_data(
hook_list: *mut GHookList,
need_valids: gboolean,
data: gpointer,
) -> *mut GHook;
}
extern "C" {
pub fn g_hook_find_func(
hook_list: *mut GHookList,
need_valids: gboolean,
func: gpointer,
) -> *mut GHook;
}
extern "C" {
pub fn g_hook_find_func_data(
hook_list: *mut GHookList,
need_valids: gboolean,
func: gpointer,
data: gpointer,
) -> *mut GHook;
}
extern "C" {
pub fn g_hook_first_valid(hook_list: *mut GHookList, may_be_in_call: gboolean) -> *mut GHook;
}
extern "C" {
pub fn g_hook_next_valid(
hook_list: *mut GHookList,
hook: *mut GHook,
may_be_in_call: gboolean,
) -> *mut GHook;
}
extern "C" {
pub fn g_hook_compare_ids(new_hook: *mut GHook, sibling: *mut GHook) -> gint;
}
extern "C" {
pub fn g_hook_list_invoke(hook_list: *mut GHookList, may_recurse: gboolean);
}
extern "C" {
pub fn g_hook_list_invoke_check(hook_list: *mut GHookList, may_recurse: gboolean);
}
extern "C" {
pub fn g_hook_list_marshal(
hook_list: *mut GHookList,
may_recurse: gboolean,
marshaller: GHookMarshaller,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_hook_list_marshal_check(
hook_list: *mut GHookList,
may_recurse: gboolean,
marshaller: GHookCheckMarshaller,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_hostname_is_non_ascii(hostname: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_hostname_is_ascii_encoded(hostname: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_hostname_is_ip_address(hostname: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_hostname_to_ascii(hostname: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_hostname_to_unicode(hostname: *const gchar) -> *mut gchar;
}
pub type GPollFD = _GPollFD;
pub type GPollFunc = ::std::option::Option<
unsafe extern "C" fn(ufds: *mut GPollFD, nfsd: guint, timeout_: gint) -> gint,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPollFD {
pub fd: gint,
pub events: gushort,
pub revents: gushort,
}
#[test]
fn bindgen_test_layout__GPollFD() {
assert_eq!(
::std::mem::size_of::<_GPollFD>(),
8usize,
concat!("Size of: ", stringify!(_GPollFD))
);
assert_eq!(
::std::mem::align_of::<_GPollFD>(),
4usize,
concat!("Alignment of ", stringify!(_GPollFD))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPollFD>())).fd as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GPollFD), "::", stringify!(fd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPollFD>())).events as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_GPollFD), "::", stringify!(events))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GPollFD>())).revents as *const _ as usize },
6usize,
concat!("Offset of field: ", stringify!(_GPollFD), "::", stringify!(revents))
);
}
extern "C" {
pub fn g_poll(fds: *mut GPollFD, nfds: guint, timeout: gint) -> gint;
}
pub type GSList = _GSList;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSList {
pub data: gpointer,
pub next: *mut GSList,
}
#[test]
fn bindgen_test_layout__GSList() {
assert_eq!(
::std::mem::size_of::<_GSList>(),
16usize,
concat!("Size of: ", stringify!(_GSList))
);
assert_eq!(
::std::mem::align_of::<_GSList>(),
8usize,
concat!("Alignment of ", stringify!(_GSList))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSList>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GSList), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSList>())).next as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GSList), "::", stringify!(next))
);
}
extern "C" {
pub fn g_slist_alloc() -> *mut GSList;
}
extern "C" {
pub fn g_slist_free(list: *mut GSList);
}
extern "C" {
pub fn g_slist_free_1(list: *mut GSList);
}
extern "C" {
pub fn g_slist_free_full(list: *mut GSList, free_func: GDestroyNotify);
}
extern "C" {
pub fn g_slist_append(list: *mut GSList, data: gpointer) -> *mut GSList;
}
extern "C" {
pub fn g_slist_prepend(list: *mut GSList, data: gpointer) -> *mut GSList;
}
extern "C" {
pub fn g_slist_insert(list: *mut GSList, data: gpointer, position: gint) -> *mut GSList;
}
extern "C" {
pub fn g_slist_insert_sorted(
list: *mut GSList,
data: gpointer,
func: GCompareFunc,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_insert_sorted_with_data(
list: *mut GSList,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_insert_before(
slist: *mut GSList,
sibling: *mut GSList,
data: gpointer,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_concat(list1: *mut GSList, list2: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_remove(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
extern "C" {
pub fn g_slist_remove_all(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
extern "C" {
pub fn g_slist_remove_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_delete_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_reverse(list: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_copy(list: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_copy_deep(
list: *mut GSList,
func: GCopyFunc,
user_data: gpointer,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_nth(list: *mut GSList, n: guint) -> *mut GSList;
}
extern "C" {
pub fn g_slist_find(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
extern "C" {
pub fn g_slist_find_custom(
list: *mut GSList,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_position(list: *mut GSList, llink: *mut GSList) -> gint;
}
extern "C" {
pub fn g_slist_index(list: *mut GSList, data: gconstpointer) -> gint;
}
extern "C" {
pub fn g_slist_last(list: *mut GSList) -> *mut GSList;
}
extern "C" {
pub fn g_slist_length(list: *mut GSList) -> guint;
}
extern "C" {
pub fn g_slist_foreach(list: *mut GSList, func: GFunc, user_data: gpointer);
}
extern "C" {
pub fn g_slist_sort(list: *mut GSList, compare_func: GCompareFunc) -> *mut GSList;
}
extern "C" {
pub fn g_slist_sort_with_data(
list: *mut GSList,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GSList;
}
extern "C" {
pub fn g_slist_nth_data(list: *mut GSList, n: guint) -> gpointer;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GIOCondition {
G_IO_IN = 1,
G_IO_OUT = 4,
G_IO_PRI = 2,
G_IO_ERR = 8,
G_IO_HUP = 16,
G_IO_NVAL = 32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMainContext {
_unused: [u8; 0],
}
pub type GMainContext = _GMainContext;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMainLoop {
_unused: [u8; 0],
}
pub type GMainLoop = _GMainLoop;
pub type GSource = _GSource;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSourcePrivate {
_unused: [u8; 0],
}
pub type GSourcePrivate = _GSourcePrivate;
pub type GSourceCallbackFuncs = _GSourceCallbackFuncs;
pub type GSourceFuncs = _GSourceFuncs;
pub type GSourceFunc = ::std::option::Option<unsafe extern "C" fn(user_data: gpointer) -> gboolean>;
pub type GChildWatchFunc =
::std::option::Option<unsafe extern "C" fn(pid: GPid, status: gint, user_data: gpointer)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSource {
pub callback_data: gpointer,
pub callback_funcs: *mut GSourceCallbackFuncs,
pub source_funcs: *const GSourceFuncs,
pub ref_count: guint,
pub context: *mut GMainContext,
pub priority: gint,
pub flags: guint,
pub source_id: guint,
pub poll_fds: *mut GSList,
pub prev: *mut GSource,
pub next: *mut GSource,
pub name: *mut ::std::os::raw::c_char,
pub priv_: *mut GSourcePrivate,
}
#[test]
fn bindgen_test_layout__GSource() {
assert_eq!(
::std::mem::size_of::<_GSource>(),
96usize,
concat!("Size of: ", stringify!(_GSource))
);
assert_eq!(
::std::mem::align_of::<_GSource>(),
8usize,
concat!("Alignment of ", stringify!(_GSource))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).callback_data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(callback_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).callback_funcs as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(callback_funcs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).source_funcs as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(source_funcs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).ref_count as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).context as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(context))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).priority as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(priority))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).flags as *const _ as usize },
44usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).source_id as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(source_id))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).poll_fds as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(poll_fds))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).prev as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(prev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).next as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(next))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).name as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSource>())).priv_ as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GSource), "::", stringify!(priv_))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSourceCallbackFuncs {
pub ref_: ::std::option::Option<unsafe extern "C" fn(cb_data: gpointer)>,
pub unref: ::std::option::Option<unsafe extern "C" fn(cb_data: gpointer)>,
pub get: ::std::option::Option<
unsafe extern "C" fn(
cb_data: gpointer,
source: *mut GSource,
func: *mut GSourceFunc,
data: *mut gpointer,
),
>,
}
#[test]
fn bindgen_test_layout__GSourceCallbackFuncs() {
assert_eq!(
::std::mem::size_of::<_GSourceCallbackFuncs>(),
24usize,
concat!("Size of: ", stringify!(_GSourceCallbackFuncs))
);
assert_eq!(
::std::mem::align_of::<_GSourceCallbackFuncs>(),
8usize,
concat!("Alignment of ", stringify!(_GSourceCallbackFuncs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceCallbackFuncs>())).ref_ as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(ref_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceCallbackFuncs>())).unref as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(unref))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceCallbackFuncs>())).get as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(get))
);
}
pub type GSourceDummyMarshal = ::std::option::Option<unsafe extern "C" fn()>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSourceFuncs {
pub prepare: ::std::option::Option<
unsafe extern "C" fn(source: *mut GSource, timeout_: *mut gint) -> gboolean,
>,
pub check: ::std::option::Option<unsafe extern "C" fn(source: *mut GSource) -> gboolean>,
pub dispatch: ::std::option::Option<
unsafe extern "C" fn(
source: *mut GSource,
callback: GSourceFunc,
user_data: gpointer,
) -> gboolean,
>,
pub finalize: ::std::option::Option<unsafe extern "C" fn(source: *mut GSource)>,
pub closure_callback: GSourceFunc,
pub closure_marshal: GSourceDummyMarshal,
}
#[test]
fn bindgen_test_layout__GSourceFuncs() {
assert_eq!(
::std::mem::size_of::<_GSourceFuncs>(),
48usize,
concat!("Size of: ", stringify!(_GSourceFuncs))
);
assert_eq!(
::std::mem::align_of::<_GSourceFuncs>(),
8usize,
concat!("Alignment of ", stringify!(_GSourceFuncs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).prepare as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(prepare))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).check as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(check))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).dispatch as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(dispatch))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).finalize as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(finalize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).closure_callback as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(closure_callback))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSourceFuncs>())).closure_marshal as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(closure_marshal))
);
}
extern "C" {
pub fn g_main_context_new() -> *mut GMainContext;
}
extern "C" {
pub fn g_main_context_ref(context: *mut GMainContext) -> *mut GMainContext;
}
extern "C" {
pub fn g_main_context_unref(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_default() -> *mut GMainContext;
}
extern "C" {
pub fn g_main_context_iteration(context: *mut GMainContext, may_block: gboolean) -> gboolean;
}
extern "C" {
pub fn g_main_context_pending(context: *mut GMainContext) -> gboolean;
}
extern "C" {
pub fn g_main_context_find_source_by_id(
context: *mut GMainContext,
source_id: guint,
) -> *mut GSource;
}
extern "C" {
pub fn g_main_context_find_source_by_user_data(
context: *mut GMainContext,
user_data: gpointer,
) -> *mut GSource;
}
extern "C" {
pub fn g_main_context_find_source_by_funcs_user_data(
context: *mut GMainContext,
funcs: *mut GSourceFuncs,
user_data: gpointer,
) -> *mut GSource;
}
extern "C" {
pub fn g_main_context_wakeup(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_acquire(context: *mut GMainContext) -> gboolean;
}
extern "C" {
pub fn g_main_context_release(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_is_owner(context: *mut GMainContext) -> gboolean;
}
extern "C" {
pub fn g_main_context_wait(
context: *mut GMainContext,
cond: *mut GCond,
mutex: *mut GMutex,
) -> gboolean;
}
extern "C" {
pub fn g_main_context_prepare(context: *mut GMainContext, priority: *mut gint) -> gboolean;
}
extern "C" {
pub fn g_main_context_query(
context: *mut GMainContext,
max_priority: gint,
timeout_: *mut gint,
fds: *mut GPollFD,
n_fds: gint,
) -> gint;
}
extern "C" {
pub fn g_main_context_check(
context: *mut GMainContext,
max_priority: gint,
fds: *mut GPollFD,
n_fds: gint,
) -> gboolean;
}
extern "C" {
pub fn g_main_context_dispatch(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_set_poll_func(context: *mut GMainContext, func: GPollFunc);
}
extern "C" {
pub fn g_main_context_get_poll_func(context: *mut GMainContext) -> GPollFunc;
}
extern "C" {
pub fn g_main_context_add_poll(context: *mut GMainContext, fd: *mut GPollFD, priority: gint);
}
extern "C" {
pub fn g_main_context_remove_poll(context: *mut GMainContext, fd: *mut GPollFD);
}
extern "C" {
pub fn g_main_depth() -> gint;
}
extern "C" {
pub fn g_main_current_source() -> *mut GSource;
}
extern "C" {
pub fn g_main_context_push_thread_default(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_pop_thread_default(context: *mut GMainContext);
}
extern "C" {
pub fn g_main_context_get_thread_default() -> *mut GMainContext;
}
extern "C" {
pub fn g_main_context_ref_thread_default() -> *mut GMainContext;
}
extern "C" {
pub fn g_main_loop_new(context: *mut GMainContext, is_running: gboolean) -> *mut GMainLoop;
}
extern "C" {
pub fn g_main_loop_run(loop_: *mut GMainLoop);
}
extern "C" {
pub fn g_main_loop_quit(loop_: *mut GMainLoop);
}
extern "C" {
pub fn g_main_loop_ref(loop_: *mut GMainLoop) -> *mut GMainLoop;
}
extern "C" {
pub fn g_main_loop_unref(loop_: *mut GMainLoop);
}
extern "C" {
pub fn g_main_loop_is_running(loop_: *mut GMainLoop) -> gboolean;
}
extern "C" {
pub fn g_main_loop_get_context(loop_: *mut GMainLoop) -> *mut GMainContext;
}
extern "C" {
pub fn g_source_new(source_funcs: *mut GSourceFuncs, struct_size: guint) -> *mut GSource;
}
extern "C" {
pub fn g_source_ref(source: *mut GSource) -> *mut GSource;
}
extern "C" {
pub fn g_source_unref(source: *mut GSource);
}
extern "C" {
pub fn g_source_attach(source: *mut GSource, context: *mut GMainContext) -> guint;
}
extern "C" {
pub fn g_source_destroy(source: *mut GSource);
}
extern "C" {
pub fn g_source_set_priority(source: *mut GSource, priority: gint);
}
extern "C" {
pub fn g_source_get_priority(source: *mut GSource) -> gint;
}
extern "C" {
pub fn g_source_set_can_recurse(source: *mut GSource, can_recurse: gboolean);
}
extern "C" {
pub fn g_source_get_can_recurse(source: *mut GSource) -> gboolean;
}
extern "C" {
pub fn g_source_get_id(source: *mut GSource) -> guint;
}
extern "C" {
pub fn g_source_get_context(source: *mut GSource) -> *mut GMainContext;
}
extern "C" {
pub fn g_source_set_callback(
source: *mut GSource,
func: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
);
}
extern "C" {
pub fn g_source_set_funcs(source: *mut GSource, funcs: *mut GSourceFuncs);
}
extern "C" {
pub fn g_source_is_destroyed(source: *mut GSource) -> gboolean;
}
extern "C" {
pub fn g_source_set_name(source: *mut GSource, name: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn g_source_get_name(source: *mut GSource) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn g_source_set_name_by_id(tag: guint, name: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn g_source_set_ready_time(source: *mut GSource, ready_time: gint64);
}
extern "C" {
pub fn g_source_get_ready_time(source: *mut GSource) -> gint64;
}
extern "C" {
pub fn g_source_add_unix_fd(source: *mut GSource, fd: gint, events: GIOCondition) -> gpointer;
}
extern "C" {
pub fn g_source_modify_unix_fd(source: *mut GSource, tag: gpointer, new_events: GIOCondition);
}
extern "C" {
pub fn g_source_remove_unix_fd(source: *mut GSource, tag: gpointer);
}
extern "C" {
pub fn g_source_query_unix_fd(source: *mut GSource, tag: gpointer) -> GIOCondition;
}
extern "C" {
pub fn g_source_set_callback_indirect(
source: *mut GSource,
callback_data: gpointer,
callback_funcs: *mut GSourceCallbackFuncs,
);
}
extern "C" {
pub fn g_source_add_poll(source: *mut GSource, fd: *mut GPollFD);
}
extern "C" {
pub fn g_source_remove_poll(source: *mut GSource, fd: *mut GPollFD);
}
extern "C" {
pub fn g_source_add_child_source(source: *mut GSource, child_source: *mut GSource);
}
extern "C" {
pub fn g_source_remove_child_source(source: *mut GSource, child_source: *mut GSource);
}
extern "C" {
pub fn g_source_get_current_time(source: *mut GSource, timeval: *mut GTimeVal);
}
extern "C" {
pub fn g_source_get_time(source: *mut GSource) -> gint64;
}
extern "C" {
pub fn g_idle_source_new() -> *mut GSource;
}
extern "C" {
pub fn g_child_watch_source_new(pid: GPid) -> *mut GSource;
}
extern "C" {
pub fn g_timeout_source_new(interval: guint) -> *mut GSource;
}
extern "C" {
pub fn g_timeout_source_new_seconds(interval: guint) -> *mut GSource;
}
extern "C" {
pub fn g_get_current_time(result: *mut GTimeVal);
}
extern "C" {
pub fn g_get_monotonic_time() -> gint64;
}
extern "C" {
pub fn g_get_real_time() -> gint64;
}
extern "C" {
pub fn g_source_remove(tag: guint) -> gboolean;
}
extern "C" {
pub fn g_source_remove_by_user_data(user_data: gpointer) -> gboolean;
}
extern "C" {
pub fn g_source_remove_by_funcs_user_data(
funcs: *mut GSourceFuncs,
user_data: gpointer,
) -> gboolean;
}
pub type GClearHandleFunc = ::std::option::Option<unsafe extern "C" fn(handle_id: guint)>;
extern "C" {
pub fn g_clear_handle_id(tag_ptr: *mut guint, clear_func: GClearHandleFunc);
}
extern "C" {
pub fn g_timeout_add_full(
priority: gint,
interval: guint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_timeout_add(interval: guint, function: GSourceFunc, data: gpointer) -> guint;
}
extern "C" {
pub fn g_timeout_add_seconds_full(
priority: gint,
interval: guint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_timeout_add_seconds(interval: guint, function: GSourceFunc, data: gpointer) -> guint;
}
extern "C" {
pub fn g_child_watch_add_full(
priority: gint,
pid: GPid,
function: GChildWatchFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_child_watch_add(pid: GPid, function: GChildWatchFunc, data: gpointer) -> guint;
}
extern "C" {
pub fn g_idle_add(function: GSourceFunc, data: gpointer) -> guint;
}
extern "C" {
pub fn g_idle_add_full(
priority: gint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_idle_remove_by_data(data: gpointer) -> gboolean;
}
extern "C" {
pub fn g_main_context_invoke_full(
context: *mut GMainContext,
priority: gint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
);
}
extern "C" {
pub fn g_main_context_invoke(context: *mut GMainContext, function: GSourceFunc, data: gpointer);
}
extern "C" {
pub static mut g_timeout_funcs: GSourceFuncs;
}
extern "C" {
pub static mut g_child_watch_funcs: GSourceFuncs;
}
extern "C" {
pub static mut g_idle_funcs: GSourceFuncs;
}
extern "C" {
pub static mut g_unix_signal_funcs: GSourceFuncs;
}
extern "C" {
pub static mut g_unix_fd_source_funcs: GSourceFuncs;
}
pub type gunichar = guint32;
pub type gunichar2 = guint16;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GUnicodeType {
G_UNICODE_CONTROL = 0,
G_UNICODE_FORMAT = 1,
G_UNICODE_UNASSIGNED = 2,
G_UNICODE_PRIVATE_USE = 3,
G_UNICODE_SURROGATE = 4,
G_UNICODE_LOWERCASE_LETTER = 5,
G_UNICODE_MODIFIER_LETTER = 6,
G_UNICODE_OTHER_LETTER = 7,
G_UNICODE_TITLECASE_LETTER = 8,
G_UNICODE_UPPERCASE_LETTER = 9,
G_UNICODE_SPACING_MARK = 10,
G_UNICODE_ENCLOSING_MARK = 11,
G_UNICODE_NON_SPACING_MARK = 12,
G_UNICODE_DECIMAL_NUMBER = 13,
G_UNICODE_LETTER_NUMBER = 14,
G_UNICODE_OTHER_NUMBER = 15,
G_UNICODE_CONNECT_PUNCTUATION = 16,
G_UNICODE_DASH_PUNCTUATION = 17,
G_UNICODE_CLOSE_PUNCTUATION = 18,
G_UNICODE_FINAL_PUNCTUATION = 19,
G_UNICODE_INITIAL_PUNCTUATION = 20,
G_UNICODE_OTHER_PUNCTUATION = 21,
G_UNICODE_OPEN_PUNCTUATION = 22,
G_UNICODE_CURRENCY_SYMBOL = 23,
G_UNICODE_MODIFIER_SYMBOL = 24,
G_UNICODE_MATH_SYMBOL = 25,
G_UNICODE_OTHER_SYMBOL = 26,
G_UNICODE_LINE_SEPARATOR = 27,
G_UNICODE_PARAGRAPH_SEPARATOR = 28,
G_UNICODE_SPACE_SEPARATOR = 29,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GUnicodeBreakType {
G_UNICODE_BREAK_MANDATORY = 0,
G_UNICODE_BREAK_CARRIAGE_RETURN = 1,
G_UNICODE_BREAK_LINE_FEED = 2,
G_UNICODE_BREAK_COMBINING_MARK = 3,
G_UNICODE_BREAK_SURROGATE = 4,
G_UNICODE_BREAK_ZERO_WIDTH_SPACE = 5,
G_UNICODE_BREAK_INSEPARABLE = 6,
G_UNICODE_BREAK_NON_BREAKING_GLUE = 7,
G_UNICODE_BREAK_CONTINGENT = 8,
G_UNICODE_BREAK_SPACE = 9,
G_UNICODE_BREAK_AFTER = 10,
G_UNICODE_BREAK_BEFORE = 11,
G_UNICODE_BREAK_BEFORE_AND_AFTER = 12,
G_UNICODE_BREAK_HYPHEN = 13,
G_UNICODE_BREAK_NON_STARTER = 14,
G_UNICODE_BREAK_OPEN_PUNCTUATION = 15,
G_UNICODE_BREAK_CLOSE_PUNCTUATION = 16,
G_UNICODE_BREAK_QUOTATION = 17,
G_UNICODE_BREAK_EXCLAMATION = 18,
G_UNICODE_BREAK_IDEOGRAPHIC = 19,
G_UNICODE_BREAK_NUMERIC = 20,
G_UNICODE_BREAK_INFIX_SEPARATOR = 21,
G_UNICODE_BREAK_SYMBOL = 22,
G_UNICODE_BREAK_ALPHABETIC = 23,
G_UNICODE_BREAK_PREFIX = 24,
G_UNICODE_BREAK_POSTFIX = 25,
G_UNICODE_BREAK_COMPLEX_CONTEXT = 26,
G_UNICODE_BREAK_AMBIGUOUS = 27,
G_UNICODE_BREAK_UNKNOWN = 28,
G_UNICODE_BREAK_NEXT_LINE = 29,
G_UNICODE_BREAK_WORD_JOINER = 30,
G_UNICODE_BREAK_HANGUL_L_JAMO = 31,
G_UNICODE_BREAK_HANGUL_V_JAMO = 32,
G_UNICODE_BREAK_HANGUL_T_JAMO = 33,
G_UNICODE_BREAK_HANGUL_LV_SYLLABLE = 34,
G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE = 35,
G_UNICODE_BREAK_CLOSE_PARANTHESIS = 36,
G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER = 37,
G_UNICODE_BREAK_HEBREW_LETTER = 38,
G_UNICODE_BREAK_REGIONAL_INDICATOR = 39,
G_UNICODE_BREAK_EMOJI_BASE = 40,
G_UNICODE_BREAK_EMOJI_MODIFIER = 41,
G_UNICODE_BREAK_ZERO_WIDTH_JOINER = 42,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GUnicodeScript {
G_UNICODE_SCRIPT_INVALID_CODE = -1,
G_UNICODE_SCRIPT_COMMON = 0,
G_UNICODE_SCRIPT_INHERITED = 1,
G_UNICODE_SCRIPT_ARABIC = 2,
G_UNICODE_SCRIPT_ARMENIAN = 3,
G_UNICODE_SCRIPT_BENGALI = 4,
G_UNICODE_SCRIPT_BOPOMOFO = 5,
G_UNICODE_SCRIPT_CHEROKEE = 6,
G_UNICODE_SCRIPT_COPTIC = 7,
G_UNICODE_SCRIPT_CYRILLIC = 8,
G_UNICODE_SCRIPT_DESERET = 9,
G_UNICODE_SCRIPT_DEVANAGARI = 10,
G_UNICODE_SCRIPT_ETHIOPIC = 11,
G_UNICODE_SCRIPT_GEORGIAN = 12,
G_UNICODE_SCRIPT_GOTHIC = 13,
G_UNICODE_SCRIPT_GREEK = 14,
G_UNICODE_SCRIPT_GUJARATI = 15,
G_UNICODE_SCRIPT_GURMUKHI = 16,
G_UNICODE_SCRIPT_HAN = 17,
G_UNICODE_SCRIPT_HANGUL = 18,
G_UNICODE_SCRIPT_HEBREW = 19,
G_UNICODE_SCRIPT_HIRAGANA = 20,
G_UNICODE_SCRIPT_KANNADA = 21,
G_UNICODE_SCRIPT_KATAKANA = 22,
G_UNICODE_SCRIPT_KHMER = 23,
G_UNICODE_SCRIPT_LAO = 24,
G_UNICODE_SCRIPT_LATIN = 25,
G_UNICODE_SCRIPT_MALAYALAM = 26,
G_UNICODE_SCRIPT_MONGOLIAN = 27,
G_UNICODE_SCRIPT_MYANMAR = 28,
G_UNICODE_SCRIPT_OGHAM = 29,
G_UNICODE_SCRIPT_OLD_ITALIC = 30,
G_UNICODE_SCRIPT_ORIYA = 31,
G_UNICODE_SCRIPT_RUNIC = 32,
G_UNICODE_SCRIPT_SINHALA = 33,
G_UNICODE_SCRIPT_SYRIAC = 34,
G_UNICODE_SCRIPT_TAMIL = 35,
G_UNICODE_SCRIPT_TELUGU = 36,
G_UNICODE_SCRIPT_THAANA = 37,
G_UNICODE_SCRIPT_THAI = 38,
G_UNICODE_SCRIPT_TIBETAN = 39,
G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL = 40,
G_UNICODE_SCRIPT_YI = 41,
G_UNICODE_SCRIPT_TAGALOG = 42,
G_UNICODE_SCRIPT_HANUNOO = 43,
G_UNICODE_SCRIPT_BUHID = 44,
G_UNICODE_SCRIPT_TAGBANWA = 45,
G_UNICODE_SCRIPT_BRAILLE = 46,
G_UNICODE_SCRIPT_CYPRIOT = 47,
G_UNICODE_SCRIPT_LIMBU = 48,
G_UNICODE_SCRIPT_OSMANYA = 49,
G_UNICODE_SCRIPT_SHAVIAN = 50,
G_UNICODE_SCRIPT_LINEAR_B = 51,
G_UNICODE_SCRIPT_TAI_LE = 52,
G_UNICODE_SCRIPT_UGARITIC = 53,
G_UNICODE_SCRIPT_NEW_TAI_LUE = 54,
G_UNICODE_SCRIPT_BUGINESE = 55,
G_UNICODE_SCRIPT_GLAGOLITIC = 56,
G_UNICODE_SCRIPT_TIFINAGH = 57,
G_UNICODE_SCRIPT_SYLOTI_NAGRI = 58,
G_UNICODE_SCRIPT_OLD_PERSIAN = 59,
G_UNICODE_SCRIPT_KHAROSHTHI = 60,
G_UNICODE_SCRIPT_UNKNOWN = 61,
G_UNICODE_SCRIPT_BALINESE = 62,
G_UNICODE_SCRIPT_CUNEIFORM = 63,
G_UNICODE_SCRIPT_PHOENICIAN = 64,
G_UNICODE_SCRIPT_PHAGS_PA = 65,
G_UNICODE_SCRIPT_NKO = 66,
G_UNICODE_SCRIPT_KAYAH_LI = 67,
G_UNICODE_SCRIPT_LEPCHA = 68,
G_UNICODE_SCRIPT_REJANG = 69,
G_UNICODE_SCRIPT_SUNDANESE = 70,
G_UNICODE_SCRIPT_SAURASHTRA = 71,
G_UNICODE_SCRIPT_CHAM = 72,
G_UNICODE_SCRIPT_OL_CHIKI = 73,
G_UNICODE_SCRIPT_VAI = 74,
G_UNICODE_SCRIPT_CARIAN = 75,
G_UNICODE_SCRIPT_LYCIAN = 76,
G_UNICODE_SCRIPT_LYDIAN = 77,
G_UNICODE_SCRIPT_AVESTAN = 78,
G_UNICODE_SCRIPT_BAMUM = 79,
G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS = 80,
G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC = 81,
G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI = 82,
G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN = 83,
G_UNICODE_SCRIPT_JAVANESE = 84,
G_UNICODE_SCRIPT_KAITHI = 85,
G_UNICODE_SCRIPT_LISU = 86,
G_UNICODE_SCRIPT_MEETEI_MAYEK = 87,
G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN = 88,
G_UNICODE_SCRIPT_OLD_TURKIC = 89,
G_UNICODE_SCRIPT_SAMARITAN = 90,
G_UNICODE_SCRIPT_TAI_THAM = 91,
G_UNICODE_SCRIPT_TAI_VIET = 92,
G_UNICODE_SCRIPT_BATAK = 93,
G_UNICODE_SCRIPT_BRAHMI = 94,
G_UNICODE_SCRIPT_MANDAIC = 95,
G_UNICODE_SCRIPT_CHAKMA = 96,
G_UNICODE_SCRIPT_MEROITIC_CURSIVE = 97,
G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS = 98,
G_UNICODE_SCRIPT_MIAO = 99,
G_UNICODE_SCRIPT_SHARADA = 100,
G_UNICODE_SCRIPT_SORA_SOMPENG = 101,
G_UNICODE_SCRIPT_TAKRI = 102,
G_UNICODE_SCRIPT_BASSA_VAH = 103,
G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN = 104,
G_UNICODE_SCRIPT_DUPLOYAN = 105,
G_UNICODE_SCRIPT_ELBASAN = 106,
G_UNICODE_SCRIPT_GRANTHA = 107,
G_UNICODE_SCRIPT_KHOJKI = 108,
G_UNICODE_SCRIPT_KHUDAWADI = 109,
G_UNICODE_SCRIPT_LINEAR_A = 110,
G_UNICODE_SCRIPT_MAHAJANI = 111,
G_UNICODE_SCRIPT_MANICHAEAN = 112,
G_UNICODE_SCRIPT_MENDE_KIKAKUI = 113,
G_UNICODE_SCRIPT_MODI = 114,
G_UNICODE_SCRIPT_MRO = 115,
G_UNICODE_SCRIPT_NABATAEAN = 116,
G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN = 117,
G_UNICODE_SCRIPT_OLD_PERMIC = 118,
G_UNICODE_SCRIPT_PAHAWH_HMONG = 119,
G_UNICODE_SCRIPT_PALMYRENE = 120,
G_UNICODE_SCRIPT_PAU_CIN_HAU = 121,
G_UNICODE_SCRIPT_PSALTER_PAHLAVI = 122,
G_UNICODE_SCRIPT_SIDDHAM = 123,
G_UNICODE_SCRIPT_TIRHUTA = 124,
G_UNICODE_SCRIPT_WARANG_CITI = 125,
G_UNICODE_SCRIPT_AHOM = 126,
G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS = 127,
G_UNICODE_SCRIPT_HATRAN = 128,
G_UNICODE_SCRIPT_MULTANI = 129,
G_UNICODE_SCRIPT_OLD_HUNGARIAN = 130,
G_UNICODE_SCRIPT_SIGNWRITING = 131,
G_UNICODE_SCRIPT_ADLAM = 132,
G_UNICODE_SCRIPT_BHAIKSUKI = 133,
G_UNICODE_SCRIPT_MARCHEN = 134,
G_UNICODE_SCRIPT_NEWA = 135,
G_UNICODE_SCRIPT_OSAGE = 136,
G_UNICODE_SCRIPT_TANGUT = 137,
G_UNICODE_SCRIPT_MASARAM_GONDI = 138,
G_UNICODE_SCRIPT_NUSHU = 139,
G_UNICODE_SCRIPT_SOYOMBO = 140,
G_UNICODE_SCRIPT_ZANABAZAR_SQUARE = 141,
}
extern "C" {
pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> guint32;
}
extern "C" {
pub fn g_unicode_script_from_iso15924(iso15924: guint32) -> GUnicodeScript;
}
extern "C" {
pub fn g_unichar_isalnum(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isalpha(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_iscntrl(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isdigit(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isgraph(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_islower(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isprint(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_ispunct(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isspace(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isupper(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isxdigit(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_istitle(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_isdefined(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_iswide(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_iswide_cjk(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_iszerowidth(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_ismark(c: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_toupper(c: gunichar) -> gunichar;
}
extern "C" {
pub fn g_unichar_tolower(c: gunichar) -> gunichar;
}
extern "C" {
pub fn g_unichar_totitle(c: gunichar) -> gunichar;
}
extern "C" {
pub fn g_unichar_digit_value(c: gunichar) -> gint;
}
extern "C" {
pub fn g_unichar_xdigit_value(c: gunichar) -> gint;
}
extern "C" {
pub fn g_unichar_type(c: gunichar) -> GUnicodeType;
}
extern "C" {
pub fn g_unichar_break_type(c: gunichar) -> GUnicodeBreakType;
}
extern "C" {
pub fn g_unichar_combining_class(uc: gunichar) -> gint;
}
extern "C" {
pub fn g_unichar_get_mirror_char(ch: gunichar, mirrored_ch: *mut gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_get_script(ch: gunichar) -> GUnicodeScript;
}
extern "C" {
pub fn g_unichar_validate(ch: gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_compose(a: gunichar, b: gunichar, ch: *mut gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_decompose(ch: gunichar, a: *mut gunichar, b: *mut gunichar) -> gboolean;
}
extern "C" {
pub fn g_unichar_fully_decompose(
ch: gunichar,
compat: gboolean,
result: *mut gunichar,
result_len: gsize,
) -> gsize;
}
extern "C" {
pub fn g_unicode_canonical_ordering(string: *mut gunichar, len: gsize);
}
extern "C" {
pub fn g_unicode_canonical_decomposition(ch: gunichar, result_len: *mut gsize)
-> *mut gunichar;
}
extern "C" {
pub static g_utf8_skip: *const gchar;
}
extern "C" {
pub fn g_utf8_get_char(p: *const gchar) -> gunichar;
}
extern "C" {
pub fn g_utf8_get_char_validated(p: *const gchar, max_len: gssize) -> gunichar;
}
extern "C" {
pub fn g_utf8_offset_to_pointer(str: *const gchar, offset: glong) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_pointer_to_offset(str: *const gchar, pos: *const gchar) -> glong;
}
extern "C" {
pub fn g_utf8_prev_char(p: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_find_next_char(p: *const gchar, end: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_find_prev_char(str: *const gchar, p: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strlen(p: *const gchar, max: gssize) -> glong;
}
extern "C" {
pub fn g_utf8_substring(str: *const gchar, start_pos: glong, end_pos: glong) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strncpy(dest: *mut gchar, src: *const gchar, n: gsize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strrchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strreverse(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_to_utf16(
str: *const gchar,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gunichar2;
}
extern "C" {
pub fn g_utf8_to_ucs4(
str: *const gchar,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gunichar;
}
extern "C" {
pub fn g_utf8_to_ucs4_fast(
str: *const gchar,
len: glong,
items_written: *mut glong,
) -> *mut gunichar;
}
extern "C" {
pub fn g_utf16_to_ucs4(
str: *const gunichar2,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gunichar;
}
extern "C" {
pub fn g_utf16_to_utf8(
str: *const gunichar2,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_ucs4_to_utf16(
str: *const gunichar,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gunichar2;
}
extern "C" {
pub fn g_ucs4_to_utf8(
str: *const gunichar,
len: glong,
items_read: *mut glong,
items_written: *mut glong,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_unichar_to_utf8(c: gunichar, outbuf: *mut gchar) -> gint;
}
extern "C" {
pub fn g_utf8_validate(str: *const gchar, max_len: gssize, end: *mut *const gchar) -> gboolean;
}
extern "C" {
pub fn g_utf8_strup(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_strdown(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_casefold(str: *const gchar, len: gssize) -> *mut gchar;
}
impl GNormalizeMode {
pub const G_NORMALIZE_NFD: GNormalizeMode = GNormalizeMode::G_NORMALIZE_DEFAULT;
}
impl GNormalizeMode {
pub const G_NORMALIZE_NFC: GNormalizeMode = GNormalizeMode::G_NORMALIZE_DEFAULT_COMPOSE;
}
impl GNormalizeMode {
pub const G_NORMALIZE_NFKD: GNormalizeMode = GNormalizeMode::G_NORMALIZE_ALL;
}
impl GNormalizeMode {
pub const G_NORMALIZE_NFKC: GNormalizeMode = GNormalizeMode::G_NORMALIZE_ALL_COMPOSE;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GNormalizeMode {
G_NORMALIZE_DEFAULT = 0,
G_NORMALIZE_DEFAULT_COMPOSE = 1,
G_NORMALIZE_ALL = 2,
G_NORMALIZE_ALL_COMPOSE = 3,
}
extern "C" {
pub fn g_utf8_normalize(str: *const gchar, len: gssize, mode: GNormalizeMode) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_collate(str1: *const gchar, str2: *const gchar) -> gint;
}
extern "C" {
pub fn g_utf8_collate_key(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_collate_key_for_filename(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_utf8_make_valid(str: *const gchar, len: gssize) -> *mut gchar;
}
pub type GString = _GString;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GString {
pub str: *mut gchar,
pub len: gsize,
pub allocated_len: gsize,
}
#[test]
fn bindgen_test_layout__GString() {
assert_eq!(
::std::mem::size_of::<_GString>(),
24usize,
concat!("Size of: ", stringify!(_GString))
);
assert_eq!(
::std::mem::align_of::<_GString>(),
8usize,
concat!("Alignment of ", stringify!(_GString))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GString>())).str as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GString), "::", stringify!(str))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GString>())).len as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GString), "::", stringify!(len))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GString>())).allocated_len as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GString), "::", stringify!(allocated_len))
);
}
extern "C" {
pub fn g_string_new(init: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_new_len(init: *const gchar, len: gssize) -> *mut GString;
}
extern "C" {
pub fn g_string_sized_new(dfl_size: gsize) -> *mut GString;
}
extern "C" {
pub fn g_string_free(string: *mut GString, free_segment: gboolean) -> *mut gchar;
}
extern "C" {
pub fn g_string_free_to_bytes(string: *mut GString) -> *mut GBytes;
}
extern "C" {
pub fn g_string_equal(v: *const GString, v2: *const GString) -> gboolean;
}
extern "C" {
pub fn g_string_hash(str: *const GString) -> guint;
}
extern "C" {
pub fn g_string_assign(string: *mut GString, rval: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_truncate(string: *mut GString, len: gsize) -> *mut GString;
}
extern "C" {
pub fn g_string_set_size(string: *mut GString, len: gsize) -> *mut GString;
}
extern "C" {
pub fn g_string_insert_len(
string: *mut GString,
pos: gssize,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
extern "C" {
pub fn g_string_append(string: *mut GString, val: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_append_len(
string: *mut GString,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
extern "C" {
pub fn g_string_append_c(string: *mut GString, c: gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_append_unichar(string: *mut GString, wc: gunichar) -> *mut GString;
}
extern "C" {
pub fn g_string_prepend(string: *mut GString, val: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_prepend_c(string: *mut GString, c: gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_prepend_unichar(string: *mut GString, wc: gunichar) -> *mut GString;
}
extern "C" {
pub fn g_string_prepend_len(
string: *mut GString,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
extern "C" {
pub fn g_string_insert(string: *mut GString, pos: gssize, val: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_insert_c(string: *mut GString, pos: gssize, c: gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_insert_unichar(string: *mut GString, pos: gssize, wc: gunichar)
-> *mut GString;
}
extern "C" {
pub fn g_string_overwrite(string: *mut GString, pos: gsize, val: *const gchar) -> *mut GString;
}
extern "C" {
pub fn g_string_overwrite_len(
string: *mut GString,
pos: gsize,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
extern "C" {
pub fn g_string_erase(string: *mut GString, pos: gssize, len: gssize) -> *mut GString;
}
extern "C" {
pub fn g_string_ascii_down(string: *mut GString) -> *mut GString;
}
extern "C" {
pub fn g_string_ascii_up(string: *mut GString) -> *mut GString;
}
extern "C" {
pub fn g_string_vprintf(string: *mut GString, format: *const gchar, args: *mut __va_list_tag);
}
extern "C" {
pub fn g_string_printf(string: *mut GString, format: *const gchar, ...);
}
extern "C" {
pub fn g_string_append_vprintf(
string: *mut GString,
format: *const gchar,
args: *mut __va_list_tag,
);
}
extern "C" {
pub fn g_string_append_printf(string: *mut GString, format: *const gchar, ...);
}
extern "C" {
pub fn g_string_append_uri_escaped(
string: *mut GString,
unescaped: *const gchar,
reserved_chars_allowed: *const gchar,
allow_utf8: gboolean,
) -> *mut GString;
}
extern "C" {
pub fn g_string_down(string: *mut GString) -> *mut GString;
}
extern "C" {
pub fn g_string_up(string: *mut GString) -> *mut GString;
}
pub type GIOChannel = _GIOChannel;
pub type GIOFuncs = _GIOFuncs;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GIOError {
G_IO_ERROR_NONE = 0,
G_IO_ERROR_AGAIN = 1,
G_IO_ERROR_INVAL = 2,
G_IO_ERROR_UNKNOWN = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GIOChannelError {
G_IO_CHANNEL_ERROR_FBIG = 0,
G_IO_CHANNEL_ERROR_INVAL = 1,
G_IO_CHANNEL_ERROR_IO = 2,
G_IO_CHANNEL_ERROR_ISDIR = 3,
G_IO_CHANNEL_ERROR_NOSPC = 4,
G_IO_CHANNEL_ERROR_NXIO = 5,
G_IO_CHANNEL_ERROR_OVERFLOW = 6,
G_IO_CHANNEL_ERROR_PIPE = 7,
G_IO_CHANNEL_ERROR_FAILED = 8,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GIOStatus {
G_IO_STATUS_ERROR = 0,
G_IO_STATUS_NORMAL = 1,
G_IO_STATUS_EOF = 2,
G_IO_STATUS_AGAIN = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSeekType {
G_SEEK_CUR = 0,
G_SEEK_SET = 1,
G_SEEK_END = 2,
}
impl GIOFlags {
pub const G_IO_FLAG_IS_WRITEABLE: GIOFlags = GIOFlags::G_IO_FLAG_IS_WRITABLE;
}
impl GIOFlags {
pub const G_IO_FLAG_GET_MASK: GIOFlags = GIOFlags::G_IO_FLAG_MASK;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GIOFlags {
G_IO_FLAG_APPEND = 1,
G_IO_FLAG_NONBLOCK = 2,
G_IO_FLAG_IS_READABLE = 4,
G_IO_FLAG_IS_WRITABLE = 8,
G_IO_FLAG_IS_SEEKABLE = 16,
G_IO_FLAG_MASK = 31,
G_IO_FLAG_SET_MASK = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOChannel {
pub ref_count: gint,
pub funcs: *mut GIOFuncs,
pub encoding: *mut gchar,
pub read_cd: GIConv,
pub write_cd: GIConv,
pub line_term: *mut gchar,
pub line_term_len: guint,
pub buf_size: gsize,
pub read_buf: *mut GString,
pub encoded_read_buf: *mut GString,
pub write_buf: *mut GString,
pub partial_write_buf: [gchar; 6usize],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
pub reserved1: gpointer,
pub reserved2: gpointer,
}
#[test]
fn bindgen_test_layout__GIOChannel() {
assert_eq!(
::std::mem::size_of::<_GIOChannel>(),
112usize,
concat!("Size of: ", stringify!(_GIOChannel))
);
assert_eq!(
::std::mem::align_of::<_GIOChannel>(),
8usize,
concat!("Alignment of ", stringify!(_GIOChannel))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).ref_count as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).funcs as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(funcs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).encoding as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(encoding))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).read_cd as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(read_cd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).write_cd as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(write_cd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).line_term as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(line_term))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).line_term_len as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(line_term_len))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).buf_size as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(buf_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).read_buf as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(read_buf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).encoded_read_buf as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(encoded_read_buf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).write_buf as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(write_buf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).partial_write_buf as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(partial_write_buf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).reserved1 as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(reserved1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOChannel>())).reserved2 as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_GIOChannel), "::", stringify!(reserved2))
);
}
impl _GIOChannel {
#[inline]
pub fn use_buffer(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_use_buffer(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn do_encode(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set_do_encode(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn close_on_unref(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
}
#[inline]
pub fn set_close_on_unref(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn is_readable(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
}
#[inline]
pub fn set_is_readable(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn is_writeable(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
}
#[inline]
pub fn set_is_writeable(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn is_seekable(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
}
#[inline]
pub fn set_is_seekable(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
use_buffer: guint,
do_encode: guint,
close_on_unref: guint,
is_readable: guint,
is_writeable: guint,
is_seekable: guint,
) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let use_buffer: u32 = unsafe { ::std::mem::transmute(use_buffer) };
use_buffer as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let do_encode: u32 = unsafe { ::std::mem::transmute(do_encode) };
do_encode as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let close_on_unref: u32 = unsafe { ::std::mem::transmute(close_on_unref) };
close_on_unref as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let is_readable: u32 = unsafe { ::std::mem::transmute(is_readable) };
is_readable as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let is_writeable: u32 = unsafe { ::std::mem::transmute(is_writeable) };
is_writeable as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let is_seekable: u32 = unsafe { ::std::mem::transmute(is_seekable) };
is_seekable as u64
});
__bindgen_bitfield_unit
}
}
pub type GIOFunc = ::std::option::Option<
unsafe extern "C" fn(
source: *mut GIOChannel,
condition: GIOCondition,
data: gpointer,
) -> gboolean,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOFuncs {
pub io_read: ::std::option::Option<
unsafe extern "C" fn(
channel: *mut GIOChannel,
buf: *mut gchar,
count: gsize,
bytes_read: *mut gsize,
err: *mut *mut GError,
) -> GIOStatus,
>,
pub io_write: ::std::option::Option<
unsafe extern "C" fn(
channel: *mut GIOChannel,
buf: *const gchar,
count: gsize,
bytes_written: *mut gsize,
err: *mut *mut GError,
) -> GIOStatus,
>,
pub io_seek: ::std::option::Option<
unsafe extern "C" fn(
channel: *mut GIOChannel,
offset: gint64,
type_: GSeekType,
err: *mut *mut GError,
) -> GIOStatus,
>,
pub io_close: ::std::option::Option<
unsafe extern "C" fn(channel: *mut GIOChannel, err: *mut *mut GError) -> GIOStatus,
>,
pub io_create_watch: ::std::option::Option<
unsafe extern "C" fn(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource,
>,
pub io_free: ::std::option::Option<unsafe extern "C" fn(channel: *mut GIOChannel)>,
pub io_set_flags: ::std::option::Option<
unsafe extern "C" fn(
channel: *mut GIOChannel,
flags: GIOFlags,
err: *mut *mut GError,
) -> GIOStatus,
>,
pub io_get_flags:
::std::option::Option<unsafe extern "C" fn(channel: *mut GIOChannel) -> GIOFlags>,
}
#[test]
fn bindgen_test_layout__GIOFuncs() {
assert_eq!(
::std::mem::size_of::<_GIOFuncs>(),
64usize,
concat!("Size of: ", stringify!(_GIOFuncs))
);
assert_eq!(
::std::mem::align_of::<_GIOFuncs>(),
8usize,
concat!("Alignment of ", stringify!(_GIOFuncs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_read as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_read))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_write as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_write))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_seek as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_seek))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_close as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_close))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_create_watch as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_create_watch))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_free as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_free))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_set_flags as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_set_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GIOFuncs>())).io_get_flags as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_get_flags))
);
}
extern "C" {
pub fn g_io_channel_init(channel: *mut GIOChannel);
}
extern "C" {
pub fn g_io_channel_ref(channel: *mut GIOChannel) -> *mut GIOChannel;
}
extern "C" {
pub fn g_io_channel_unref(channel: *mut GIOChannel);
}
extern "C" {
pub fn g_io_channel_read(
channel: *mut GIOChannel,
buf: *mut gchar,
count: gsize,
bytes_read: *mut gsize,
) -> GIOError;
}
extern "C" {
pub fn g_io_channel_write(
channel: *mut GIOChannel,
buf: *const gchar,
count: gsize,
bytes_written: *mut gsize,
) -> GIOError;
}
extern "C" {
pub fn g_io_channel_seek(
channel: *mut GIOChannel,
offset: gint64,
type_: GSeekType,
) -> GIOError;
}
extern "C" {
pub fn g_io_channel_close(channel: *mut GIOChannel);
}
extern "C" {
pub fn g_io_channel_shutdown(
channel: *mut GIOChannel,
flush: gboolean,
err: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_add_watch_full(
channel: *mut GIOChannel,
priority: gint,
condition: GIOCondition,
func: GIOFunc,
user_data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_io_create_watch(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource;
}
extern "C" {
pub fn g_io_add_watch(
channel: *mut GIOChannel,
condition: GIOCondition,
func: GIOFunc,
user_data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_io_channel_set_buffer_size(channel: *mut GIOChannel, size: gsize);
}
extern "C" {
pub fn g_io_channel_get_buffer_size(channel: *mut GIOChannel) -> gsize;
}
extern "C" {
pub fn g_io_channel_get_buffer_condition(channel: *mut GIOChannel) -> GIOCondition;
}
extern "C" {
pub fn g_io_channel_set_flags(
channel: *mut GIOChannel,
flags: GIOFlags,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_get_flags(channel: *mut GIOChannel) -> GIOFlags;
}
extern "C" {
pub fn g_io_channel_set_line_term(
channel: *mut GIOChannel,
line_term: *const gchar,
length: gint,
);
}
extern "C" {
pub fn g_io_channel_get_line_term(channel: *mut GIOChannel, length: *mut gint) -> *const gchar;
}
extern "C" {
pub fn g_io_channel_set_buffered(channel: *mut GIOChannel, buffered: gboolean);
}
extern "C" {
pub fn g_io_channel_get_buffered(channel: *mut GIOChannel) -> gboolean;
}
extern "C" {
pub fn g_io_channel_set_encoding(
channel: *mut GIOChannel,
encoding: *const gchar,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_get_encoding(channel: *mut GIOChannel) -> *const gchar;
}
extern "C" {
pub fn g_io_channel_set_close_on_unref(channel: *mut GIOChannel, do_close: gboolean);
}
extern "C" {
pub fn g_io_channel_get_close_on_unref(channel: *mut GIOChannel) -> gboolean;
}
extern "C" {
pub fn g_io_channel_flush(channel: *mut GIOChannel, error: *mut *mut GError) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_read_line(
channel: *mut GIOChannel,
str_return: *mut *mut gchar,
length: *mut gsize,
terminator_pos: *mut gsize,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_read_line_string(
channel: *mut GIOChannel,
buffer: *mut GString,
terminator_pos: *mut gsize,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_read_to_end(
channel: *mut GIOChannel,
str_return: *mut *mut gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_read_chars(
channel: *mut GIOChannel,
buf: *mut gchar,
count: gsize,
bytes_read: *mut gsize,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_read_unichar(
channel: *mut GIOChannel,
thechar: *mut gunichar,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_write_chars(
channel: *mut GIOChannel,
buf: *const gchar,
count: gssize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_write_unichar(
channel: *mut GIOChannel,
thechar: gunichar,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_seek_position(
channel: *mut GIOChannel,
offset: gint64,
type_: GSeekType,
error: *mut *mut GError,
) -> GIOStatus;
}
extern "C" {
pub fn g_io_channel_new_file(
filename: *const gchar,
mode: *const gchar,
error: *mut *mut GError,
) -> *mut GIOChannel;
}
extern "C" {
pub fn g_io_channel_error_quark() -> GQuark;
}
extern "C" {
pub fn g_io_channel_error_from_errno(en: gint) -> GIOChannelError;
}
extern "C" {
pub fn g_io_channel_unix_new(fd: ::std::os::raw::c_int) -> *mut GIOChannel;
}
extern "C" {
pub fn g_io_channel_unix_get_fd(channel: *mut GIOChannel) -> gint;
}
extern "C" {
pub static mut g_io_watch_funcs: GSourceFuncs;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GKeyFileError {
G_KEY_FILE_ERROR_UNKNOWN_ENCODING = 0,
G_KEY_FILE_ERROR_PARSE = 1,
G_KEY_FILE_ERROR_NOT_FOUND = 2,
G_KEY_FILE_ERROR_KEY_NOT_FOUND = 3,
G_KEY_FILE_ERROR_GROUP_NOT_FOUND = 4,
G_KEY_FILE_ERROR_INVALID_VALUE = 5,
}
extern "C" {
pub fn g_key_file_error_quark() -> GQuark;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GKeyFile {
_unused: [u8; 0],
}
pub type GKeyFile = _GKeyFile;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GKeyFileFlags {
G_KEY_FILE_NONE = 0,
G_KEY_FILE_KEEP_COMMENTS = 1,
G_KEY_FILE_KEEP_TRANSLATIONS = 2,
}
extern "C" {
pub fn g_key_file_new() -> *mut GKeyFile;
}
extern "C" {
pub fn g_key_file_ref(key_file: *mut GKeyFile) -> *mut GKeyFile;
}
extern "C" {
pub fn g_key_file_unref(key_file: *mut GKeyFile);
}
extern "C" {
pub fn g_key_file_free(key_file: *mut GKeyFile);
}
extern "C" {
pub fn g_key_file_set_list_separator(key_file: *mut GKeyFile, separator: gchar);
}
extern "C" {
pub fn g_key_file_load_from_file(
key_file: *mut GKeyFile,
file: *const gchar,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_load_from_data(
key_file: *mut GKeyFile,
data: *const gchar,
length: gsize,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_load_from_bytes(
key_file: *mut GKeyFile,
bytes: *mut GBytes,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_load_from_dirs(
key_file: *mut GKeyFile,
file: *const gchar,
search_dirs: *mut *const gchar,
full_path: *mut *mut gchar,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_load_from_data_dirs(
key_file: *mut GKeyFile,
file: *const gchar,
full_path: *mut *mut gchar,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_to_data(
key_file: *mut GKeyFile,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_save_to_file(
key_file: *mut GKeyFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_get_start_group(key_file: *mut GKeyFile) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_get_groups(key_file: *mut GKeyFile, length: *mut gsize) -> *mut *mut gchar;
}
extern "C" {
pub fn g_key_file_get_keys(
key_file: *mut GKeyFile,
group_name: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_key_file_has_group(key_file: *mut GKeyFile, group_name: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_key_file_has_key(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_get_value(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_set_value(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: *const gchar,
);
}
extern "C" {
pub fn g_key_file_get_string(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_set_string(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
string: *const gchar,
);
}
extern "C" {
pub fn g_key_file_get_locale_string(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
locale: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_get_locale_for_key(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
locale: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_set_locale_string(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
locale: *const gchar,
string: *const gchar,
);
}
extern "C" {
pub fn g_key_file_get_boolean(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_set_boolean(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gboolean,
);
}
extern "C" {
pub fn g_key_file_get_integer(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gint;
}
extern "C" {
pub fn g_key_file_set_integer(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gint,
);
}
extern "C" {
pub fn g_key_file_get_int64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gint64;
}
extern "C" {
pub fn g_key_file_set_int64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gint64,
);
}
extern "C" {
pub fn g_key_file_get_uint64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> guint64;
}
extern "C" {
pub fn g_key_file_set_uint64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: guint64,
);
}
extern "C" {
pub fn g_key_file_get_double(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gdouble;
}
extern "C" {
pub fn g_key_file_set_double(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gdouble,
);
}
extern "C" {
pub fn g_key_file_get_string_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_key_file_set_string_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
list: *const *const gchar,
length: gsize,
);
}
extern "C" {
pub fn g_key_file_get_locale_string_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
locale: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_key_file_set_locale_string_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
locale: *const gchar,
list: *const *const gchar,
length: gsize,
);
}
extern "C" {
pub fn g_key_file_get_boolean_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gboolean;
}
extern "C" {
pub fn g_key_file_set_boolean_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
list: *mut gboolean,
length: gsize,
);
}
extern "C" {
pub fn g_key_file_get_integer_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gint;
}
extern "C" {
pub fn g_key_file_set_double_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
list: *mut gdouble,
length: gsize,
);
}
extern "C" {
pub fn g_key_file_get_double_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gdouble;
}
extern "C" {
pub fn g_key_file_set_integer_list(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
list: *mut gint,
length: gsize,
);
}
extern "C" {
pub fn g_key_file_set_comment(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
comment: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_get_comment(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_key_file_remove_comment(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_remove_key(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_key_file_remove_group(
key_file: *mut GKeyFile,
group_name: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMappedFile {
_unused: [u8; 0],
}
pub type GMappedFile = _GMappedFile;
extern "C" {
pub fn g_mapped_file_new(
filename: *const gchar,
writable: gboolean,
error: *mut *mut GError,
) -> *mut GMappedFile;
}
extern "C" {
pub fn g_mapped_file_new_from_fd(
fd: gint,
writable: gboolean,
error: *mut *mut GError,
) -> *mut GMappedFile;
}
extern "C" {
pub fn g_mapped_file_get_length(file: *mut GMappedFile) -> gsize;
}
extern "C" {
pub fn g_mapped_file_get_contents(file: *mut GMappedFile) -> *mut gchar;
}
extern "C" {
pub fn g_mapped_file_get_bytes(file: *mut GMappedFile) -> *mut GBytes;
}
extern "C" {
pub fn g_mapped_file_ref(file: *mut GMappedFile) -> *mut GMappedFile;
}
extern "C" {
pub fn g_mapped_file_unref(file: *mut GMappedFile);
}
extern "C" {
pub fn g_mapped_file_free(file: *mut GMappedFile);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GMarkupError {
G_MARKUP_ERROR_BAD_UTF8 = 0,
G_MARKUP_ERROR_EMPTY = 1,
G_MARKUP_ERROR_PARSE = 2,
G_MARKUP_ERROR_UNKNOWN_ELEMENT = 3,
G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE = 4,
G_MARKUP_ERROR_INVALID_CONTENT = 5,
G_MARKUP_ERROR_MISSING_ATTRIBUTE = 6,
}
extern "C" {
pub fn g_markup_error_quark() -> GQuark;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GMarkupParseFlags {
G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1,
G_MARKUP_TREAT_CDATA_AS_TEXT = 2,
G_MARKUP_PREFIX_ERROR_POSITION = 4,
G_MARKUP_IGNORE_QUALIFIED = 8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMarkupParseContext {
_unused: [u8; 0],
}
pub type GMarkupParseContext = _GMarkupParseContext;
pub type GMarkupParser = _GMarkupParser;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMarkupParser {
pub start_element: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GMarkupParseContext,
element_name: *const gchar,
attribute_names: *mut *const gchar,
attribute_values: *mut *const gchar,
user_data: gpointer,
error: *mut *mut GError,
),
>,
pub end_element: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GMarkupParseContext,
element_name: *const gchar,
user_data: gpointer,
error: *mut *mut GError,
),
>,
pub text: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GMarkupParseContext,
text: *const gchar,
text_len: gsize,
user_data: gpointer,
error: *mut *mut GError,
),
>,
pub passthrough: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GMarkupParseContext,
passthrough_text: *const gchar,
text_len: gsize,
user_data: gpointer,
error: *mut *mut GError,
),
>,
pub error: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GMarkupParseContext,
error: *mut GError,
user_data: gpointer,
),
>,
}
#[test]
fn bindgen_test_layout__GMarkupParser() {
assert_eq!(
::std::mem::size_of::<_GMarkupParser>(),
40usize,
concat!("Size of: ", stringify!(_GMarkupParser))
);
assert_eq!(
::std::mem::align_of::<_GMarkupParser>(),
8usize,
concat!("Alignment of ", stringify!(_GMarkupParser))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMarkupParser>())).start_element as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(start_element))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMarkupParser>())).end_element as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(end_element))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMarkupParser>())).text as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(text))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMarkupParser>())).passthrough as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(passthrough))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GMarkupParser>())).error as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(error))
);
}
extern "C" {
pub fn g_markup_parse_context_new(
parser: *const GMarkupParser,
flags: GMarkupParseFlags,
user_data: gpointer,
user_data_dnotify: GDestroyNotify,
) -> *mut GMarkupParseContext;
}
extern "C" {
pub fn g_markup_parse_context_ref(
context: *mut GMarkupParseContext,
) -> *mut GMarkupParseContext;
}
extern "C" {
pub fn g_markup_parse_context_unref(context: *mut GMarkupParseContext);
}
extern "C" {
pub fn g_markup_parse_context_free(context: *mut GMarkupParseContext);
}
extern "C" {
pub fn g_markup_parse_context_parse(
context: *mut GMarkupParseContext,
text: *const gchar,
text_len: gssize,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_markup_parse_context_push(
context: *mut GMarkupParseContext,
parser: *const GMarkupParser,
user_data: gpointer,
);
}
extern "C" {
pub fn g_markup_parse_context_pop(context: *mut GMarkupParseContext) -> gpointer;
}
extern "C" {
pub fn g_markup_parse_context_end_parse(
context: *mut GMarkupParseContext,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_markup_parse_context_get_element(context: *mut GMarkupParseContext) -> *const gchar;
}
extern "C" {
pub fn g_markup_parse_context_get_element_stack(
context: *mut GMarkupParseContext,
) -> *const GSList;
}
extern "C" {
pub fn g_markup_parse_context_get_position(
context: *mut GMarkupParseContext,
line_number: *mut gint,
char_number: *mut gint,
);
}
extern "C" {
pub fn g_markup_parse_context_get_user_data(context: *mut GMarkupParseContext) -> gpointer;
}
extern "C" {
pub fn g_markup_escape_text(text: *const gchar, length: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_markup_printf_escaped(format: *const ::std::os::raw::c_char, ...) -> *mut gchar;
}
extern "C" {
pub fn g_markup_vprintf_escaped(
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
) -> *mut gchar;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GMarkupCollectType {
G_MARKUP_COLLECT_INVALID = 0,
G_MARKUP_COLLECT_STRING = 1,
G_MARKUP_COLLECT_STRDUP = 2,
G_MARKUP_COLLECT_BOOLEAN = 3,
G_MARKUP_COLLECT_TRISTATE = 4,
G_MARKUP_COLLECT_OPTIONAL = 65536,
}
extern "C" {
pub fn g_markup_collect_attributes(
element_name: *const gchar,
attribute_names: *mut *const gchar,
attribute_values: *mut *const gchar,
error: *mut *mut GError,
first_type: GMarkupCollectType,
first_attr: *const gchar,
...
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVariantType {
_unused: [u8; 0],
}
pub type GVariantType = _GVariantType;
extern "C" {
pub fn g_variant_type_string_is_valid(type_string: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_variant_type_string_scan(
string: *const gchar,
limit: *const gchar,
endptr: *mut *const gchar,
) -> gboolean;
}
extern "C" {
pub fn g_variant_type_free(type_: *mut GVariantType);
}
extern "C" {
pub fn g_variant_type_copy(type_: *const GVariantType) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_new(type_string: *const gchar) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_get_string_length(type_: *const GVariantType) -> gsize;
}
extern "C" {
pub fn g_variant_type_peek_string(type_: *const GVariantType) -> *const gchar;
}
extern "C" {
pub fn g_variant_type_dup_string(type_: *const GVariantType) -> *mut gchar;
}
extern "C" {
pub fn g_variant_type_is_definite(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_container(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_basic(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_maybe(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_array(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_tuple(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_dict_entry(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_variant(type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_type_hash(type_: gconstpointer) -> guint;
}
extern "C" {
pub fn g_variant_type_equal(type1: gconstpointer, type2: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_variant_type_is_subtype_of(
type_: *const GVariantType,
supertype: *const GVariantType,
) -> gboolean;
}
extern "C" {
pub fn g_variant_type_element(type_: *const GVariantType) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_first(type_: *const GVariantType) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_next(type_: *const GVariantType) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_n_items(type_: *const GVariantType) -> gsize;
}
extern "C" {
pub fn g_variant_type_key(type_: *const GVariantType) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_value(type_: *const GVariantType) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_new_array(element: *const GVariantType) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_new_maybe(element: *const GVariantType) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_new_tuple(
items: *const *const GVariantType,
length: gint,
) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_new_dict_entry(
key: *const GVariantType,
value: *const GVariantType,
) -> *mut GVariantType;
}
extern "C" {
pub fn g_variant_type_checked_(arg1: *const gchar) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_type_string_get_depth_(type_string: *const gchar) -> gsize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVariant {
_unused: [u8; 0],
}
pub type GVariant = _GVariant;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GVariantClass {
G_VARIANT_CLASS_BOOLEAN = 98,
G_VARIANT_CLASS_BYTE = 121,
G_VARIANT_CLASS_INT16 = 110,
G_VARIANT_CLASS_UINT16 = 113,
G_VARIANT_CLASS_INT32 = 105,
G_VARIANT_CLASS_UINT32 = 117,
G_VARIANT_CLASS_INT64 = 120,
G_VARIANT_CLASS_UINT64 = 116,
G_VARIANT_CLASS_HANDLE = 104,
G_VARIANT_CLASS_DOUBLE = 100,
G_VARIANT_CLASS_STRING = 115,
G_VARIANT_CLASS_OBJECT_PATH = 111,
G_VARIANT_CLASS_SIGNATURE = 103,
G_VARIANT_CLASS_VARIANT = 118,
G_VARIANT_CLASS_MAYBE = 109,
G_VARIANT_CLASS_ARRAY = 97,
G_VARIANT_CLASS_TUPLE = 40,
G_VARIANT_CLASS_DICT_ENTRY = 123,
}
extern "C" {
pub fn g_variant_unref(value: *mut GVariant);
}
extern "C" {
pub fn g_variant_ref(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_ref_sink(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_is_floating(value: *mut GVariant) -> gboolean;
}
extern "C" {
pub fn g_variant_take_ref(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_type(value: *mut GVariant) -> *const GVariantType;
}
extern "C" {
pub fn g_variant_get_type_string(value: *mut GVariant) -> *const gchar;
}
extern "C" {
pub fn g_variant_is_of_type(value: *mut GVariant, type_: *const GVariantType) -> gboolean;
}
extern "C" {
pub fn g_variant_is_container(value: *mut GVariant) -> gboolean;
}
extern "C" {
pub fn g_variant_classify(value: *mut GVariant) -> GVariantClass;
}
extern "C" {
pub fn g_variant_new_boolean(value: gboolean) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_byte(value: guchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_int16(value: gint16) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_uint16(value: guint16) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_int32(value: gint32) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_uint32(value: guint32) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_int64(value: gint64) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_uint64(value: guint64) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_handle(value: gint32) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_double(value: gdouble) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_string(string: *const gchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_take_string(string: *mut gchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_printf(format_string: *const gchar, ...) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_object_path(object_path: *const gchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_is_object_path(string: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_variant_new_signature(signature: *const gchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_is_signature(string: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_variant_new_variant(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_strv(strv: *const *const gchar, length: gssize) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_objv(strv: *const *const gchar, length: gssize) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_bytestring(string: *const gchar) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_bytestring_array(
strv: *const *const gchar,
length: gssize,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_fixed_array(
element_type: *const GVariantType,
elements: gconstpointer,
n_elements: gsize,
element_size: gsize,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_boolean(value: *mut GVariant) -> gboolean;
}
extern "C" {
pub fn g_variant_get_byte(value: *mut GVariant) -> guchar;
}
extern "C" {
pub fn g_variant_get_int16(value: *mut GVariant) -> gint16;
}
extern "C" {
pub fn g_variant_get_uint16(value: *mut GVariant) -> guint16;
}
extern "C" {
pub fn g_variant_get_int32(value: *mut GVariant) -> gint32;
}
extern "C" {
pub fn g_variant_get_uint32(value: *mut GVariant) -> guint32;
}
extern "C" {
pub fn g_variant_get_int64(value: *mut GVariant) -> gint64;
}
extern "C" {
pub fn g_variant_get_uint64(value: *mut GVariant) -> guint64;
}
extern "C" {
pub fn g_variant_get_handle(value: *mut GVariant) -> gint32;
}
extern "C" {
pub fn g_variant_get_double(value: *mut GVariant) -> gdouble;
}
extern "C" {
pub fn g_variant_get_variant(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_string(value: *mut GVariant, length: *mut gsize) -> *const gchar;
}
extern "C" {
pub fn g_variant_dup_string(value: *mut GVariant, length: *mut gsize) -> *mut gchar;
}
extern "C" {
pub fn g_variant_get_strv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar;
}
extern "C" {
pub fn g_variant_dup_strv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar;
}
extern "C" {
pub fn g_variant_get_objv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar;
}
extern "C" {
pub fn g_variant_dup_objv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar;
}
extern "C" {
pub fn g_variant_get_bytestring(value: *mut GVariant) -> *const gchar;
}
extern "C" {
pub fn g_variant_dup_bytestring(value: *mut GVariant, length: *mut gsize) -> *mut gchar;
}
extern "C" {
pub fn g_variant_get_bytestring_array(
value: *mut GVariant,
length: *mut gsize,
) -> *mut *const gchar;
}
extern "C" {
pub fn g_variant_dup_bytestring_array(
value: *mut GVariant,
length: *mut gsize,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_variant_new_maybe(
child_type: *const GVariantType,
child: *mut GVariant,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_array(
child_type: *const GVariantType,
children: *const *mut GVariant,
n_children: gsize,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: gsize) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_dict_entry(key: *mut GVariant, value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_maybe(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_n_children(value: *mut GVariant) -> gsize;
}
extern "C" {
pub fn g_variant_get_child(
value: *mut GVariant,
index_: gsize,
format_string: *const gchar,
...
);
}
extern "C" {
pub fn g_variant_get_child_value(value: *mut GVariant, index_: gsize) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_lookup(
dictionary: *mut GVariant,
key: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
extern "C" {
pub fn g_variant_lookup_value(
dictionary: *mut GVariant,
key: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_fixed_array(
value: *mut GVariant,
n_elements: *mut gsize,
element_size: gsize,
) -> gconstpointer;
}
extern "C" {
pub fn g_variant_get_size(value: *mut GVariant) -> gsize;
}
extern "C" {
pub fn g_variant_get_data(value: *mut GVariant) -> gconstpointer;
}
extern "C" {
pub fn g_variant_get_data_as_bytes(value: *mut GVariant) -> *mut GBytes;
}
extern "C" {
pub fn g_variant_store(value: *mut GVariant, data: gpointer);
}
extern "C" {
pub fn g_variant_print(value: *mut GVariant, type_annotate: gboolean) -> *mut gchar;
}
extern "C" {
pub fn g_variant_print_string(
value: *mut GVariant,
string: *mut GString,
type_annotate: gboolean,
) -> *mut GString;
}
extern "C" {
pub fn g_variant_hash(value: gconstpointer) -> guint;
}
extern "C" {
pub fn g_variant_equal(one: gconstpointer, two: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_variant_get_normal_form(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_is_normal_form(value: *mut GVariant) -> gboolean;
}
extern "C" {
pub fn g_variant_byteswap(value: *mut GVariant) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_from_bytes(
type_: *const GVariantType,
bytes: *mut GBytes,
trusted: gboolean,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_from_data(
type_: *const GVariantType,
data: gconstpointer,
size: gsize,
trusted: gboolean,
notify: GDestroyNotify,
user_data: gpointer,
) -> *mut GVariant;
}
pub type GVariantIter = _GVariantIter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVariantIter {
pub x: [gsize; 16usize],
}
#[test]
fn bindgen_test_layout__GVariantIter() {
assert_eq!(
::std::mem::size_of::<_GVariantIter>(),
128usize,
concat!("Size of: ", stringify!(_GVariantIter))
);
assert_eq!(
::std::mem::align_of::<_GVariantIter>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantIter))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GVariantIter>())).x as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GVariantIter), "::", stringify!(x))
);
}
extern "C" {
pub fn g_variant_iter_new(value: *mut GVariant) -> *mut GVariantIter;
}
extern "C" {
pub fn g_variant_iter_init(iter: *mut GVariantIter, value: *mut GVariant) -> gsize;
}
extern "C" {
pub fn g_variant_iter_copy(iter: *mut GVariantIter) -> *mut GVariantIter;
}
extern "C" {
pub fn g_variant_iter_n_children(iter: *mut GVariantIter) -> gsize;
}
extern "C" {
pub fn g_variant_iter_free(iter: *mut GVariantIter);
}
extern "C" {
pub fn g_variant_iter_next_value(iter: *mut GVariantIter) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_iter_next(
iter: *mut GVariantIter,
format_string: *const gchar,
...
) -> gboolean;
}
extern "C" {
pub fn g_variant_iter_loop(
iter: *mut GVariantIter,
format_string: *const gchar,
...
) -> gboolean;
}
pub type GVariantBuilder = _GVariantBuilder;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GVariantBuilder {
pub u: _GVariantBuilder__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GVariantBuilder__bindgen_ty_1 {
pub s: _GVariantBuilder__bindgen_ty_1__bindgen_ty_1,
pub x: [gsize; 16usize],
_bindgen_union_align: [u64; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVariantBuilder__bindgen_ty_1__bindgen_ty_1 {
pub partial_magic: gsize,
pub type_: *const GVariantType,
pub y: [gsize; 14usize],
}
#[test]
fn bindgen_test_layout__GVariantBuilder__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>(),
128usize,
concat!("Size of: ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>())).partial_magic
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(partial_magic)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>())).type_
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>())).y as *const _
as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(y)
)
);
}
#[test]
fn bindgen_test_layout__GVariantBuilder__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1>(),
128usize,
concat!("Size of: ", stringify!(_GVariantBuilder__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantBuilder__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantBuilder__bindgen_ty_1>())).s as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GVariantBuilder__bindgen_ty_1),
"::",
stringify!(s)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantBuilder__bindgen_ty_1>())).x as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GVariantBuilder__bindgen_ty_1),
"::",
stringify!(x)
)
);
}
impl ::std::fmt::Debug for _GVariantBuilder__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantBuilder__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout__GVariantBuilder() {
assert_eq!(
::std::mem::size_of::<_GVariantBuilder>(),
128usize,
concat!("Size of: ", stringify!(_GVariantBuilder))
);
assert_eq!(
::std::mem::align_of::<_GVariantBuilder>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantBuilder))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GVariantBuilder>())).u as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GVariantBuilder), "::", stringify!(u))
);
}
impl ::std::fmt::Debug for _GVariantBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantBuilder {{ u: {:?} }}", self.u)
}
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GVariantParseError {
G_VARIANT_PARSE_ERROR_FAILED = 0,
G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED = 1,
G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE = 2,
G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED = 3,
G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END = 4,
G_VARIANT_PARSE_ERROR_INVALID_CHARACTER = 5,
G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING = 6,
G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH = 7,
G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE = 8,
G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING = 9,
G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE = 10,
G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE = 11,
G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG = 12,
G_VARIANT_PARSE_ERROR_TYPE_ERROR = 13,
G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN = 14,
G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD = 15,
G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT = 16,
G_VARIANT_PARSE_ERROR_VALUE_EXPECTED = 17,
}
extern "C" {
pub fn g_variant_parser_get_error_quark() -> GQuark;
}
extern "C" {
pub fn g_variant_parse_error_quark() -> GQuark;
}
extern "C" {
pub fn g_variant_builder_new(type_: *const GVariantType) -> *mut GVariantBuilder;
}
extern "C" {
pub fn g_variant_builder_unref(builder: *mut GVariantBuilder);
}
extern "C" {
pub fn g_variant_builder_ref(builder: *mut GVariantBuilder) -> *mut GVariantBuilder;
}
extern "C" {
pub fn g_variant_builder_init(builder: *mut GVariantBuilder, type_: *const GVariantType);
}
extern "C" {
pub fn g_variant_builder_end(builder: *mut GVariantBuilder) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_builder_clear(builder: *mut GVariantBuilder);
}
extern "C" {
pub fn g_variant_builder_open(builder: *mut GVariantBuilder, type_: *const GVariantType);
}
extern "C" {
pub fn g_variant_builder_close(builder: *mut GVariantBuilder);
}
extern "C" {
pub fn g_variant_builder_add_value(builder: *mut GVariantBuilder, value: *mut GVariant);
}
extern "C" {
pub fn g_variant_builder_add(builder: *mut GVariantBuilder, format_string: *const gchar, ...);
}
extern "C" {
pub fn g_variant_builder_add_parsed(builder: *mut GVariantBuilder, format: *const gchar, ...);
}
extern "C" {
pub fn g_variant_new(format_string: *const gchar, ...) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get(value: *mut GVariant, format_string: *const gchar, ...);
}
extern "C" {
pub fn g_variant_new_va(
format_string: *const gchar,
endptr: *mut *const gchar,
app: *mut va_list,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_get_va(
value: *mut GVariant,
format_string: *const gchar,
endptr: *mut *const gchar,
app: *mut va_list,
);
}
extern "C" {
pub fn g_variant_check_format_string(
value: *mut GVariant,
format_string: *const gchar,
copy_only: gboolean,
) -> gboolean;
}
extern "C" {
pub fn g_variant_parse(
type_: *const GVariantType,
text: *const gchar,
limit: *const gchar,
endptr: *mut *const gchar,
error: *mut *mut GError,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_parsed(format: *const gchar, ...) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_new_parsed_va(format: *const gchar, app: *mut va_list) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_parse_error_print_context(
error: *mut GError,
source_str: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_variant_compare(one: gconstpointer, two: gconstpointer) -> gint;
}
pub type GVariantDict = _GVariantDict;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GVariantDict {
pub u: _GVariantDict__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GVariantDict__bindgen_ty_1 {
pub s: _GVariantDict__bindgen_ty_1__bindgen_ty_1,
pub x: [gsize; 16usize],
_bindgen_union_align: [u64; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVariantDict__bindgen_ty_1__bindgen_ty_1 {
pub asv: *mut GVariant,
pub partial_magic: gsize,
pub y: [gsize; 14usize],
}
#[test]
fn bindgen_test_layout__GVariantDict__bindgen_ty_1__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>(),
128usize,
concat!("Size of: ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>())).asv as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(asv)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>())).partial_magic
as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(partial_magic)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>())).y as *const _
as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(y)
)
);
}
#[test]
fn bindgen_test_layout__GVariantDict__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GVariantDict__bindgen_ty_1>(),
128usize,
concat!("Size of: ", stringify!(_GVariantDict__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GVariantDict__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantDict__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GVariantDict__bindgen_ty_1>())).s as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1), "::", stringify!(s))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GVariantDict__bindgen_ty_1>())).x as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1), "::", stringify!(x))
);
}
impl ::std::fmt::Debug for _GVariantDict__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantDict__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout__GVariantDict() {
assert_eq!(
::std::mem::size_of::<_GVariantDict>(),
128usize,
concat!("Size of: ", stringify!(_GVariantDict))
);
assert_eq!(
::std::mem::align_of::<_GVariantDict>(),
8usize,
concat!("Alignment of ", stringify!(_GVariantDict))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GVariantDict>())).u as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GVariantDict), "::", stringify!(u))
);
}
impl ::std::fmt::Debug for _GVariantDict {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantDict {{ u: {:?} }}", self.u)
}
}
extern "C" {
pub fn g_variant_dict_new(from_asv: *mut GVariant) -> *mut GVariantDict;
}
extern "C" {
pub fn g_variant_dict_init(dict: *mut GVariantDict, from_asv: *mut GVariant);
}
extern "C" {
pub fn g_variant_dict_lookup(
dict: *mut GVariantDict,
key: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
extern "C" {
pub fn g_variant_dict_lookup_value(
dict: *mut GVariantDict,
key: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_dict_contains(dict: *mut GVariantDict, key: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_variant_dict_insert(
dict: *mut GVariantDict,
key: *const gchar,
format_string: *const gchar,
...
);
}
extern "C" {
pub fn g_variant_dict_insert_value(
dict: *mut GVariantDict,
key: *const gchar,
value: *mut GVariant,
);
}
extern "C" {
pub fn g_variant_dict_remove(dict: *mut GVariantDict, key: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_variant_dict_clear(dict: *mut GVariantDict);
}
extern "C" {
pub fn g_variant_dict_end(dict: *mut GVariantDict) -> *mut GVariant;
}
extern "C" {
pub fn g_variant_dict_ref(dict: *mut GVariantDict) -> *mut GVariantDict;
}
extern "C" {
pub fn g_variant_dict_unref(dict: *mut GVariantDict);
}
extern "C" {
pub fn g_printf_string_upper_bound(format: *const gchar, args: *mut __va_list_tag) -> gsize;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GLogLevelFlags {
G_LOG_FLAG_RECURSION = 1,
G_LOG_FLAG_FATAL = 2,
G_LOG_LEVEL_ERROR = 4,
G_LOG_LEVEL_CRITICAL = 8,
G_LOG_LEVEL_WARNING = 16,
G_LOG_LEVEL_MESSAGE = 32,
G_LOG_LEVEL_INFO = 64,
G_LOG_LEVEL_DEBUG = 128,
G_LOG_LEVEL_MASK = -4,
}
pub type GLogFunc = ::std::option::Option<
unsafe extern "C" fn(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
user_data: gpointer,
),
>;
extern "C" {
pub fn g_log_set_handler(
log_domain: *const gchar,
log_levels: GLogLevelFlags,
log_func: GLogFunc,
user_data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_log_set_handler_full(
log_domain: *const gchar,
log_levels: GLogLevelFlags,
log_func: GLogFunc,
user_data: gpointer,
destroy: GDestroyNotify,
) -> guint;
}
extern "C" {
pub fn g_log_remove_handler(log_domain: *const gchar, handler_id: guint);
}
extern "C" {
pub fn g_log_default_handler(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
unused_data: gpointer,
);
}
extern "C" {
pub fn g_log_set_default_handler(log_func: GLogFunc, user_data: gpointer) -> GLogFunc;
}
extern "C" {
pub fn g_log(log_domain: *const gchar, log_level: GLogLevelFlags, format: *const gchar, ...);
}
extern "C" {
pub fn g_logv(
log_domain: *const gchar,
log_level: GLogLevelFlags,
format: *const gchar,
args: *mut __va_list_tag,
);
}
extern "C" {
pub fn g_log_set_fatal_mask(
log_domain: *const gchar,
fatal_mask: GLogLevelFlags,
) -> GLogLevelFlags;
}
extern "C" {
pub fn g_log_set_always_fatal(fatal_mask: GLogLevelFlags) -> GLogLevelFlags;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GLogWriterOutput {
G_LOG_WRITER_HANDLED = 1,
G_LOG_WRITER_UNHANDLED = 0,
}
pub type GLogField = _GLogField;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GLogField {
pub key: *const gchar,
pub value: gconstpointer,
pub length: gssize,
}
#[test]
fn bindgen_test_layout__GLogField() {
assert_eq!(
::std::mem::size_of::<_GLogField>(),
24usize,
concat!("Size of: ", stringify!(_GLogField))
);
assert_eq!(
::std::mem::align_of::<_GLogField>(),
8usize,
concat!("Alignment of ", stringify!(_GLogField))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GLogField>())).key as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GLogField), "::", stringify!(key))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GLogField>())).value as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GLogField), "::", stringify!(value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GLogField>())).length as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GLogField), "::", stringify!(length))
);
}
pub type GLogWriterFunc = ::std::option::Option<
unsafe extern "C" fn(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput,
>;
extern "C" {
pub fn g_log_structured(log_domain: *const gchar, log_level: GLogLevelFlags, ...);
}
extern "C" {
pub fn g_log_structured_array(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
);
}
extern "C" {
pub fn g_log_variant(
log_domain: *const gchar,
log_level: GLogLevelFlags,
fields: *mut GVariant,
);
}
extern "C" {
pub fn g_log_set_writer_func(
func: GLogWriterFunc,
user_data: gpointer,
user_data_free: GDestroyNotify,
);
}
extern "C" {
pub fn g_log_writer_supports_color(output_fd: gint) -> gboolean;
}
extern "C" {
pub fn g_log_writer_is_journald(output_fd: gint) -> gboolean;
}
extern "C" {
pub fn g_log_writer_format_fields(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
use_color: gboolean,
) -> *mut gchar;
}
extern "C" {
pub fn g_log_writer_journald(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
extern "C" {
pub fn g_log_writer_standard_streams(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
extern "C" {
pub fn g_log_writer_default(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
extern "C" {
pub fn _g_log_fallback_handler(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
unused_data: gpointer,
);
}
extern "C" {
pub fn g_return_if_fail_warning(
log_domain: *const ::std::os::raw::c_char,
pretty_function: *const ::std::os::raw::c_char,
expression: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_warn_message(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
warnexpr: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assert_warning(
log_domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
pretty_function: *const ::std::os::raw::c_char,
expression: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_log_structured_standard(
log_domain: *const gchar,
log_level: GLogLevelFlags,
file: *const gchar,
line: *const gchar,
func: *const gchar,
message_format: *const gchar,
...
);
}
pub type GPrintFunc = ::std::option::Option<unsafe extern "C" fn(string: *const gchar)>;
extern "C" {
pub fn g_print(format: *const gchar, ...);
}
extern "C" {
pub fn g_set_print_handler(func: GPrintFunc) -> GPrintFunc;
}
extern "C" {
pub fn g_printerr(format: *const gchar, ...);
}
extern "C" {
pub fn g_set_printerr_handler(func: GPrintFunc) -> GPrintFunc;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GOptionContext {
_unused: [u8; 0],
}
pub type GOptionContext = _GOptionContext;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GOptionGroup {
_unused: [u8; 0],
}
pub type GOptionGroup = _GOptionGroup;
pub type GOptionEntry = _GOptionEntry;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GOptionFlags {
G_OPTION_FLAG_NONE = 0,
G_OPTION_FLAG_HIDDEN = 1,
G_OPTION_FLAG_IN_MAIN = 2,
G_OPTION_FLAG_REVERSE = 4,
G_OPTION_FLAG_NO_ARG = 8,
G_OPTION_FLAG_FILENAME = 16,
G_OPTION_FLAG_OPTIONAL_ARG = 32,
G_OPTION_FLAG_NOALIAS = 64,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GOptionArg {
G_OPTION_ARG_NONE = 0,
G_OPTION_ARG_STRING = 1,
G_OPTION_ARG_INT = 2,
G_OPTION_ARG_CALLBACK = 3,
G_OPTION_ARG_FILENAME = 4,
G_OPTION_ARG_STRING_ARRAY = 5,
G_OPTION_ARG_FILENAME_ARRAY = 6,
G_OPTION_ARG_DOUBLE = 7,
G_OPTION_ARG_INT64 = 8,
}
pub type GOptionArgFunc = ::std::option::Option<
unsafe extern "C" fn(
option_name: *const gchar,
value: *const gchar,
data: gpointer,
error: *mut *mut GError,
) -> gboolean,
>;
pub type GOptionParseFunc = ::std::option::Option<
unsafe extern "C" fn(
context: *mut GOptionContext,
group: *mut GOptionGroup,
data: gpointer,
error: *mut *mut GError,
) -> gboolean,
>;
pub type GOptionErrorFunc = ::std::option::Option<
unsafe extern "C" fn(
context: *mut GOptionContext,
group: *mut GOptionGroup,
data: gpointer,
error: *mut *mut GError,
),
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GOptionError {
G_OPTION_ERROR_UNKNOWN_OPTION = 0,
G_OPTION_ERROR_BAD_VALUE = 1,
G_OPTION_ERROR_FAILED = 2,
}
extern "C" {
pub fn g_option_error_quark() -> GQuark;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GOptionEntry {
pub long_name: *const gchar,
pub short_name: gchar,
pub flags: gint,
pub arg: GOptionArg,
pub arg_data: gpointer,
pub description: *const gchar,
pub arg_description: *const gchar,
}
#[test]
fn bindgen_test_layout__GOptionEntry() {
assert_eq!(
::std::mem::size_of::<_GOptionEntry>(),
48usize,
concat!("Size of: ", stringify!(_GOptionEntry))
);
assert_eq!(
::std::mem::align_of::<_GOptionEntry>(),
8usize,
concat!("Alignment of ", stringify!(_GOptionEntry))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).long_name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(long_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).short_name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(short_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).flags as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).arg as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).arg_data as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).description as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(description))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GOptionEntry>())).arg_description as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg_description))
);
}
extern "C" {
pub fn g_option_context_new(parameter_string: *const gchar) -> *mut GOptionContext;
}
extern "C" {
pub fn g_option_context_set_summary(context: *mut GOptionContext, summary: *const gchar);
}
extern "C" {
pub fn g_option_context_get_summary(context: *mut GOptionContext) -> *const gchar;
}
extern "C" {
pub fn g_option_context_set_description(
context: *mut GOptionContext,
description: *const gchar,
);
}
extern "C" {
pub fn g_option_context_get_description(context: *mut GOptionContext) -> *const gchar;
}
extern "C" {
pub fn g_option_context_free(context: *mut GOptionContext);
}
extern "C" {
pub fn g_option_context_set_help_enabled(context: *mut GOptionContext, help_enabled: gboolean);
}
extern "C" {
pub fn g_option_context_get_help_enabled(context: *mut GOptionContext) -> gboolean;
}
extern "C" {
pub fn g_option_context_set_ignore_unknown_options(
context: *mut GOptionContext,
ignore_unknown: gboolean,
);
}
extern "C" {
pub fn g_option_context_get_ignore_unknown_options(context: *mut GOptionContext) -> gboolean;
}
extern "C" {
pub fn g_option_context_set_strict_posix(context: *mut GOptionContext, strict_posix: gboolean);
}
extern "C" {
pub fn g_option_context_get_strict_posix(context: *mut GOptionContext) -> gboolean;
}
extern "C" {
pub fn g_option_context_add_main_entries(
context: *mut GOptionContext,
entries: *const GOptionEntry,
translation_domain: *const gchar,
);
}
extern "C" {
pub fn g_option_context_parse(
context: *mut GOptionContext,
argc: *mut gint,
argv: *mut *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_option_context_parse_strv(
context: *mut GOptionContext,
arguments: *mut *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_option_context_set_translate_func(
context: *mut GOptionContext,
func: GTranslateFunc,
data: gpointer,
destroy_notify: GDestroyNotify,
);
}
extern "C" {
pub fn g_option_context_set_translation_domain(
context: *mut GOptionContext,
domain: *const gchar,
);
}
extern "C" {
pub fn g_option_context_add_group(context: *mut GOptionContext, group: *mut GOptionGroup);
}
extern "C" {
pub fn g_option_context_set_main_group(context: *mut GOptionContext, group: *mut GOptionGroup);
}
extern "C" {
pub fn g_option_context_get_main_group(context: *mut GOptionContext) -> *mut GOptionGroup;
}
extern "C" {
pub fn g_option_context_get_help(
context: *mut GOptionContext,
main_help: gboolean,
group: *mut GOptionGroup,
) -> *mut gchar;
}
extern "C" {
pub fn g_option_group_new(
name: *const gchar,
description: *const gchar,
help_description: *const gchar,
user_data: gpointer,
destroy: GDestroyNotify,
) -> *mut GOptionGroup;
}
extern "C" {
pub fn g_option_group_set_parse_hooks(
group: *mut GOptionGroup,
pre_parse_func: GOptionParseFunc,
post_parse_func: GOptionParseFunc,
);
}
extern "C" {
pub fn g_option_group_set_error_hook(group: *mut GOptionGroup, error_func: GOptionErrorFunc);
}
extern "C" {
pub fn g_option_group_free(group: *mut GOptionGroup);
}
extern "C" {
pub fn g_option_group_ref(group: *mut GOptionGroup) -> *mut GOptionGroup;
}
extern "C" {
pub fn g_option_group_unref(group: *mut GOptionGroup);
}
extern "C" {
pub fn g_option_group_add_entries(group: *mut GOptionGroup, entries: *const GOptionEntry);
}
extern "C" {
pub fn g_option_group_set_translate_func(
group: *mut GOptionGroup,
func: GTranslateFunc,
data: gpointer,
destroy_notify: GDestroyNotify,
);
}
extern "C" {
pub fn g_option_group_set_translation_domain(group: *mut GOptionGroup, domain: *const gchar);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPatternSpec {
_unused: [u8; 0],
}
pub type GPatternSpec = _GPatternSpec;
extern "C" {
pub fn g_pattern_spec_new(pattern: *const gchar) -> *mut GPatternSpec;
}
extern "C" {
pub fn g_pattern_spec_free(pspec: *mut GPatternSpec);
}
extern "C" {
pub fn g_pattern_spec_equal(pspec1: *mut GPatternSpec, pspec2: *mut GPatternSpec) -> gboolean;
}
extern "C" {
pub fn g_pattern_match(
pspec: *mut GPatternSpec,
string_length: guint,
string: *const gchar,
string_reversed: *const gchar,
) -> gboolean;
}
extern "C" {
pub fn g_pattern_match_string(pspec: *mut GPatternSpec, string: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_pattern_match_simple(pattern: *const gchar, string: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_spaced_primes_closest(num: guint) -> guint;
}
extern "C" {
pub fn g_qsort_with_data(
pbase: gconstpointer,
total_elems: gint,
size: gsize,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
pub type GQueue = _GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GQueue {
pub head: *mut GList,
pub tail: *mut GList,
pub length: guint,
}
#[test]
fn bindgen_test_layout__GQueue() {
assert_eq!(
::std::mem::size_of::<_GQueue>(),
24usize,
concat!("Size of: ", stringify!(_GQueue))
);
assert_eq!(
::std::mem::align_of::<_GQueue>(),
8usize,
concat!("Alignment of ", stringify!(_GQueue))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GQueue>())).head as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GQueue), "::", stringify!(head))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GQueue>())).tail as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GQueue), "::", stringify!(tail))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GQueue>())).length as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GQueue), "::", stringify!(length))
);
}
extern "C" {
pub fn g_queue_new() -> *mut GQueue;
}
extern "C" {
pub fn g_queue_free(queue: *mut GQueue);
}
extern "C" {
pub fn g_queue_free_full(queue: *mut GQueue, free_func: GDestroyNotify);
}
extern "C" {
pub fn g_queue_init(queue: *mut GQueue);
}
extern "C" {
pub fn g_queue_clear(queue: *mut GQueue);
}
extern "C" {
pub fn g_queue_is_empty(queue: *mut GQueue) -> gboolean;
}
extern "C" {
pub fn g_queue_get_length(queue: *mut GQueue) -> guint;
}
extern "C" {
pub fn g_queue_reverse(queue: *mut GQueue);
}
extern "C" {
pub fn g_queue_copy(queue: *mut GQueue) -> *mut GQueue;
}
extern "C" {
pub fn g_queue_foreach(queue: *mut GQueue, func: GFunc, user_data: gpointer);
}
extern "C" {
pub fn g_queue_find(queue: *mut GQueue, data: gconstpointer) -> *mut GList;
}
extern "C" {
pub fn g_queue_find_custom(
queue: *mut GQueue,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GList;
}
extern "C" {
pub fn g_queue_sort(queue: *mut GQueue, compare_func: GCompareDataFunc, user_data: gpointer);
}
extern "C" {
pub fn g_queue_push_head(queue: *mut GQueue, data: gpointer);
}
extern "C" {
pub fn g_queue_push_tail(queue: *mut GQueue, data: gpointer);
}
extern "C" {
pub fn g_queue_push_nth(queue: *mut GQueue, data: gpointer, n: gint);
}
extern "C" {
pub fn g_queue_pop_head(queue: *mut GQueue) -> gpointer;
}
extern "C" {
pub fn g_queue_pop_tail(queue: *mut GQueue) -> gpointer;
}
extern "C" {
pub fn g_queue_pop_nth(queue: *mut GQueue, n: guint) -> gpointer;
}
extern "C" {
pub fn g_queue_peek_head(queue: *mut GQueue) -> gpointer;
}
extern "C" {
pub fn g_queue_peek_tail(queue: *mut GQueue) -> gpointer;
}
extern "C" {
pub fn g_queue_peek_nth(queue: *mut GQueue, n: guint) -> gpointer;
}
extern "C" {
pub fn g_queue_index(queue: *mut GQueue, data: gconstpointer) -> gint;
}
extern "C" {
pub fn g_queue_remove(queue: *mut GQueue, data: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_queue_remove_all(queue: *mut GQueue, data: gconstpointer) -> guint;
}
extern "C" {
pub fn g_queue_insert_before(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
}
extern "C" {
pub fn g_queue_insert_after(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
}
extern "C" {
pub fn g_queue_insert_sorted(
queue: *mut GQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_queue_push_head_link(queue: *mut GQueue, link_: *mut GList);
}
extern "C" {
pub fn g_queue_push_tail_link(queue: *mut GQueue, link_: *mut GList);
}
extern "C" {
pub fn g_queue_push_nth_link(queue: *mut GQueue, n: gint, link_: *mut GList);
}
extern "C" {
pub fn g_queue_pop_head_link(queue: *mut GQueue) -> *mut GList;
}
extern "C" {
pub fn g_queue_pop_tail_link(queue: *mut GQueue) -> *mut GList;
}
extern "C" {
pub fn g_queue_pop_nth_link(queue: *mut GQueue, n: guint) -> *mut GList;
}
extern "C" {
pub fn g_queue_peek_head_link(queue: *mut GQueue) -> *mut GList;
}
extern "C" {
pub fn g_queue_peek_tail_link(queue: *mut GQueue) -> *mut GList;
}
extern "C" {
pub fn g_queue_peek_nth_link(queue: *mut GQueue, n: guint) -> *mut GList;
}
extern "C" {
pub fn g_queue_link_index(queue: *mut GQueue, link_: *mut GList) -> gint;
}
extern "C" {
pub fn g_queue_unlink(queue: *mut GQueue, link_: *mut GList);
}
extern "C" {
pub fn g_queue_delete_link(queue: *mut GQueue, link_: *mut GList);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRand {
_unused: [u8; 0],
}
pub type GRand = _GRand;
extern "C" {
pub fn g_rand_new_with_seed(seed: guint32) -> *mut GRand;
}
extern "C" {
pub fn g_rand_new_with_seed_array(seed: *const guint32, seed_length: guint) -> *mut GRand;
}
extern "C" {
pub fn g_rand_new() -> *mut GRand;
}
extern "C" {
pub fn g_rand_free(rand_: *mut GRand);
}
extern "C" {
pub fn g_rand_copy(rand_: *mut GRand) -> *mut GRand;
}
extern "C" {
pub fn g_rand_set_seed(rand_: *mut GRand, seed: guint32);
}
extern "C" {
pub fn g_rand_set_seed_array(rand_: *mut GRand, seed: *const guint32, seed_length: guint);
}
extern "C" {
pub fn g_rand_int(rand_: *mut GRand) -> guint32;
}
extern "C" {
pub fn g_rand_int_range(rand_: *mut GRand, begin: gint32, end: gint32) -> gint32;
}
extern "C" {
pub fn g_rand_double(rand_: *mut GRand) -> gdouble;
}
extern "C" {
pub fn g_rand_double_range(rand_: *mut GRand, begin: gdouble, end: gdouble) -> gdouble;
}
extern "C" {
pub fn g_random_set_seed(seed: guint32);
}
extern "C" {
pub fn g_random_int() -> guint32;
}
extern "C" {
pub fn g_random_int_range(begin: gint32, end: gint32) -> gint32;
}
extern "C" {
pub fn g_random_double() -> gdouble;
}
extern "C" {
pub fn g_random_double_range(begin: gdouble, end: gdouble) -> gdouble;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GRegexError {
G_REGEX_ERROR_COMPILE = 0,
G_REGEX_ERROR_OPTIMIZE = 1,
G_REGEX_ERROR_REPLACE = 2,
G_REGEX_ERROR_MATCH = 3,
G_REGEX_ERROR_INTERNAL = 4,
G_REGEX_ERROR_STRAY_BACKSLASH = 101,
G_REGEX_ERROR_MISSING_CONTROL_CHAR = 102,
G_REGEX_ERROR_UNRECOGNIZED_ESCAPE = 103,
G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER = 104,
G_REGEX_ERROR_QUANTIFIER_TOO_BIG = 105,
G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS = 106,
G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS = 107,
G_REGEX_ERROR_RANGE_OUT_OF_ORDER = 108,
G_REGEX_ERROR_NOTHING_TO_REPEAT = 109,
G_REGEX_ERROR_UNRECOGNIZED_CHARACTER = 112,
G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS = 113,
G_REGEX_ERROR_UNMATCHED_PARENTHESIS = 114,
G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE = 115,
G_REGEX_ERROR_UNTERMINATED_COMMENT = 118,
G_REGEX_ERROR_EXPRESSION_TOO_LARGE = 120,
G_REGEX_ERROR_MEMORY_ERROR = 121,
G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND = 125,
G_REGEX_ERROR_MALFORMED_CONDITION = 126,
G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES = 127,
G_REGEX_ERROR_ASSERTION_EXPECTED = 128,
G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME = 130,
G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = 131,
G_REGEX_ERROR_HEX_CODE_TOO_LARGE = 134,
G_REGEX_ERROR_INVALID_CONDITION = 135,
G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND = 136,
G_REGEX_ERROR_INFINITE_LOOP = 140,
G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR = 142,
G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME = 143,
G_REGEX_ERROR_MALFORMED_PROPERTY = 146,
G_REGEX_ERROR_UNKNOWN_PROPERTY = 147,
G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG = 148,
G_REGEX_ERROR_TOO_MANY_SUBPATTERNS = 149,
G_REGEX_ERROR_INVALID_OCTAL_VALUE = 151,
G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE = 154,
G_REGEX_ERROR_DEFINE_REPETION = 155,
G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS = 156,
G_REGEX_ERROR_MISSING_BACK_REFERENCE = 157,
G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE = 158,
G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN = 159,
G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB = 160,
G_REGEX_ERROR_NUMBER_TOO_BIG = 161,
G_REGEX_ERROR_MISSING_SUBPATTERN_NAME = 162,
G_REGEX_ERROR_MISSING_DIGIT = 163,
G_REGEX_ERROR_INVALID_DATA_CHARACTER = 164,
G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME = 165,
G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED = 166,
G_REGEX_ERROR_INVALID_CONTROL_CHAR = 168,
G_REGEX_ERROR_MISSING_NAME = 169,
G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS = 171,
G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES = 172,
G_REGEX_ERROR_NAME_TOO_LONG = 175,
G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE = 176,
}
extern "C" {
pub fn g_regex_error_quark() -> GQuark;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GRegexCompileFlags {
G_REGEX_CASELESS = 1,
G_REGEX_MULTILINE = 2,
G_REGEX_DOTALL = 4,
G_REGEX_EXTENDED = 8,
G_REGEX_ANCHORED = 16,
G_REGEX_DOLLAR_ENDONLY = 32,
G_REGEX_UNGREEDY = 512,
G_REGEX_RAW = 2048,
G_REGEX_NO_AUTO_CAPTURE = 4096,
G_REGEX_OPTIMIZE = 8192,
G_REGEX_FIRSTLINE = 262144,
G_REGEX_DUPNAMES = 524288,
G_REGEX_NEWLINE_CR = 1048576,
G_REGEX_NEWLINE_LF = 2097152,
G_REGEX_NEWLINE_CRLF = 3145728,
G_REGEX_NEWLINE_ANYCRLF = 5242880,
G_REGEX_BSR_ANYCRLF = 8388608,
G_REGEX_JAVASCRIPT_COMPAT = 33554432,
}
impl GRegexMatchFlags {
pub const G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags =
GRegexMatchFlags::G_REGEX_MATCH_PARTIAL;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GRegexMatchFlags {
G_REGEX_MATCH_ANCHORED = 16,
G_REGEX_MATCH_NOTBOL = 128,
G_REGEX_MATCH_NOTEOL = 256,
G_REGEX_MATCH_NOTEMPTY = 1024,
G_REGEX_MATCH_PARTIAL = 32768,
G_REGEX_MATCH_NEWLINE_CR = 1048576,
G_REGEX_MATCH_NEWLINE_LF = 2097152,
G_REGEX_MATCH_NEWLINE_CRLF = 3145728,
G_REGEX_MATCH_NEWLINE_ANY = 4194304,
G_REGEX_MATCH_NEWLINE_ANYCRLF = 5242880,
G_REGEX_MATCH_BSR_ANYCRLF = 8388608,
G_REGEX_MATCH_BSR_ANY = 16777216,
G_REGEX_MATCH_PARTIAL_HARD = 134217728,
G_REGEX_MATCH_NOTEMPTY_ATSTART = 268435456,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRegex {
_unused: [u8; 0],
}
pub type GRegex = _GRegex;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMatchInfo {
_unused: [u8; 0],
}
pub type GMatchInfo = _GMatchInfo;
pub type GRegexEvalCallback = ::std::option::Option<
unsafe extern "C" fn(
match_info: *const GMatchInfo,
result: *mut GString,
user_data: gpointer,
) -> gboolean,
>;
extern "C" {
pub fn g_regex_new(
pattern: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
error: *mut *mut GError,
) -> *mut GRegex;
}
extern "C" {
pub fn g_regex_ref(regex: *mut GRegex) -> *mut GRegex;
}
extern "C" {
pub fn g_regex_unref(regex: *mut GRegex);
}
extern "C" {
pub fn g_regex_get_pattern(regex: *const GRegex) -> *const gchar;
}
extern "C" {
pub fn g_regex_get_max_backref(regex: *const GRegex) -> gint;
}
extern "C" {
pub fn g_regex_get_capture_count(regex: *const GRegex) -> gint;
}
extern "C" {
pub fn g_regex_get_has_cr_or_lf(regex: *const GRegex) -> gboolean;
}
extern "C" {
pub fn g_regex_get_max_lookbehind(regex: *const GRegex) -> gint;
}
extern "C" {
pub fn g_regex_get_string_number(regex: *const GRegex, name: *const gchar) -> gint;
}
extern "C" {
pub fn g_regex_escape_string(string: *const gchar, length: gint) -> *mut gchar;
}
extern "C" {
pub fn g_regex_escape_nul(string: *const gchar, length: gint) -> *mut gchar;
}
extern "C" {
pub fn g_regex_get_compile_flags(regex: *const GRegex) -> GRegexCompileFlags;
}
extern "C" {
pub fn g_regex_get_match_flags(regex: *const GRegex) -> GRegexMatchFlags;
}
extern "C" {
pub fn g_regex_match_simple(
pattern: *const gchar,
string: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
) -> gboolean;
}
extern "C" {
pub fn g_regex_match(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
) -> gboolean;
}
extern "C" {
pub fn g_regex_match_full(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_regex_match_all(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
) -> gboolean;
}
extern "C" {
pub fn g_regex_match_all_full(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_regex_split_simple(
pattern: *const gchar,
string: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_regex_split(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_regex_split_full(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
match_options: GRegexMatchFlags,
max_tokens: gint,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_regex_replace(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
replacement: *const gchar,
match_options: GRegexMatchFlags,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_regex_replace_literal(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
replacement: *const gchar,
match_options: GRegexMatchFlags,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_regex_replace_eval(
regex: *const GRegex,
string: *const gchar,
string_len: gssize,
start_position: gint,
match_options: GRegexMatchFlags,
eval: GRegexEvalCallback,
user_data: gpointer,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_regex_check_replacement(
replacement: *const gchar,
has_references: *mut gboolean,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_match_info_get_regex(match_info: *const GMatchInfo) -> *mut GRegex;
}
extern "C" {
pub fn g_match_info_get_string(match_info: *const GMatchInfo) -> *const gchar;
}
extern "C" {
pub fn g_match_info_ref(match_info: *mut GMatchInfo) -> *mut GMatchInfo;
}
extern "C" {
pub fn g_match_info_unref(match_info: *mut GMatchInfo);
}
extern "C" {
pub fn g_match_info_free(match_info: *mut GMatchInfo);
}
extern "C" {
pub fn g_match_info_next(match_info: *mut GMatchInfo, error: *mut *mut GError) -> gboolean;
}
extern "C" {
pub fn g_match_info_matches(match_info: *const GMatchInfo) -> gboolean;
}
extern "C" {
pub fn g_match_info_get_match_count(match_info: *const GMatchInfo) -> gint;
}
extern "C" {
pub fn g_match_info_is_partial_match(match_info: *const GMatchInfo) -> gboolean;
}
extern "C" {
pub fn g_match_info_expand_references(
match_info: *const GMatchInfo,
string_to_expand: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
extern "C" {
pub fn g_match_info_fetch(match_info: *const GMatchInfo, match_num: gint) -> *mut gchar;
}
extern "C" {
pub fn g_match_info_fetch_pos(
match_info: *const GMatchInfo,
match_num: gint,
start_pos: *mut gint,
end_pos: *mut gint,
) -> gboolean;
}
extern "C" {
pub fn g_match_info_fetch_named(
match_info: *const GMatchInfo,
name: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_match_info_fetch_named_pos(
match_info: *const GMatchInfo,
name: *const gchar,
start_pos: *mut gint,
end_pos: *mut gint,
) -> gboolean;
}
extern "C" {
pub fn g_match_info_fetch_all(match_info: *const GMatchInfo) -> *mut *mut gchar;
}
pub type GScanner = _GScanner;
pub type GScannerConfig = _GScannerConfig;
pub type GTokenValue = _GTokenValue;
pub type GScannerMsgFunc = ::std::option::Option<
unsafe extern "C" fn(scanner: *mut GScanner, message: *mut gchar, error: gboolean),
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GErrorType {
G_ERR_UNKNOWN = 0,
G_ERR_UNEXP_EOF = 1,
G_ERR_UNEXP_EOF_IN_STRING = 2,
G_ERR_UNEXP_EOF_IN_COMMENT = 3,
G_ERR_NON_DIGIT_IN_CONST = 4,
G_ERR_DIGIT_RADIX = 5,
G_ERR_FLOAT_RADIX = 6,
G_ERR_FLOAT_MALFORMED = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTokenType {
G_TOKEN_EOF = 0,
G_TOKEN_LEFT_PAREN = 40,
G_TOKEN_RIGHT_PAREN = 41,
G_TOKEN_LEFT_CURLY = 123,
G_TOKEN_RIGHT_CURLY = 125,
G_TOKEN_LEFT_BRACE = 91,
G_TOKEN_RIGHT_BRACE = 93,
G_TOKEN_EQUAL_SIGN = 61,
G_TOKEN_COMMA = 44,
G_TOKEN_NONE = 256,
G_TOKEN_ERROR = 257,
G_TOKEN_CHAR = 258,
G_TOKEN_BINARY = 259,
G_TOKEN_OCTAL = 260,
G_TOKEN_INT = 261,
G_TOKEN_HEX = 262,
G_TOKEN_FLOAT = 263,
G_TOKEN_STRING = 264,
G_TOKEN_SYMBOL = 265,
G_TOKEN_IDENTIFIER = 266,
G_TOKEN_IDENTIFIER_NULL = 267,
G_TOKEN_COMMENT_SINGLE = 268,
G_TOKEN_COMMENT_MULTI = 269,
G_TOKEN_LAST = 270,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GTokenValue {
pub v_symbol: gpointer,
pub v_identifier: *mut gchar,
pub v_binary: gulong,
pub v_octal: gulong,
pub v_int: gulong,
pub v_int64: guint64,
pub v_float: gdouble,
pub v_hex: gulong,
pub v_string: *mut gchar,
pub v_comment: *mut gchar,
pub v_char: guchar,
pub v_error: guint,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout__GTokenValue() {
assert_eq!(
::std::mem::size_of::<_GTokenValue>(),
8usize,
concat!("Size of: ", stringify!(_GTokenValue))
);
assert_eq!(
::std::mem::align_of::<_GTokenValue>(),
8usize,
concat!("Alignment of ", stringify!(_GTokenValue))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_symbol as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_symbol))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_identifier as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_identifier))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_binary as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_binary))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_octal as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_octal))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_int as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_int))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_int64 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_int64))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_float as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_float))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_hex as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_hex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_string as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_string))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_comment as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_comment))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_char as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_char))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTokenValue>())).v_error as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_error))
);
}
impl ::std::fmt::Debug for _GTokenValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GTokenValue {{ union }}")
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GScannerConfig {
pub cset_skip_characters: *mut gchar,
pub cset_identifier_first: *mut gchar,
pub cset_identifier_nth: *mut gchar,
pub cpair_comment_single: *mut gchar,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize], u8>,
pub padding_dummy: guint,
}
#[test]
fn bindgen_test_layout__GScannerConfig() {
assert_eq!(
::std::mem::size_of::<_GScannerConfig>(),
40usize,
concat!("Size of: ", stringify!(_GScannerConfig))
);
assert_eq!(
::std::mem::align_of::<_GScannerConfig>(),
8usize,
concat!("Alignment of ", stringify!(_GScannerConfig))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GScannerConfig>())).cset_skip_characters as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GScannerConfig),
"::",
stringify!(cset_skip_characters)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GScannerConfig>())).cset_identifier_first as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GScannerConfig),
"::",
stringify!(cset_identifier_first)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GScannerConfig>())).cset_identifier_nth as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(_GScannerConfig),
"::",
stringify!(cset_identifier_nth)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GScannerConfig>())).cpair_comment_single as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(_GScannerConfig),
"::",
stringify!(cpair_comment_single)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScannerConfig>())).padding_dummy as *const _ as usize },
36usize,
concat!("Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(padding_dummy))
);
}
impl _GScannerConfig {
#[inline]
pub fn case_sensitive(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_case_sensitive(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn skip_comment_multi(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set_skip_comment_multi(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn skip_comment_single(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
}
#[inline]
pub fn set_skip_comment_single(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(2usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_comment_multi(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_comment_multi(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(3usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_identifier(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_identifier(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(4usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_identifier_1char(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_identifier_1char(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(5usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_identifier_NULL(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_identifier_NULL(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(6usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_symbols(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_symbols(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_binary(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_binary(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_octal(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_octal(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(9usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_float(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_float(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(10usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_hex(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_hex(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(11usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_hex_dollar(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_hex_dollar(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(12usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_string_sq(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_string_sq(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(13usize, 1u8, val as u64)
}
}
#[inline]
pub fn scan_string_dq(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
}
#[inline]
pub fn set_scan_string_dq(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(14usize, 1u8, val as u64)
}
}
#[inline]
pub fn numbers_2_int(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
}
#[inline]
pub fn set_numbers_2_int(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(15usize, 1u8, val as u64)
}
}
#[inline]
pub fn int_2_float(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
}
#[inline]
pub fn set_int_2_float(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 1u8, val as u64)
}
}
#[inline]
pub fn identifier_2_string(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
}
#[inline]
pub fn set_identifier_2_string(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(17usize, 1u8, val as u64)
}
}
#[inline]
pub fn char_2_token(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
}
#[inline]
pub fn set_char_2_token(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(18usize, 1u8, val as u64)
}
}
#[inline]
pub fn symbol_2_token(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
}
#[inline]
pub fn set_symbol_2_token(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(19usize, 1u8, val as u64)
}
}
#[inline]
pub fn scope_0_fallback(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) }
}
#[inline]
pub fn set_scope_0_fallback(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(20usize, 1u8, val as u64)
}
}
#[inline]
pub fn store_int64(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) }
}
#[inline]
pub fn set_store_int64(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(21usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
case_sensitive: guint,
skip_comment_multi: guint,
skip_comment_single: guint,
scan_comment_multi: guint,
scan_identifier: guint,
scan_identifier_1char: guint,
scan_identifier_NULL: guint,
scan_symbols: guint,
scan_binary: guint,
scan_octal: guint,
scan_float: guint,
scan_hex: guint,
scan_hex_dollar: guint,
scan_string_sq: guint,
scan_string_dq: guint,
numbers_2_int: guint,
int_2_float: guint,
identifier_2_string: guint,
char_2_token: guint,
symbol_2_token: guint,
scope_0_fallback: guint,
store_int64: guint,
) -> __BindgenBitfieldUnit<[u8; 3usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let case_sensitive: u32 = unsafe { ::std::mem::transmute(case_sensitive) };
case_sensitive as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let skip_comment_multi: u32 = unsafe { ::std::mem::transmute(skip_comment_multi) };
skip_comment_multi as u64
});
__bindgen_bitfield_unit.set(2usize, 1u8, {
let skip_comment_single: u32 = unsafe { ::std::mem::transmute(skip_comment_single) };
skip_comment_single as u64
});
__bindgen_bitfield_unit.set(3usize, 1u8, {
let scan_comment_multi: u32 = unsafe { ::std::mem::transmute(scan_comment_multi) };
scan_comment_multi as u64
});
__bindgen_bitfield_unit.set(4usize, 1u8, {
let scan_identifier: u32 = unsafe { ::std::mem::transmute(scan_identifier) };
scan_identifier as u64
});
__bindgen_bitfield_unit.set(5usize, 1u8, {
let scan_identifier_1char: u32 =
unsafe { ::std::mem::transmute(scan_identifier_1char) };
scan_identifier_1char as u64
});
__bindgen_bitfield_unit.set(6usize, 1u8, {
let scan_identifier_NULL: u32 = unsafe { ::std::mem::transmute(scan_identifier_NULL) };
scan_identifier_NULL as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let scan_symbols: u32 = unsafe { ::std::mem::transmute(scan_symbols) };
scan_symbols as u64
});
__bindgen_bitfield_unit.set(8usize, 1u8, {
let scan_binary: u32 = unsafe { ::std::mem::transmute(scan_binary) };
scan_binary as u64
});
__bindgen_bitfield_unit.set(9usize, 1u8, {
let scan_octal: u32 = unsafe { ::std::mem::transmute(scan_octal) };
scan_octal as u64
});
__bindgen_bitfield_unit.set(10usize, 1u8, {
let scan_float: u32 = unsafe { ::std::mem::transmute(scan_float) };
scan_float as u64
});
__bindgen_bitfield_unit.set(11usize, 1u8, {
let scan_hex: u32 = unsafe { ::std::mem::transmute(scan_hex) };
scan_hex as u64
});
__bindgen_bitfield_unit.set(12usize, 1u8, {
let scan_hex_dollar: u32 = unsafe { ::std::mem::transmute(scan_hex_dollar) };
scan_hex_dollar as u64
});
__bindgen_bitfield_unit.set(13usize, 1u8, {
let scan_string_sq: u32 = unsafe { ::std::mem::transmute(scan_string_sq) };
scan_string_sq as u64
});
__bindgen_bitfield_unit.set(14usize, 1u8, {
let scan_string_dq: u32 = unsafe { ::std::mem::transmute(scan_string_dq) };
scan_string_dq as u64
});
__bindgen_bitfield_unit.set(15usize, 1u8, {
let numbers_2_int: u32 = unsafe { ::std::mem::transmute(numbers_2_int) };
numbers_2_int as u64
});
__bindgen_bitfield_unit.set(16usize, 1u8, {
let int_2_float: u32 = unsafe { ::std::mem::transmute(int_2_float) };
int_2_float as u64
});
__bindgen_bitfield_unit.set(17usize, 1u8, {
let identifier_2_string: u32 = unsafe { ::std::mem::transmute(identifier_2_string) };
identifier_2_string as u64
});
__bindgen_bitfield_unit.set(18usize, 1u8, {
let char_2_token: u32 = unsafe { ::std::mem::transmute(char_2_token) };
char_2_token as u64
});
__bindgen_bitfield_unit.set(19usize, 1u8, {
let symbol_2_token: u32 = unsafe { ::std::mem::transmute(symbol_2_token) };
symbol_2_token as u64
});
__bindgen_bitfield_unit.set(20usize, 1u8, {
let scope_0_fallback: u32 = unsafe { ::std::mem::transmute(scope_0_fallback) };
scope_0_fallback as u64
});
__bindgen_bitfield_unit.set(21usize, 1u8, {
let store_int64: u32 = unsafe { ::std::mem::transmute(store_int64) };
store_int64 as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GScanner {
pub user_data: gpointer,
pub max_parse_errors: guint,
pub parse_errors: guint,
pub input_name: *const gchar,
pub qdata: *mut GData,
pub config: *mut GScannerConfig,
pub token: GTokenType,
pub value: GTokenValue,
pub line: guint,
pub position: guint,
pub next_token: GTokenType,
pub next_value: GTokenValue,
pub next_line: guint,
pub next_position: guint,
pub symbol_table: *mut GHashTable,
pub input_fd: gint,
pub text: *const gchar,
pub text_end: *const gchar,
pub buffer: *mut gchar,
pub scope_id: guint,
pub msg_handler: GScannerMsgFunc,
}
#[test]
fn bindgen_test_layout__GScanner() {
assert_eq!(
::std::mem::size_of::<_GScanner>(),
144usize,
concat!("Size of: ", stringify!(_GScanner))
);
assert_eq!(
::std::mem::align_of::<_GScanner>(),
8usize,
concat!("Alignment of ", stringify!(_GScanner))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).user_data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(user_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).max_parse_errors as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(max_parse_errors))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).parse_errors as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(parse_errors))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).input_name as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(input_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).qdata as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(qdata))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).config as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(config))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).token as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(token))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).value as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).line as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(line))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).position as *const _ as usize },
60usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(position))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).next_token as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(next_token))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).next_value as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(next_value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).next_line as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(next_line))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).next_position as *const _ as usize },
84usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(next_position))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).symbol_table as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(symbol_table))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).input_fd as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(input_fd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).text as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(text))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).text_end as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(text_end))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).buffer as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(buffer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).scope_id as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(scope_id))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GScanner>())).msg_handler as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_GScanner), "::", stringify!(msg_handler))
);
}
impl ::std::fmt::Debug for _GScanner {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "_GScanner {{ user_data: {:?}, max_parse_errors: {:?}, parse_errors: {:?}, input_name: {:?}, qdata: {:?}, config: {:?}, token: {:?}, value: {:?}, line: {:?}, position: {:?}, next_token: {:?}, next_value: {:?}, next_line: {:?}, next_position: {:?}, symbol_table: {:?}, input_fd: {:?}, text: {:?}, text_end: {:?}, buffer: {:?}, scope_id: {:?}, msg_handler: {:?} }}" , self . user_data , self . max_parse_errors , self . parse_errors , self . input_name , self . qdata , self . config , self . token , self . value , self . line , self . position , self . next_token , self . next_value , self . next_line , self . next_position , self . symbol_table , self . input_fd , self . text , self . text_end , self . buffer , self . scope_id , self . msg_handler )
}
}
extern "C" {
pub fn g_scanner_new(config_templ: *const GScannerConfig) -> *mut GScanner;
}
extern "C" {
pub fn g_scanner_destroy(scanner: *mut GScanner);
}
extern "C" {
pub fn g_scanner_input_file(scanner: *mut GScanner, input_fd: gint);
}
extern "C" {
pub fn g_scanner_sync_file_offset(scanner: *mut GScanner);
}
extern "C" {
pub fn g_scanner_input_text(scanner: *mut GScanner, text: *const gchar, text_len: guint);
}
extern "C" {
pub fn g_scanner_get_next_token(scanner: *mut GScanner) -> GTokenType;
}
extern "C" {
pub fn g_scanner_peek_next_token(scanner: *mut GScanner) -> GTokenType;
}
extern "C" {
pub fn g_scanner_cur_token(scanner: *mut GScanner) -> GTokenType;
}
extern "C" {
pub fn g_scanner_cur_value(scanner: *mut GScanner) -> GTokenValue;
}
extern "C" {
pub fn g_scanner_cur_line(scanner: *mut GScanner) -> guint;
}
extern "C" {
pub fn g_scanner_cur_position(scanner: *mut GScanner) -> guint;
}
extern "C" {
pub fn g_scanner_eof(scanner: *mut GScanner) -> gboolean;
}
extern "C" {
pub fn g_scanner_set_scope(scanner: *mut GScanner, scope_id: guint) -> guint;
}
extern "C" {
pub fn g_scanner_scope_add_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
value: gpointer,
);
}
extern "C" {
pub fn g_scanner_scope_remove_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
);
}
extern "C" {
pub fn g_scanner_scope_lookup_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
) -> gpointer;
}
extern "C" {
pub fn g_scanner_scope_foreach_symbol(
scanner: *mut GScanner,
scope_id: guint,
func: GHFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_scanner_lookup_symbol(scanner: *mut GScanner, symbol: *const gchar) -> gpointer;
}
extern "C" {
pub fn g_scanner_unexp_token(
scanner: *mut GScanner,
expected_token: GTokenType,
identifier_spec: *const gchar,
symbol_spec: *const gchar,
symbol_name: *const gchar,
message: *const gchar,
is_error: gint,
);
}
extern "C" {
pub fn g_scanner_error(scanner: *mut GScanner, format: *const gchar, ...);
}
extern "C" {
pub fn g_scanner_warn(scanner: *mut GScanner, format: *const gchar, ...);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSequence {
_unused: [u8; 0],
}
pub type GSequence = _GSequence;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSequenceNode {
_unused: [u8; 0],
}
pub type GSequenceIter = _GSequenceNode;
pub type GSequenceIterCompareFunc = ::std::option::Option<
unsafe extern "C" fn(a: *mut GSequenceIter, b: *mut GSequenceIter, data: gpointer) -> gint,
>;
extern "C" {
pub fn g_sequence_new(data_destroy: GDestroyNotify) -> *mut GSequence;
}
extern "C" {
pub fn g_sequence_free(seq: *mut GSequence);
}
extern "C" {
pub fn g_sequence_get_length(seq: *mut GSequence) -> gint;
}
extern "C" {
pub fn g_sequence_foreach(seq: *mut GSequence, func: GFunc, user_data: gpointer);
}
extern "C" {
pub fn g_sequence_foreach_range(
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
func: GFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_sequence_sort(seq: *mut GSequence, cmp_func: GCompareDataFunc, cmp_data: gpointer);
}
extern "C" {
pub fn g_sequence_sort_iter(
seq: *mut GSequence,
cmp_func: GSequenceIterCompareFunc,
cmp_data: gpointer,
);
}
extern "C" {
pub fn g_sequence_is_empty(seq: *mut GSequence) -> gboolean;
}
extern "C" {
pub fn g_sequence_get_begin_iter(seq: *mut GSequence) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_get_end_iter(seq: *mut GSequence) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_get_iter_at_pos(seq: *mut GSequence, pos: gint) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_append(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_prepend(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer)
-> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_move(src: *mut GSequenceIter, dest: *mut GSequenceIter);
}
extern "C" {
pub fn g_sequence_swap(a: *mut GSequenceIter, b: *mut GSequenceIter);
}
extern "C" {
pub fn g_sequence_insert_sorted(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_insert_sorted_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_sort_changed(
iter: *mut GSequenceIter,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
);
}
extern "C" {
pub fn g_sequence_sort_changed_iter(
iter: *mut GSequenceIter,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
);
}
extern "C" {
pub fn g_sequence_remove(iter: *mut GSequenceIter);
}
extern "C" {
pub fn g_sequence_remove_range(begin: *mut GSequenceIter, end: *mut GSequenceIter);
}
extern "C" {
pub fn g_sequence_move_range(
dest: *mut GSequenceIter,
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
);
}
extern "C" {
pub fn g_sequence_search(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_search_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_lookup(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_lookup_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_get(iter: *mut GSequenceIter) -> gpointer;
}
extern "C" {
pub fn g_sequence_set(iter: *mut GSequenceIter, data: gpointer);
}
extern "C" {
pub fn g_sequence_iter_is_begin(iter: *mut GSequenceIter) -> gboolean;
}
extern "C" {
pub fn g_sequence_iter_is_end(iter: *mut GSequenceIter) -> gboolean;
}
extern "C" {
pub fn g_sequence_iter_next(iter: *mut GSequenceIter) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_iter_prev(iter: *mut GSequenceIter) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_iter_get_position(iter: *mut GSequenceIter) -> gint;
}
extern "C" {
pub fn g_sequence_iter_move(iter: *mut GSequenceIter, delta: gint) -> *mut GSequenceIter;
}
extern "C" {
pub fn g_sequence_iter_get_sequence(iter: *mut GSequenceIter) -> *mut GSequence;
}
extern "C" {
pub fn g_sequence_iter_compare(a: *mut GSequenceIter, b: *mut GSequenceIter) -> gint;
}
extern "C" {
pub fn g_sequence_range_get_midpoint(
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
) -> *mut GSequenceIter;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GShellError {
G_SHELL_ERROR_BAD_QUOTING = 0,
G_SHELL_ERROR_EMPTY_STRING = 1,
G_SHELL_ERROR_FAILED = 2,
}
extern "C" {
pub fn g_shell_error_quark() -> GQuark;
}
extern "C" {
pub fn g_shell_quote(unquoted_string: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_shell_unquote(quoted_string: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
extern "C" {
pub fn g_shell_parse_argv(
command_line: *const gchar,
argcp: *mut gint,
argvp: *mut *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_slice_alloc(block_size: gsize) -> gpointer;
}
extern "C" {
pub fn g_slice_alloc0(block_size: gsize) -> gpointer;
}
extern "C" {
pub fn g_slice_copy(block_size: gsize, mem_block: gconstpointer) -> gpointer;
}
extern "C" {
pub fn g_slice_free1(block_size: gsize, mem_block: gpointer);
}
extern "C" {
pub fn g_slice_free_chain_with_offset(
block_size: gsize,
mem_chain: gpointer,
next_offset: gsize,
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSliceConfig {
G_SLICE_CONFIG_ALWAYS_MALLOC = 1,
G_SLICE_CONFIG_BYPASS_MAGAZINES = 2,
G_SLICE_CONFIG_WORKING_SET_MSECS = 3,
G_SLICE_CONFIG_COLOR_INCREMENT = 4,
G_SLICE_CONFIG_CHUNK_SIZES = 5,
G_SLICE_CONFIG_CONTENTION_COUNTER = 6,
}
extern "C" {
pub fn g_slice_set_config(ckey: GSliceConfig, value: gint64);
}
extern "C" {
pub fn g_slice_get_config(ckey: GSliceConfig) -> gint64;
}
extern "C" {
pub fn g_slice_get_config_state(
ckey: GSliceConfig,
address: gint64,
n_values: *mut guint,
) -> *mut gint64;
}
impl GSpawnError {
pub const G_SPAWN_ERROR_2BIG: GSpawnError = GSpawnError::G_SPAWN_ERROR_TOO_BIG;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSpawnError {
G_SPAWN_ERROR_FORK = 0,
G_SPAWN_ERROR_READ = 1,
G_SPAWN_ERROR_CHDIR = 2,
G_SPAWN_ERROR_ACCES = 3,
G_SPAWN_ERROR_PERM = 4,
G_SPAWN_ERROR_TOO_BIG = 5,
G_SPAWN_ERROR_NOEXEC = 6,
G_SPAWN_ERROR_NAMETOOLONG = 7,
G_SPAWN_ERROR_NOENT = 8,
G_SPAWN_ERROR_NOMEM = 9,
G_SPAWN_ERROR_NOTDIR = 10,
G_SPAWN_ERROR_LOOP = 11,
G_SPAWN_ERROR_TXTBUSY = 12,
G_SPAWN_ERROR_IO = 13,
G_SPAWN_ERROR_NFILE = 14,
G_SPAWN_ERROR_MFILE = 15,
G_SPAWN_ERROR_INVAL = 16,
G_SPAWN_ERROR_ISDIR = 17,
G_SPAWN_ERROR_LIBBAD = 18,
G_SPAWN_ERROR_FAILED = 19,
}
pub type GSpawnChildSetupFunc = ::std::option::Option<unsafe extern "C" fn(user_data: gpointer)>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSpawnFlags {
G_SPAWN_DEFAULT = 0,
G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1,
G_SPAWN_DO_NOT_REAP_CHILD = 2,
G_SPAWN_SEARCH_PATH = 4,
G_SPAWN_STDOUT_TO_DEV_NULL = 8,
G_SPAWN_STDERR_TO_DEV_NULL = 16,
G_SPAWN_CHILD_INHERITS_STDIN = 32,
G_SPAWN_FILE_AND_ARGV_ZERO = 64,
G_SPAWN_SEARCH_PATH_FROM_ENVP = 128,
G_SPAWN_CLOEXEC_PIPES = 256,
}
extern "C" {
pub fn g_spawn_error_quark() -> GQuark;
}
extern "C" {
pub fn g_spawn_exit_error_quark() -> GQuark;
}
extern "C" {
pub fn g_spawn_async(
working_directory: *const gchar,
argv: *mut *mut gchar,
envp: *mut *mut gchar,
flags: GSpawnFlags,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
child_pid: *mut GPid,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_spawn_async_with_pipes(
working_directory: *const gchar,
argv: *mut *mut gchar,
envp: *mut *mut gchar,
flags: GSpawnFlags,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
child_pid: *mut GPid,
standard_input: *mut gint,
standard_output: *mut gint,
standard_error: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_spawn_sync(
working_directory: *const gchar,
argv: *mut *mut gchar,
envp: *mut *mut gchar,
flags: GSpawnFlags,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
standard_output: *mut *mut gchar,
standard_error: *mut *mut gchar,
exit_status: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_spawn_command_line_sync(
command_line: *const gchar,
standard_output: *mut *mut gchar,
standard_error: *mut *mut gchar,
exit_status: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_spawn_command_line_async(
command_line: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_spawn_check_exit_status(exit_status: gint, error: *mut *mut GError) -> gboolean;
}
extern "C" {
pub fn g_spawn_close_pid(pid: GPid);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GAsciiType {
G_ASCII_ALNUM = 1,
G_ASCII_ALPHA = 2,
G_ASCII_CNTRL = 4,
G_ASCII_DIGIT = 8,
G_ASCII_GRAPH = 16,
G_ASCII_LOWER = 32,
G_ASCII_PRINT = 64,
G_ASCII_PUNCT = 128,
G_ASCII_SPACE = 256,
G_ASCII_UPPER = 512,
G_ASCII_XDIGIT = 1024,
}
extern "C" {
pub static g_ascii_table: *const guint16;
}
extern "C" {
pub fn g_ascii_tolower(c: gchar) -> gchar;
}
extern "C" {
pub fn g_ascii_toupper(c: gchar) -> gchar;
}
extern "C" {
pub fn g_ascii_digit_value(c: gchar) -> gint;
}
extern "C" {
pub fn g_ascii_xdigit_value(c: gchar) -> gint;
}
extern "C" {
pub fn g_strdelimit(
string: *mut gchar,
delimiters: *const gchar,
new_delimiter: gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_strcanon(
string: *mut gchar,
valid_chars: *const gchar,
substitutor: gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_strerror(errnum: gint) -> *const gchar;
}
extern "C" {
pub fn g_strsignal(signum: gint) -> *const gchar;
}
extern "C" {
pub fn g_strreverse(string: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strlcpy(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize;
}
extern "C" {
pub fn g_strlcat(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize;
}
extern "C" {
pub fn g_strstr_len(
haystack: *const gchar,
haystack_len: gssize,
needle: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_strrstr(haystack: *const gchar, needle: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strrstr_len(
haystack: *const gchar,
haystack_len: gssize,
needle: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn g_str_has_suffix(str: *const gchar, suffix: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_str_has_prefix(str: *const gchar, prefix: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble;
}
extern "C" {
pub fn g_ascii_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble;
}
extern "C" {
pub fn g_ascii_strtoull(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> guint64;
}
extern "C" {
pub fn g_ascii_strtoll(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> gint64;
}
extern "C" {
pub fn g_ascii_dtostr(buffer: *mut gchar, buf_len: gint, d: gdouble) -> *mut gchar;
}
extern "C" {
pub fn g_ascii_formatd(
buffer: *mut gchar,
buf_len: gint,
format: *const gchar,
d: gdouble,
) -> *mut gchar;
}
extern "C" {
pub fn g_strchug(string: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strchomp(string: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_ascii_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint;
}
extern "C" {
pub fn g_ascii_strncasecmp(s1: *const gchar, s2: *const gchar, n: gsize) -> gint;
}
extern "C" {
pub fn g_ascii_strdown(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_ascii_strup(str: *const gchar, len: gssize) -> *mut gchar;
}
extern "C" {
pub fn g_str_is_ascii(str: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint;
}
extern "C" {
pub fn g_strncasecmp(s1: *const gchar, s2: *const gchar, n: guint) -> gint;
}
extern "C" {
pub fn g_strdown(string: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strup(string: *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strdup(str: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strdup_printf(format: *const gchar, ...) -> *mut gchar;
}
extern "C" {
pub fn g_strdup_vprintf(format: *const gchar, args: *mut __va_list_tag) -> *mut gchar;
}
extern "C" {
pub fn g_strndup(str: *const gchar, n: gsize) -> *mut gchar;
}
extern "C" {
pub fn g_strnfill(length: gsize, fill_char: gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strconcat(string1: *const gchar, ...) -> *mut gchar;
}
extern "C" {
pub fn g_strjoin(separator: *const gchar, ...) -> *mut gchar;
}
extern "C" {
pub fn g_strcompress(source: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strescape(source: *const gchar, exceptions: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_memdup(mem: gconstpointer, byte_size: guint) -> gpointer;
}
pub type GStrv = *mut *mut gchar;
extern "C" {
pub fn g_strsplit(
string: *const gchar,
delimiter: *const gchar,
max_tokens: gint,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_strsplit_set(
string: *const gchar,
delimiters: *const gchar,
max_tokens: gint,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_strjoinv(separator: *const gchar, str_array: *mut *mut gchar) -> *mut gchar;
}
extern "C" {
pub fn g_strfreev(str_array: *mut *mut gchar);
}
extern "C" {
pub fn g_strdupv(str_array: *mut *mut gchar) -> *mut *mut gchar;
}
extern "C" {
pub fn g_strv_length(str_array: *mut *mut gchar) -> guint;
}
extern "C" {
pub fn g_stpcpy(dest: *mut gchar, src: *const ::std::os::raw::c_char) -> *mut gchar;
}
extern "C" {
pub fn g_str_to_ascii(str: *const gchar, from_locale: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_str_tokenize_and_fold(
string: *const gchar,
translit_locale: *const gchar,
ascii_alternates: *mut *mut *mut gchar,
) -> *mut *mut gchar;
}
extern "C" {
pub fn g_str_match_string(
search_term: *const gchar,
potential_hit: *const gchar,
accept_alternates: gboolean,
) -> gboolean;
}
extern "C" {
pub fn g_strv_contains(strv: *const *const gchar, str: *const gchar) -> gboolean;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GNumberParserError {
G_NUMBER_PARSER_ERROR_INVALID = 0,
G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS = 1,
}
extern "C" {
pub fn g_number_parser_error_quark() -> GQuark;
}
extern "C" {
pub fn g_ascii_string_to_signed(
str: *const gchar,
base: guint,
min: gint64,
max: gint64,
out_num: *mut gint64,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_ascii_string_to_unsigned(
str: *const gchar,
base: guint,
min: guint64,
max: guint64,
out_num: *mut guint64,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GStringChunk {
_unused: [u8; 0],
}
pub type GStringChunk = _GStringChunk;
extern "C" {
pub fn g_string_chunk_new(size: gsize) -> *mut GStringChunk;
}
extern "C" {
pub fn g_string_chunk_free(chunk: *mut GStringChunk);
}
extern "C" {
pub fn g_string_chunk_clear(chunk: *mut GStringChunk);
}
extern "C" {
pub fn g_string_chunk_insert(chunk: *mut GStringChunk, string: *const gchar) -> *mut gchar;
}
extern "C" {
pub fn g_string_chunk_insert_len(
chunk: *mut GStringChunk,
string: *const gchar,
len: gssize,
) -> *mut gchar;
}
extern "C" {
pub fn g_string_chunk_insert_const(
chunk: *mut GStringChunk,
string: *const gchar,
) -> *mut gchar;
}
extern "C" {
pub fn memcpy(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memmove(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memccpy(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memset(
__s: *mut ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn memchr(
__s: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn strcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcat(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strncat(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcoll(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strxfrm(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strcoll_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__l: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strxfrm_l(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: usize,
__l: locale_t,
) -> usize;
}
extern "C" {
pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strndup(
__string: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strrchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcspn(
__s: *const ::std::os::raw::c_char,
__reject: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strspn(
__s: *const ::std::os::raw::c_char,
__accept: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strpbrk(
__s: *const ::std::os::raw::c_char,
__accept: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strstr(
__haystack: *const ::std::os::raw::c_char,
__needle: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strtok(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __strtok_r(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
__save_ptr: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strtok_r(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
__save_ptr: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize;
}
extern "C" {
pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
#[link_name = "\u{1}__xpg_strerror_r"]
pub fn strerror_r(
__errnum: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strerror_l(
__errnum: ::std::os::raw::c_int,
__l: locale_t,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn bcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bcopy(
__src: *const ::std::os::raw::c_void,
__dest: *mut ::std::os::raw::c_void,
__n: usize,
);
}
extern "C" {
pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong);
}
extern "C" {
pub fn index(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn rindex(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcasecmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncasecmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcasecmp_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__loc: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncasecmp_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: usize,
__loc: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize);
}
extern "C" {
pub fn strsep(
__stringp: *mut *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __stpcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn stpcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __stpncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn stpncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GTestCase {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GTestSuite {
_unused: [u8; 0],
}
pub type GTestFunc = ::std::option::Option<unsafe extern "C" fn()>;
pub type GTestDataFunc = ::std::option::Option<unsafe extern "C" fn(user_data: gconstpointer)>;
pub type GTestFixtureFunc =
::std::option::Option<unsafe extern "C" fn(fixture: gpointer, user_data: gconstpointer)>;
extern "C" {
pub fn g_strcmp0(
str1: *const ::std::os::raw::c_char,
str2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_test_minimized_result(
minimized_quantity: f64,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn g_test_maximized_result(
maximized_quantity: f64,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn g_test_init(
argc: *mut ::std::os::raw::c_int,
argv: *mut *mut *mut ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn g_test_subprocess() -> gboolean;
}
extern "C" {
pub fn g_test_run() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_test_add_func(testpath: *const ::std::os::raw::c_char, test_func: GTestFunc);
}
extern "C" {
pub fn g_test_add_data_func(
testpath: *const ::std::os::raw::c_char,
test_data: gconstpointer,
test_func: GTestDataFunc,
);
}
extern "C" {
pub fn g_test_add_data_func_full(
testpath: *const ::std::os::raw::c_char,
test_data: gpointer,
test_func: GTestDataFunc,
data_free_func: GDestroyNotify,
);
}
extern "C" {
pub fn g_test_fail();
}
extern "C" {
pub fn g_test_incomplete(msg: *const gchar);
}
extern "C" {
pub fn g_test_skip(msg: *const gchar);
}
extern "C" {
pub fn g_test_failed() -> gboolean;
}
extern "C" {
pub fn g_test_set_nonfatal_assertions();
}
extern "C" {
pub fn g_test_message(format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn g_test_bug_base(uri_pattern: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn g_test_bug(bug_uri_snippet: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn g_test_timer_start();
}
extern "C" {
pub fn g_test_timer_elapsed() -> f64;
}
extern "C" {
pub fn g_test_timer_last() -> f64;
}
extern "C" {
pub fn g_test_queue_free(gfree_pointer: gpointer);
}
extern "C" {
pub fn g_test_queue_destroy(destroy_func: GDestroyNotify, destroy_data: gpointer);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTestTrapFlags {
G_TEST_TRAP_SILENCE_STDOUT = 128,
G_TEST_TRAP_SILENCE_STDERR = 256,
G_TEST_TRAP_INHERIT_STDIN = 512,
}
extern "C" {
pub fn g_test_trap_fork(usec_timeout: guint64, test_trap_flags: GTestTrapFlags) -> gboolean;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTestSubprocessFlags {
G_TEST_SUBPROCESS_INHERIT_STDIN = 1,
G_TEST_SUBPROCESS_INHERIT_STDOUT = 2,
G_TEST_SUBPROCESS_INHERIT_STDERR = 4,
}
extern "C" {
pub fn g_test_trap_subprocess(
test_path: *const ::std::os::raw::c_char,
usec_timeout: guint64,
test_flags: GTestSubprocessFlags,
);
}
extern "C" {
pub fn g_test_trap_has_passed() -> gboolean;
}
extern "C" {
pub fn g_test_trap_reached_timeout() -> gboolean;
}
extern "C" {
pub fn g_test_rand_int() -> gint32;
}
extern "C" {
pub fn g_test_rand_int_range(begin: gint32, end: gint32) -> gint32;
}
extern "C" {
pub fn g_test_rand_double() -> f64;
}
extern "C" {
pub fn g_test_rand_double_range(range_start: f64, range_end: f64) -> f64;
}
extern "C" {
pub fn g_test_create_case(
test_name: *const ::std::os::raw::c_char,
data_size: gsize,
test_data: gconstpointer,
data_setup: GTestFixtureFunc,
data_test: GTestFixtureFunc,
data_teardown: GTestFixtureFunc,
) -> *mut GTestCase;
}
extern "C" {
pub fn g_test_create_suite(suite_name: *const ::std::os::raw::c_char) -> *mut GTestSuite;
}
extern "C" {
pub fn g_test_get_root() -> *mut GTestSuite;
}
extern "C" {
pub fn g_test_suite_add(suite: *mut GTestSuite, test_case: *mut GTestCase);
}
extern "C" {
pub fn g_test_suite_add_suite(suite: *mut GTestSuite, nestedsuite: *mut GTestSuite);
}
extern "C" {
pub fn g_test_run_suite(suite: *mut GTestSuite) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_test_trap_assertions(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
assertion_flags: guint64,
pattern: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assertion_message(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
message: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assertion_message_expr(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
expr: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assertion_message_cmpstr(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
expr: *const ::std::os::raw::c_char,
arg1: *const ::std::os::raw::c_char,
cmp: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assertion_message_cmpnum(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
expr: *const ::std::os::raw::c_char,
arg1: u128,
cmp: *const ::std::os::raw::c_char,
arg2: u128,
numtype: ::std::os::raw::c_char,
);
}
extern "C" {
pub fn g_assertion_message_error(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
expr: *const ::std::os::raw::c_char,
error: *const GError,
error_domain: GQuark,
error_code: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn g_test_add_vtable(
testpath: *const ::std::os::raw::c_char,
data_size: gsize,
test_data: gconstpointer,
data_setup: GTestFixtureFunc,
data_test: GTestFixtureFunc,
data_teardown: GTestFixtureFunc,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GTestConfig {
pub test_initialized: gboolean,
pub test_quick: gboolean,
pub test_perf: gboolean,
pub test_verbose: gboolean,
pub test_quiet: gboolean,
pub test_undefined: gboolean,
}
#[test]
fn bindgen_test_layout_GTestConfig() {
assert_eq!(
::std::mem::size_of::<GTestConfig>(),
24usize,
concat!("Size of: ", stringify!(GTestConfig))
);
assert_eq!(
::std::mem::align_of::<GTestConfig>(),
4usize,
concat!("Alignment of ", stringify!(GTestConfig))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_initialized as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_initialized))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_quick as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_quick))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_perf as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_perf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_verbose as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_verbose))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_quiet as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_quiet))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestConfig>())).test_undefined as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_undefined))
);
}
extern "C" {
pub static g_test_config_vars: *const GTestConfig;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTestResult {
G_TEST_RUN_SUCCESS = 0,
G_TEST_RUN_SKIPPED = 1,
G_TEST_RUN_FAILURE = 2,
G_TEST_RUN_INCOMPLETE = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTestLogType {
G_TEST_LOG_NONE = 0,
G_TEST_LOG_ERROR = 1,
G_TEST_LOG_START_BINARY = 2,
G_TEST_LOG_LIST_CASE = 3,
G_TEST_LOG_SKIP_CASE = 4,
G_TEST_LOG_START_CASE = 5,
G_TEST_LOG_STOP_CASE = 6,
G_TEST_LOG_MIN_RESULT = 7,
G_TEST_LOG_MAX_RESULT = 8,
G_TEST_LOG_MESSAGE = 9,
G_TEST_LOG_START_SUITE = 10,
G_TEST_LOG_STOP_SUITE = 11,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GTestLogMsg {
pub log_type: GTestLogType,
pub n_strings: guint,
pub strings: *mut *mut gchar,
pub n_nums: guint,
pub nums: *mut u128,
}
#[test]
fn bindgen_test_layout_GTestLogMsg() {
assert_eq!(
::std::mem::size_of::<GTestLogMsg>(),
32usize,
concat!("Size of: ", stringify!(GTestLogMsg))
);
assert_eq!(
::std::mem::align_of::<GTestLogMsg>(),
8usize,
concat!("Alignment of ", stringify!(GTestLogMsg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogMsg>())).log_type as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(log_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogMsg>())).n_strings as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(n_strings))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogMsg>())).strings as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(strings))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogMsg>())).n_nums as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(n_nums))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogMsg>())).nums as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(nums))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GTestLogBuffer {
pub data: *mut GString,
pub msgs: *mut GSList,
}
#[test]
fn bindgen_test_layout_GTestLogBuffer() {
assert_eq!(
::std::mem::size_of::<GTestLogBuffer>(),
16usize,
concat!("Size of: ", stringify!(GTestLogBuffer))
);
assert_eq!(
::std::mem::align_of::<GTestLogBuffer>(),
8usize,
concat!("Alignment of ", stringify!(GTestLogBuffer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogBuffer>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GTestLogBuffer), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GTestLogBuffer>())).msgs as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(GTestLogBuffer), "::", stringify!(msgs))
);
}
extern "C" {
pub fn g_test_log_type_name(log_type: GTestLogType) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn g_test_log_buffer_new() -> *mut GTestLogBuffer;
}
extern "C" {
pub fn g_test_log_buffer_free(tbuffer: *mut GTestLogBuffer);
}
extern "C" {
pub fn g_test_log_buffer_push(
tbuffer: *mut GTestLogBuffer,
n_bytes: guint,
bytes: *const guint8,
);
}
extern "C" {
pub fn g_test_log_buffer_pop(tbuffer: *mut GTestLogBuffer) -> *mut GTestLogMsg;
}
extern "C" {
pub fn g_test_log_msg_free(tmsg: *mut GTestLogMsg);
}
pub type GTestLogFatalFunc = ::std::option::Option<
unsafe extern "C" fn(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
user_data: gpointer,
) -> gboolean,
>;
extern "C" {
pub fn g_test_log_set_fatal_handler(log_func: GTestLogFatalFunc, user_data: gpointer);
}
extern "C" {
pub fn g_test_expect_message(
log_domain: *const gchar,
log_level: GLogLevelFlags,
pattern: *const gchar,
);
}
extern "C" {
pub fn g_test_assert_expected_messages_internal(
domain: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
func: *const ::std::os::raw::c_char,
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTestFileType {
G_TEST_DIST = 0,
G_TEST_BUILT = 1,
}
extern "C" {
pub fn g_test_build_filename(
file_type: GTestFileType,
first_path: *const gchar,
...
) -> *mut gchar;
}
extern "C" {
pub fn g_test_get_dir(file_type: GTestFileType) -> *const gchar;
}
extern "C" {
pub fn g_test_get_filename(
file_type: GTestFileType,
first_path: *const gchar,
...
) -> *const gchar;
}
pub type GThreadPool = _GThreadPool;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThreadPool {
pub func: GFunc,
pub user_data: gpointer,
pub exclusive: gboolean,
}
#[test]
fn bindgen_test_layout__GThreadPool() {
assert_eq!(
::std::mem::size_of::<_GThreadPool>(),
24usize,
concat!("Size of: ", stringify!(_GThreadPool))
);
assert_eq!(
::std::mem::align_of::<_GThreadPool>(),
8usize,
concat!("Alignment of ", stringify!(_GThreadPool))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadPool>())).func as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GThreadPool), "::", stringify!(func))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadPool>())).user_data as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GThreadPool), "::", stringify!(user_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadPool>())).exclusive as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GThreadPool), "::", stringify!(exclusive))
);
}
extern "C" {
pub fn g_thread_pool_new(
func: GFunc,
user_data: gpointer,
max_threads: gint,
exclusive: gboolean,
error: *mut *mut GError,
) -> *mut GThreadPool;
}
extern "C" {
pub fn g_thread_pool_free(pool: *mut GThreadPool, immediate: gboolean, wait_: gboolean);
}
extern "C" {
pub fn g_thread_pool_push(
pool: *mut GThreadPool,
data: gpointer,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_thread_pool_unprocessed(pool: *mut GThreadPool) -> guint;
}
extern "C" {
pub fn g_thread_pool_set_sort_function(
pool: *mut GThreadPool,
func: GCompareDataFunc,
user_data: gpointer,
);
}
extern "C" {
pub fn g_thread_pool_move_to_front(pool: *mut GThreadPool, data: gpointer) -> gboolean;
}
extern "C" {
pub fn g_thread_pool_set_max_threads(
pool: *mut GThreadPool,
max_threads: gint,
error: *mut *mut GError,
) -> gboolean;
}
extern "C" {
pub fn g_thread_pool_get_max_threads(pool: *mut GThreadPool) -> gint;
}
extern "C" {
pub fn g_thread_pool_get_num_threads(pool: *mut GThreadPool) -> guint;
}
extern "C" {
pub fn g_thread_pool_set_max_unused_threads(max_threads: gint);
}
extern "C" {
pub fn g_thread_pool_get_max_unused_threads() -> gint;
}
extern "C" {
pub fn g_thread_pool_get_num_unused_threads() -> guint;
}
extern "C" {
pub fn g_thread_pool_stop_unused_threads();
}
extern "C" {
pub fn g_thread_pool_set_max_idle_time(interval: guint);
}
extern "C" {
pub fn g_thread_pool_get_max_idle_time() -> guint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTimer {
_unused: [u8; 0],
}
pub type GTimer = _GTimer;
extern "C" {
pub fn g_timer_new() -> *mut GTimer;
}
extern "C" {
pub fn g_timer_destroy(timer: *mut GTimer);
}
extern "C" {
pub fn g_timer_start(timer: *mut GTimer);
}
extern "C" {
pub fn g_timer_stop(timer: *mut GTimer);
}
extern "C" {
pub fn g_timer_reset(timer: *mut GTimer);
}
extern "C" {
pub fn g_timer_continue(timer: *mut GTimer);
}
extern "C" {
pub fn g_timer_elapsed(timer: *mut GTimer, microseconds: *mut gulong) -> gdouble;
}
extern "C" {
pub fn g_usleep(microseconds: gulong);
}
extern "C" {
pub fn g_time_val_add(time_: *mut GTimeVal, microseconds: glong);
}
extern "C" {
pub fn g_time_val_from_iso8601(iso_date: *const gchar, time_: *mut GTimeVal) -> gboolean;
}
extern "C" {
pub fn g_time_val_to_iso8601(time_: *mut GTimeVal) -> *mut gchar;
}
pub type GTrashStack = _GTrashStack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTrashStack {
pub next: *mut GTrashStack,
}
#[test]
fn bindgen_test_layout__GTrashStack() {
assert_eq!(
::std::mem::size_of::<_GTrashStack>(),
8usize,
concat!("Size of: ", stringify!(_GTrashStack))
);
assert_eq!(
::std::mem::align_of::<_GTrashStack>(),
8usize,
concat!("Alignment of ", stringify!(_GTrashStack))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTrashStack>())).next as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTrashStack), "::", stringify!(next))
);
}
extern "C" {
pub fn g_trash_stack_push(stack_p: *mut *mut GTrashStack, data_p: gpointer);
}
extern "C" {
pub fn g_trash_stack_pop(stack_p: *mut *mut GTrashStack) -> gpointer;
}
extern "C" {
pub fn g_trash_stack_peek(stack_p: *mut *mut GTrashStack) -> gpointer;
}
extern "C" {
pub fn g_trash_stack_height(stack_p: *mut *mut GTrashStack) -> guint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTree {
_unused: [u8; 0],
}
pub type GTree = _GTree;
pub type GTraverseFunc = ::std::option::Option<
unsafe extern "C" fn(key: gpointer, value: gpointer, data: gpointer) -> gboolean,
>;
extern "C" {
pub fn g_tree_new(key_compare_func: GCompareFunc) -> *mut GTree;
}
extern "C" {
pub fn g_tree_new_with_data(
key_compare_func: GCompareDataFunc,
key_compare_data: gpointer,
) -> *mut GTree;
}
extern "C" {
pub fn g_tree_new_full(
key_compare_func: GCompareDataFunc,
key_compare_data: gpointer,
key_destroy_func: GDestroyNotify,
value_destroy_func: GDestroyNotify,
) -> *mut GTree;
}
extern "C" {
pub fn g_tree_ref(tree: *mut GTree) -> *mut GTree;
}
extern "C" {
pub fn g_tree_unref(tree: *mut GTree);
}
extern "C" {
pub fn g_tree_destroy(tree: *mut GTree);
}
extern "C" {
pub fn g_tree_insert(tree: *mut GTree, key: gpointer, value: gpointer);
}
extern "C" {
pub fn g_tree_replace(tree: *mut GTree, key: gpointer, value: gpointer);
}
extern "C" {
pub fn g_tree_remove(tree: *mut GTree, key: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_tree_steal(tree: *mut GTree, key: gconstpointer) -> gboolean;
}
extern "C" {
pub fn g_tree_lookup(tree: *mut GTree, key: gconstpointer) -> gpointer;
}
extern "C" {
pub fn g_tree_lookup_extended(
tree: *mut GTree,
lookup_key: gconstpointer,
orig_key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_tree_foreach(tree: *mut GTree, func: GTraverseFunc, user_data: gpointer);
}
extern "C" {
pub fn g_tree_traverse(
tree: *mut GTree,
traverse_func: GTraverseFunc,
traverse_type: GTraverseType,
user_data: gpointer,
);
}
extern "C" {
pub fn g_tree_search(
tree: *mut GTree,
search_func: GCompareFunc,
user_data: gconstpointer,
) -> gpointer;
}
extern "C" {
pub fn g_tree_height(tree: *mut GTree) -> gint;
}
extern "C" {
pub fn g_tree_nnodes(tree: *mut GTree) -> gint;
}
extern "C" {
pub fn g_uri_unescape_string(
escaped_string: *const ::std::os::raw::c_char,
illegal_characters: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn g_uri_unescape_segment(
escaped_string: *const ::std::os::raw::c_char,
escaped_string_end: *const ::std::os::raw::c_char,
illegal_characters: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn g_uri_parse_scheme(uri: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn g_uri_escape_string(
unescaped: *const ::std::os::raw::c_char,
reserved_chars_allowed: *const ::std::os::raw::c_char,
allow_utf8: gboolean,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn g_uuid_string_is_valid(str: *const gchar) -> gboolean;
}
extern "C" {
pub fn g_uuid_string_random() -> *mut gchar;
}
extern "C" {
pub static glib_major_version: guint;
}
extern "C" {
pub static glib_minor_version: guint;
}
extern "C" {
pub static glib_micro_version: guint;
}
extern "C" {
pub static glib_interface_age: guint;
}
extern "C" {
pub static glib_binary_age: guint;
}
extern "C" {
pub fn glib_check_version(
required_major: guint,
required_minor: guint,
required_micro: guint,
) -> *const gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAllocator {
_unused: [u8; 0],
}
pub type GAllocator = _GAllocator;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMemChunk {
_unused: [u8; 0],
}
pub type GMemChunk = _GMemChunk;
extern "C" {
pub fn g_mem_chunk_new(
name: *const gchar,
atom_size: gint,
area_size: gsize,
type_: gint,
) -> *mut GMemChunk;
}
extern "C" {
pub fn g_mem_chunk_destroy(mem_chunk: *mut GMemChunk);
}
extern "C" {
pub fn g_mem_chunk_alloc(mem_chunk: *mut GMemChunk) -> gpointer;
}
extern "C" {
pub fn g_mem_chunk_alloc0(mem_chunk: *mut GMemChunk) -> gpointer;
}
extern "C" {
pub fn g_mem_chunk_free(mem_chunk: *mut GMemChunk, mem: gpointer);
}
extern "C" {
pub fn g_mem_chunk_clean(mem_chunk: *mut GMemChunk);
}
extern "C" {
pub fn g_mem_chunk_reset(mem_chunk: *mut GMemChunk);
}
extern "C" {
pub fn g_mem_chunk_print(mem_chunk: *mut GMemChunk);
}
extern "C" {
pub fn g_mem_chunk_info();
}
extern "C" {
pub fn g_blow_chunks();
}
extern "C" {
pub fn g_allocator_new(name: *const gchar, n_preallocs: guint) -> *mut GAllocator;
}
extern "C" {
pub fn g_allocator_free(allocator: *mut GAllocator);
}
extern "C" {
pub fn g_list_push_allocator(allocator: *mut GAllocator);
}
extern "C" {
pub fn g_list_pop_allocator();
}
extern "C" {
pub fn g_slist_push_allocator(allocator: *mut GAllocator);
}
extern "C" {
pub fn g_slist_pop_allocator();
}
extern "C" {
pub fn g_node_push_allocator(allocator: *mut GAllocator);
}
extern "C" {
pub fn g_node_pop_allocator();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCache {
_unused: [u8; 0],
}
pub type GCache = _GCache;
pub type GCacheNewFunc = ::std::option::Option<unsafe extern "C" fn(key: gpointer) -> gpointer>;
pub type GCacheDupFunc = ::std::option::Option<unsafe extern "C" fn(value: gpointer) -> gpointer>;
pub type GCacheDestroyFunc = ::std::option::Option<unsafe extern "C" fn(value: gpointer)>;
extern "C" {
pub fn g_cache_new(
value_new_func: GCacheNewFunc,
value_destroy_func: GCacheDestroyFunc,
key_dup_func: GCacheDupFunc,
key_destroy_func: GCacheDestroyFunc,
hash_key_func: GHashFunc,
hash_value_func: GHashFunc,
key_equal_func: GEqualFunc,
) -> *mut GCache;
}
extern "C" {
pub fn g_cache_destroy(cache: *mut GCache);
}
extern "C" {
pub fn g_cache_insert(cache: *mut GCache, key: gpointer) -> gpointer;
}
extern "C" {
pub fn g_cache_remove(cache: *mut GCache, value: gconstpointer);
}
extern "C" {
pub fn g_cache_key_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer);
}
extern "C" {
pub fn g_cache_value_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer);
}
pub type GCompletion = _GCompletion;
pub type GCompletionFunc =
::std::option::Option<unsafe extern "C" fn(arg1: gpointer) -> *mut gchar>;
pub type GCompletionStrncmpFunc = ::std::option::Option<
unsafe extern "C" fn(s1: *const gchar, s2: *const gchar, n: gsize) -> gint,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCompletion {
pub items: *mut GList,
pub func: GCompletionFunc,
pub prefix: *mut gchar,
pub cache: *mut GList,
pub strncmp_func: GCompletionStrncmpFunc,
}
#[test]
fn bindgen_test_layout__GCompletion() {
assert_eq!(
::std::mem::size_of::<_GCompletion>(),
40usize,
concat!("Size of: ", stringify!(_GCompletion))
);
assert_eq!(
::std::mem::align_of::<_GCompletion>(),
8usize,
concat!("Alignment of ", stringify!(_GCompletion))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCompletion>())).items as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GCompletion), "::", stringify!(items))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCompletion>())).func as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GCompletion), "::", stringify!(func))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCompletion>())).prefix as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GCompletion), "::", stringify!(prefix))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCompletion>())).cache as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GCompletion), "::", stringify!(cache))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCompletion>())).strncmp_func as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GCompletion), "::", stringify!(strncmp_func))
);
}
extern "C" {
pub fn g_completion_new(func: GCompletionFunc) -> *mut GCompletion;
}
extern "C" {
pub fn g_completion_add_items(cmp: *mut GCompletion, items: *mut GList);
}
extern "C" {
pub fn g_completion_remove_items(cmp: *mut GCompletion, items: *mut GList);
}
extern "C" {
pub fn g_completion_clear_items(cmp: *mut GCompletion);
}
extern "C" {
pub fn g_completion_complete(
cmp: *mut GCompletion,
prefix: *const gchar,
new_prefix: *mut *mut gchar,
) -> *mut GList;
}
extern "C" {
pub fn g_completion_complete_utf8(
cmp: *mut GCompletion,
prefix: *const gchar,
new_prefix: *mut *mut gchar,
) -> *mut GList;
}
extern "C" {
pub fn g_completion_set_compare(cmp: *mut GCompletion, strncmp_func: GCompletionStrncmpFunc);
}
extern "C" {
pub fn g_completion_free(cmp: *mut GCompletion);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRelation {
_unused: [u8; 0],
}
pub type GRelation = _GRelation;
pub type GTuples = _GTuples;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTuples {
pub len: guint,
}
#[test]
fn bindgen_test_layout__GTuples() {
assert_eq!(
::std::mem::size_of::<_GTuples>(),
4usize,
concat!("Size of: ", stringify!(_GTuples))
);
assert_eq!(
::std::mem::align_of::<_GTuples>(),
4usize,
concat!("Alignment of ", stringify!(_GTuples))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTuples>())).len as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTuples), "::", stringify!(len))
);
}
extern "C" {
pub fn g_relation_new(fields: gint) -> *mut GRelation;
}
extern "C" {
pub fn g_relation_destroy(relation: *mut GRelation);
}
extern "C" {
pub fn g_relation_index(
relation: *mut GRelation,
field: gint,
hash_func: GHashFunc,
key_equal_func: GEqualFunc,
);
}
extern "C" {
pub fn g_relation_insert(relation: *mut GRelation, ...);
}
extern "C" {
pub fn g_relation_delete(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint;
}
extern "C" {
pub fn g_relation_select(
relation: *mut GRelation,
key: gconstpointer,
field: gint,
) -> *mut GTuples;
}
extern "C" {
pub fn g_relation_count(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint;
}
extern "C" {
pub fn g_relation_exists(relation: *mut GRelation, ...) -> gboolean;
}
extern "C" {
pub fn g_relation_print(relation: *mut GRelation);
}
extern "C" {
pub fn g_tuples_destroy(tuples: *mut GTuples);
}
extern "C" {
pub fn g_tuples_index(tuples: *mut GTuples, index_: gint, field: gint) -> gpointer;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GThreadPriority {
G_THREAD_PRIORITY_LOW = 0,
G_THREAD_PRIORITY_NORMAL = 1,
G_THREAD_PRIORITY_HIGH = 2,
G_THREAD_PRIORITY_URGENT = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThread {
pub func: GThreadFunc,
pub data: gpointer,
pub joinable: gboolean,
pub priority: GThreadPriority,
}
#[test]
fn bindgen_test_layout__GThread() {
assert_eq!(
::std::mem::size_of::<_GThread>(),
24usize,
concat!("Size of: ", stringify!(_GThread))
);
assert_eq!(
::std::mem::align_of::<_GThread>(),
8usize,
concat!("Alignment of ", stringify!(_GThread))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThread>())).func as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GThread), "::", stringify!(func))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThread>())).data as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GThread), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThread>())).joinable as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GThread), "::", stringify!(joinable))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThread>())).priority as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(_GThread), "::", stringify!(priority))
);
}
pub type GThreadFunctions = _GThreadFunctions;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThreadFunctions {
pub mutex_new: ::std::option::Option<unsafe extern "C" fn() -> *mut GMutex>,
pub mutex_lock: ::std::option::Option<unsafe extern "C" fn(mutex: *mut GMutex)>,
pub mutex_trylock: ::std::option::Option<unsafe extern "C" fn(mutex: *mut GMutex) -> gboolean>,
pub mutex_unlock: ::std::option::Option<unsafe extern "C" fn(mutex: *mut GMutex)>,
pub mutex_free: ::std::option::Option<unsafe extern "C" fn(mutex: *mut GMutex)>,
pub cond_new: ::std::option::Option<unsafe extern "C" fn() -> *mut GCond>,
pub cond_signal: ::std::option::Option<unsafe extern "C" fn(cond: *mut GCond)>,
pub cond_broadcast: ::std::option::Option<unsafe extern "C" fn(cond: *mut GCond)>,
pub cond_wait:
::std::option::Option<unsafe extern "C" fn(cond: *mut GCond, mutex: *mut GMutex)>,
pub cond_timed_wait: ::std::option::Option<
unsafe extern "C" fn(
cond: *mut GCond,
mutex: *mut GMutex,
end_time: *mut GTimeVal,
) -> gboolean,
>,
pub cond_free: ::std::option::Option<unsafe extern "C" fn(cond: *mut GCond)>,
pub private_new:
::std::option::Option<unsafe extern "C" fn(destructor: GDestroyNotify) -> *mut GPrivate>,
pub private_get:
::std::option::Option<unsafe extern "C" fn(private_key: *mut GPrivate) -> gpointer>,
pub private_set:
::std::option::Option<unsafe extern "C" fn(private_key: *mut GPrivate, data: gpointer)>,
pub thread_create: ::std::option::Option<
unsafe extern "C" fn(
func: GThreadFunc,
data: gpointer,
stack_size: gulong,
joinable: gboolean,
bound: gboolean,
priority: GThreadPriority,
thread: gpointer,
error: *mut *mut GError,
),
>,
pub thread_yield: ::std::option::Option<unsafe extern "C" fn()>,
pub thread_join: ::std::option::Option<unsafe extern "C" fn(thread: gpointer)>,
pub thread_exit: ::std::option::Option<unsafe extern "C" fn()>,
pub thread_set_priority:
::std::option::Option<unsafe extern "C" fn(thread: gpointer, priority: GThreadPriority)>,
pub thread_self: ::std::option::Option<unsafe extern "C" fn(thread: gpointer)>,
pub thread_equal: ::std::option::Option<
unsafe extern "C" fn(thread1: gpointer, thread2: gpointer) -> gboolean,
>,
}
#[test]
fn bindgen_test_layout__GThreadFunctions() {
assert_eq!(
::std::mem::size_of::<_GThreadFunctions>(),
168usize,
concat!("Size of: ", stringify!(_GThreadFunctions))
);
assert_eq!(
::std::mem::align_of::<_GThreadFunctions>(),
8usize,
concat!("Alignment of ", stringify!(_GThreadFunctions))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).mutex_new as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_new))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).mutex_lock as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_lock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).mutex_trylock as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_GThreadFunctions),
"::",
stringify!(mutex_trylock)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).mutex_unlock as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_unlock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).mutex_free as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_free))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).cond_new as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_new))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).cond_signal as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_signal))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GThreadFunctions>())).cond_broadcast as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(_GThreadFunctions),
"::",
stringify!(cond_broadcast)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).cond_wait as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_wait))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GThreadFunctions>())).cond_timed_wait as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(_GThreadFunctions),
"::",
stringify!(cond_timed_wait)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).cond_free as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_free))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).private_new as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_new))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).private_get as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_get))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).private_set as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_set))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_create as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(_GThreadFunctions),
"::",
stringify!(thread_create)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_yield as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_yield))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_join as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_join))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_exit as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_exit))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GThreadFunctions>())).thread_set_priority as *const _ as usize
},
144usize,
concat!(
"Offset of field: ",
stringify!(_GThreadFunctions),
"::",
stringify!(thread_set_priority)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_self as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_self))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GThreadFunctions>())).thread_equal as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_equal))
);
}
extern "C" {
pub static mut g_thread_functions_for_glib_use: GThreadFunctions;
}
extern "C" {
pub static mut g_thread_use_default_impl: gboolean;
}
extern "C" {
pub static mut g_thread_gettime: ::std::option::Option<unsafe extern "C" fn() -> guint64>;
}
extern "C" {
pub fn g_thread_create(
func: GThreadFunc,
data: gpointer,
joinable: gboolean,
error: *mut *mut GError,
) -> *mut GThread;
}
extern "C" {
pub fn g_thread_create_full(
func: GThreadFunc,
data: gpointer,
stack_size: gulong,
joinable: gboolean,
bound: gboolean,
priority: GThreadPriority,
error: *mut *mut GError,
) -> *mut GThread;
}
extern "C" {
pub fn g_thread_set_priority(thread: *mut GThread, priority: GThreadPriority);
}
extern "C" {
pub fn g_thread_foreach(thread_func: GFunc, user_data: gpointer);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sched_param {
pub sched_priority: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sched_param() {
assert_eq!(
::std::mem::size_of::<sched_param>(),
4usize,
concat!("Size of: ", stringify!(sched_param))
);
assert_eq!(
::std::mem::align_of::<sched_param>(),
4usize,
concat!("Alignment of ", stringify!(sched_param))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sched_param>())).sched_priority as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(sched_param), "::", stringify!(sched_priority))
);
}
pub type __cpu_mask = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cpu_set_t {
pub __bits: [__cpu_mask; 16usize],
}
#[test]
fn bindgen_test_layout_cpu_set_t() {
assert_eq!(
::std::mem::size_of::<cpu_set_t>(),
128usize,
concat!("Size of: ", stringify!(cpu_set_t))
);
assert_eq!(
::std::mem::align_of::<cpu_set_t>(),
8usize,
concat!("Alignment of ", stringify!(cpu_set_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<cpu_set_t>())).__bits as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(cpu_set_t), "::", stringify!(__bits))
);
}
extern "C" {
pub fn __sched_cpucount(__setsize: usize, __setp: *const cpu_set_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __sched_cpualloc(__count: usize) -> *mut cpu_set_t;
}
extern "C" {
pub fn __sched_cpufree(__set: *mut cpu_set_t);
}
extern "C" {
pub fn sched_setparam(__pid: __pid_t, __param: *const sched_param) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_getparam(__pid: __pid_t, __param: *mut sched_param) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_setscheduler(
__pid: __pid_t,
__policy: ::std::os::raw::c_int,
__param: *const sched_param,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_getscheduler(__pid: __pid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_yield() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_get_priority_max(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_get_priority_min(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sched_rr_get_interval(__pid: __pid_t, __t: *mut timespec) -> ::std::os::raw::c_int;
}
pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
pub const PTHREAD_CREATE_JOINABLE: _bindgen_ty_11 = _bindgen_ty_11::PTHREAD_CREATE_JOINABLE;
pub const PTHREAD_CREATE_DETACHED: _bindgen_ty_11 = _bindgen_ty_11::PTHREAD_CREATE_DETACHED;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_11 {
PTHREAD_CREATE_JOINABLE = 0,
PTHREAD_CREATE_DETACHED = 1,
}
pub const PTHREAD_MUTEX_TIMED_NP: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_TIMED_NP;
pub const PTHREAD_MUTEX_RECURSIVE_NP: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_RECURSIVE_NP;
pub const PTHREAD_MUTEX_ERRORCHECK_NP: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_ERRORCHECK_NP;
pub const PTHREAD_MUTEX_ADAPTIVE_NP: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_ADAPTIVE_NP;
pub const PTHREAD_MUTEX_NORMAL: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_TIMED_NP;
pub const PTHREAD_MUTEX_RECURSIVE: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_RECURSIVE_NP;
pub const PTHREAD_MUTEX_ERRORCHECK: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_ERRORCHECK_NP;
pub const PTHREAD_MUTEX_DEFAULT: _bindgen_ty_12 = _bindgen_ty_12::PTHREAD_MUTEX_TIMED_NP;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_12 {
PTHREAD_MUTEX_TIMED_NP = 0,
PTHREAD_MUTEX_RECURSIVE_NP = 1,
PTHREAD_MUTEX_ERRORCHECK_NP = 2,
PTHREAD_MUTEX_ADAPTIVE_NP = 3,
}
pub const PTHREAD_MUTEX_STALLED: _bindgen_ty_13 = _bindgen_ty_13::PTHREAD_MUTEX_STALLED;
pub const PTHREAD_MUTEX_STALLED_NP: _bindgen_ty_13 = _bindgen_ty_13::PTHREAD_MUTEX_STALLED;
pub const PTHREAD_MUTEX_ROBUST: _bindgen_ty_13 = _bindgen_ty_13::PTHREAD_MUTEX_ROBUST;
pub const PTHREAD_MUTEX_ROBUST_NP: _bindgen_ty_13 = _bindgen_ty_13::PTHREAD_MUTEX_ROBUST;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_13 {
PTHREAD_MUTEX_STALLED = 0,
PTHREAD_MUTEX_ROBUST = 1,
}
pub const PTHREAD_PRIO_NONE: _bindgen_ty_14 = _bindgen_ty_14::PTHREAD_PRIO_NONE;
pub const PTHREAD_PRIO_INHERIT: _bindgen_ty_14 = _bindgen_ty_14::PTHREAD_PRIO_INHERIT;
pub const PTHREAD_PRIO_PROTECT: _bindgen_ty_14 = _bindgen_ty_14::PTHREAD_PRIO_PROTECT;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_14 {
PTHREAD_PRIO_NONE = 0,
PTHREAD_PRIO_INHERIT = 1,
PTHREAD_PRIO_PROTECT = 2,
}
pub const PTHREAD_RWLOCK_PREFER_READER_NP: _bindgen_ty_15 =
_bindgen_ty_15::PTHREAD_RWLOCK_PREFER_READER_NP;
pub const PTHREAD_RWLOCK_PREFER_WRITER_NP: _bindgen_ty_15 =
_bindgen_ty_15::PTHREAD_RWLOCK_PREFER_WRITER_NP;
pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP: _bindgen_ty_15 =
_bindgen_ty_15::PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP;
pub const PTHREAD_RWLOCK_DEFAULT_NP: _bindgen_ty_15 =
_bindgen_ty_15::PTHREAD_RWLOCK_PREFER_READER_NP;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_15 {
PTHREAD_RWLOCK_PREFER_READER_NP = 0,
PTHREAD_RWLOCK_PREFER_WRITER_NP = 1,
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2,
}
pub const PTHREAD_INHERIT_SCHED: _bindgen_ty_16 = _bindgen_ty_16::PTHREAD_INHERIT_SCHED;
pub const PTHREAD_EXPLICIT_SCHED: _bindgen_ty_16 = _bindgen_ty_16::PTHREAD_EXPLICIT_SCHED;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_16 {
PTHREAD_INHERIT_SCHED = 0,
PTHREAD_EXPLICIT_SCHED = 1,
}
pub const PTHREAD_SCOPE_SYSTEM: _bindgen_ty_17 = _bindgen_ty_17::PTHREAD_SCOPE_SYSTEM;
pub const PTHREAD_SCOPE_PROCESS: _bindgen_ty_17 = _bindgen_ty_17::PTHREAD_SCOPE_PROCESS;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_17 {
PTHREAD_SCOPE_SYSTEM = 0,
PTHREAD_SCOPE_PROCESS = 1,
}
pub const PTHREAD_PROCESS_PRIVATE: _bindgen_ty_18 = _bindgen_ty_18::PTHREAD_PROCESS_PRIVATE;
pub const PTHREAD_PROCESS_SHARED: _bindgen_ty_18 = _bindgen_ty_18::PTHREAD_PROCESS_SHARED;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_18 {
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _pthread_cleanup_buffer {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __canceltype: ::std::os::raw::c_int,
pub __prev: *mut _pthread_cleanup_buffer,
}
#[test]
fn bindgen_test_layout__pthread_cleanup_buffer() {
assert_eq!(
::std::mem::size_of::<_pthread_cleanup_buffer>(),
32usize,
concat!("Size of: ", stringify!(_pthread_cleanup_buffer))
);
assert_eq!(
::std::mem::align_of::<_pthread_cleanup_buffer>(),
8usize,
concat!("Alignment of ", stringify!(_pthread_cleanup_buffer))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_pthread_cleanup_buffer>())).__routine as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_pthread_cleanup_buffer),
"::",
stringify!(__routine)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_pthread_cleanup_buffer>())).__arg as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__arg))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_pthread_cleanup_buffer>())).__canceltype as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(_pthread_cleanup_buffer),
"::",
stringify!(__canceltype)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_pthread_cleanup_buffer>())).__prev as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__prev))
);
}
pub const PTHREAD_CANCEL_ENABLE: _bindgen_ty_19 = _bindgen_ty_19::PTHREAD_CANCEL_ENABLE;
pub const PTHREAD_CANCEL_DISABLE: _bindgen_ty_19 = _bindgen_ty_19::PTHREAD_CANCEL_DISABLE;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_19 {
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
}
pub const PTHREAD_CANCEL_DEFERRED: _bindgen_ty_20 = _bindgen_ty_20::PTHREAD_CANCEL_DEFERRED;
pub const PTHREAD_CANCEL_ASYNCHRONOUS: _bindgen_ty_20 = _bindgen_ty_20::PTHREAD_CANCEL_ASYNCHRONOUS;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_20 {
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 1,
}
extern "C" {
pub fn pthread_create(
__newthread: *mut pthread_t,
__attr: *const pthread_attr_t,
__start_routine: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
__arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_exit(__retval: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn pthread_join(
__th: pthread_t,
__thread_return: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_detach(__th: pthread_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_self() -> pthread_t;
}
extern "C" {
pub fn pthread_equal(__thread1: pthread_t, __thread2: pthread_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_init(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_destroy(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getdetachstate(
__attr: *const pthread_attr_t,
__detachstate: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setdetachstate(
__attr: *mut pthread_attr_t,
__detachstate: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getguardsize(
__attr: *const pthread_attr_t,
__guardsize: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setguardsize(
__attr: *mut pthread_attr_t,
__guardsize: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getschedparam(
__attr: *const pthread_attr_t,
__param: *mut sched_param,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setschedparam(
__attr: *mut pthread_attr_t,
__param: *const sched_param,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getschedpolicy(
__attr: *const pthread_attr_t,
__policy: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setschedpolicy(
__attr: *mut pthread_attr_t,
__policy: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getinheritsched(
__attr: *const pthread_attr_t,
__inherit: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setinheritsched(
__attr: *mut pthread_attr_t,
__inherit: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getscope(
__attr: *const pthread_attr_t,
__scope: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setscope(
__attr: *mut pthread_attr_t,
__scope: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getstackaddr(
__attr: *const pthread_attr_t,
__stackaddr: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setstackaddr(
__attr: *mut pthread_attr_t,
__stackaddr: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getstacksize(
__attr: *const pthread_attr_t,
__stacksize: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setstacksize(
__attr: *mut pthread_attr_t,
__stacksize: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_getstack(
__attr: *const pthread_attr_t,
__stackaddr: *mut *mut ::std::os::raw::c_void,
__stacksize: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_attr_setstack(
__attr: *mut pthread_attr_t,
__stackaddr: *mut ::std::os::raw::c_void,
__stacksize: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_setschedparam(
__target_thread: pthread_t,
__policy: ::std::os::raw::c_int,
__param: *const sched_param,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_getschedparam(
__target_thread: pthread_t,
__policy: *mut ::std::os::raw::c_int,
__param: *mut sched_param,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_setschedprio(
__target_thread: pthread_t,
__prio: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_once(
__once_control: *mut pthread_once_t,
__init_routine: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_setcancelstate(
__state: ::std::os::raw::c_int,
__oldstate: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_setcanceltype(
__type: ::std::os::raw::c_int,
__oldtype: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cancel(__th: pthread_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_testcancel();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_unwind_buf_t {
pub __cancel_jmp_buf: [__pthread_unwind_buf_t__bindgen_ty_1; 1usize],
pub __pad: [*mut ::std::os::raw::c_void; 4usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_unwind_buf_t__bindgen_ty_1 {
pub __cancel_jmp_buf: __jmp_buf,
pub __mask_was_saved: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___pthread_unwind_buf_t__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<__pthread_unwind_buf_t__bindgen_ty_1>(),
72usize,
concat!("Size of: ", stringify!(__pthread_unwind_buf_t__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__pthread_unwind_buf_t__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_unwind_buf_t__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_unwind_buf_t__bindgen_ty_1>())).__cancel_jmp_buf
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_unwind_buf_t__bindgen_ty_1),
"::",
stringify!(__cancel_jmp_buf)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_unwind_buf_t__bindgen_ty_1>())).__mask_was_saved
as *const _ as usize
},
64usize,
concat!(
"Offset of field: ",
stringify!(__pthread_unwind_buf_t__bindgen_ty_1),
"::",
stringify!(__mask_was_saved)
)
);
}
#[test]
fn bindgen_test_layout___pthread_unwind_buf_t() {
assert_eq!(
::std::mem::size_of::<__pthread_unwind_buf_t>(),
104usize,
concat!("Size of: ", stringify!(__pthread_unwind_buf_t))
);
assert_eq!(
::std::mem::align_of::<__pthread_unwind_buf_t>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_unwind_buf_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_unwind_buf_t>())).__cancel_jmp_buf as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_unwind_buf_t),
"::",
stringify!(__cancel_jmp_buf)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_unwind_buf_t>())).__pad as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(__pthread_unwind_buf_t), "::", stringify!(__pad))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_cleanup_frame {
pub __cancel_routine:
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __cancel_arg: *mut ::std::os::raw::c_void,
pub __do_it: ::std::os::raw::c_int,
pub __cancel_type: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___pthread_cleanup_frame() {
assert_eq!(
::std::mem::size_of::<__pthread_cleanup_frame>(),
24usize,
concat!("Size of: ", stringify!(__pthread_cleanup_frame))
);
assert_eq!(
::std::mem::align_of::<__pthread_cleanup_frame>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cleanup_frame))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cleanup_frame>())).__cancel_routine as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cleanup_frame),
"::",
stringify!(__cancel_routine)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cleanup_frame>())).__cancel_arg as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cleanup_frame),
"::",
stringify!(__cancel_arg)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__pthread_cleanup_frame>())).__do_it as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cleanup_frame),
"::",
stringify!(__do_it)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__pthread_cleanup_frame>())).__cancel_type as *const _ as usize
},
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cleanup_frame),
"::",
stringify!(__cancel_type)
)
);
}
extern "C" {
pub fn __pthread_register_cancel(__buf: *mut __pthread_unwind_buf_t);
}
extern "C" {
pub fn __pthread_unregister_cancel(__buf: *mut __pthread_unwind_buf_t);
}
extern "C" {
pub fn __pthread_unwind_next(__buf: *mut __pthread_unwind_buf_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __jmp_buf_tag {
_unused: [u8; 0],
}
extern "C" {
pub fn __sigsetjmp(
__env: *mut __jmp_buf_tag,
__savemask: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_init(
__mutex: *mut pthread_mutex_t,
__mutexattr: *const pthread_mutexattr_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_destroy(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_trylock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_lock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_timedlock(
__mutex: *mut pthread_mutex_t,
__abstime: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_unlock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_getprioceiling(
__mutex: *const pthread_mutex_t,
__prioceiling: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_setprioceiling(
__mutex: *mut pthread_mutex_t,
__prioceiling: ::std::os::raw::c_int,
__old_ceiling: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutex_consistent(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_init(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_destroy(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_getpshared(
__attr: *const pthread_mutexattr_t,
__pshared: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_setpshared(
__attr: *mut pthread_mutexattr_t,
__pshared: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_gettype(
__attr: *const pthread_mutexattr_t,
__kind: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_settype(
__attr: *mut pthread_mutexattr_t,
__kind: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_getprotocol(
__attr: *const pthread_mutexattr_t,
__protocol: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_setprotocol(
__attr: *mut pthread_mutexattr_t,
__protocol: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_getprioceiling(
__attr: *const pthread_mutexattr_t,
__prioceiling: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_setprioceiling(
__attr: *mut pthread_mutexattr_t,
__prioceiling: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_getrobust(
__attr: *const pthread_mutexattr_t,
__robustness: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_mutexattr_setrobust(
__attr: *mut pthread_mutexattr_t,
__robustness: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_init(
__rwlock: *mut pthread_rwlock_t,
__attr: *const pthread_rwlockattr_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_destroy(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_rdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_tryrdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_timedrdlock(
__rwlock: *mut pthread_rwlock_t,
__abstime: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_wrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_trywrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_timedwrlock(
__rwlock: *mut pthread_rwlock_t,
__abstime: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlock_unlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_init(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_destroy(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_getpshared(
__attr: *const pthread_rwlockattr_t,
__pshared: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_setpshared(
__attr: *mut pthread_rwlockattr_t,
__pshared: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_getkind_np(
__attr: *const pthread_rwlockattr_t,
__pref: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_rwlockattr_setkind_np(
__attr: *mut pthread_rwlockattr_t,
__pref: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_init(
__cond: *mut pthread_cond_t,
__cond_attr: *const pthread_condattr_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_destroy(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_signal(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_broadcast(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_wait(
__cond: *mut pthread_cond_t,
__mutex: *mut pthread_mutex_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_cond_timedwait(
__cond: *mut pthread_cond_t,
__mutex: *mut pthread_mutex_t,
__abstime: *const timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_init(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_destroy(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_getpshared(
__attr: *const pthread_condattr_t,
__pshared: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_setpshared(
__attr: *mut pthread_condattr_t,
__pshared: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_getclock(
__attr: *const pthread_condattr_t,
__clock_id: *mut __clockid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_condattr_setclock(
__attr: *mut pthread_condattr_t,
__clock_id: __clockid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_spin_init(
__lock: *mut pthread_spinlock_t,
__pshared: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_spin_destroy(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_spin_lock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_spin_trylock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_spin_unlock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrier_init(
__barrier: *mut pthread_barrier_t,
__attr: *const pthread_barrierattr_t,
__count: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrier_destroy(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrier_wait(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrierattr_init(__attr: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrierattr_destroy(__attr: *mut pthread_barrierattr_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrierattr_getpshared(
__attr: *const pthread_barrierattr_t,
__pshared: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_barrierattr_setpshared(
__attr: *mut pthread_barrierattr_t,
__pshared: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_key_create(
__key: *mut pthread_key_t,
__destr_function: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void),
>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_key_delete(__key: pthread_key_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_getspecific(__key: pthread_key_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn pthread_setspecific(
__key: pthread_key_t,
__pointer: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_getcpuclockid(
__thread_id: pthread_t,
__clock_id: *mut __clockid_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pthread_atfork(
__prepare: ::std::option::Option<unsafe extern "C" fn()>,
__parent: ::std::option::Option<unsafe extern "C" fn()>,
__child: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GStaticMutex {
pub mutex: *mut GMutex,
pub unused: pthread_mutex_t,
}
#[test]
fn bindgen_test_layout_GStaticMutex() {
assert_eq!(
::std::mem::size_of::<GStaticMutex>(),
48usize,
concat!("Size of: ", stringify!(GStaticMutex))
);
assert_eq!(
::std::mem::align_of::<GStaticMutex>(),
8usize,
concat!("Alignment of ", stringify!(GStaticMutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GStaticMutex>())).mutex as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GStaticMutex), "::", stringify!(mutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GStaticMutex>())).unused as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(GStaticMutex), "::", stringify!(unused))
);
}
impl ::std::fmt::Debug for GStaticMutex {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "GStaticMutex {{ mutex: {:?}, unused: {:?} }}", self.mutex, self.unused)
}
}
extern "C" {
pub fn g_static_mutex_init(mutex: *mut GStaticMutex);
}
extern "C" {
pub fn g_static_mutex_free(mutex: *mut GStaticMutex);
}
extern "C" {
pub fn g_static_mutex_get_mutex_impl(mutex: *mut GStaticMutex) -> *mut GMutex;
}
pub type GStaticRecMutex = _GStaticRecMutex;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GStaticRecMutex {
pub mutex: GStaticMutex,
pub depth: guint,
pub unused: _GStaticRecMutex__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GStaticRecMutex__bindgen_ty_1 {
pub owner: pthread_t,
pub dummy: gdouble,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout__GStaticRecMutex__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GStaticRecMutex__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(_GStaticRecMutex__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GStaticRecMutex__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GStaticRecMutex__bindgen_ty_1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GStaticRecMutex__bindgen_ty_1>())).owner as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GStaticRecMutex__bindgen_ty_1),
"::",
stringify!(owner)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GStaticRecMutex__bindgen_ty_1>())).dummy as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GStaticRecMutex__bindgen_ty_1),
"::",
stringify!(dummy)
)
);
}
impl ::std::fmt::Debug for _GStaticRecMutex__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GStaticRecMutex__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout__GStaticRecMutex() {
assert_eq!(
::std::mem::size_of::<_GStaticRecMutex>(),
64usize,
concat!("Size of: ", stringify!(_GStaticRecMutex))
);
assert_eq!(
::std::mem::align_of::<_GStaticRecMutex>(),
8usize,
concat!("Alignment of ", stringify!(_GStaticRecMutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRecMutex>())).mutex as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(mutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRecMutex>())).depth as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(depth))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRecMutex>())).unused as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(unused))
);
}
impl ::std::fmt::Debug for _GStaticRecMutex {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"_GStaticRecMutex {{ mutex: {:?}, depth: {:?}, unused: {:?} }}",
self.mutex, self.depth, self.unused
)
}
}
extern "C" {
pub fn g_static_rec_mutex_init(mutex: *mut GStaticRecMutex);
}
extern "C" {
pub fn g_static_rec_mutex_lock(mutex: *mut GStaticRecMutex);
}
extern "C" {
pub fn g_static_rec_mutex_trylock(mutex: *mut GStaticRecMutex) -> gboolean;
}
extern "C" {
pub fn g_static_rec_mutex_unlock(mutex: *mut GStaticRecMutex);
}
extern "C" {
pub fn g_static_rec_mutex_lock_full(mutex: *mut GStaticRecMutex, depth: guint);
}
extern "C" {
pub fn g_static_rec_mutex_unlock_full(mutex: *mut GStaticRecMutex) -> guint;
}
extern "C" {
pub fn g_static_rec_mutex_free(mutex: *mut GStaticRecMutex);
}
pub type GStaticRWLock = _GStaticRWLock;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GStaticRWLock {
pub mutex: GStaticMutex,
pub read_cond: *mut GCond,
pub write_cond: *mut GCond,
pub read_counter: guint,
pub have_writer: gboolean,
pub want_to_read: guint,
pub want_to_write: guint,
}
#[test]
fn bindgen_test_layout__GStaticRWLock() {
assert_eq!(
::std::mem::size_of::<_GStaticRWLock>(),
80usize,
concat!("Size of: ", stringify!(_GStaticRWLock))
);
assert_eq!(
::std::mem::align_of::<_GStaticRWLock>(),
8usize,
concat!("Alignment of ", stringify!(_GStaticRWLock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).mutex as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(mutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).read_cond as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(read_cond))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).write_cond as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(write_cond))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).read_counter as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(read_counter))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).have_writer as *const _ as usize },
68usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(have_writer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).want_to_read as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(want_to_read))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticRWLock>())).want_to_write as *const _ as usize },
76usize,
concat!("Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(want_to_write))
);
}
impl ::std::fmt::Debug for _GStaticRWLock {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write ! ( f , "_GStaticRWLock {{ mutex: {:?}, read_cond: {:?}, write_cond: {:?}, read_counter: {:?}, have_writer: {:?}, want_to_read: {:?}, want_to_write: {:?} }}" , self . mutex , self . read_cond , self . write_cond , self . read_counter , self . have_writer , self . want_to_read , self . want_to_write )
}
}
extern "C" {
pub fn g_static_rw_lock_init(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_static_rw_lock_reader_lock(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_static_rw_lock_reader_trylock(lock: *mut GStaticRWLock) -> gboolean;
}
extern "C" {
pub fn g_static_rw_lock_reader_unlock(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_static_rw_lock_writer_lock(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_static_rw_lock_writer_trylock(lock: *mut GStaticRWLock) -> gboolean;
}
extern "C" {
pub fn g_static_rw_lock_writer_unlock(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_static_rw_lock_free(lock: *mut GStaticRWLock);
}
extern "C" {
pub fn g_private_new(notify: GDestroyNotify) -> *mut GPrivate;
}
pub type GStaticPrivate = _GStaticPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GStaticPrivate {
pub index: guint,
}
#[test]
fn bindgen_test_layout__GStaticPrivate() {
assert_eq!(
::std::mem::size_of::<_GStaticPrivate>(),
4usize,
concat!("Size of: ", stringify!(_GStaticPrivate))
);
assert_eq!(
::std::mem::align_of::<_GStaticPrivate>(),
4usize,
concat!("Alignment of ", stringify!(_GStaticPrivate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GStaticPrivate>())).index as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GStaticPrivate), "::", stringify!(index))
);
}
extern "C" {
pub fn g_static_private_init(private_key: *mut GStaticPrivate);
}
extern "C" {
pub fn g_static_private_get(private_key: *mut GStaticPrivate) -> gpointer;
}
extern "C" {
pub fn g_static_private_set(
private_key: *mut GStaticPrivate,
data: gpointer,
notify: GDestroyNotify,
);
}
extern "C" {
pub fn g_static_private_free(private_key: *mut GStaticPrivate);
}
extern "C" {
pub fn g_once_init_enter_impl(location: *mut gsize) -> gboolean;
}
extern "C" {
pub fn g_thread_init(vtable: gpointer);
}
extern "C" {
pub fn g_thread_init_with_errorcheck_mutexes(vtable: gpointer);
}
extern "C" {
pub fn g_thread_get_initialized() -> gboolean;
}
extern "C" {
pub static mut g_threads_got_initialized: gboolean;
}
extern "C" {
pub fn g_mutex_new() -> *mut GMutex;
}
extern "C" {
pub fn g_mutex_free(mutex: *mut GMutex);
}
extern "C" {
pub fn g_cond_new() -> *mut GCond;
}
extern "C" {
pub fn g_cond_free(cond: *mut GCond);
}
extern "C" {
pub fn g_cond_timed_wait(
cond: *mut GCond,
mutex: *mut GMutex,
timeval: *mut GTimeVal,
) -> gboolean;
}
pub type GAsyncQueue_autoptr = *mut GAsyncQueue;
pub type GAsyncQueue_listautoptr = *mut GList;
pub type GAsyncQueue_slistautoptr = *mut GSList;
pub type GBookmarkFile_autoptr = *mut GBookmarkFile;
pub type GBookmarkFile_listautoptr = *mut GList;
pub type GBookmarkFile_slistautoptr = *mut GSList;
pub type GBytes_autoptr = *mut GBytes;
pub type GBytes_listautoptr = *mut GList;
pub type GBytes_slistautoptr = *mut GSList;
pub type GChecksum_autoptr = *mut GChecksum;
pub type GChecksum_listautoptr = *mut GList;
pub type GChecksum_slistautoptr = *mut GSList;
pub type GDateTime_autoptr = *mut GDateTime;
pub type GDateTime_listautoptr = *mut GList;
pub type GDateTime_slistautoptr = *mut GSList;
pub type GDir_autoptr = *mut GDir;
pub type GDir_listautoptr = *mut GList;
pub type GDir_slistautoptr = *mut GSList;
pub type GError_autoptr = *mut GError;
pub type GError_listautoptr = *mut GList;
pub type GError_slistautoptr = *mut GSList;
pub type GHashTable_autoptr = *mut GHashTable;
pub type GHashTable_listautoptr = *mut GList;
pub type GHashTable_slistautoptr = *mut GSList;
pub type GHmac_autoptr = *mut GHmac;
pub type GHmac_listautoptr = *mut GList;
pub type GHmac_slistautoptr = *mut GSList;
pub type GIOChannel_autoptr = *mut GIOChannel;
pub type GIOChannel_listautoptr = *mut GList;
pub type GIOChannel_slistautoptr = *mut GSList;
pub type GKeyFile_autoptr = *mut GKeyFile;
pub type GKeyFile_listautoptr = *mut GList;
pub type GKeyFile_slistautoptr = *mut GSList;
pub type GList_autoptr = *mut GList;
pub type GList_listautoptr = *mut GList;
pub type GList_slistautoptr = *mut GSList;
pub type GArray_autoptr = *mut GArray;
pub type GArray_listautoptr = *mut GList;
pub type GArray_slistautoptr = *mut GSList;
pub type GPtrArray_autoptr = *mut GPtrArray;
pub type GPtrArray_listautoptr = *mut GList;
pub type GPtrArray_slistautoptr = *mut GSList;
pub type GByteArray_autoptr = *mut GByteArray;
pub type GByteArray_listautoptr = *mut GList;
pub type GByteArray_slistautoptr = *mut GSList;
pub type GMainContext_autoptr = *mut GMainContext;
pub type GMainContext_listautoptr = *mut GList;
pub type GMainContext_slistautoptr = *mut GSList;
pub type GMainLoop_autoptr = *mut GMainLoop;
pub type GMainLoop_listautoptr = *mut GList;
pub type GMainLoop_slistautoptr = *mut GSList;
pub type GSource_autoptr = *mut GSource;
pub type GSource_listautoptr = *mut GList;
pub type GSource_slistautoptr = *mut GSList;
pub type GMappedFile_autoptr = *mut GMappedFile;
pub type GMappedFile_listautoptr = *mut GList;
pub type GMappedFile_slistautoptr = *mut GSList;
pub type GMarkupParseContext_autoptr = *mut GMarkupParseContext;
pub type GMarkupParseContext_listautoptr = *mut GList;
pub type GMarkupParseContext_slistautoptr = *mut GSList;
pub type GNode_autoptr = *mut GNode;
pub type GNode_listautoptr = *mut GList;
pub type GNode_slistautoptr = *mut GSList;
pub type GOptionContext_autoptr = *mut GOptionContext;
pub type GOptionContext_listautoptr = *mut GList;
pub type GOptionContext_slistautoptr = *mut GSList;
pub type GOptionGroup_autoptr = *mut GOptionGroup;
pub type GOptionGroup_listautoptr = *mut GList;
pub type GOptionGroup_slistautoptr = *mut GSList;
pub type GPatternSpec_autoptr = *mut GPatternSpec;
pub type GPatternSpec_listautoptr = *mut GList;
pub type GPatternSpec_slistautoptr = *mut GSList;
pub type GQueue_autoptr = *mut GQueue;
pub type GQueue_listautoptr = *mut GList;
pub type GQueue_slistautoptr = *mut GSList;
pub type GRand_autoptr = *mut GRand;
pub type GRand_listautoptr = *mut GList;
pub type GRand_slistautoptr = *mut GSList;
pub type GRegex_autoptr = *mut GRegex;
pub type GRegex_listautoptr = *mut GList;
pub type GRegex_slistautoptr = *mut GSList;
pub type GMatchInfo_autoptr = *mut GMatchInfo;
pub type GMatchInfo_listautoptr = *mut GList;
pub type GMatchInfo_slistautoptr = *mut GSList;
pub type GScanner_autoptr = *mut GScanner;
pub type GScanner_listautoptr = *mut GList;
pub type GScanner_slistautoptr = *mut GSList;
pub type GSequence_autoptr = *mut GSequence;
pub type GSequence_listautoptr = *mut GList;
pub type GSequence_slistautoptr = *mut GSList;
pub type GSList_autoptr = *mut GSList;
pub type GSList_listautoptr = *mut GList;
pub type GSList_slistautoptr = *mut GSList;
pub type GString_autoptr = *mut GString;
pub type GString_listautoptr = *mut GList;
pub type GString_slistautoptr = *mut GSList;
pub type GStringChunk_autoptr = *mut GStringChunk;
pub type GStringChunk_listautoptr = *mut GList;
pub type GStringChunk_slistautoptr = *mut GSList;
pub type GThread_autoptr = *mut GThread;
pub type GThread_listautoptr = *mut GList;
pub type GThread_slistautoptr = *mut GSList;
pub type GMutexLocker_autoptr = *mut GMutexLocker;
pub type GMutexLocker_listautoptr = *mut GList;
pub type GMutexLocker_slistautoptr = *mut GSList;
pub type GTimer_autoptr = *mut GTimer;
pub type GTimer_listautoptr = *mut GList;
pub type GTimer_slistautoptr = *mut GSList;
pub type GTimeZone_autoptr = *mut GTimeZone;
pub type GTimeZone_listautoptr = *mut GList;
pub type GTimeZone_slistautoptr = *mut GSList;
pub type GTree_autoptr = *mut GTree;
pub type GTree_listautoptr = *mut GList;
pub type GTree_slistautoptr = *mut GSList;
pub type GVariant_autoptr = *mut GVariant;
pub type GVariant_listautoptr = *mut GList;
pub type GVariant_slistautoptr = *mut GSList;
pub type GVariantBuilder_autoptr = *mut GVariantBuilder;
pub type GVariantBuilder_listautoptr = *mut GList;
pub type GVariantBuilder_slistautoptr = *mut GSList;
pub type GVariantIter_autoptr = *mut GVariantIter;
pub type GVariantIter_listautoptr = *mut GList;
pub type GVariantIter_slistautoptr = *mut GSList;
pub type GVariantDict_autoptr = *mut GVariantDict;
pub type GVariantDict_listautoptr = *mut GList;
pub type GVariantDict_slistautoptr = *mut GSList;
pub type GVariantType_autoptr = *mut GVariantType;
pub type GVariantType_listautoptr = *mut GList;
pub type GVariantType_slistautoptr = *mut GSList;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
pub __count: ::std::os::raw::c_int,
pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
pub __wch: ::std::os::raw::c_uint,
pub __wchb: [::std::os::raw::c_char; 4usize],
_bindgen_union_align: 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)
)
);
}
impl ::std::fmt::Debug for __mbstate_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "__mbstate_t__bindgen_ty_1 {{ union }}")
}
}
#[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))
);
}
impl ::std::fmt::Debug for __mbstate_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "__mbstate_t {{ __count: {:?}, __value: {:?} }}", self.__count, self.__value)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
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))
);
}
impl ::std::fmt::Debug for _G_fpos_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_G_fpos_t {{ __pos: {:?}, __state: {:?} }}", self.__pos, self.__state)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
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))
);
}
impl ::std::fmt::Debug for _G_fpos64_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_G_fpos64_t {{ __pos: {:?}, __state: {:?} }}", self.__pos, self.__state)
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_jump_t {
_unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
pub _next: *mut _IO_marker,
pub _sbuf: *mut _IO_FILE,
pub _pos: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__IO_marker() {
assert_eq!(
::std::mem::size_of::<_IO_marker>(),
24usize,
concat!("Size of: ", stringify!(_IO_marker))
);
assert_eq!(
::std::mem::align_of::<_IO_marker>(),
8usize,
concat!("Alignment of ", stringify!(_IO_marker))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_marker>()))._next as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_IO_marker), "::", stringify!(_next))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_marker>()))._sbuf as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_IO_marker), "::", stringify!(_sbuf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_marker>()))._pos as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_IO_marker), "::", stringify!(_pos))
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum __codecvt_result {
__codecvt_ok = 0,
__codecvt_partial = 1,
__codecvt_error = 2,
__codecvt_noconv = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
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 __pad1: *mut ::std::os::raw::c_void,
pub __pad2: *mut ::std::os::raw::c_void,
pub __pad3: *mut ::std::os::raw::c_void,
pub __pad4: *mut ::std::os::raw::c_void,
pub __pad5: usize,
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>())).__pad1 as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_IO_FILE), "::", stringify!(__pad1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad2 as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_IO_FILE), "::", stringify!(__pad2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad3 as *const _ as usize },
168usize,
concat!("Offset of field: ", stringify!(_IO_FILE), "::", stringify!(__pad3))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad4 as *const _ as usize },
176usize,
concat!("Offset of field: ", stringify!(_IO_FILE), "::", stringify!(__pad4))
);
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))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE_plus {
_unused: [u8; 0],
}
extern "C" {
pub static mut _IO_2_1_stdin_: _IO_FILE_plus;
}
extern "C" {
pub static mut _IO_2_1_stdout_: _IO_FILE_plus;
}
extern "C" {
pub static mut _IO_2_1_stderr_: _IO_FILE_plus;
}
pub type __io_read_fn = ::std::option::Option<
unsafe extern "C" fn(
__cookie: *mut ::std::os::raw::c_void,
__buf: *mut ::std::os::raw::c_char,
__nbytes: usize,
) -> __ssize_t,
>;
pub type __io_write_fn = ::std::option::Option<
unsafe extern "C" fn(
__cookie: *mut ::std::os::raw::c_void,
__buf: *const ::std::os::raw::c_char,
__n: usize,
) -> __ssize_t,
>;
pub type __io_seek_fn = ::std::option::Option<
unsafe extern "C" fn(
__cookie: *mut ::std::os::raw::c_void,
__pos: *mut __off64_t,
__w: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>;
pub type __io_close_fn = ::std::option::Option<
unsafe extern "C" fn(__cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn __underflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __uflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __overflow(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_getc(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_putc(__c: ::std::os::raw::c_int, __fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_feof(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_ferror(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_peekc_locked(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_flockfile(arg1: *mut _IO_FILE);
}
extern "C" {
pub fn _IO_funlockfile(arg1: *mut _IO_FILE);
}
extern "C" {
pub fn _IO_ftrylockfile(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_vfscanf(
arg1: *mut _IO_FILE,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
arg4: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_vfprintf(
arg1: *mut _IO_FILE,
arg2: *const ::std::os::raw::c_char,
arg3: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _IO_padn(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int, arg3: __ssize_t)
-> __ssize_t;
}
extern "C" {
pub fn _IO_sgetn(arg1: *mut _IO_FILE, arg2: *mut ::std::os::raw::c_void, arg3: usize) -> usize;
}
extern "C" {
pub fn _IO_seekoff(
arg1: *mut _IO_FILE,
arg2: __off64_t,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
) -> __off64_t;
}
extern "C" {
pub fn _IO_seekpos(
arg1: *mut _IO_FILE,
arg2: __off64_t,
arg3: ::std::os::raw::c_int,
) -> __off64_t;
}
extern "C" {
pub fn _IO_free_backup_area(arg1: *mut _IO_FILE);
}
pub type fpos_t = _G_fpos_t;
extern "C" {
pub static mut stdin: *mut _IO_FILE;
}
extern "C" {
pub static mut stdout: *mut _IO_FILE;
}
extern "C" {
pub static mut stderr: *mut _IO_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: usize,
__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 usize,
) -> *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: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
}
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;
}
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 usize,
__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 usize,
__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 usize,
__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: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fwrite(
__ptr: *const ::std::os::raw::c_void,
__size: usize,
__n: usize,
__s: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fread_unlocked(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fwrite_unlocked(
__ptr: *const ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
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 static mut sys_nerr: ::std::os::raw::c_int;
}
extern "C" {
pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize];
}
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 g_printf(format: *const gchar, ...) -> gint;
}
extern "C" {
pub fn g_fprintf(file: *mut FILE, format: *const gchar, ...) -> gint;
}
extern "C" {
pub fn g_sprintf(string: *mut gchar, format: *const gchar, ...) -> gint;
}
extern "C" {
pub fn g_vprintf(format: *const gchar, args: *mut __va_list_tag) -> gint;
}
extern "C" {
pub fn g_vfprintf(file: *mut FILE, format: *const gchar, args: *mut __va_list_tag) -> gint;
}
extern "C" {
pub fn g_vsprintf(string: *mut gchar, format: *const gchar, args: *mut __va_list_tag) -> gint;
}
extern "C" {
pub fn g_vasprintf(
string: *mut *mut gchar,
format: *const gchar,
args: *mut __va_list_tag,
) -> gint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct stat {
pub st_dev: __dev_t,
pub st_ino: __ino_t,
pub st_nlink: __nlink_t,
pub st_mode: __mode_t,
pub st_uid: __uid_t,
pub st_gid: __gid_t,
pub __pad0: ::std::os::raw::c_int,
pub st_rdev: __dev_t,
pub st_size: __off_t,
pub st_blksize: __blksize_t,
pub st_blocks: __blkcnt_t,
pub st_atim: timespec,
pub st_mtim: timespec,
pub st_ctim: timespec,
pub __glibc_reserved: [__syscall_slong_t; 3usize],
}
#[test]
fn bindgen_test_layout_stat() {
assert_eq!(::std::mem::size_of::<stat>(), 144usize, concat!("Size of: ", stringify!(stat)));
assert_eq!(::std::mem::align_of::<stat>(), 8usize, concat!("Alignment of ", stringify!(stat)));
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_dev as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_dev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_ino as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_ino))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_nlink as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_nlink))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_mode as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_mode))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_uid as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_uid))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_gid as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_gid))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).__pad0 as *const _ as usize },
36usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(__pad0))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_rdev as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_rdev))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_size as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_blksize as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_blksize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_blocks as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_blocks))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_atim as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_atim))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_mtim as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_mtim))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).st_ctim as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(st_ctim))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<stat>())).__glibc_reserved as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(stat), "::", stringify!(__glibc_reserved))
);
}
extern "C" {
pub fn stat(__file: *const ::std::os::raw::c_char, __buf: *mut stat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fstat(__fd: ::std::os::raw::c_int, __buf: *mut stat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fstatat(
__fd: ::std::os::raw::c_int,
__file: *const ::std::os::raw::c_char,
__buf: *mut stat,
__flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lstat(__file: *const ::std::os::raw::c_char, __buf: *mut stat) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn chmod(__file: *const ::std::os::raw::c_char, __mode: __mode_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lchmod(__file: *const ::std::os::raw::c_char, __mode: __mode_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn fchmod(__fd: ::std::os::raw::c_int, __mode: __mode_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fchmodat(
__fd: ::std::os::raw::c_int,
__file: *const ::std::os::raw::c_char,
__mode: __mode_t,
__flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn umask(__mask: __mode_t) -> __mode_t;
}
extern "C" {
pub fn mkdir(__path: *const ::std::os::raw::c_char, __mode: __mode_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdirat(
__fd: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mknod(
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
__dev: __dev_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mknodat(
__fd: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
__dev: __dev_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkfifo(__path: *const ::std::os::raw::c_char, __mode: __mode_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkfifoat(
__fd: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn utimensat(
__fd: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__times: *const timespec,
__flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn futimens(__fd: ::std::os::raw::c_int, __times: *const timespec)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn __fxstat(
__ver: ::std::os::raw::c_int,
__fildes: ::std::os::raw::c_int,
__stat_buf: *mut stat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __xstat(
__ver: ::std::os::raw::c_int,
__filename: *const ::std::os::raw::c_char,
__stat_buf: *mut stat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __lxstat(
__ver: ::std::os::raw::c_int,
__filename: *const ::std::os::raw::c_char,
__stat_buf: *mut stat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __fxstatat(
__ver: ::std::os::raw::c_int,
__fildes: ::std::os::raw::c_int,
__filename: *const ::std::os::raw::c_char,
__stat_buf: *mut stat,
__flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __xmknod(
__ver: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
__dev: *mut __dev_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __xmknodat(
__ver: ::std::os::raw::c_int,
__fd: ::std::os::raw::c_int,
__path: *const ::std::os::raw::c_char,
__mode: __mode_t,
__dev: *mut __dev_t,
) -> ::std::os::raw::c_int;
}
pub type GStatBuf = stat;
extern "C" {
pub fn g_access(filename: *const gchar, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_chdir(path: *const gchar) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_unlink(filename: *const gchar) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_rmdir(filename: *const gchar) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn g_close(fd: gint, error: *mut *mut GError) -> gboolean;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GModuleFlags {
G_MODULE_BIND_LAZY = 1,
G_MODULE_BIND_LOCAL = 2,
G_MODULE_BIND_MASK = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GModule {
_unused: [u8; 0],
}
pub type GModule = _GModule;
pub type GModuleCheckInit =
::std::option::Option<unsafe extern "C" fn(module: *mut GModule) -> *const gchar>;
pub type GModuleUnload = ::std::option::Option<unsafe extern "C" fn(module: *mut GModule)>;
extern "C" {
pub fn g_module_supported() -> gboolean;
}
extern "C" {
pub fn g_module_open(file_name: *const gchar, flags: GModuleFlags) -> *mut GModule;
}
extern "C" {
pub fn g_module_close(module: *mut GModule) -> gboolean;
}
extern "C" {
pub fn g_module_make_resident(module: *mut GModule);
}
extern "C" {
pub fn g_module_error() -> *const gchar;
}
extern "C" {
pub fn g_module_symbol(
module: *mut GModule,
symbol_name: *const gchar,
symbol: *mut gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_module_name(module: *mut GModule) -> *const gchar;
}
extern "C" {
pub fn g_module_build_path(directory: *const gchar, module_name: *const gchar) -> *mut gchar;
}
pub type GType = gsize;
pub type GValue = _GValue;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GTypeCValue {
_unused: [u8; 0],
}
impl ::std::fmt::Debug for _GTypeCValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GTypeCValue {{ union }}")
}
}
pub type GTypeCValue = _GTypeCValue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypePlugin {
_unused: [u8; 0],
}
pub type GTypePlugin = _GTypePlugin;
pub type GTypeClass = _GTypeClass;
pub type GTypeInterface = _GTypeInterface;
pub type GTypeInstance = _GTypeInstance;
pub type GTypeInfo = _GTypeInfo;
pub type GTypeFundamentalInfo = _GTypeFundamentalInfo;
pub type GInterfaceInfo = _GInterfaceInfo;
pub type GTypeValueTable = _GTypeValueTable;
pub type GTypeQuery = _GTypeQuery;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeClass {
pub g_type: GType,
}
#[test]
fn bindgen_test_layout__GTypeClass() {
assert_eq!(
::std::mem::size_of::<_GTypeClass>(),
8usize,
concat!("Size of: ", stringify!(_GTypeClass))
);
assert_eq!(
::std::mem::align_of::<_GTypeClass>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeClass>())).g_type as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeClass), "::", stringify!(g_type))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeInstance {
pub g_class: *mut GTypeClass,
}
#[test]
fn bindgen_test_layout__GTypeInstance() {
assert_eq!(
::std::mem::size_of::<_GTypeInstance>(),
8usize,
concat!("Size of: ", stringify!(_GTypeInstance))
);
assert_eq!(
::std::mem::align_of::<_GTypeInstance>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeInstance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInstance>())).g_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeInstance), "::", stringify!(g_class))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeInterface {
pub g_type: GType,
pub g_instance_type: GType,
}
#[test]
fn bindgen_test_layout__GTypeInterface() {
assert_eq!(
::std::mem::size_of::<_GTypeInterface>(),
16usize,
concat!("Size of: ", stringify!(_GTypeInterface))
);
assert_eq!(
::std::mem::align_of::<_GTypeInterface>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeInterface))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInterface>())).g_type as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeInterface), "::", stringify!(g_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInterface>())).g_instance_type as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_GTypeInterface),
"::",
stringify!(g_instance_type)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeQuery {
pub type_: GType,
pub type_name: *const gchar,
pub class_size: guint,
pub instance_size: guint,
}
#[test]
fn bindgen_test_layout__GTypeQuery() {
assert_eq!(
::std::mem::size_of::<_GTypeQuery>(),
24usize,
concat!("Size of: ", stringify!(_GTypeQuery))
);
assert_eq!(
::std::mem::align_of::<_GTypeQuery>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeQuery))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeQuery>())).type_ as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeQuery), "::", stringify!(type_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeQuery>())).type_name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GTypeQuery), "::", stringify!(type_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeQuery>())).class_size as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GTypeQuery), "::", stringify!(class_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeQuery>())).instance_size as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(_GTypeQuery), "::", stringify!(instance_size))
);
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTypeDebugFlags {
G_TYPE_DEBUG_NONE = 0,
G_TYPE_DEBUG_OBJECTS = 1,
G_TYPE_DEBUG_SIGNALS = 2,
G_TYPE_DEBUG_INSTANCE_COUNT = 4,
G_TYPE_DEBUG_MASK = 7,
}
extern "C" {
pub fn g_type_init();
}
extern "C" {
pub fn g_type_init_with_debug_flags(debug_flags: GTypeDebugFlags);
}
extern "C" {
pub fn g_type_name(type_: GType) -> *const gchar;
}
extern "C" {
pub fn g_type_qname(type_: GType) -> GQuark;
}
extern "C" {
pub fn g_type_from_name(name: *const gchar) -> GType;
}
extern "C" {
pub fn g_type_parent(type_: GType) -> GType;
}
extern "C" {
pub fn g_type_depth(type_: GType) -> guint;
}
extern "C" {
pub fn g_type_next_base(leaf_type: GType, root_type: GType) -> GType;
}
extern "C" {
pub fn g_type_is_a(type_: GType, is_a_type: GType) -> gboolean;
}
extern "C" {
pub fn g_type_class_ref(type_: GType) -> gpointer;
}
extern "C" {
pub fn g_type_class_peek(type_: GType) -> gpointer;
}
extern "C" {
pub fn g_type_class_peek_static(type_: GType) -> gpointer;
}
extern "C" {
pub fn g_type_class_unref(g_class: gpointer);
}
extern "C" {
pub fn g_type_class_peek_parent(g_class: gpointer) -> gpointer;
}
extern "C" {
pub fn g_type_interface_peek(instance_class: gpointer, iface_type: GType) -> gpointer;
}
extern "C" {
pub fn g_type_interface_peek_parent(g_iface: gpointer) -> gpointer;
}
extern "C" {
pub fn g_type_default_interface_ref(g_type: GType) -> gpointer;
}
extern "C" {
pub fn g_type_default_interface_peek(g_type: GType) -> gpointer;
}
extern "C" {
pub fn g_type_default_interface_unref(g_iface: gpointer);
}
extern "C" {
pub fn g_type_children(type_: GType, n_children: *mut guint) -> *mut GType;
}
extern "C" {
pub fn g_type_interfaces(type_: GType, n_interfaces: *mut guint) -> *mut GType;
}
extern "C" {
pub fn g_type_set_qdata(type_: GType, quark: GQuark, data: gpointer);
}
extern "C" {
pub fn g_type_get_qdata(type_: GType, quark: GQuark) -> gpointer;
}
extern "C" {
pub fn g_type_query(type_: GType, query: *mut GTypeQuery);
}
extern "C" {
pub fn g_type_get_instance_count(type_: GType) -> ::std::os::raw::c_int;
}
pub type GBaseInitFunc = ::std::option::Option<unsafe extern "C" fn(g_class: gpointer)>;
pub type GBaseFinalizeFunc = ::std::option::Option<unsafe extern "C" fn(g_class: gpointer)>;
pub type GClassInitFunc =
::std::option::Option<unsafe extern "C" fn(g_class: gpointer, class_data: gpointer)>;
pub type GClassFinalizeFunc =
::std::option::Option<unsafe extern "C" fn(g_class: gpointer, class_data: gpointer)>;
pub type GInstanceInitFunc =
::std::option::Option<unsafe extern "C" fn(instance: *mut GTypeInstance, g_class: gpointer)>;
pub type GInterfaceInitFunc =
::std::option::Option<unsafe extern "C" fn(g_iface: gpointer, iface_data: gpointer)>;
pub type GInterfaceFinalizeFunc =
::std::option::Option<unsafe extern "C" fn(g_iface: gpointer, iface_data: gpointer)>;
pub type GTypeClassCacheFunc = ::std::option::Option<
unsafe extern "C" fn(cache_data: gpointer, g_class: *mut GTypeClass) -> gboolean,
>;
pub type GTypeInterfaceCheckFunc =
::std::option::Option<unsafe extern "C" fn(check_data: gpointer, g_iface: gpointer)>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTypeFundamentalFlags {
G_TYPE_FLAG_CLASSED = 1,
G_TYPE_FLAG_INSTANTIATABLE = 2,
G_TYPE_FLAG_DERIVABLE = 4,
G_TYPE_FLAG_DEEP_DERIVABLE = 8,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GTypeFlags {
G_TYPE_FLAG_ABSTRACT = 16,
G_TYPE_FLAG_VALUE_ABSTRACT = 32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeInfo {
pub class_size: guint16,
pub base_init: GBaseInitFunc,
pub base_finalize: GBaseFinalizeFunc,
pub class_init: GClassInitFunc,
pub class_finalize: GClassFinalizeFunc,
pub class_data: gconstpointer,
pub instance_size: guint16,
pub n_preallocs: guint16,
pub instance_init: GInstanceInitFunc,
pub value_table: *const GTypeValueTable,
}
#[test]
fn bindgen_test_layout__GTypeInfo() {
assert_eq!(
::std::mem::size_of::<_GTypeInfo>(),
72usize,
concat!("Size of: ", stringify!(_GTypeInfo))
);
assert_eq!(
::std::mem::align_of::<_GTypeInfo>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeInfo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).class_size as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(class_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).base_init as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(base_init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).base_finalize as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(base_finalize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).class_init as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(class_init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).class_finalize as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(class_finalize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).class_data as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(class_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).instance_size as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(instance_size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).n_preallocs as *const _ as usize },
50usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(n_preallocs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).instance_init as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(instance_init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeInfo>())).value_table as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GTypeInfo), "::", stringify!(value_table))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeFundamentalInfo {
pub type_flags: GTypeFundamentalFlags,
}
#[test]
fn bindgen_test_layout__GTypeFundamentalInfo() {
assert_eq!(
::std::mem::size_of::<_GTypeFundamentalInfo>(),
4usize,
concat!("Size of: ", stringify!(_GTypeFundamentalInfo))
);
assert_eq!(
::std::mem::align_of::<_GTypeFundamentalInfo>(),
4usize,
concat!("Alignment of ", stringify!(_GTypeFundamentalInfo))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GTypeFundamentalInfo>())).type_flags as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GTypeFundamentalInfo),
"::",
stringify!(type_flags)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInterfaceInfo {
pub interface_init: GInterfaceInitFunc,
pub interface_finalize: GInterfaceFinalizeFunc,
pub interface_data: gpointer,
}
#[test]
fn bindgen_test_layout__GInterfaceInfo() {
assert_eq!(
::std::mem::size_of::<_GInterfaceInfo>(),
24usize,
concat!("Size of: ", stringify!(_GInterfaceInfo))
);
assert_eq!(
::std::mem::align_of::<_GInterfaceInfo>(),
8usize,
concat!("Alignment of ", stringify!(_GInterfaceInfo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GInterfaceInfo>())).interface_init as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GInterfaceInfo), "::", stringify!(interface_init))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GInterfaceInfo>())).interface_finalize as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GInterfaceInfo),
"::",
stringify!(interface_finalize)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GInterfaceInfo>())).interface_data as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GInterfaceInfo), "::", stringify!(interface_data))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeValueTable {
pub value_init: ::std::option::Option<unsafe extern "C" fn(value: *mut GValue)>,
pub value_free: ::std::option::Option<unsafe extern "C" fn(value: *mut GValue)>,
pub value_copy: ::std::option::Option<
unsafe extern "C" fn(src_value: *const GValue, dest_value: *mut GValue),
>,
pub value_peek_pointer:
::std::option::Option<unsafe extern "C" fn(value: *const GValue) -> gpointer>,
pub collect_format: *const gchar,
pub collect_value: ::std::option::Option<
unsafe extern "C" fn(
value: *mut GValue,
n_collect_values: guint,
collect_values: *mut GTypeCValue,
collect_flags: guint,
) -> *mut gchar,
>,
pub lcopy_format: *const gchar,
pub lcopy_value: ::std::option::Option<
unsafe extern "C" fn(
value: *const GValue,
n_collect_values: guint,
collect_values: *mut GTypeCValue,
collect_flags: guint,
) -> *mut gchar,
>,
}
#[test]
fn bindgen_test_layout__GTypeValueTable() {
assert_eq!(
::std::mem::size_of::<_GTypeValueTable>(),
64usize,
concat!("Size of: ", stringify!(_GTypeValueTable))
);
assert_eq!(
::std::mem::align_of::<_GTypeValueTable>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeValueTable))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).value_init as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(value_init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).value_free as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(value_free))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).value_copy as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(value_copy))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GTypeValueTable>())).value_peek_pointer as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(_GTypeValueTable),
"::",
stringify!(value_peek_pointer)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).collect_format as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_GTypeValueTable),
"::",
stringify!(collect_format)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).collect_value as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(collect_value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).lcopy_format as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(lcopy_format))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeValueTable>())).lcopy_value as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GTypeValueTable), "::", stringify!(lcopy_value))
);
}
extern "C" {
pub fn g_type_register_static(
parent_type: GType,
type_name: *const gchar,
info: *const GTypeInfo,
flags: GTypeFlags,
) -> GType;
}
extern "C" {
pub fn g_type_register_static_simple(
parent_type: GType,
type_name: *const gchar,
class_size: guint,
class_init: GClassInitFunc,
instance_size: guint,
instance_init: GInstanceInitFunc,
flags: GTypeFlags,
) -> GType;
}
extern "C" {
pub fn g_type_register_dynamic(
parent_type: GType,
type_name: *const gchar,
plugin: *mut GTypePlugin,
flags: GTypeFlags,
) -> GType;
}
extern "C" {
pub fn g_type_register_fundamental(
type_id: GType,
type_name: *const gchar,
info: *const GTypeInfo,
finfo: *const GTypeFundamentalInfo,
flags: GTypeFlags,
) -> GType;
}
extern "C" {
pub fn g_type_add_interface_static(
instance_type: GType,
interface_type: GType,
info: *const GInterfaceInfo,
);
}
extern "C" {
pub fn g_type_add_interface_dynamic(
instance_type: GType,
interface_type: GType,
plugin: *mut GTypePlugin,
);
}
extern "C" {
pub fn g_type_interface_add_prerequisite(interface_type: GType, prerequisite_type: GType);
}
extern "C" {
pub fn g_type_interface_prerequisites(
interface_type: GType,
n_prerequisites: *mut guint,
) -> *mut GType;
}
extern "C" {
pub fn g_type_class_add_private(g_class: gpointer, private_size: gsize);
}
extern "C" {
pub fn g_type_add_instance_private(class_type: GType, private_size: gsize) -> gint;
}
extern "C" {
pub fn g_type_instance_get_private(
instance: *mut GTypeInstance,
private_type: GType,
) -> gpointer;
}
extern "C" {
pub fn g_type_class_adjust_private_offset(g_class: gpointer, private_size_or_offset: *mut gint);
}
extern "C" {
pub fn g_type_add_class_private(class_type: GType, private_size: gsize);
}
extern "C" {
pub fn g_type_class_get_private(klass: *mut GTypeClass, private_type: GType) -> gpointer;
}
extern "C" {
pub fn g_type_class_get_instance_private_offset(g_class: gpointer) -> gint;
}
extern "C" {
pub fn g_type_ensure(type_: GType);
}
extern "C" {
pub fn g_type_get_type_registration_serial() -> guint;
}
extern "C" {
pub fn g_type_get_plugin(type_: GType) -> *mut GTypePlugin;
}
extern "C" {
pub fn g_type_interface_get_plugin(
instance_type: GType,
interface_type: GType,
) -> *mut GTypePlugin;
}
extern "C" {
pub fn g_type_fundamental_next() -> GType;
}
extern "C" {
pub fn g_type_fundamental(type_id: GType) -> GType;
}
extern "C" {
pub fn g_type_create_instance(type_: GType) -> *mut GTypeInstance;
}
extern "C" {
pub fn g_type_free_instance(instance: *mut GTypeInstance);
}
extern "C" {
pub fn g_type_add_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
}
extern "C" {
pub fn g_type_remove_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
}
extern "C" {
pub fn g_type_class_unref_uncached(g_class: gpointer);
}
extern "C" {
pub fn g_type_add_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
}
extern "C" {
pub fn g_type_remove_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
}
extern "C" {
pub fn g_type_value_table_peek(type_: GType) -> *mut GTypeValueTable;
}
extern "C" {
pub fn g_type_check_instance(instance: *mut GTypeInstance) -> gboolean;
}
extern "C" {
pub fn g_type_check_instance_cast(
instance: *mut GTypeInstance,
iface_type: GType,
) -> *mut GTypeInstance;
}
extern "C" {
pub fn g_type_check_instance_is_a(instance: *mut GTypeInstance, iface_type: GType) -> gboolean;
}
extern "C" {
pub fn g_type_check_instance_is_fundamentally_a(
instance: *mut GTypeInstance,
fundamental_type: GType,
) -> gboolean;
}
extern "C" {
pub fn g_type_check_class_cast(g_class: *mut GTypeClass, is_a_type: GType) -> *mut GTypeClass;
}
extern "C" {
pub fn g_type_check_class_is_a(g_class: *mut GTypeClass, is_a_type: GType) -> gboolean;
}
extern "C" {
pub fn g_type_check_is_value_type(type_: GType) -> gboolean;
}
extern "C" {
pub fn g_type_check_value(value: *const GValue) -> gboolean;
}
extern "C" {
pub fn g_type_check_value_holds(value: *const GValue, type_: GType) -> gboolean;
}
extern "C" {
pub fn g_type_test_flags(type_: GType, flags: guint) -> gboolean;
}
extern "C" {
pub fn g_type_name_from_instance(instance: *mut GTypeInstance) -> *const gchar;
}
extern "C" {
pub fn g_type_name_from_class(g_class: *mut GTypeClass) -> *const gchar;
}
pub type GValueTransform =
::std::option::Option<unsafe extern "C" fn(src_value: *const GValue, dest_value: *mut GValue)>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GValue {
pub g_type: GType,
pub data: [_GValue__bindgen_ty_1; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union _GValue__bindgen_ty_1 {
pub v_int: gint,
pub v_uint: guint,
pub v_long: glong,
pub v_ulong: gulong,
pub v_int64: gint64,
pub v_uint64: guint64,
pub v_float: gfloat,
pub v_double: gdouble,
pub v_pointer: gpointer,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout__GValue__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<_GValue__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(_GValue__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<_GValue__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(_GValue__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_int as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_int))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_uint as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_uint))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_long as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_long))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_ulong as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_ulong))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_int64 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_int64))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_uint64 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_uint64))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_float as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_float))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_double as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue__bindgen_ty_1), "::", stringify!(v_double))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_pointer as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_GValue__bindgen_ty_1),
"::",
stringify!(v_pointer)
)
);
}
impl ::std::fmt::Debug for _GValue__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GValue__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout__GValue() {
assert_eq!(
::std::mem::size_of::<_GValue>(),
24usize,
concat!("Size of: ", stringify!(_GValue))
);
assert_eq!(
::std::mem::align_of::<_GValue>(),
8usize,
concat!("Alignment of ", stringify!(_GValue))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue>())).g_type as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValue), "::", stringify!(g_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValue>())).data as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GValue), "::", stringify!(data))
);
}
impl ::std::fmt::Debug for _GValue {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GValue {{ g_type: {:?}, data: {:?} }}", self.g_type, self.data)
}
}
extern "C" {
pub fn g_value_init(value: *mut GValue, g_type: GType) -> *mut GValue;
}
extern "C" {
pub fn g_value_copy(src_value: *const GValue, dest_value: *mut GValue);
}
extern "C" {
pub fn g_value_reset(value: *mut GValue) -> *mut GValue;
}
extern "C" {
pub fn g_value_unset(value: *mut GValue);
}
extern "C" {
pub fn g_value_set_instance(value: *mut GValue, instance: gpointer);
}
extern "C" {
pub fn g_value_init_from_instance(value: *mut GValue, instance: gpointer);
}
extern "C" {
pub fn g_value_fits_pointer(value: *const GValue) -> gboolean;
}
extern "C" {
pub fn g_value_peek_pointer(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_value_type_compatible(src_type: GType, dest_type: GType) -> gboolean;
}
extern "C" {
pub fn g_value_type_transformable(src_type: GType, dest_type: GType) -> gboolean;
}
extern "C" {
pub fn g_value_transform(src_value: *const GValue, dest_value: *mut GValue) -> gboolean;
}
extern "C" {
pub fn g_value_register_transform_func(
src_type: GType,
dest_type: GType,
transform_func: GValueTransform,
);
}
impl GParamFlags {
pub const G_PARAM_PRIVATE: GParamFlags = GParamFlags::G_PARAM_STATIC_NAME;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GParamFlags {
G_PARAM_READABLE = 1,
G_PARAM_WRITABLE = 2,
G_PARAM_READWRITE = 3,
G_PARAM_CONSTRUCT = 4,
G_PARAM_CONSTRUCT_ONLY = 8,
G_PARAM_LAX_VALIDATION = 16,
G_PARAM_STATIC_NAME = 32,
G_PARAM_STATIC_NICK = 64,
G_PARAM_STATIC_BLURB = 128,
G_PARAM_EXPLICIT_NOTIFY = 1073741824,
G_PARAM_DEPRECATED = -2147483648,
}
pub type GParamSpec = _GParamSpec;
pub type GParamSpecClass = _GParamSpecClass;
pub type GParameter = _GParameter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecPool {
_unused: [u8; 0],
}
pub type GParamSpecPool = _GParamSpecPool;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpec {
pub g_type_instance: GTypeInstance,
pub name: *const gchar,
pub flags: GParamFlags,
pub value_type: GType,
pub owner_type: GType,
pub _nick: *mut gchar,
pub _blurb: *mut gchar,
pub qdata: *mut GData,
pub ref_count: guint,
pub param_id: guint,
}
#[test]
fn bindgen_test_layout__GParamSpec() {
assert_eq!(
::std::mem::size_of::<_GParamSpec>(),
72usize,
concat!("Size of: ", stringify!(_GParamSpec))
);
assert_eq!(
::std::mem::align_of::<_GParamSpec>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpec))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).g_type_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(g_type_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).flags as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).value_type as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(value_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).owner_type as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(owner_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>()))._nick as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(_nick))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>()))._blurb as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(_blurb))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).qdata as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(qdata))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).ref_count as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpec>())).param_id as *const _ as usize },
68usize,
concat!("Offset of field: ", stringify!(_GParamSpec), "::", stringify!(param_id))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecClass {
pub g_type_class: GTypeClass,
pub value_type: GType,
pub finalize: ::std::option::Option<unsafe extern "C" fn(pspec: *mut GParamSpec)>,
pub value_set_default:
::std::option::Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue)>,
pub value_validate: ::std::option::Option<
unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean,
>,
pub values_cmp: ::std::option::Option<
unsafe extern "C" fn(
pspec: *mut GParamSpec,
value1: *const GValue,
value2: *const GValue,
) -> gint,
>,
pub dummy: [gpointer; 4usize],
}
#[test]
fn bindgen_test_layout__GParamSpecClass() {
assert_eq!(
::std::mem::size_of::<_GParamSpecClass>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecClass))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecClass>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).g_type_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GParamSpecClass), "::", stringify!(g_type_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).value_type as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GParamSpecClass), "::", stringify!(value_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).finalize as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GParamSpecClass), "::", stringify!(finalize))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecClass>())).value_set_default as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecClass),
"::",
stringify!(value_set_default)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).value_validate as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecClass),
"::",
stringify!(value_validate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).values_cmp as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GParamSpecClass), "::", stringify!(values_cmp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecClass>())).dummy as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GParamSpecClass), "::", stringify!(dummy))
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GParameter {
pub name: *const gchar,
pub value: GValue,
}
#[test]
fn bindgen_test_layout__GParameter() {
assert_eq!(
::std::mem::size_of::<_GParameter>(),
32usize,
concat!("Size of: ", stringify!(_GParameter))
);
assert_eq!(
::std::mem::align_of::<_GParameter>(),
8usize,
concat!("Alignment of ", stringify!(_GParameter))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParameter>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GParameter), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParameter>())).value as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GParameter), "::", stringify!(value))
);
}
impl ::std::fmt::Debug for _GParameter {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GParameter {{ name: {:?}, value: {:?} }}", self.name, self.value)
}
}
extern "C" {
pub fn g_param_spec_ref(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_unref(pspec: *mut GParamSpec);
}
extern "C" {
pub fn g_param_spec_sink(pspec: *mut GParamSpec);
}
extern "C" {
pub fn g_param_spec_ref_sink(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_get_qdata(pspec: *mut GParamSpec, quark: GQuark) -> gpointer;
}
extern "C" {
pub fn g_param_spec_set_qdata(pspec: *mut GParamSpec, quark: GQuark, data: gpointer);
}
extern "C" {
pub fn g_param_spec_set_qdata_full(
pspec: *mut GParamSpec,
quark: GQuark,
data: gpointer,
destroy: GDestroyNotify,
);
}
extern "C" {
pub fn g_param_spec_steal_qdata(pspec: *mut GParamSpec, quark: GQuark) -> gpointer;
}
extern "C" {
pub fn g_param_spec_get_redirect_target(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_value_set_default(pspec: *mut GParamSpec, value: *mut GValue);
}
extern "C" {
pub fn g_param_value_defaults(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean;
}
extern "C" {
pub fn g_param_value_validate(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean;
}
extern "C" {
pub fn g_param_value_convert(
pspec: *mut GParamSpec,
src_value: *const GValue,
dest_value: *mut GValue,
strict_validation: gboolean,
) -> gboolean;
}
extern "C" {
pub fn g_param_values_cmp(
pspec: *mut GParamSpec,
value1: *const GValue,
value2: *const GValue,
) -> gint;
}
extern "C" {
pub fn g_param_spec_get_name(pspec: *mut GParamSpec) -> *const gchar;
}
extern "C" {
pub fn g_param_spec_get_nick(pspec: *mut GParamSpec) -> *const gchar;
}
extern "C" {
pub fn g_param_spec_get_blurb(pspec: *mut GParamSpec) -> *const gchar;
}
extern "C" {
pub fn g_value_set_param(value: *mut GValue, param: *mut GParamSpec);
}
extern "C" {
pub fn g_value_get_param(value: *const GValue) -> *mut GParamSpec;
}
extern "C" {
pub fn g_value_dup_param(value: *const GValue) -> *mut GParamSpec;
}
extern "C" {
pub fn g_value_take_param(value: *mut GValue, param: *mut GParamSpec);
}
extern "C" {
pub fn g_value_set_param_take_ownership(value: *mut GValue, param: *mut GParamSpec);
}
extern "C" {
pub fn g_param_spec_get_default_value(pspec: *mut GParamSpec) -> *const GValue;
}
extern "C" {
pub fn g_param_spec_get_name_quark(pspec: *mut GParamSpec) -> GQuark;
}
pub type GParamSpecTypeInfo = _GParamSpecTypeInfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecTypeInfo {
pub instance_size: guint16,
pub n_preallocs: guint16,
pub instance_init: ::std::option::Option<unsafe extern "C" fn(pspec: *mut GParamSpec)>,
pub value_type: GType,
pub finalize: ::std::option::Option<unsafe extern "C" fn(pspec: *mut GParamSpec)>,
pub value_set_default:
::std::option::Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue)>,
pub value_validate: ::std::option::Option<
unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean,
>,
pub values_cmp: ::std::option::Option<
unsafe extern "C" fn(
pspec: *mut GParamSpec,
value1: *const GValue,
value2: *const GValue,
) -> gint,
>,
}
#[test]
fn bindgen_test_layout__GParamSpecTypeInfo() {
assert_eq!(
::std::mem::size_of::<_GParamSpecTypeInfo>(),
56usize,
concat!("Size of: ", stringify!(_GParamSpecTypeInfo))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecTypeInfo>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecTypeInfo))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecTypeInfo>())).instance_size as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecTypeInfo),
"::",
stringify!(instance_size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecTypeInfo>())).n_preallocs as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecTypeInfo),
"::",
stringify!(n_preallocs)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecTypeInfo>())).instance_init as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecTypeInfo),
"::",
stringify!(instance_init)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecTypeInfo>())).value_type as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GParamSpecTypeInfo), "::", stringify!(value_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecTypeInfo>())).finalize as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GParamSpecTypeInfo), "::", stringify!(finalize))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecTypeInfo>())).value_set_default as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecTypeInfo),
"::",
stringify!(value_set_default)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecTypeInfo>())).value_validate as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecTypeInfo),
"::",
stringify!(value_validate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecTypeInfo>())).values_cmp as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GParamSpecTypeInfo), "::", stringify!(values_cmp))
);
}
extern "C" {
pub fn g_param_type_register_static(
name: *const gchar,
pspec_info: *const GParamSpecTypeInfo,
) -> GType;
}
extern "C" {
pub fn _g_param_type_register_static_constant(
name: *const gchar,
pspec_info: *const GParamSpecTypeInfo,
opt_type: GType,
) -> GType;
}
extern "C" {
pub fn g_param_spec_internal(
param_type: GType,
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
flags: GParamFlags,
) -> gpointer;
}
extern "C" {
pub fn g_param_spec_pool_new(type_prefixing: gboolean) -> *mut GParamSpecPool;
}
extern "C" {
pub fn g_param_spec_pool_insert(
pool: *mut GParamSpecPool,
pspec: *mut GParamSpec,
owner_type: GType,
);
}
extern "C" {
pub fn g_param_spec_pool_remove(pool: *mut GParamSpecPool, pspec: *mut GParamSpec);
}
extern "C" {
pub fn g_param_spec_pool_lookup(
pool: *mut GParamSpecPool,
param_name: *const gchar,
owner_type: GType,
walk_ancestors: gboolean,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_pool_list_owned(pool: *mut GParamSpecPool, owner_type: GType)
-> *mut GList;
}
extern "C" {
pub fn g_param_spec_pool_list(
pool: *mut GParamSpecPool,
owner_type: GType,
n_pspecs_p: *mut guint,
) -> *mut *mut GParamSpec;
}
pub type GClosure = _GClosure;
pub type GClosureNotifyData = _GClosureNotifyData;
pub type GCallback = ::std::option::Option<unsafe extern "C" fn()>;
pub type GClosureNotify =
::std::option::Option<unsafe extern "C" fn(data: gpointer, closure: *mut GClosure)>;
pub type GClosureMarshal = ::std::option::Option<
unsafe extern "C" fn(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
),
>;
pub type GVaClosureMarshal = ::std::option::Option<
unsafe extern "C" fn(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
),
>;
pub type GCClosure = _GCClosure;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GClosureNotifyData {
pub data: gpointer,
pub notify: GClosureNotify,
}
#[test]
fn bindgen_test_layout__GClosureNotifyData() {
assert_eq!(
::std::mem::size_of::<_GClosureNotifyData>(),
16usize,
concat!("Size of: ", stringify!(_GClosureNotifyData))
);
assert_eq!(
::std::mem::align_of::<_GClosureNotifyData>(),
8usize,
concat!("Alignment of ", stringify!(_GClosureNotifyData))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GClosureNotifyData>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GClosureNotifyData), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GClosureNotifyData>())).notify as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GClosureNotifyData), "::", stringify!(notify))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GClosure {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
pub marshal: ::std::option::Option<
unsafe extern "C" fn(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
),
>,
pub data: gpointer,
pub notifiers: *mut GClosureNotifyData,
}
#[test]
fn bindgen_test_layout__GClosure() {
assert_eq!(
::std::mem::size_of::<_GClosure>(),
32usize,
concat!("Size of: ", stringify!(_GClosure))
);
assert_eq!(
::std::mem::align_of::<_GClosure>(),
8usize,
concat!("Alignment of ", stringify!(_GClosure))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GClosure>())).marshal as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GClosure), "::", stringify!(marshal))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GClosure>())).data as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GClosure), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GClosure>())).notifiers as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GClosure), "::", stringify!(notifiers))
);
}
impl _GClosure {
#[inline]
pub fn ref_count(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u32) }
}
#[inline]
pub fn set_ref_count(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 15u8, val as u64)
}
}
#[inline]
pub fn meta_marshal_nouse(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
}
#[inline]
pub fn set_meta_marshal_nouse(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(15usize, 1u8, val as u64)
}
}
#[inline]
pub fn n_guards(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
}
#[inline]
pub fn set_n_guards(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 1u8, val as u64)
}
}
#[inline]
pub fn n_fnotifiers(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 2u8) as u32) }
}
#[inline]
pub fn set_n_fnotifiers(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(17usize, 2u8, val as u64)
}
}
#[inline]
pub fn n_inotifiers(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 8u8) as u32) }
}
#[inline]
pub fn set_n_inotifiers(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(19usize, 8u8, val as u64)
}
}
#[inline]
pub fn in_inotify(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 1u8) as u32) }
}
#[inline]
pub fn set_in_inotify(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(27usize, 1u8, val as u64)
}
}
#[inline]
pub fn floating(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) }
}
#[inline]
pub fn set_floating(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(28usize, 1u8, val as u64)
}
}
#[inline]
pub fn derivative_flag(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) }
}
#[inline]
pub fn set_derivative_flag(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(29usize, 1u8, val as u64)
}
}
#[inline]
pub fn in_marshal(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) }
}
#[inline]
pub fn set_in_marshal(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(30usize, 1u8, val as u64)
}
}
#[inline]
pub fn is_invalid(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
}
#[inline]
pub fn set_is_invalid(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(31usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
ref_count: guint,
meta_marshal_nouse: guint,
n_guards: guint,
n_fnotifiers: guint,
n_inotifiers: guint,
in_inotify: guint,
floating: guint,
derivative_flag: guint,
in_marshal: guint,
is_invalid: guint,
) -> __BindgenBitfieldUnit<[u8; 4usize], u16> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 15u8, {
let ref_count: u32 = unsafe { ::std::mem::transmute(ref_count) };
ref_count as u64
});
__bindgen_bitfield_unit.set(15usize, 1u8, {
let meta_marshal_nouse: u32 = unsafe { ::std::mem::transmute(meta_marshal_nouse) };
meta_marshal_nouse as u64
});
__bindgen_bitfield_unit.set(16usize, 1u8, {
let n_guards: u32 = unsafe { ::std::mem::transmute(n_guards) };
n_guards as u64
});
__bindgen_bitfield_unit.set(17usize, 2u8, {
let n_fnotifiers: u32 = unsafe { ::std::mem::transmute(n_fnotifiers) };
n_fnotifiers as u64
});
__bindgen_bitfield_unit.set(19usize, 8u8, {
let n_inotifiers: u32 = unsafe { ::std::mem::transmute(n_inotifiers) };
n_inotifiers as u64
});
__bindgen_bitfield_unit.set(27usize, 1u8, {
let in_inotify: u32 = unsafe { ::std::mem::transmute(in_inotify) };
in_inotify as u64
});
__bindgen_bitfield_unit.set(28usize, 1u8, {
let floating: u32 = unsafe { ::std::mem::transmute(floating) };
floating as u64
});
__bindgen_bitfield_unit.set(29usize, 1u8, {
let derivative_flag: u32 = unsafe { ::std::mem::transmute(derivative_flag) };
derivative_flag as u64
});
__bindgen_bitfield_unit.set(30usize, 1u8, {
let in_marshal: u32 = unsafe { ::std::mem::transmute(in_marshal) };
in_marshal as u64
});
__bindgen_bitfield_unit.set(31usize, 1u8, {
let is_invalid: u32 = unsafe { ::std::mem::transmute(is_invalid) };
is_invalid as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCClosure {
pub closure: GClosure,
pub callback: gpointer,
}
#[test]
fn bindgen_test_layout__GCClosure() {
assert_eq!(
::std::mem::size_of::<_GCClosure>(),
40usize,
concat!("Size of: ", stringify!(_GCClosure))
);
assert_eq!(
::std::mem::align_of::<_GCClosure>(),
8usize,
concat!("Alignment of ", stringify!(_GCClosure))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCClosure>())).closure as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GCClosure), "::", stringify!(closure))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GCClosure>())).callback as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GCClosure), "::", stringify!(callback))
);
}
extern "C" {
pub fn g_cclosure_new(
callback_func: GCallback,
user_data: gpointer,
destroy_data: GClosureNotify,
) -> *mut GClosure;
}
extern "C" {
pub fn g_cclosure_new_swap(
callback_func: GCallback,
user_data: gpointer,
destroy_data: GClosureNotify,
) -> *mut GClosure;
}
extern "C" {
pub fn g_signal_type_cclosure_new(itype: GType, struct_offset: guint) -> *mut GClosure;
}
extern "C" {
pub fn g_closure_ref(closure: *mut GClosure) -> *mut GClosure;
}
extern "C" {
pub fn g_closure_sink(closure: *mut GClosure);
}
extern "C" {
pub fn g_closure_unref(closure: *mut GClosure);
}
extern "C" {
pub fn g_closure_new_simple(sizeof_closure: guint, data: gpointer) -> *mut GClosure;
}
extern "C" {
pub fn g_closure_add_finalize_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
extern "C" {
pub fn g_closure_remove_finalize_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
extern "C" {
pub fn g_closure_add_invalidate_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
extern "C" {
pub fn g_closure_remove_invalidate_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
extern "C" {
pub fn g_closure_add_marshal_guards(
closure: *mut GClosure,
pre_marshal_data: gpointer,
pre_marshal_notify: GClosureNotify,
post_marshal_data: gpointer,
post_marshal_notify: GClosureNotify,
);
}
extern "C" {
pub fn g_closure_set_marshal(closure: *mut GClosure, marshal: GClosureMarshal);
}
extern "C" {
pub fn g_closure_set_meta_marshal(
closure: *mut GClosure,
marshal_data: gpointer,
meta_marshal: GClosureMarshal,
);
}
extern "C" {
pub fn g_closure_invalidate(closure: *mut GClosure);
}
extern "C" {
pub fn g_closure_invoke(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_generic(
closure: *mut GClosure,
return_gvalue: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_generic_va(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args_list: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__VOID(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__VOIDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__BOOLEAN(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__BOOLEANv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__CHAR(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__CHARv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UCHAR(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UCHARv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__INT(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__INTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UINT(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UINTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__LONG(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__LONGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__ULONG(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__ULONGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__ENUM(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__ENUMv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__FLAGS(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__FLAGSv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__FLOAT(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__FLOATv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__DOUBLE(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__DOUBLEv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__STRING(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__STRINGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__PARAM(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__PARAMv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__BOXED(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__BOXEDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__POINTER(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__OBJECT(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__OBJECTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__VARIANT(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__VARIANTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UINT_POINTER(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_VOID__UINT_POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__FLAGS(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__FLAGSv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_STRING__OBJECT_POINTER(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_STRING__OBJECT_POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__BOXED_BOXED(
closure: *mut GClosure,
return_value: *mut GValue,
n_param_values: guint,
param_values: *const GValue,
invocation_hint: gpointer,
marshal_data: gpointer,
);
}
extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: *mut __va_list_tag,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
pub type GSignalQuery = _GSignalQuery;
pub type GSignalInvocationHint = _GSignalInvocationHint;
pub type GSignalCMarshaller = GClosureMarshal;
pub type GSignalCVaMarshaller = GVaClosureMarshal;
pub type GSignalEmissionHook = ::std::option::Option<
unsafe extern "C" fn(
ihint: *mut GSignalInvocationHint,
n_param_values: guint,
param_values: *const GValue,
data: gpointer,
) -> gboolean,
>;
pub type GSignalAccumulator = ::std::option::Option<
unsafe extern "C" fn(
ihint: *mut GSignalInvocationHint,
return_accu: *mut GValue,
handler_return: *const GValue,
data: gpointer,
) -> gboolean,
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSignalFlags {
G_SIGNAL_RUN_FIRST = 1,
G_SIGNAL_RUN_LAST = 2,
G_SIGNAL_RUN_CLEANUP = 4,
G_SIGNAL_NO_RECURSE = 8,
G_SIGNAL_DETAILED = 16,
G_SIGNAL_ACTION = 32,
G_SIGNAL_NO_HOOKS = 64,
G_SIGNAL_MUST_COLLECT = 128,
G_SIGNAL_DEPRECATED = 256,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GConnectFlags {
G_CONNECT_AFTER = 1,
G_CONNECT_SWAPPED = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GSignalMatchType {
G_SIGNAL_MATCH_ID = 1,
G_SIGNAL_MATCH_DETAIL = 2,
G_SIGNAL_MATCH_CLOSURE = 4,
G_SIGNAL_MATCH_FUNC = 8,
G_SIGNAL_MATCH_DATA = 16,
G_SIGNAL_MATCH_UNBLOCKED = 32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSignalInvocationHint {
pub signal_id: guint,
pub detail: GQuark,
pub run_type: GSignalFlags,
}
#[test]
fn bindgen_test_layout__GSignalInvocationHint() {
assert_eq!(
::std::mem::size_of::<_GSignalInvocationHint>(),
12usize,
concat!("Size of: ", stringify!(_GSignalInvocationHint))
);
assert_eq!(
::std::mem::align_of::<_GSignalInvocationHint>(),
4usize,
concat!("Alignment of ", stringify!(_GSignalInvocationHint))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GSignalInvocationHint>())).signal_id as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GSignalInvocationHint),
"::",
stringify!(signal_id)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalInvocationHint>())).detail as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_GSignalInvocationHint), "::", stringify!(detail))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalInvocationHint>())).run_type as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_GSignalInvocationHint),
"::",
stringify!(run_type)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSignalQuery {
pub signal_id: guint,
pub signal_name: *const gchar,
pub itype: GType,
pub signal_flags: GSignalFlags,
pub return_type: GType,
pub n_params: guint,
pub param_types: *const GType,
}
#[test]
fn bindgen_test_layout__GSignalQuery() {
assert_eq!(
::std::mem::size_of::<_GSignalQuery>(),
56usize,
concat!("Size of: ", stringify!(_GSignalQuery))
);
assert_eq!(
::std::mem::align_of::<_GSignalQuery>(),
8usize,
concat!("Alignment of ", stringify!(_GSignalQuery))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).signal_id as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(signal_id))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).signal_name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(signal_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).itype as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(itype))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).signal_flags as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(signal_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).return_type as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(return_type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).n_params as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(n_params))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GSignalQuery>())).param_types as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GSignalQuery), "::", stringify!(param_types))
);
}
extern "C" {
pub fn g_signal_newv(
signal_name: *const gchar,
itype: GType,
signal_flags: GSignalFlags,
class_closure: *mut GClosure,
accumulator: GSignalAccumulator,
accu_data: gpointer,
c_marshaller: GSignalCMarshaller,
return_type: GType,
n_params: guint,
param_types: *mut GType,
) -> guint;
}
extern "C" {
pub fn g_signal_new_valist(
signal_name: *const gchar,
itype: GType,
signal_flags: GSignalFlags,
class_closure: *mut GClosure,
accumulator: GSignalAccumulator,
accu_data: gpointer,
c_marshaller: GSignalCMarshaller,
return_type: GType,
n_params: guint,
args: *mut __va_list_tag,
) -> guint;
}
extern "C" {
pub fn g_signal_new(
signal_name: *const gchar,
itype: GType,
signal_flags: GSignalFlags,
class_offset: guint,
accumulator: GSignalAccumulator,
accu_data: gpointer,
c_marshaller: GSignalCMarshaller,
return_type: GType,
n_params: guint,
...
) -> guint;
}
extern "C" {
pub fn g_signal_new_class_handler(
signal_name: *const gchar,
itype: GType,
signal_flags: GSignalFlags,
class_handler: GCallback,
accumulator: GSignalAccumulator,
accu_data: gpointer,
c_marshaller: GSignalCMarshaller,
return_type: GType,
n_params: guint,
...
) -> guint;
}
extern "C" {
pub fn g_signal_set_va_marshaller(
signal_id: guint,
instance_type: GType,
va_marshaller: GSignalCVaMarshaller,
);
}
extern "C" {
pub fn g_signal_emitv(
instance_and_params: *const GValue,
signal_id: guint,
detail: GQuark,
return_value: *mut GValue,
);
}
extern "C" {
pub fn g_signal_emit_valist(
instance: gpointer,
signal_id: guint,
detail: GQuark,
var_args: *mut __va_list_tag,
);
}
extern "C" {
pub fn g_signal_emit(instance: gpointer, signal_id: guint, detail: GQuark, ...);
}
extern "C" {
pub fn g_signal_emit_by_name(instance: gpointer, detailed_signal: *const gchar, ...);
}
extern "C" {
pub fn g_signal_lookup(name: *const gchar, itype: GType) -> guint;
}
extern "C" {
pub fn g_signal_name(signal_id: guint) -> *const gchar;
}
extern "C" {
pub fn g_signal_query(signal_id: guint, query: *mut GSignalQuery);
}
extern "C" {
pub fn g_signal_list_ids(itype: GType, n_ids: *mut guint) -> *mut guint;
}
extern "C" {
pub fn g_signal_parse_name(
detailed_signal: *const gchar,
itype: GType,
signal_id_p: *mut guint,
detail_p: *mut GQuark,
force_detail_quark: gboolean,
) -> gboolean;
}
extern "C" {
pub fn g_signal_get_invocation_hint(instance: gpointer) -> *mut GSignalInvocationHint;
}
extern "C" {
pub fn g_signal_stop_emission(instance: gpointer, signal_id: guint, detail: GQuark);
}
extern "C" {
pub fn g_signal_stop_emission_by_name(instance: gpointer, detailed_signal: *const gchar);
}
extern "C" {
pub fn g_signal_add_emission_hook(
signal_id: guint,
detail: GQuark,
hook_func: GSignalEmissionHook,
hook_data: gpointer,
data_destroy: GDestroyNotify,
) -> gulong;
}
extern "C" {
pub fn g_signal_remove_emission_hook(signal_id: guint, hook_id: gulong);
}
extern "C" {
pub fn g_signal_has_handler_pending(
instance: gpointer,
signal_id: guint,
detail: GQuark,
may_be_blocked: gboolean,
) -> gboolean;
}
extern "C" {
pub fn g_signal_connect_closure_by_id(
instance: gpointer,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
after: gboolean,
) -> gulong;
}
extern "C" {
pub fn g_signal_connect_closure(
instance: gpointer,
detailed_signal: *const gchar,
closure: *mut GClosure,
after: gboolean,
) -> gulong;
}
extern "C" {
pub fn g_signal_connect_data(
instance: gpointer,
detailed_signal: *const gchar,
c_handler: GCallback,
data: gpointer,
destroy_data: GClosureNotify,
connect_flags: GConnectFlags,
) -> gulong;
}
extern "C" {
pub fn g_signal_handler_block(instance: gpointer, handler_id: gulong);
}
extern "C" {
pub fn g_signal_handler_unblock(instance: gpointer, handler_id: gulong);
}
extern "C" {
pub fn g_signal_handler_disconnect(instance: gpointer, handler_id: gulong);
}
extern "C" {
pub fn g_signal_handler_is_connected(instance: gpointer, handler_id: gulong) -> gboolean;
}
extern "C" {
pub fn g_signal_handler_find(
instance: gpointer,
mask: GSignalMatchType,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
func: gpointer,
data: gpointer,
) -> gulong;
}
extern "C" {
pub fn g_signal_handlers_block_matched(
instance: gpointer,
mask: GSignalMatchType,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
func: gpointer,
data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_signal_handlers_unblock_matched(
instance: gpointer,
mask: GSignalMatchType,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
func: gpointer,
data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_signal_handlers_disconnect_matched(
instance: gpointer,
mask: GSignalMatchType,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
func: gpointer,
data: gpointer,
) -> guint;
}
extern "C" {
pub fn g_signal_override_class_closure(
signal_id: guint,
instance_type: GType,
class_closure: *mut GClosure,
);
}
extern "C" {
pub fn g_signal_override_class_handler(
signal_name: *const gchar,
instance_type: GType,
class_handler: GCallback,
);
}
extern "C" {
pub fn g_signal_chain_from_overridden(
instance_and_params: *const GValue,
return_value: *mut GValue,
);
}
extern "C" {
pub fn g_signal_chain_from_overridden_handler(instance: gpointer, ...);
}
extern "C" {
pub fn g_signal_accumulator_true_handled(
ihint: *mut GSignalInvocationHint,
return_accu: *mut GValue,
handler_return: *const GValue,
dummy: gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_signal_accumulator_first_wins(
ihint: *mut GSignalInvocationHint,
return_accu: *mut GValue,
handler_return: *const GValue,
dummy: gpointer,
) -> gboolean;
}
extern "C" {
pub fn g_signal_handlers_destroy(instance: gpointer);
}
extern "C" {
pub fn _g_signals_destroy(itype: GType);
}
extern "C" {
pub fn g_date_get_type() -> GType;
}
extern "C" {
pub fn g_strv_get_type() -> GType;
}
extern "C" {
pub fn g_gstring_get_type() -> GType;
}
extern "C" {
pub fn g_hash_table_get_type() -> GType;
}
extern "C" {
pub fn g_array_get_type() -> GType;
}
extern "C" {
pub fn g_byte_array_get_type() -> GType;
}
extern "C" {
pub fn g_ptr_array_get_type() -> GType;
}
extern "C" {
pub fn g_bytes_get_type() -> GType;
}
extern "C" {
pub fn g_variant_type_get_gtype() -> GType;
}
extern "C" {
pub fn g_regex_get_type() -> GType;
}
extern "C" {
pub fn g_match_info_get_type() -> GType;
}
extern "C" {
pub fn g_error_get_type() -> GType;
}
extern "C" {
pub fn g_date_time_get_type() -> GType;
}
extern "C" {
pub fn g_time_zone_get_type() -> GType;
}
extern "C" {
pub fn g_io_channel_get_type() -> GType;
}
extern "C" {
pub fn g_io_condition_get_type() -> GType;
}
extern "C" {
pub fn g_variant_builder_get_type() -> GType;
}
extern "C" {
pub fn g_variant_dict_get_type() -> GType;
}
extern "C" {
pub fn g_key_file_get_type() -> GType;
}
extern "C" {
pub fn g_main_loop_get_type() -> GType;
}
extern "C" {
pub fn g_main_context_get_type() -> GType;
}
extern "C" {
pub fn g_source_get_type() -> GType;
}
extern "C" {
pub fn g_pollfd_get_type() -> GType;
}
extern "C" {
pub fn g_thread_get_type() -> GType;
}
extern "C" {
pub fn g_checksum_get_type() -> GType;
}
extern "C" {
pub fn g_markup_parse_context_get_type() -> GType;
}
extern "C" {
pub fn g_mapped_file_get_type() -> GType;
}
extern "C" {
pub fn g_option_group_get_type() -> GType;
}
extern "C" {
pub fn g_variant_get_gtype() -> GType;
}
pub type GBoxedCopyFunc = ::std::option::Option<unsafe extern "C" fn(boxed: gpointer) -> gpointer>;
pub type GBoxedFreeFunc = ::std::option::Option<unsafe extern "C" fn(boxed: gpointer)>;
extern "C" {
pub fn g_boxed_copy(boxed_type: GType, src_boxed: gconstpointer) -> gpointer;
}
extern "C" {
pub fn g_boxed_free(boxed_type: GType, boxed: gpointer);
}
extern "C" {
pub fn g_value_set_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
extern "C" {
pub fn g_value_set_static_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
extern "C" {
pub fn g_value_take_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
extern "C" {
pub fn g_value_set_boxed_take_ownership(value: *mut GValue, v_boxed: gconstpointer);
}
extern "C" {
pub fn g_value_get_boxed(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_value_dup_boxed(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_boxed_type_register_static(
name: *const gchar,
boxed_copy: GBoxedCopyFunc,
boxed_free: GBoxedFreeFunc,
) -> GType;
}
extern "C" {
pub fn g_closure_get_type() -> GType;
}
extern "C" {
pub fn g_value_get_type() -> GType;
}
pub type GObject = _GObject;
pub type GObjectClass = _GObjectClass;
pub type GInitiallyUnowned = _GObject;
pub type GInitiallyUnownedClass = _GObjectClass;
pub type GObjectConstructParam = _GObjectConstructParam;
pub type GObjectGetPropertyFunc = ::std::option::Option<
unsafe extern "C" fn(
object: *mut GObject,
property_id: guint,
value: *mut GValue,
pspec: *mut GParamSpec,
),
>;
pub type GObjectSetPropertyFunc = ::std::option::Option<
unsafe extern "C" fn(
object: *mut GObject,
property_id: guint,
value: *const GValue,
pspec: *mut GParamSpec,
),
>;
pub type GObjectFinalizeFunc = ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>;
pub type GWeakNotify =
::std::option::Option<unsafe extern "C" fn(data: gpointer, where_the_object_was: *mut GObject)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GObject {
pub g_type_instance: GTypeInstance,
pub ref_count: guint,
pub qdata: *mut GData,
}
#[test]
fn bindgen_test_layout__GObject() {
assert_eq!(
::std::mem::size_of::<_GObject>(),
24usize,
concat!("Size of: ", stringify!(_GObject))
);
assert_eq!(
::std::mem::align_of::<_GObject>(),
8usize,
concat!("Alignment of ", stringify!(_GObject))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObject>())).g_type_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GObject), "::", stringify!(g_type_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObject>())).ref_count as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GObject), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObject>())).qdata as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GObject), "::", stringify!(qdata))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GObjectClass {
pub g_type_class: GTypeClass,
pub construct_properties: *mut GSList,
pub constructor: ::std::option::Option<
unsafe extern "C" fn(
type_: GType,
n_construct_properties: guint,
construct_properties: *mut GObjectConstructParam,
) -> *mut GObject,
>,
pub set_property: ::std::option::Option<
unsafe extern "C" fn(
object: *mut GObject,
property_id: guint,
value: *const GValue,
pspec: *mut GParamSpec,
),
>,
pub get_property: ::std::option::Option<
unsafe extern "C" fn(
object: *mut GObject,
property_id: guint,
value: *mut GValue,
pspec: *mut GParamSpec,
),
>,
pub dispose: ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
pub finalize: ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
pub dispatch_properties_changed: ::std::option::Option<
unsafe extern "C" fn(object: *mut GObject, n_pspecs: guint, pspecs: *mut *mut GParamSpec),
>,
pub notify:
::std::option::Option<unsafe extern "C" fn(object: *mut GObject, pspec: *mut GParamSpec)>,
pub constructed: ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
pub flags: gsize,
pub pdummy: [gpointer; 6usize],
}
#[test]
fn bindgen_test_layout__GObjectClass() {
assert_eq!(
::std::mem::size_of::<_GObjectClass>(),
136usize,
concat!("Size of: ", stringify!(_GObjectClass))
);
assert_eq!(
::std::mem::align_of::<_GObjectClass>(),
8usize,
concat!("Alignment of ", stringify!(_GObjectClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).g_type_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(g_type_class))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GObjectClass>())).construct_properties as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_GObjectClass),
"::",
stringify!(construct_properties)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).constructor as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(constructor))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).set_property as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(set_property))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).get_property as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(get_property))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).dispose as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(dispose))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).finalize as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(finalize))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GObjectClass>())).dispatch_properties_changed as *const _
as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(_GObjectClass),
"::",
stringify!(dispatch_properties_changed)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).notify as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(notify))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).constructed as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(constructed))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).flags as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectClass>())).pdummy as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GObjectClass), "::", stringify!(pdummy))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GObjectConstructParam {
pub pspec: *mut GParamSpec,
pub value: *mut GValue,
}
#[test]
fn bindgen_test_layout__GObjectConstructParam() {
assert_eq!(
::std::mem::size_of::<_GObjectConstructParam>(),
16usize,
concat!("Size of: ", stringify!(_GObjectConstructParam))
);
assert_eq!(
::std::mem::align_of::<_GObjectConstructParam>(),
8usize,
concat!("Alignment of ", stringify!(_GObjectConstructParam))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectConstructParam>())).pspec as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GObjectConstructParam), "::", stringify!(pspec))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GObjectConstructParam>())).value as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GObjectConstructParam), "::", stringify!(value))
);
}
extern "C" {
pub fn g_initially_unowned_get_type() -> GType;
}
extern "C" {
pub fn g_object_class_install_property(
oclass: *mut GObjectClass,
property_id: guint,
pspec: *mut GParamSpec,
);
}
extern "C" {
pub fn g_object_class_find_property(
oclass: *mut GObjectClass,
property_name: *const gchar,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_object_class_list_properties(
oclass: *mut GObjectClass,
n_properties: *mut guint,
) -> *mut *mut GParamSpec;
}
extern "C" {
pub fn g_object_class_override_property(
oclass: *mut GObjectClass,
property_id: guint,
name: *const gchar,
);
}
extern "C" {
pub fn g_object_class_install_properties(
oclass: *mut GObjectClass,
n_pspecs: guint,
pspecs: *mut *mut GParamSpec,
);
}
extern "C" {
pub fn g_object_interface_install_property(g_iface: gpointer, pspec: *mut GParamSpec);
}
extern "C" {
pub fn g_object_interface_find_property(
g_iface: gpointer,
property_name: *const gchar,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_object_interface_list_properties(
g_iface: gpointer,
n_properties_p: *mut guint,
) -> *mut *mut GParamSpec;
}
extern "C" {
pub fn g_object_get_type() -> GType;
}
extern "C" {
pub fn g_object_new(object_type: GType, first_property_name: *const gchar, ...) -> gpointer;
}
extern "C" {
pub fn g_object_new_with_properties(
object_type: GType,
n_properties: guint,
names: *mut *const ::std::os::raw::c_char,
values: *const GValue,
) -> *mut GObject;
}
extern "C" {
pub fn g_object_newv(
object_type: GType,
n_parameters: guint,
parameters: *mut GParameter,
) -> gpointer;
}
extern "C" {
pub fn g_object_new_valist(
object_type: GType,
first_property_name: *const gchar,
var_args: *mut __va_list_tag,
) -> *mut GObject;
}
extern "C" {
pub fn g_object_set(object: gpointer, first_property_name: *const gchar, ...);
}
extern "C" {
pub fn g_object_get(object: gpointer, first_property_name: *const gchar, ...);
}
extern "C" {
pub fn g_object_connect(object: gpointer, signal_spec: *const gchar, ...) -> gpointer;
}
extern "C" {
pub fn g_object_disconnect(object: gpointer, signal_spec: *const gchar, ...);
}
extern "C" {
pub fn g_object_setv(
object: *mut GObject,
n_properties: guint,
names: *mut *const gchar,
values: *const GValue,
);
}
extern "C" {
pub fn g_object_set_valist(
object: *mut GObject,
first_property_name: *const gchar,
var_args: *mut __va_list_tag,
);
}
extern "C" {
pub fn g_object_getv(
object: *mut GObject,
n_properties: guint,
names: *mut *const gchar,
values: *mut GValue,
);
}
extern "C" {
pub fn g_object_get_valist(
object: *mut GObject,
first_property_name: *const gchar,
var_args: *mut __va_list_tag,
);
}
extern "C" {
pub fn g_object_set_property(
object: *mut GObject,
property_name: *const gchar,
value: *const GValue,
);
}
extern "C" {
pub fn g_object_get_property(
object: *mut GObject,
property_name: *const gchar,
value: *mut GValue,
);
}
extern "C" {
pub fn g_object_freeze_notify(object: *mut GObject);
}
extern "C" {
pub fn g_object_notify(object: *mut GObject, property_name: *const gchar);
}
extern "C" {
pub fn g_object_notify_by_pspec(object: *mut GObject, pspec: *mut GParamSpec);
}
extern "C" {
pub fn g_object_thaw_notify(object: *mut GObject);
}
extern "C" {
pub fn g_object_is_floating(object: gpointer) -> gboolean;
}
extern "C" {
pub fn g_object_ref_sink(object: gpointer) -> gpointer;
}
extern "C" {
pub fn g_object_ref(object: gpointer) -> gpointer;
}
extern "C" {
pub fn g_object_unref(object: gpointer);
}
extern "C" {
pub fn g_object_weak_ref(object: *mut GObject, notify: GWeakNotify, data: gpointer);
}
extern "C" {
pub fn g_object_weak_unref(object: *mut GObject, notify: GWeakNotify, data: gpointer);
}
extern "C" {
pub fn g_object_add_weak_pointer(object: *mut GObject, weak_pointer_location: *mut gpointer);
}
extern "C" {
pub fn g_object_remove_weak_pointer(object: *mut GObject, weak_pointer_location: *mut gpointer);
}
pub type GToggleNotify = ::std::option::Option<
unsafe extern "C" fn(data: gpointer, object: *mut GObject, is_last_ref: gboolean),
>;
extern "C" {
pub fn g_object_add_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
}
extern "C" {
pub fn g_object_remove_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
}
extern "C" {
pub fn g_object_get_qdata(object: *mut GObject, quark: GQuark) -> gpointer;
}
extern "C" {
pub fn g_object_set_qdata(object: *mut GObject, quark: GQuark, data: gpointer);
}
extern "C" {
pub fn g_object_set_qdata_full(
object: *mut GObject,
quark: GQuark,
data: gpointer,
destroy: GDestroyNotify,
);
}
extern "C" {
pub fn g_object_steal_qdata(object: *mut GObject, quark: GQuark) -> gpointer;
}
extern "C" {
pub fn g_object_dup_qdata(
object: *mut GObject,
quark: GQuark,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
extern "C" {
pub fn g_object_replace_qdata(
object: *mut GObject,
quark: GQuark,
oldval: gpointer,
newval: gpointer,
destroy: GDestroyNotify,
old_destroy: *mut GDestroyNotify,
) -> gboolean;
}
extern "C" {
pub fn g_object_get_data(object: *mut GObject, key: *const gchar) -> gpointer;
}
extern "C" {
pub fn g_object_set_data(object: *mut GObject, key: *const gchar, data: gpointer);
}
extern "C" {
pub fn g_object_set_data_full(
object: *mut GObject,
key: *const gchar,
data: gpointer,
destroy: GDestroyNotify,
);
}
extern "C" {
pub fn g_object_steal_data(object: *mut GObject, key: *const gchar) -> gpointer;
}
extern "C" {
pub fn g_object_dup_data(
object: *mut GObject,
key: *const gchar,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
extern "C" {
pub fn g_object_replace_data(
object: *mut GObject,
key: *const gchar,
oldval: gpointer,
newval: gpointer,
destroy: GDestroyNotify,
old_destroy: *mut GDestroyNotify,
) -> gboolean;
}
extern "C" {
pub fn g_object_watch_closure(object: *mut GObject, closure: *mut GClosure);
}
extern "C" {
pub fn g_cclosure_new_object(callback_func: GCallback, object: *mut GObject) -> *mut GClosure;
}
extern "C" {
pub fn g_cclosure_new_object_swap(
callback_func: GCallback,
object: *mut GObject,
) -> *mut GClosure;
}
extern "C" {
pub fn g_closure_new_object(sizeof_closure: guint, object: *mut GObject) -> *mut GClosure;
}
extern "C" {
pub fn g_value_set_object(value: *mut GValue, v_object: gpointer);
}
extern "C" {
pub fn g_value_get_object(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_value_dup_object(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_signal_connect_object(
instance: gpointer,
detailed_signal: *const gchar,
c_handler: GCallback,
gobject: gpointer,
connect_flags: GConnectFlags,
) -> gulong;
}
extern "C" {
pub fn g_object_force_floating(object: *mut GObject);
}
extern "C" {
pub fn g_object_run_dispose(object: *mut GObject);
}
extern "C" {
pub fn g_value_take_object(value: *mut GValue, v_object: gpointer);
}
extern "C" {
pub fn g_value_set_object_take_ownership(value: *mut GValue, v_object: gpointer);
}
extern "C" {
pub fn g_object_compat_control(what: gsize, data: gpointer) -> gsize;
}
extern "C" {
pub fn g_clear_object(object_ptr: *mut *mut GObject);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GWeakRef {
pub priv_: GWeakRef__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union GWeakRef__bindgen_ty_1 {
pub p: gpointer,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_GWeakRef__bindgen_ty_1() {
assert_eq!(
::std::mem::size_of::<GWeakRef__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(GWeakRef__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<GWeakRef__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(GWeakRef__bindgen_ty_1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GWeakRef__bindgen_ty_1>())).p as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GWeakRef__bindgen_ty_1), "::", stringify!(p))
);
}
impl ::std::fmt::Debug for GWeakRef__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "GWeakRef__bindgen_ty_1 {{ union }}")
}
}
#[test]
fn bindgen_test_layout_GWeakRef() {
assert_eq!(
::std::mem::size_of::<GWeakRef>(),
8usize,
concat!("Size of: ", stringify!(GWeakRef))
);
assert_eq!(
::std::mem::align_of::<GWeakRef>(),
8usize,
concat!("Alignment of ", stringify!(GWeakRef))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<GWeakRef>())).priv_ as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(GWeakRef), "::", stringify!(priv_))
);
}
impl ::std::fmt::Debug for GWeakRef {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "GWeakRef {{ priv: {:?} }}", self.priv_)
}
}
extern "C" {
pub fn g_weak_ref_init(weak_ref: *mut GWeakRef, object: gpointer);
}
extern "C" {
pub fn g_weak_ref_clear(weak_ref: *mut GWeakRef);
}
extern "C" {
pub fn g_weak_ref_get(weak_ref: *mut GWeakRef) -> gpointer;
}
extern "C" {
pub fn g_weak_ref_set(weak_ref: *mut GWeakRef, object: gpointer);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBinding {
_unused: [u8; 0],
}
pub type GBinding = _GBinding;
pub type GBindingTransformFunc = ::std::option::Option<
unsafe extern "C" fn(
binding: *mut GBinding,
from_value: *const GValue,
to_value: *mut GValue,
user_data: gpointer,
) -> gboolean,
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GBindingFlags {
G_BINDING_DEFAULT = 0,
G_BINDING_BIDIRECTIONAL = 1,
G_BINDING_SYNC_CREATE = 2,
G_BINDING_INVERT_BOOLEAN = 4,
}
extern "C" {
pub fn g_binding_flags_get_type() -> GType;
}
extern "C" {
pub fn g_binding_get_type() -> GType;
}
extern "C" {
pub fn g_binding_get_flags(binding: *mut GBinding) -> GBindingFlags;
}
extern "C" {
pub fn g_binding_get_source(binding: *mut GBinding) -> *mut GObject;
}
extern "C" {
pub fn g_binding_get_target(binding: *mut GBinding) -> *mut GObject;
}
extern "C" {
pub fn g_binding_get_source_property(binding: *mut GBinding) -> *const gchar;
}
extern "C" {
pub fn g_binding_get_target_property(binding: *mut GBinding) -> *const gchar;
}
extern "C" {
pub fn g_binding_unbind(binding: *mut GBinding);
}
extern "C" {
pub fn g_object_bind_property(
source: gpointer,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
) -> *mut GBinding;
}
extern "C" {
pub fn g_object_bind_property_full(
source: gpointer,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
transform_to: GBindingTransformFunc,
transform_from: GBindingTransformFunc,
user_data: gpointer,
notify: GDestroyNotify,
) -> *mut GBinding;
}
extern "C" {
pub fn g_object_bind_property_with_closures(
source: gpointer,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
transform_to: *mut GClosure,
transform_from: *mut GClosure,
) -> *mut GBinding;
}
pub type GEnumClass = _GEnumClass;
pub type GFlagsClass = _GFlagsClass;
pub type GEnumValue = _GEnumValue;
pub type GFlagsValue = _GFlagsValue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GEnumClass {
pub g_type_class: GTypeClass,
pub minimum: gint,
pub maximum: gint,
pub n_values: guint,
pub values: *mut GEnumValue,
}
#[test]
fn bindgen_test_layout__GEnumClass() {
assert_eq!(
::std::mem::size_of::<_GEnumClass>(),
32usize,
concat!("Size of: ", stringify!(_GEnumClass))
);
assert_eq!(
::std::mem::align_of::<_GEnumClass>(),
8usize,
concat!("Alignment of ", stringify!(_GEnumClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumClass>())).g_type_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GEnumClass), "::", stringify!(g_type_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumClass>())).minimum as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GEnumClass), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumClass>())).maximum as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_GEnumClass), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumClass>())).n_values as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GEnumClass), "::", stringify!(n_values))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumClass>())).values as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GEnumClass), "::", stringify!(values))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFlagsClass {
pub g_type_class: GTypeClass,
pub mask: guint,
pub n_values: guint,
pub values: *mut GFlagsValue,
}
#[test]
fn bindgen_test_layout__GFlagsClass() {
assert_eq!(
::std::mem::size_of::<_GFlagsClass>(),
24usize,
concat!("Size of: ", stringify!(_GFlagsClass))
);
assert_eq!(
::std::mem::align_of::<_GFlagsClass>(),
8usize,
concat!("Alignment of ", stringify!(_GFlagsClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsClass>())).g_type_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GFlagsClass), "::", stringify!(g_type_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsClass>())).mask as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GFlagsClass), "::", stringify!(mask))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsClass>())).n_values as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_GFlagsClass), "::", stringify!(n_values))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsClass>())).values as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GFlagsClass), "::", stringify!(values))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GEnumValue {
pub value: gint,
pub value_name: *const gchar,
pub value_nick: *const gchar,
}
#[test]
fn bindgen_test_layout__GEnumValue() {
assert_eq!(
::std::mem::size_of::<_GEnumValue>(),
24usize,
concat!("Size of: ", stringify!(_GEnumValue))
);
assert_eq!(
::std::mem::align_of::<_GEnumValue>(),
8usize,
concat!("Alignment of ", stringify!(_GEnumValue))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumValue>())).value as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GEnumValue), "::", stringify!(value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumValue>())).value_name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GEnumValue), "::", stringify!(value_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GEnumValue>())).value_nick as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GEnumValue), "::", stringify!(value_nick))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFlagsValue {
pub value: guint,
pub value_name: *const gchar,
pub value_nick: *const gchar,
}
#[test]
fn bindgen_test_layout__GFlagsValue() {
assert_eq!(
::std::mem::size_of::<_GFlagsValue>(),
24usize,
concat!("Size of: ", stringify!(_GFlagsValue))
);
assert_eq!(
::std::mem::align_of::<_GFlagsValue>(),
8usize,
concat!("Alignment of ", stringify!(_GFlagsValue))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsValue>())).value as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GFlagsValue), "::", stringify!(value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsValue>())).value_name as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GFlagsValue), "::", stringify!(value_name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GFlagsValue>())).value_nick as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GFlagsValue), "::", stringify!(value_nick))
);
}
extern "C" {
pub fn g_enum_get_value(enum_class: *mut GEnumClass, value: gint) -> *mut GEnumValue;
}
extern "C" {
pub fn g_enum_get_value_by_name(
enum_class: *mut GEnumClass,
name: *const gchar,
) -> *mut GEnumValue;
}
extern "C" {
pub fn g_enum_get_value_by_nick(
enum_class: *mut GEnumClass,
nick: *const gchar,
) -> *mut GEnumValue;
}
extern "C" {
pub fn g_flags_get_first_value(flags_class: *mut GFlagsClass, value: guint)
-> *mut GFlagsValue;
}
extern "C" {
pub fn g_flags_get_value_by_name(
flags_class: *mut GFlagsClass,
name: *const gchar,
) -> *mut GFlagsValue;
}
extern "C" {
pub fn g_flags_get_value_by_nick(
flags_class: *mut GFlagsClass,
nick: *const gchar,
) -> *mut GFlagsValue;
}
extern "C" {
pub fn g_enum_to_string(g_enum_type: GType, value: gint) -> *mut gchar;
}
extern "C" {
pub fn g_flags_to_string(flags_type: GType, value: guint) -> *mut gchar;
}
extern "C" {
pub fn g_value_set_enum(value: *mut GValue, v_enum: gint);
}
extern "C" {
pub fn g_value_get_enum(value: *const GValue) -> gint;
}
extern "C" {
pub fn g_value_set_flags(value: *mut GValue, v_flags: guint);
}
extern "C" {
pub fn g_value_get_flags(value: *const GValue) -> guint;
}
extern "C" {
pub fn g_enum_register_static(
name: *const gchar,
const_static_values: *const GEnumValue,
) -> GType;
}
extern "C" {
pub fn g_flags_register_static(
name: *const gchar,
const_static_values: *const GFlagsValue,
) -> GType;
}
extern "C" {
pub fn g_enum_complete_type_info(
g_enum_type: GType,
info: *mut GTypeInfo,
const_values: *const GEnumValue,
);
}
extern "C" {
pub fn g_flags_complete_type_info(
g_flags_type: GType,
info: *mut GTypeInfo,
const_values: *const GFlagsValue,
);
}
pub type GParamSpecChar = _GParamSpecChar;
pub type GParamSpecUChar = _GParamSpecUChar;
pub type GParamSpecBoolean = _GParamSpecBoolean;
pub type GParamSpecInt = _GParamSpecInt;
pub type GParamSpecUInt = _GParamSpecUInt;
pub type GParamSpecLong = _GParamSpecLong;
pub type GParamSpecULong = _GParamSpecULong;
pub type GParamSpecInt64 = _GParamSpecInt64;
pub type GParamSpecUInt64 = _GParamSpecUInt64;
pub type GParamSpecUnichar = _GParamSpecUnichar;
pub type GParamSpecEnum = _GParamSpecEnum;
pub type GParamSpecFlags = _GParamSpecFlags;
pub type GParamSpecFloat = _GParamSpecFloat;
pub type GParamSpecDouble = _GParamSpecDouble;
pub type GParamSpecString = _GParamSpecString;
pub type GParamSpecParam = _GParamSpecParam;
pub type GParamSpecBoxed = _GParamSpecBoxed;
pub type GParamSpecPointer = _GParamSpecPointer;
pub type GParamSpecValueArray = _GParamSpecValueArray;
pub type GParamSpecObject = _GParamSpecObject;
pub type GParamSpecOverride = _GParamSpecOverride;
pub type GParamSpecGType = _GParamSpecGType;
pub type GParamSpecVariant = _GParamSpecVariant;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecChar {
pub parent_instance: GParamSpec,
pub minimum: gint8,
pub maximum: gint8,
pub default_value: gint8,
}
#[test]
fn bindgen_test_layout__GParamSpecChar() {
assert_eq!(
::std::mem::size_of::<_GParamSpecChar>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecChar))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecChar>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecChar))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecChar>())).parent_instance as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecChar),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecChar>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecChar), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecChar>())).maximum as *const _ as usize },
73usize,
concat!("Offset of field: ", stringify!(_GParamSpecChar), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecChar>())).default_value as *const _ as usize },
74usize,
concat!("Offset of field: ", stringify!(_GParamSpecChar), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecUChar {
pub parent_instance: GParamSpec,
pub minimum: guint8,
pub maximum: guint8,
pub default_value: guint8,
}
#[test]
fn bindgen_test_layout__GParamSpecUChar() {
assert_eq!(
::std::mem::size_of::<_GParamSpecUChar>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecUChar))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecUChar>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecUChar))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecUChar>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUChar),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUChar>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecUChar), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUChar>())).maximum as *const _ as usize },
73usize,
concat!("Offset of field: ", stringify!(_GParamSpecUChar), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUChar>())).default_value as *const _ as usize },
74usize,
concat!("Offset of field: ", stringify!(_GParamSpecUChar), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecBoolean {
pub parent_instance: GParamSpec,
pub default_value: gboolean,
}
#[test]
fn bindgen_test_layout__GParamSpecBoolean() {
assert_eq!(
::std::mem::size_of::<_GParamSpecBoolean>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecBoolean))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecBoolean>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecBoolean))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecBoolean>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecBoolean),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecBoolean>())).default_value as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecBoolean),
"::",
stringify!(default_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecInt {
pub parent_instance: GParamSpec,
pub minimum: gint,
pub maximum: gint,
pub default_value: gint,
}
#[test]
fn bindgen_test_layout__GParamSpecInt() {
assert_eq!(
::std::mem::size_of::<_GParamSpecInt>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecInt))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecInt>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecInt))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt>())).parent_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt), "::", stringify!(parent_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt>())).maximum as *const _ as usize },
76usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt>())).default_value as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecUInt {
pub parent_instance: GParamSpec,
pub minimum: guint,
pub maximum: guint,
pub default_value: guint,
}
#[test]
fn bindgen_test_layout__GParamSpecUInt() {
assert_eq!(
::std::mem::size_of::<_GParamSpecUInt>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecUInt))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecUInt>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecUInt))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt>())).parent_instance as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUInt),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecUInt), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt>())).maximum as *const _ as usize },
76usize,
concat!("Offset of field: ", stringify!(_GParamSpecUInt), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt>())).default_value as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecUInt), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecLong {
pub parent_instance: GParamSpec,
pub minimum: glong,
pub maximum: glong,
pub default_value: glong,
}
#[test]
fn bindgen_test_layout__GParamSpecLong() {
assert_eq!(
::std::mem::size_of::<_GParamSpecLong>(),
96usize,
concat!("Size of: ", stringify!(_GParamSpecLong))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecLong>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecLong))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecLong>())).parent_instance as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecLong),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecLong>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecLong), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecLong>())).maximum as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecLong), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecLong>())).default_value as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GParamSpecLong), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecULong {
pub parent_instance: GParamSpec,
pub minimum: gulong,
pub maximum: gulong,
pub default_value: gulong,
}
#[test]
fn bindgen_test_layout__GParamSpecULong() {
assert_eq!(
::std::mem::size_of::<_GParamSpecULong>(),
96usize,
concat!("Size of: ", stringify!(_GParamSpecULong))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecULong>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecULong))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecULong>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecULong),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecULong>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecULong), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecULong>())).maximum as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecULong), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecULong>())).default_value as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GParamSpecULong), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecInt64 {
pub parent_instance: GParamSpec,
pub minimum: gint64,
pub maximum: gint64,
pub default_value: gint64,
}
#[test]
fn bindgen_test_layout__GParamSpecInt64() {
assert_eq!(
::std::mem::size_of::<_GParamSpecInt64>(),
96usize,
concat!("Size of: ", stringify!(_GParamSpecInt64))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecInt64>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecInt64))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecInt64>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecInt64),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt64>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt64), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt64>())).maximum as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt64), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecInt64>())).default_value as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GParamSpecInt64), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecUInt64 {
pub parent_instance: GParamSpec,
pub minimum: guint64,
pub maximum: guint64,
pub default_value: guint64,
}
#[test]
fn bindgen_test_layout__GParamSpecUInt64() {
assert_eq!(
::std::mem::size_of::<_GParamSpecUInt64>(),
96usize,
concat!("Size of: ", stringify!(_GParamSpecUInt64))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecUInt64>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecUInt64))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecUInt64>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUInt64),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt64>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecUInt64), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt64>())).maximum as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecUInt64), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecUInt64>())).default_value as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUInt64),
"::",
stringify!(default_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecUnichar {
pub parent_instance: GParamSpec,
pub default_value: gunichar,
}
#[test]
fn bindgen_test_layout__GParamSpecUnichar() {
assert_eq!(
::std::mem::size_of::<_GParamSpecUnichar>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecUnichar))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecUnichar>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecUnichar))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecUnichar>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUnichar),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecUnichar>())).default_value as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecUnichar),
"::",
stringify!(default_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecEnum {
pub parent_instance: GParamSpec,
pub enum_class: *mut GEnumClass,
pub default_value: gint,
}
#[test]
fn bindgen_test_layout__GParamSpecEnum() {
assert_eq!(
::std::mem::size_of::<_GParamSpecEnum>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecEnum))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecEnum>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecEnum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecEnum>())).parent_instance as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecEnum),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecEnum>())).enum_class as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecEnum), "::", stringify!(enum_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecEnum>())).default_value as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecEnum), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecFlags {
pub parent_instance: GParamSpec,
pub flags_class: *mut GFlagsClass,
pub default_value: guint,
}
#[test]
fn bindgen_test_layout__GParamSpecFlags() {
assert_eq!(
::std::mem::size_of::<_GParamSpecFlags>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecFlags))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecFlags>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecFlags))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecFlags>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecFlags),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFlags>())).flags_class as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecFlags), "::", stringify!(flags_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFlags>())).default_value as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecFlags), "::", stringify!(default_value))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecFloat {
pub parent_instance: GParamSpec,
pub minimum: gfloat,
pub maximum: gfloat,
pub default_value: gfloat,
pub epsilon: gfloat,
}
#[test]
fn bindgen_test_layout__GParamSpecFloat() {
assert_eq!(
::std::mem::size_of::<_GParamSpecFloat>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecFloat))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecFloat>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecFloat))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecFloat>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecFloat),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFloat>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecFloat), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFloat>())).maximum as *const _ as usize },
76usize,
concat!("Offset of field: ", stringify!(_GParamSpecFloat), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFloat>())).default_value as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecFloat), "::", stringify!(default_value))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecFloat>())).epsilon as *const _ as usize },
84usize,
concat!("Offset of field: ", stringify!(_GParamSpecFloat), "::", stringify!(epsilon))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecDouble {
pub parent_instance: GParamSpec,
pub minimum: gdouble,
pub maximum: gdouble,
pub default_value: gdouble,
pub epsilon: gdouble,
}
#[test]
fn bindgen_test_layout__GParamSpecDouble() {
assert_eq!(
::std::mem::size_of::<_GParamSpecDouble>(),
104usize,
concat!("Size of: ", stringify!(_GParamSpecDouble))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecDouble>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecDouble))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecDouble>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecDouble),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecDouble>())).minimum as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecDouble), "::", stringify!(minimum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecDouble>())).maximum as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecDouble), "::", stringify!(maximum))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecDouble>())).default_value as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecDouble),
"::",
stringify!(default_value)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecDouble>())).epsilon as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_GParamSpecDouble), "::", stringify!(epsilon))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecString {
pub parent_instance: GParamSpec,
pub default_value: *mut gchar,
pub cset_first: *mut gchar,
pub cset_nth: *mut gchar,
pub substitutor: gchar,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
pub __bindgen_padding_0: [u16; 3usize],
}
#[test]
fn bindgen_test_layout__GParamSpecString() {
assert_eq!(
::std::mem::size_of::<_GParamSpecString>(),
104usize,
concat!("Size of: ", stringify!(_GParamSpecString))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecString>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecString))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecString>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecString),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecString>())).default_value as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecString),
"::",
stringify!(default_value)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecString>())).cset_first as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_GParamSpecString), "::", stringify!(cset_first))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecString>())).cset_nth as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GParamSpecString), "::", stringify!(cset_nth))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecString>())).substitutor as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_GParamSpecString), "::", stringify!(substitutor))
);
}
impl _GParamSpecString {
#[inline]
pub fn null_fold_if_empty(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_null_fold_if_empty(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn ensure_non_null(&self) -> guint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set_ensure_non_null(&mut self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(
null_fold_if_empty: guint,
ensure_non_null: guint,
) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let null_fold_if_empty: u32 = unsafe { ::std::mem::transmute(null_fold_if_empty) };
null_fold_if_empty as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let ensure_non_null: u32 = unsafe { ::std::mem::transmute(ensure_non_null) };
ensure_non_null as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecParam {
pub parent_instance: GParamSpec,
}
#[test]
fn bindgen_test_layout__GParamSpecParam() {
assert_eq!(
::std::mem::size_of::<_GParamSpecParam>(),
72usize,
concat!("Size of: ", stringify!(_GParamSpecParam))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecParam>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecParam))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecParam>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecParam),
"::",
stringify!(parent_instance)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecBoxed {
pub parent_instance: GParamSpec,
}
#[test]
fn bindgen_test_layout__GParamSpecBoxed() {
assert_eq!(
::std::mem::size_of::<_GParamSpecBoxed>(),
72usize,
concat!("Size of: ", stringify!(_GParamSpecBoxed))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecBoxed>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecBoxed))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecBoxed>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecBoxed),
"::",
stringify!(parent_instance)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecPointer {
pub parent_instance: GParamSpec,
}
#[test]
fn bindgen_test_layout__GParamSpecPointer() {
assert_eq!(
::std::mem::size_of::<_GParamSpecPointer>(),
72usize,
concat!("Size of: ", stringify!(_GParamSpecPointer))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecPointer>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecPointer))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecPointer>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecPointer),
"::",
stringify!(parent_instance)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecValueArray {
pub parent_instance: GParamSpec,
pub element_spec: *mut GParamSpec,
pub fixed_n_elements: guint,
}
#[test]
fn bindgen_test_layout__GParamSpecValueArray() {
assert_eq!(
::std::mem::size_of::<_GParamSpecValueArray>(),
88usize,
concat!("Size of: ", stringify!(_GParamSpecValueArray))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecValueArray>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecValueArray))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecValueArray>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecValueArray),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecValueArray>())).element_spec as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecValueArray),
"::",
stringify!(element_spec)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecValueArray>())).fixed_n_elements as *const _ as usize
},
80usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecValueArray),
"::",
stringify!(fixed_n_elements)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecObject {
pub parent_instance: GParamSpec,
}
#[test]
fn bindgen_test_layout__GParamSpecObject() {
assert_eq!(
::std::mem::size_of::<_GParamSpecObject>(),
72usize,
concat!("Size of: ", stringify!(_GParamSpecObject))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecObject>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecObject))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecObject>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecObject),
"::",
stringify!(parent_instance)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecOverride {
pub parent_instance: GParamSpec,
pub overridden: *mut GParamSpec,
}
#[test]
fn bindgen_test_layout__GParamSpecOverride() {
assert_eq!(
::std::mem::size_of::<_GParamSpecOverride>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecOverride))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecOverride>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecOverride))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecOverride>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecOverride),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecOverride>())).overridden as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecOverride), "::", stringify!(overridden))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecGType {
pub parent_instance: GParamSpec,
pub is_a_type: GType,
}
#[test]
fn bindgen_test_layout__GParamSpecGType() {
assert_eq!(
::std::mem::size_of::<_GParamSpecGType>(),
80usize,
concat!("Size of: ", stringify!(_GParamSpecGType))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecGType>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecGType))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecGType>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecGType),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecGType>())).is_a_type as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecGType), "::", stringify!(is_a_type))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GParamSpecVariant {
pub parent_instance: GParamSpec,
pub type_: *mut GVariantType,
pub default_value: *mut GVariant,
pub padding: [gpointer; 4usize],
}
#[test]
fn bindgen_test_layout__GParamSpecVariant() {
assert_eq!(
::std::mem::size_of::<_GParamSpecVariant>(),
120usize,
concat!("Size of: ", stringify!(_GParamSpecVariant))
);
assert_eq!(
::std::mem::align_of::<_GParamSpecVariant>(),
8usize,
concat!("Alignment of ", stringify!(_GParamSpecVariant))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecVariant>())).parent_instance as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecVariant),
"::",
stringify!(parent_instance)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecVariant>())).type_ as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_GParamSpecVariant), "::", stringify!(type_))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GParamSpecVariant>())).default_value as *const _ as usize
},
80usize,
concat!(
"Offset of field: ",
stringify!(_GParamSpecVariant),
"::",
stringify!(default_value)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GParamSpecVariant>())).padding as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_GParamSpecVariant), "::", stringify!(padding))
);
}
extern "C" {
pub fn g_param_spec_char(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gint8,
maximum: gint8,
default_value: gint8,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_uchar(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: guint8,
maximum: guint8,
default_value: guint8,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_boolean(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
default_value: gboolean,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_int(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gint,
maximum: gint,
default_value: gint,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_uint(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: guint,
maximum: guint,
default_value: guint,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_long(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: glong,
maximum: glong,
default_value: glong,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_ulong(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gulong,
maximum: gulong,
default_value: gulong,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_int64(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gint64,
maximum: gint64,
default_value: gint64,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_uint64(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: guint64,
maximum: guint64,
default_value: guint64,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_unichar(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
default_value: gunichar,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_enum(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
enum_type: GType,
default_value: gint,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_flags(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
flags_type: GType,
default_value: guint,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_float(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gfloat,
maximum: gfloat,
default_value: gfloat,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_double(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
minimum: gdouble,
maximum: gdouble,
default_value: gdouble,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_string(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
default_value: *const gchar,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_param(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
param_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_boxed(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
boxed_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_pointer(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_value_array(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
element_spec: *mut GParamSpec,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_object(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
object_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_override(
name: *const gchar,
overridden: *mut GParamSpec,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_gtype(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
is_a_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub fn g_param_spec_variant(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
type_: *const GVariantType,
default_value: *mut GVariant,
flags: GParamFlags,
) -> *mut GParamSpec;
}
extern "C" {
pub static mut g_param_spec_types: *mut GType;
}
extern "C" {
pub fn g_source_set_closure(source: *mut GSource, closure: *mut GClosure);
}
extern "C" {
pub fn g_source_set_dummy_callback(source: *mut GSource);
}
pub type GTypeModule = _GTypeModule;
pub type GTypeModuleClass = _GTypeModuleClass;
pub type GTypeModule_autoptr = *mut GTypeModule;
pub type GTypeModule_listautoptr = *mut GList;
pub type GTypeModule_slistautoptr = *mut GSList;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeModule {
pub parent_instance: GObject,
pub use_count: guint,
pub type_infos: *mut GSList,
pub interface_infos: *mut GSList,
pub name: *mut gchar,
}
#[test]
fn bindgen_test_layout__GTypeModule() {
assert_eq!(
::std::mem::size_of::<_GTypeModule>(),
56usize,
concat!("Size of: ", stringify!(_GTypeModule))
);
assert_eq!(
::std::mem::align_of::<_GTypeModule>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeModule))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModule>())).parent_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeModule), "::", stringify!(parent_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModule>())).use_count as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GTypeModule), "::", stringify!(use_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModule>())).type_infos as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_GTypeModule), "::", stringify!(type_infos))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModule>())).interface_infos as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_GTypeModule), "::", stringify!(interface_infos))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModule>())).name as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_GTypeModule), "::", stringify!(name))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypeModuleClass {
pub parent_class: GObjectClass,
pub load: ::std::option::Option<unsafe extern "C" fn(module: *mut GTypeModule) -> gboolean>,
pub unload: ::std::option::Option<unsafe extern "C" fn(module: *mut GTypeModule)>,
pub reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub reserved4: ::std::option::Option<unsafe extern "C" fn()>,
}
#[test]
fn bindgen_test_layout__GTypeModuleClass() {
assert_eq!(
::std::mem::size_of::<_GTypeModuleClass>(),
184usize,
concat!("Size of: ", stringify!(_GTypeModuleClass))
);
assert_eq!(
::std::mem::align_of::<_GTypeModuleClass>(),
8usize,
concat!("Alignment of ", stringify!(_GTypeModuleClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(parent_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).load as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(load))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).unload as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(unload))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).reserved1 as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(reserved1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).reserved2 as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(reserved2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).reserved3 as *const _ as usize },
168usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(reserved3))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypeModuleClass>())).reserved4 as *const _ as usize },
176usize,
concat!("Offset of field: ", stringify!(_GTypeModuleClass), "::", stringify!(reserved4))
);
}
extern "C" {
pub fn g_type_module_get_type() -> GType;
}
extern "C" {
pub fn g_type_module_use(module: *mut GTypeModule) -> gboolean;
}
extern "C" {
pub fn g_type_module_unuse(module: *mut GTypeModule);
}
extern "C" {
pub fn g_type_module_set_name(module: *mut GTypeModule, name: *const gchar);
}
extern "C" {
pub fn g_type_module_register_type(
module: *mut GTypeModule,
parent_type: GType,
type_name: *const gchar,
type_info: *const GTypeInfo,
flags: GTypeFlags,
) -> GType;
}
extern "C" {
pub fn g_type_module_add_interface(
module: *mut GTypeModule,
instance_type: GType,
interface_type: GType,
interface_info: *const GInterfaceInfo,
);
}
extern "C" {
pub fn g_type_module_register_enum(
module: *mut GTypeModule,
name: *const gchar,
const_static_values: *const GEnumValue,
) -> GType;
}
extern "C" {
pub fn g_type_module_register_flags(
module: *mut GTypeModule,
name: *const gchar,
const_static_values: *const GFlagsValue,
) -> GType;
}
pub type GTypePluginClass = _GTypePluginClass;
pub type GTypePluginUse = ::std::option::Option<unsafe extern "C" fn(plugin: *mut GTypePlugin)>;
pub type GTypePluginUnuse = ::std::option::Option<unsafe extern "C" fn(plugin: *mut GTypePlugin)>;
pub type GTypePluginCompleteTypeInfo = ::std::option::Option<
unsafe extern "C" fn(
plugin: *mut GTypePlugin,
g_type: GType,
info: *mut GTypeInfo,
value_table: *mut GTypeValueTable,
),
>;
pub type GTypePluginCompleteInterfaceInfo = ::std::option::Option<
unsafe extern "C" fn(
plugin: *mut GTypePlugin,
instance_type: GType,
interface_type: GType,
info: *mut GInterfaceInfo,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTypePluginClass {
pub base_iface: GTypeInterface,
pub use_plugin: GTypePluginUse,
pub unuse_plugin: GTypePluginUnuse,
pub complete_type_info: GTypePluginCompleteTypeInfo,
pub complete_interface_info: GTypePluginCompleteInterfaceInfo,
}
#[test]
fn bindgen_test_layout__GTypePluginClass() {
assert_eq!(
::std::mem::size_of::<_GTypePluginClass>(),
48usize,
concat!("Size of: ", stringify!(_GTypePluginClass))
);
assert_eq!(
::std::mem::align_of::<_GTypePluginClass>(),
8usize,
concat!("Alignment of ", stringify!(_GTypePluginClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypePluginClass>())).base_iface as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GTypePluginClass), "::", stringify!(base_iface))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypePluginClass>())).use_plugin as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GTypePluginClass), "::", stringify!(use_plugin))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GTypePluginClass>())).unuse_plugin as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_GTypePluginClass), "::", stringify!(unuse_plugin))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GTypePluginClass>())).complete_type_info as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(_GTypePluginClass),
"::",
stringify!(complete_type_info)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_GTypePluginClass>())).complete_interface_info as *const _
as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(_GTypePluginClass),
"::",
stringify!(complete_interface_info)
)
);
}
extern "C" {
pub fn g_type_plugin_get_type() -> GType;
}
extern "C" {
pub fn g_type_plugin_use(plugin: *mut GTypePlugin);
}
extern "C" {
pub fn g_type_plugin_unuse(plugin: *mut GTypePlugin);
}
extern "C" {
pub fn g_type_plugin_complete_type_info(
plugin: *mut GTypePlugin,
g_type: GType,
info: *mut GTypeInfo,
value_table: *mut GTypeValueTable,
);
}
extern "C" {
pub fn g_type_plugin_complete_interface_info(
plugin: *mut GTypePlugin,
instance_type: GType,
interface_type: GType,
info: *mut GInterfaceInfo,
);
}
pub type GValueArray = _GValueArray;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GValueArray {
pub n_values: guint,
pub values: *mut GValue,
pub n_prealloced: guint,
}
#[test]
fn bindgen_test_layout__GValueArray() {
assert_eq!(
::std::mem::size_of::<_GValueArray>(),
24usize,
concat!("Size of: ", stringify!(_GValueArray))
);
assert_eq!(
::std::mem::align_of::<_GValueArray>(),
8usize,
concat!("Alignment of ", stringify!(_GValueArray))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValueArray>())).n_values as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_GValueArray), "::", stringify!(n_values))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValueArray>())).values as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_GValueArray), "::", stringify!(values))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_GValueArray>())).n_prealloced as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_GValueArray), "::", stringify!(n_prealloced))
);
}
extern "C" {
pub fn g_value_array_get_type() -> GType;
}
extern "C" {
pub fn g_value_array_get_nth(value_array: *mut GValueArray, index_: guint) -> *mut GValue;
}
extern "C" {
pub fn g_value_array_new(n_prealloced: guint) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_free(value_array: *mut GValueArray);
}
extern "C" {
pub fn g_value_array_copy(value_array: *const GValueArray) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_prepend(
value_array: *mut GValueArray,
value: *const GValue,
) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_append(
value_array: *mut GValueArray,
value: *const GValue,
) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_insert(
value_array: *mut GValueArray,
index_: guint,
value: *const GValue,
) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_remove(value_array: *mut GValueArray, index_: guint) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_sort(
value_array: *mut GValueArray,
compare_func: GCompareFunc,
) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_array_sort_with_data(
value_array: *mut GValueArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GValueArray;
}
extern "C" {
pub fn g_value_set_char(value: *mut GValue, v_char: gchar);
}
extern "C" {
pub fn g_value_get_char(value: *const GValue) -> gchar;
}
extern "C" {
pub fn g_value_set_schar(value: *mut GValue, v_char: gint8);
}
extern "C" {
pub fn g_value_get_schar(value: *const GValue) -> gint8;
}
extern "C" {
pub fn g_value_set_uchar(value: *mut GValue, v_uchar: guchar);
}
extern "C" {
pub fn g_value_get_uchar(value: *const GValue) -> guchar;
}
extern "C" {
pub fn g_value_set_boolean(value: *mut GValue, v_boolean: gboolean);
}
extern "C" {
pub fn g_value_get_boolean(value: *const GValue) -> gboolean;
}
extern "C" {
pub fn g_value_set_int(value: *mut GValue, v_int: gint);
}
extern "C" {
pub fn g_value_get_int(value: *const GValue) -> gint;
}
extern "C" {
pub fn g_value_set_uint(value: *mut GValue, v_uint: guint);
}
extern "C" {
pub fn g_value_get_uint(value: *const GValue) -> guint;
}
extern "C" {
pub fn g_value_set_long(value: *mut GValue, v_long: glong);
}
extern "C" {
pub fn g_value_get_long(value: *const GValue) -> glong;
}
extern "C" {
pub fn g_value_set_ulong(value: *mut GValue, v_ulong: gulong);
}
extern "C" {
pub fn g_value_get_ulong(value: *const GValue) -> gulong;
}
extern "C" {
pub fn g_value_set_int64(value: *mut GValue, v_int64: gint64);
}
extern "C" {
pub fn g_value_get_int64(value: *const GValue) -> gint64;
}
extern "C" {
pub fn g_value_set_uint64(value: *mut GValue, v_uint64: guint64);
}
extern "C" {
pub fn g_value_get_uint64(value: *const GValue) -> guint64;
}
extern "C" {
pub fn g_value_set_float(value: *mut GValue, v_float: gfloat);
}
extern "C" {
pub fn g_value_get_float(value: *const GValue) -> gfloat;
}
extern "C" {
pub fn g_value_set_double(value: *mut GValue, v_double: gdouble);
}
extern "C" {
pub fn g_value_get_double(value: *const GValue) -> gdouble;
}
extern "C" {
pub fn g_value_set_string(value: *mut GValue, v_string: *const gchar);
}
extern "C" {
pub fn g_value_set_static_string(value: *mut GValue, v_string: *const gchar);
}
extern "C" {
pub fn g_value_get_string(value: *const GValue) -> *const gchar;
}
extern "C" {
pub fn g_value_dup_string(value: *const GValue) -> *mut gchar;
}
extern "C" {
pub fn g_value_set_pointer(value: *mut GValue, v_pointer: gpointer);
}
extern "C" {
pub fn g_value_get_pointer(value: *const GValue) -> gpointer;
}
extern "C" {
pub fn g_gtype_get_type() -> GType;
}
extern "C" {
pub fn g_value_set_gtype(value: *mut GValue, v_gtype: GType);
}
extern "C" {
pub fn g_value_get_gtype(value: *const GValue) -> GType;
}
extern "C" {
pub fn g_value_set_variant(value: *mut GValue, variant: *mut GVariant);
}
extern "C" {
pub fn g_value_take_variant(value: *mut GValue, variant: *mut GVariant);
}
extern "C" {
pub fn g_value_get_variant(value: *const GValue) -> *mut GVariant;
}
extern "C" {
pub fn g_value_dup_variant(value: *const GValue) -> *mut GVariant;
}
extern "C" {
pub fn g_pointer_type_register_static(name: *const gchar) -> GType;
}
extern "C" {
pub fn g_strdup_value_contents(value: *const GValue) -> *mut gchar;
}
extern "C" {
pub fn g_value_take_string(value: *mut GValue, v_string: *mut gchar);
}
extern "C" {
pub fn g_value_set_string_take_ownership(value: *mut GValue, v_string: *mut gchar);
}
pub type gchararray = *mut gchar;
pub type GClosure_autoptr = *mut GClosure;
pub type GClosure_listautoptr = *mut GList;
pub type GClosure_slistautoptr = *mut GSList;
pub type GObject_autoptr = *mut GObject;
pub type GObject_listautoptr = *mut GList;
pub type GObject_slistautoptr = *mut GSList;
pub type GInitiallyUnowned_autoptr = *mut GInitiallyUnowned;
pub type GInitiallyUnowned_listautoptr = *mut GList;
pub type GInitiallyUnowned_slistautoptr = *mut GSList;
pub type VipsPel = ::std::os::raw::c_uchar;
pub type VipsCallbackFn = ::std::option::Option<
unsafe extern "C" fn(
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub type VipsSListMap2Fn = ::std::option::Option<
unsafe extern "C" fn(
item: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type VipsSListMap4Fn = ::std::option::Option<
unsafe extern "C" fn(
item: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
d: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type VipsSListFold2Fn = ::std::option::Option<
unsafe extern "C" fn(
item: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsPrecision {
VIPS_PRECISION_INTEGER = 0,
VIPS_PRECISION_FLOAT = 1,
VIPS_PRECISION_APPROXIMATE = 2,
VIPS_PRECISION_LAST = 3,
}
extern "C" {
pub fn vips_path_filename7(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_path_mode7(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsBuf {
pub base: *mut ::std::os::raw::c_char,
pub mx: ::std::os::raw::c_int,
pub i: ::std::os::raw::c_int,
pub full: gboolean,
pub lasti: ::std::os::raw::c_int,
pub dynamic: gboolean,
}
#[test]
fn bindgen_test_layout__VipsBuf() {
assert_eq!(
::std::mem::size_of::<_VipsBuf>(),
32usize,
concat!("Size of: ", stringify!(_VipsBuf))
);
assert_eq!(
::std::mem::align_of::<_VipsBuf>(),
8usize,
concat!("Alignment of ", stringify!(_VipsBuf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).base as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(base))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).mx as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(mx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).i as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(i))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).full as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(full))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).lasti as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(lasti))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuf>())).dynamic as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsBuf), "::", stringify!(dynamic))
);
}
pub type VipsBuf = _VipsBuf;
extern "C" {
pub fn vips_buf_rewind(buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_buf_destroy(buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_buf_init(buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_buf_set_static(
buf: *mut VipsBuf,
base: *mut ::std::os::raw::c_char,
mx: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_buf_set_dynamic(buf: *mut VipsBuf, mx: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_buf_init_static(
buf: *mut VipsBuf,
base: *mut ::std::os::raw::c_char,
mx: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_buf_init_dynamic(buf: *mut VipsBuf, mx: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_buf_appendns(
buf: *mut VipsBuf,
str: *const ::std::os::raw::c_char,
sz: ::std::os::raw::c_int,
) -> gboolean;
}
extern "C" {
pub fn vips_buf_appends(buf: *mut VipsBuf, str: *const ::std::os::raw::c_char) -> gboolean;
}
extern "C" {
pub fn vips_buf_appendf(buf: *mut VipsBuf, fmt: *const ::std::os::raw::c_char, ...)
-> gboolean;
}
extern "C" {
pub fn vips_buf_vappendf(
buf: *mut VipsBuf,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
) -> gboolean;
}
extern "C" {
pub fn vips_buf_appendc(buf: *mut VipsBuf, ch: ::std::os::raw::c_char) -> gboolean;
}
extern "C" {
pub fn vips_buf_appendsc(
buf: *mut VipsBuf,
quote: gboolean,
str: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_buf_appendgv(buf: *mut VipsBuf, value: *mut GValue) -> gboolean;
}
extern "C" {
pub fn vips_buf_append_size(buf: *mut VipsBuf, n: usize) -> gboolean;
}
extern "C" {
pub fn vips_buf_removec(buf: *mut VipsBuf, ch: ::std::os::raw::c_char) -> gboolean;
}
extern "C" {
pub fn vips_buf_change(
buf: *mut VipsBuf,
o: *const ::std::os::raw::c_char,
n: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_buf_is_empty(buf: *mut VipsBuf) -> gboolean;
}
extern "C" {
pub fn vips_buf_is_full(buf: *mut VipsBuf) -> gboolean;
}
extern "C" {
pub fn vips_buf_all(buf: *mut VipsBuf) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_buf_firstline(buf: *mut VipsBuf) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_buf_appendg(buf: *mut VipsBuf, g: f64) -> gboolean;
}
extern "C" {
pub fn vips_buf_appendd(buf: *mut VipsBuf, d: ::std::os::raw::c_int) -> gboolean;
}
extern "C" {
pub fn vips_buf_len(buf: *mut VipsBuf) -> ::std::os::raw::c_int;
}
pub type float_t = f32;
pub type double_t = f64;
extern "C" {
pub fn __fpclassify(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __signbit(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isinf(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __finite(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isnan(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __iseqsig(__x: f64, __y: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __issignaling(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acos(__x: f64) -> f64;
}
extern "C" {
pub fn __acos(__x: f64) -> f64;
}
extern "C" {
pub fn asin(__x: f64) -> f64;
}
extern "C" {
pub fn __asin(__x: f64) -> f64;
}
extern "C" {
pub fn atan(__x: f64) -> f64;
}
extern "C" {
pub fn __atan(__x: f64) -> f64;
}
extern "C" {
pub fn atan2(__y: f64, __x: f64) -> f64;
}
extern "C" {
pub fn __atan2(__y: f64, __x: f64) -> f64;
}
extern "C" {
pub fn cos(__x: f64) -> f64;
}
extern "C" {
pub fn __cos(__x: f64) -> f64;
}
extern "C" {
pub fn sin(__x: f64) -> f64;
}
extern "C" {
pub fn __sin(__x: f64) -> f64;
}
extern "C" {
pub fn tan(__x: f64) -> f64;
}
extern "C" {
pub fn __tan(__x: f64) -> f64;
}
extern "C" {
pub fn cosh(__x: f64) -> f64;
}
extern "C" {
pub fn __cosh(__x: f64) -> f64;
}
extern "C" {
pub fn sinh(__x: f64) -> f64;
}
extern "C" {
pub fn __sinh(__x: f64) -> f64;
}
extern "C" {
pub fn tanh(__x: f64) -> f64;
}
extern "C" {
pub fn __tanh(__x: f64) -> f64;
}
extern "C" {
pub fn acosh(__x: f64) -> f64;
}
extern "C" {
pub fn __acosh(__x: f64) -> f64;
}
extern "C" {
pub fn asinh(__x: f64) -> f64;
}
extern "C" {
pub fn __asinh(__x: f64) -> f64;
}
extern "C" {
pub fn atanh(__x: f64) -> f64;
}
extern "C" {
pub fn __atanh(__x: f64) -> f64;
}
extern "C" {
pub fn exp(__x: f64) -> f64;
}
extern "C" {
pub fn __exp(__x: f64) -> f64;
}
extern "C" {
pub fn frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn __frexp(__x: f64, __exponent: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn __ldexp(__x: f64, __exponent: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn log(__x: f64) -> f64;
}
extern "C" {
pub fn __log(__x: f64) -> f64;
}
extern "C" {
pub fn log10(__x: f64) -> f64;
}
extern "C" {
pub fn __log10(__x: f64) -> f64;
}
extern "C" {
pub fn modf(__x: f64, __iptr: *mut f64) -> f64;
}
extern "C" {
pub fn __modf(__x: f64, __iptr: *mut f64) -> f64;
}
extern "C" {
pub fn expm1(__x: f64) -> f64;
}
extern "C" {
pub fn __expm1(__x: f64) -> f64;
}
extern "C" {
pub fn log1p(__x: f64) -> f64;
}
extern "C" {
pub fn __log1p(__x: f64) -> f64;
}
extern "C" {
pub fn logb(__x: f64) -> f64;
}
extern "C" {
pub fn __logb(__x: f64) -> f64;
}
extern "C" {
pub fn exp2(__x: f64) -> f64;
}
extern "C" {
pub fn __exp2(__x: f64) -> f64;
}
extern "C" {
pub fn log2(__x: f64) -> f64;
}
extern "C" {
pub fn __log2(__x: f64) -> f64;
}
extern "C" {
pub fn pow(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __pow(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn sqrt(__x: f64) -> f64;
}
extern "C" {
pub fn __sqrt(__x: f64) -> f64;
}
extern "C" {
pub fn hypot(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __hypot(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn cbrt(__x: f64) -> f64;
}
extern "C" {
pub fn __cbrt(__x: f64) -> f64;
}
extern "C" {
pub fn ceil(__x: f64) -> f64;
}
extern "C" {
pub fn __ceil(__x: f64) -> f64;
}
extern "C" {
pub fn fabs(__x: f64) -> f64;
}
extern "C" {
pub fn __fabs(__x: f64) -> f64;
}
extern "C" {
pub fn floor(__x: f64) -> f64;
}
extern "C" {
pub fn __floor(__x: f64) -> f64;
}
extern "C" {
pub fn fmod(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __fmod(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn isinf(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn finite(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn drem(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __drem(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn significand(__x: f64) -> f64;
}
extern "C" {
pub fn __significand(__x: f64) -> f64;
}
extern "C" {
pub fn copysign(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __copysign(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn nan(__tagb: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn __nan(__tagb: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn isnan(__value: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn j0(arg1: f64) -> f64;
}
extern "C" {
pub fn __j0(arg1: f64) -> f64;
}
extern "C" {
pub fn j1(arg1: f64) -> f64;
}
extern "C" {
pub fn __j1(arg1: f64) -> f64;
}
extern "C" {
pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn __jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn y0(arg1: f64) -> f64;
}
extern "C" {
pub fn __y0(arg1: f64) -> f64;
}
extern "C" {
pub fn y1(arg1: f64) -> f64;
}
extern "C" {
pub fn __y1(arg1: f64) -> f64;
}
extern "C" {
pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn __yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
extern "C" {
pub fn erf(arg1: f64) -> f64;
}
extern "C" {
pub fn __erf(arg1: f64) -> f64;
}
extern "C" {
pub fn erfc(arg1: f64) -> f64;
}
extern "C" {
pub fn __erfc(arg1: f64) -> f64;
}
extern "C" {
pub fn lgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn __lgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn tgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn __tgamma(arg1: f64) -> f64;
}
extern "C" {
pub fn gamma(arg1: f64) -> f64;
}
extern "C" {
pub fn __gamma(arg1: f64) -> f64;
}
extern "C" {
pub fn lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn rint(__x: f64) -> f64;
}
extern "C" {
pub fn __rint(__x: f64) -> f64;
}
extern "C" {
pub fn nextafter(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __nextafter(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn nexttoward(__x: f64, __y: u128) -> f64;
}
extern "C" {
pub fn __nexttoward(__x: f64, __y: u128) -> f64;
}
extern "C" {
pub fn remainder(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __remainder(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn __scalbn(__x: f64, __n: ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn ilogb(__x: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ilogb(__x: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64;
}
extern "C" {
pub fn __scalbln(__x: f64, __n: ::std::os::raw::c_long) -> f64;
}
extern "C" {
pub fn nearbyint(__x: f64) -> f64;
}
extern "C" {
pub fn __nearbyint(__x: f64) -> f64;
}
extern "C" {
pub fn round(__x: f64) -> f64;
}
extern "C" {
pub fn __round(__x: f64) -> f64;
}
extern "C" {
pub fn trunc(__x: f64) -> f64;
}
extern "C" {
pub fn __trunc(__x: f64) -> f64;
}
extern "C" {
pub fn remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::std::os::raw::c_int) -> f64;
}
extern "C" {
pub fn lrint(__x: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lrint(__x: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llrint(__x: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llrint(__x: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn lround(__x: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lround(__x: f64) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llround(__x: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llround(__x: f64) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn fdim(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __fdim(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fmax(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __fmax(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fmin(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn __fmin(__x: f64, __y: f64) -> f64;
}
extern "C" {
pub fn fma(__x: f64, __y: f64, __z: f64) -> f64;
}
extern "C" {
pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64;
}
extern "C" {
pub fn scalb(__x: f64, __n: f64) -> f64;
}
extern "C" {
pub fn __scalb(__x: f64, __n: f64) -> f64;
}
extern "C" {
pub fn __fpclassifyf(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __signbitf(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isinff(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __finitef(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isnanf(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __iseqsigf(__x: f32, __y: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __issignalingf(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acosf(__x: f32) -> f32;
}
extern "C" {
pub fn __acosf(__x: f32) -> f32;
}
extern "C" {
pub fn asinf(__x: f32) -> f32;
}
extern "C" {
pub fn __asinf(__x: f32) -> f32;
}
extern "C" {
pub fn atanf(__x: f32) -> f32;
}
extern "C" {
pub fn __atanf(__x: f32) -> f32;
}
extern "C" {
pub fn atan2f(__y: f32, __x: f32) -> f32;
}
extern "C" {
pub fn __atan2f(__y: f32, __x: f32) -> f32;
}
extern "C" {
pub fn cosf(__x: f32) -> f32;
}
extern "C" {
pub fn __cosf(__x: f32) -> f32;
}
extern "C" {
pub fn sinf(__x: f32) -> f32;
}
extern "C" {
pub fn __sinf(__x: f32) -> f32;
}
extern "C" {
pub fn tanf(__x: f32) -> f32;
}
extern "C" {
pub fn __tanf(__x: f32) -> f32;
}
extern "C" {
pub fn coshf(__x: f32) -> f32;
}
extern "C" {
pub fn __coshf(__x: f32) -> f32;
}
extern "C" {
pub fn sinhf(__x: f32) -> f32;
}
extern "C" {
pub fn __sinhf(__x: f32) -> f32;
}
extern "C" {
pub fn tanhf(__x: f32) -> f32;
}
extern "C" {
pub fn __tanhf(__x: f32) -> f32;
}
extern "C" {
pub fn acoshf(__x: f32) -> f32;
}
extern "C" {
pub fn __acoshf(__x: f32) -> f32;
}
extern "C" {
pub fn asinhf(__x: f32) -> f32;
}
extern "C" {
pub fn __asinhf(__x: f32) -> f32;
}
extern "C" {
pub fn atanhf(__x: f32) -> f32;
}
extern "C" {
pub fn __atanhf(__x: f32) -> f32;
}
extern "C" {
pub fn expf(__x: f32) -> f32;
}
extern "C" {
pub fn __expf(__x: f32) -> f32;
}
extern "C" {
pub fn frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn __frexpf(__x: f32, __exponent: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn __ldexpf(__x: f32, __exponent: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn logf(__x: f32) -> f32;
}
extern "C" {
pub fn __logf(__x: f32) -> f32;
}
extern "C" {
pub fn log10f(__x: f32) -> f32;
}
extern "C" {
pub fn __log10f(__x: f32) -> f32;
}
extern "C" {
pub fn modff(__x: f32, __iptr: *mut f32) -> f32;
}
extern "C" {
pub fn __modff(__x: f32, __iptr: *mut f32) -> f32;
}
extern "C" {
pub fn expm1f(__x: f32) -> f32;
}
extern "C" {
pub fn __expm1f(__x: f32) -> f32;
}
extern "C" {
pub fn log1pf(__x: f32) -> f32;
}
extern "C" {
pub fn __log1pf(__x: f32) -> f32;
}
extern "C" {
pub fn logbf(__x: f32) -> f32;
}
extern "C" {
pub fn __logbf(__x: f32) -> f32;
}
extern "C" {
pub fn exp2f(__x: f32) -> f32;
}
extern "C" {
pub fn __exp2f(__x: f32) -> f32;
}
extern "C" {
pub fn log2f(__x: f32) -> f32;
}
extern "C" {
pub fn __log2f(__x: f32) -> f32;
}
extern "C" {
pub fn powf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __powf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn sqrtf(__x: f32) -> f32;
}
extern "C" {
pub fn __sqrtf(__x: f32) -> f32;
}
extern "C" {
pub fn hypotf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __hypotf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn cbrtf(__x: f32) -> f32;
}
extern "C" {
pub fn __cbrtf(__x: f32) -> f32;
}
extern "C" {
pub fn ceilf(__x: f32) -> f32;
}
extern "C" {
pub fn __ceilf(__x: f32) -> f32;
}
extern "C" {
pub fn fabsf(__x: f32) -> f32;
}
extern "C" {
pub fn __fabsf(__x: f32) -> f32;
}
extern "C" {
pub fn floorf(__x: f32) -> f32;
}
extern "C" {
pub fn __floorf(__x: f32) -> f32;
}
extern "C" {
pub fn fmodf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __fmodf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn isinff(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn finitef(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dremf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __dremf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn significandf(__x: f32) -> f32;
}
extern "C" {
pub fn __significandf(__x: f32) -> f32;
}
extern "C" {
pub fn copysignf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __copysignf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn nanf(__tagb: *const ::std::os::raw::c_char) -> f32;
}
extern "C" {
pub fn __nanf(__tagb: *const ::std::os::raw::c_char) -> f32;
}
extern "C" {
pub fn isnanf(__value: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn j0f(arg1: f32) -> f32;
}
extern "C" {
pub fn __j0f(arg1: f32) -> f32;
}
extern "C" {
pub fn j1f(arg1: f32) -> f32;
}
extern "C" {
pub fn __j1f(arg1: f32) -> f32;
}
extern "C" {
pub fn jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn __jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn y0f(arg1: f32) -> f32;
}
extern "C" {
pub fn __y0f(arg1: f32) -> f32;
}
extern "C" {
pub fn y1f(arg1: f32) -> f32;
}
extern "C" {
pub fn __y1f(arg1: f32) -> f32;
}
extern "C" {
pub fn ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn __ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
extern "C" {
pub fn erff(arg1: f32) -> f32;
}
extern "C" {
pub fn __erff(arg1: f32) -> f32;
}
extern "C" {
pub fn erfcf(arg1: f32) -> f32;
}
extern "C" {
pub fn __erfcf(arg1: f32) -> f32;
}
extern "C" {
pub fn lgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn __lgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn tgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn __tgammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn gammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn __gammaf(arg1: f32) -> f32;
}
extern "C" {
pub fn lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn rintf(__x: f32) -> f32;
}
extern "C" {
pub fn __rintf(__x: f32) -> f32;
}
extern "C" {
pub fn nextafterf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __nextafterf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn nexttowardf(__x: f32, __y: u128) -> f32;
}
extern "C" {
pub fn __nexttowardf(__x: f32, __y: u128) -> f32;
}
extern "C" {
pub fn remainderf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __remainderf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn __scalbnf(__x: f32, __n: ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn ilogbf(__x: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ilogbf(__x: f32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32;
}
extern "C" {
pub fn __scalblnf(__x: f32, __n: ::std::os::raw::c_long) -> f32;
}
extern "C" {
pub fn nearbyintf(__x: f32) -> f32;
}
extern "C" {
pub fn __nearbyintf(__x: f32) -> f32;
}
extern "C" {
pub fn roundf(__x: f32) -> f32;
}
extern "C" {
pub fn __roundf(__x: f32) -> f32;
}
extern "C" {
pub fn truncf(__x: f32) -> f32;
}
extern "C" {
pub fn __truncf(__x: f32) -> f32;
}
extern "C" {
pub fn remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::std::os::raw::c_int) -> f32;
}
extern "C" {
pub fn lrintf(__x: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lrintf(__x: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llrintf(__x: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llrintf(__x: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn lroundf(__x: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lroundf(__x: f32) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llroundf(__x: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llroundf(__x: f32) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn fdimf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __fdimf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fmaxf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __fmaxf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fminf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn __fminf(__x: f32, __y: f32) -> f32;
}
extern "C" {
pub fn fmaf(__x: f32, __y: f32, __z: f32) -> f32;
}
extern "C" {
pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32;
}
extern "C" {
pub fn scalbf(__x: f32, __n: f32) -> f32;
}
extern "C" {
pub fn __scalbf(__x: f32, __n: f32) -> f32;
}
extern "C" {
pub fn __fpclassifyl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __signbitl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isinfl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __finitel(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __isnanl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __iseqsigl(__x: u128, __y: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __issignalingl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn acosl(__x: u128) -> u128;
}
extern "C" {
pub fn __acosl(__x: u128) -> u128;
}
extern "C" {
pub fn asinl(__x: u128) -> u128;
}
extern "C" {
pub fn __asinl(__x: u128) -> u128;
}
extern "C" {
pub fn atanl(__x: u128) -> u128;
}
extern "C" {
pub fn __atanl(__x: u128) -> u128;
}
extern "C" {
pub fn atan2l(__y: u128, __x: u128) -> u128;
}
extern "C" {
pub fn __atan2l(__y: u128, __x: u128) -> u128;
}
extern "C" {
pub fn cosl(__x: u128) -> u128;
}
extern "C" {
pub fn __cosl(__x: u128) -> u128;
}
extern "C" {
pub fn sinl(__x: u128) -> u128;
}
extern "C" {
pub fn __sinl(__x: u128) -> u128;
}
extern "C" {
pub fn tanl(__x: u128) -> u128;
}
extern "C" {
pub fn __tanl(__x: u128) -> u128;
}
extern "C" {
pub fn coshl(__x: u128) -> u128;
}
extern "C" {
pub fn __coshl(__x: u128) -> u128;
}
extern "C" {
pub fn sinhl(__x: u128) -> u128;
}
extern "C" {
pub fn __sinhl(__x: u128) -> u128;
}
extern "C" {
pub fn tanhl(__x: u128) -> u128;
}
extern "C" {
pub fn __tanhl(__x: u128) -> u128;
}
extern "C" {
pub fn acoshl(__x: u128) -> u128;
}
extern "C" {
pub fn __acoshl(__x: u128) -> u128;
}
extern "C" {
pub fn asinhl(__x: u128) -> u128;
}
extern "C" {
pub fn __asinhl(__x: u128) -> u128;
}
extern "C" {
pub fn atanhl(__x: u128) -> u128;
}
extern "C" {
pub fn __atanhl(__x: u128) -> u128;
}
extern "C" {
pub fn expl(__x: u128) -> u128;
}
extern "C" {
pub fn __expl(__x: u128) -> u128;
}
extern "C" {
pub fn frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn __frexpl(__x: u128, __exponent: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn __ldexpl(__x: u128, __exponent: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn logl(__x: u128) -> u128;
}
extern "C" {
pub fn __logl(__x: u128) -> u128;
}
extern "C" {
pub fn log10l(__x: u128) -> u128;
}
extern "C" {
pub fn __log10l(__x: u128) -> u128;
}
extern "C" {
pub fn modfl(__x: u128, __iptr: *mut u128) -> u128;
}
extern "C" {
pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128;
}
extern "C" {
pub fn expm1l(__x: u128) -> u128;
}
extern "C" {
pub fn __expm1l(__x: u128) -> u128;
}
extern "C" {
pub fn log1pl(__x: u128) -> u128;
}
extern "C" {
pub fn __log1pl(__x: u128) -> u128;
}
extern "C" {
pub fn logbl(__x: u128) -> u128;
}
extern "C" {
pub fn __logbl(__x: u128) -> u128;
}
extern "C" {
pub fn exp2l(__x: u128) -> u128;
}
extern "C" {
pub fn __exp2l(__x: u128) -> u128;
}
extern "C" {
pub fn log2l(__x: u128) -> u128;
}
extern "C" {
pub fn __log2l(__x: u128) -> u128;
}
extern "C" {
pub fn powl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __powl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn sqrtl(__x: u128) -> u128;
}
extern "C" {
pub fn __sqrtl(__x: u128) -> u128;
}
extern "C" {
pub fn hypotl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __hypotl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn cbrtl(__x: u128) -> u128;
}
extern "C" {
pub fn __cbrtl(__x: u128) -> u128;
}
extern "C" {
pub fn ceill(__x: u128) -> u128;
}
extern "C" {
pub fn __ceill(__x: u128) -> u128;
}
extern "C" {
pub fn fabsl(__x: u128) -> u128;
}
extern "C" {
pub fn __fabsl(__x: u128) -> u128;
}
extern "C" {
pub fn floorl(__x: u128) -> u128;
}
extern "C" {
pub fn __floorl(__x: u128) -> u128;
}
extern "C" {
pub fn fmodl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __fmodl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn isinfl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn finitel(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dreml(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __dreml(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn significandl(__x: u128) -> u128;
}
extern "C" {
pub fn __significandl(__x: u128) -> u128;
}
extern "C" {
pub fn copysignl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __copysignl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn nanl(__tagb: *const ::std::os::raw::c_char) -> u128;
}
extern "C" {
pub fn __nanl(__tagb: *const ::std::os::raw::c_char) -> u128;
}
extern "C" {
pub fn isnanl(__value: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn j0l(arg1: u128) -> u128;
}
extern "C" {
pub fn __j0l(arg1: u128) -> u128;
}
extern "C" {
pub fn j1l(arg1: u128) -> u128;
}
extern "C" {
pub fn __j1l(arg1: u128) -> u128;
}
extern "C" {
pub fn jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128;
}
extern "C" {
pub fn __jnl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128;
}
extern "C" {
pub fn y0l(arg1: u128) -> u128;
}
extern "C" {
pub fn __y0l(arg1: u128) -> u128;
}
extern "C" {
pub fn y1l(arg1: u128) -> u128;
}
extern "C" {
pub fn __y1l(arg1: u128) -> u128;
}
extern "C" {
pub fn ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128;
}
extern "C" {
pub fn __ynl(arg1: ::std::os::raw::c_int, arg2: u128) -> u128;
}
extern "C" {
pub fn erfl(arg1: u128) -> u128;
}
extern "C" {
pub fn __erfl(arg1: u128) -> u128;
}
extern "C" {
pub fn erfcl(arg1: u128) -> u128;
}
extern "C" {
pub fn __erfcl(arg1: u128) -> u128;
}
extern "C" {
pub fn lgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn __lgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn tgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn __tgammal(arg1: u128) -> u128;
}
extern "C" {
pub fn gammal(arg1: u128) -> u128;
}
extern "C" {
pub fn __gammal(arg1: u128) -> u128;
}
extern "C" {
pub fn lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn rintl(__x: u128) -> u128;
}
extern "C" {
pub fn __rintl(__x: u128) -> u128;
}
extern "C" {
pub fn nextafterl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __nextafterl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn nexttowardl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __nexttowardl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn remainderl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __remainderl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn __scalbnl(__x: u128, __n: ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn ilogbl(__x: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ilogbl(__x: u128) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128;
}
extern "C" {
pub fn __scalblnl(__x: u128, __n: ::std::os::raw::c_long) -> u128;
}
extern "C" {
pub fn nearbyintl(__x: u128) -> u128;
}
extern "C" {
pub fn __nearbyintl(__x: u128) -> u128;
}
extern "C" {
pub fn roundl(__x: u128) -> u128;
}
extern "C" {
pub fn __roundl(__x: u128) -> u128;
}
extern "C" {
pub fn truncl(__x: u128) -> u128;
}
extern "C" {
pub fn __truncl(__x: u128) -> u128;
}
extern "C" {
pub fn remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::std::os::raw::c_int) -> u128;
}
extern "C" {
pub fn lrintl(__x: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lrintl(__x: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llrintl(__x: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llrintl(__x: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn lroundl(__x: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn __lroundl(__x: u128) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llroundl(__x: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn __llroundl(__x: u128) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn fdiml(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __fdiml(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn fmaxl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __fmaxl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn fminl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn __fminl(__x: u128, __y: u128) -> u128;
}
extern "C" {
pub fn fmal(__x: u128, __y: u128, __z: u128) -> u128;
}
extern "C" {
pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128;
}
extern "C" {
pub fn scalbl(__x: u128, __n: u128) -> u128;
}
extern "C" {
pub fn __scalbl(__x: u128, __n: u128) -> u128;
}
extern "C" {
pub static mut signgam: ::std::os::raw::c_int;
}
pub const FP_NAN: _bindgen_ty_21 = _bindgen_ty_21::FP_NAN;
pub const FP_INFINITE: _bindgen_ty_21 = _bindgen_ty_21::FP_INFINITE;
pub const FP_ZERO: _bindgen_ty_21 = _bindgen_ty_21::FP_ZERO;
pub const FP_SUBNORMAL: _bindgen_ty_21 = _bindgen_ty_21::FP_SUBNORMAL;
pub const FP_NORMAL: _bindgen_ty_21 = _bindgen_ty_21::FP_NORMAL;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _bindgen_ty_21 {
FP_NAN = 0,
FP_INFINITE = 1,
FP_ZERO = 2,
FP_SUBNORMAL = 3,
FP_NORMAL = 4,
}
extern "C" {
pub fn vips_enum_string(
enm: GType,
value: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_enum_nick(
enm: GType,
value: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_enum_from_nick(
domain: *const ::std::os::raw::c_char,
type_: GType,
str: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_flags_from_nick(
domain: *const ::std::os::raw::c_char,
type_: GType,
nick: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_slist_equal(l1: *mut GSList, l2: *mut GSList) -> gboolean;
}
extern "C" {
pub fn vips_slist_map2(
list: *mut GSList,
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_slist_map2_rev(
list: *mut GSList,
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_slist_map4(
list: *mut GSList,
fn_: VipsSListMap4Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
d: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_slist_fold2(
list: *mut GSList,
start: *mut ::std::os::raw::c_void,
fn_: VipsSListFold2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_slist_filter(
list: *mut GSList,
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut GSList;
}
extern "C" {
pub fn vips_slist_free_all(list: *mut GSList);
}
extern "C" {
pub fn vips_map_equal(
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_hash_table_map(
hash: *mut GHashTable,
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_strncpy(
dest: *mut ::std::os::raw::c_char,
src: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_strrstr(
haystack: *const ::std::os::raw::c_char,
needle: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_ispostfix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_iscasepostfix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_isprefix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_break_token(
str: *mut ::std::os::raw::c_char,
brk: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__chomp(str: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn vips_vsnprintf(
str: *mut ::std::os::raw::c_char,
size: usize,
format: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_snprintf(
str: *mut ::std::os::raw::c_char,
size: usize,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_filename_suffix_match(
path: *const ::std::os::raw::c_char,
suffixes: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_file_length(fd: ::std::os::raw::c_int) -> gint64;
}
extern "C" {
pub fn vips__write(
fd: ::std::os::raw::c_int,
buf: *const ::std::os::raw::c_void,
count: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__open(
filename: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__open_read(filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__fopen(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn vips__file_open_read(
filename: *const ::std::os::raw::c_char,
fallback_dir: *const ::std::os::raw::c_char,
text_mode: gboolean,
) -> *mut FILE;
}
extern "C" {
pub fn vips__file_open_write(
filename: *const ::std::os::raw::c_char,
text_mode: gboolean,
) -> *mut FILE;
}
extern "C" {
pub fn vips__file_read(
fp: *mut FILE,
name: *const ::std::os::raw::c_char,
length_out: *mut usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__file_read_name(
name: *const ::std::os::raw::c_char,
fallback_dir: *const ::std::os::raw::c_char,
length_out: *mut usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__file_write(
data: *mut ::std::os::raw::c_void,
size: usize,
nmemb: usize,
stream: *mut FILE,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__get_bytes(
filename: *const ::std::os::raw::c_char,
buf: *mut ::std::os::raw::c_uchar,
len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__fgetc(fp: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__gvalue_ref_string_new(text: *const ::std::os::raw::c_char) -> *mut GValue;
}
extern "C" {
pub fn vips__gslist_gvalue_free(list: *mut GSList);
}
extern "C" {
pub fn vips__gslist_gvalue_copy(list: *const GSList) -> *mut GSList;
}
extern "C" {
pub fn vips__gslist_gvalue_merge(a: *mut GSList, b: *const GSList) -> *mut GSList;
}
extern "C" {
pub fn vips__gslist_gvalue_get(list: *const GSList) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__seek(fd: ::std::os::raw::c_int, pos: gint64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__ftruncate(fd: ::std::os::raw::c_int, pos: gint64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_existsf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mkdirf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rmdirf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rename(
old_name: *const ::std::os::raw::c_char,
new_name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_popenf(
fmt: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
...
) -> *mut FILE;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsToken {
VIPS_TOKEN_LEFT = 1,
VIPS_TOKEN_RIGHT = 2,
VIPS_TOKEN_STRING = 3,
VIPS_TOKEN_EQUALS = 4,
VIPS_TOKEN_COMMA = 5,
}
extern "C" {
pub fn vips__token_get(
buffer: *const ::std::os::raw::c_char,
token: *mut VipsToken,
string: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__token_must(
buffer: *const ::std::os::raw::c_char,
token: *mut VipsToken,
string: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__token_need(
buffer: *const ::std::os::raw::c_char,
need_token: VipsToken,
string: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__token_segment(
p: *const ::std::os::raw::c_char,
token: *mut VipsToken,
string: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__token_segment_need(
p: *const ::std::os::raw::c_char,
need_token: VipsToken,
string: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__find_rightmost_brackets(
p: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__filename_split8(
name: *const ::std::os::raw::c_char,
filename: *mut ::std::os::raw::c_char,
option_string: *mut ::std::os::raw::c_char,
);
}
extern "C" {
pub fn vips_ispoweroftwo(p: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_amiMSBfirst() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__temp_name(format: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips__change_suffix(
name: *const ::std::os::raw::c_char,
out: *mut ::std::os::raw::c_char,
mx: ::std::os::raw::c_int,
new_suff: *const ::std::os::raw::c_char,
olds: *mut *const ::std::os::raw::c_char,
nolds: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_realpath(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
pub type VipsObject = _VipsObject;
pub type VipsObjectClass = _VipsObjectClass;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsArgumentFlags {
VIPS_ARGUMENT_NONE = 0,
VIPS_ARGUMENT_REQUIRED = 1,
VIPS_ARGUMENT_CONSTRUCT = 2,
VIPS_ARGUMENT_SET_ONCE = 4,
VIPS_ARGUMENT_SET_ALWAYS = 8,
VIPS_ARGUMENT_INPUT = 16,
VIPS_ARGUMENT_OUTPUT = 32,
VIPS_ARGUMENT_DEPRECATED = 64,
VIPS_ARGUMENT_MODIFY = 128,
}
extern "C" {
pub static mut _vips__argument_id: ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArgument {
pub pspec: *mut GParamSpec,
}
#[test]
fn bindgen_test_layout__VipsArgument() {
assert_eq!(
::std::mem::size_of::<_VipsArgument>(),
8usize,
concat!("Size of: ", stringify!(_VipsArgument))
);
assert_eq!(
::std::mem::align_of::<_VipsArgument>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArgument))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgument>())).pspec as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArgument), "::", stringify!(pspec))
);
}
pub type VipsArgument = _VipsArgument;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArgumentClass {
pub parent: VipsArgument,
pub object_class: *mut VipsObjectClass,
pub flags: VipsArgumentFlags,
pub priority: ::std::os::raw::c_int,
pub offset: guint,
}
#[test]
fn bindgen_test_layout__VipsArgumentClass() {
assert_eq!(
::std::mem::size_of::<_VipsArgumentClass>(),
32usize,
concat!("Size of: ", stringify!(_VipsArgumentClass))
);
assert_eq!(
::std::mem::align_of::<_VipsArgumentClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArgumentClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentClass>())).parent as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArgumentClass), "::", stringify!(parent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentClass>())).object_class as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_VipsArgumentClass),
"::",
stringify!(object_class)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentClass>())).flags as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsArgumentClass), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentClass>())).priority as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(_VipsArgumentClass), "::", stringify!(priority))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentClass>())).offset as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsArgumentClass), "::", stringify!(offset))
);
}
pub type VipsArgumentClass = _VipsArgumentClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArgumentInstance {
pub parent: VipsArgument,
pub argument_class: *mut VipsArgumentClass,
pub object: *mut VipsObject,
pub assigned: gboolean,
pub close_id: gulong,
pub invalidate_id: gulong,
}
#[test]
fn bindgen_test_layout__VipsArgumentInstance() {
assert_eq!(
::std::mem::size_of::<_VipsArgumentInstance>(),
48usize,
concat!("Size of: ", stringify!(_VipsArgumentInstance))
);
assert_eq!(
::std::mem::align_of::<_VipsArgumentInstance>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArgumentInstance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentInstance>())).parent as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArgumentInstance), "::", stringify!(parent))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsArgumentInstance>())).argument_class as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(_VipsArgumentInstance),
"::",
stringify!(argument_class)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentInstance>())).object as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsArgumentInstance), "::", stringify!(object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentInstance>())).assigned as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsArgumentInstance), "::", stringify!(assigned))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArgumentInstance>())).close_id as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsArgumentInstance), "::", stringify!(close_id))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsArgumentInstance>())).invalidate_id as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(_VipsArgumentInstance),
"::",
stringify!(invalidate_id)
)
);
}
pub type VipsArgumentInstance = _VipsArgumentInstance;
pub type VipsArgumentTable = GHashTable;
extern "C" {
pub fn vips__object_set_member(
object: *mut VipsObject,
pspec: *mut GParamSpec,
member: *mut *mut GObject,
argument: *mut GObject,
);
}
pub type VipsArgumentMapFn = ::std::option::Option<
unsafe extern "C" fn(
object: *mut VipsObject,
pspec: *mut GParamSpec,
argument_class: *mut VipsArgumentClass,
argument_instance: *mut VipsArgumentInstance,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn vips_argument_map(
object: *mut VipsObject,
fn_: VipsArgumentMapFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
pub type VipsArgumentClassMapFn = ::std::option::Option<
unsafe extern "C" fn(
object_class: *mut VipsObjectClass,
pspec: *mut GParamSpec,
argument_class: *mut VipsArgumentClass,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn vips_argument_class_map(
object_class: *mut VipsObjectClass,
fn_: VipsArgumentClassMapFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_argument_class_needsstring(argument_class: *mut VipsArgumentClass) -> gboolean;
}
extern "C" {
pub fn vips_object_get_argument(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
pspec: *mut *mut GParamSpec,
argument_class: *mut *mut VipsArgumentClass,
argument_instance: *mut *mut VipsArgumentInstance,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_argument_isset(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_object_get_argument_flags(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> VipsArgumentFlags;
}
extern "C" {
pub fn vips_object_get_argument_priority(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsObject {
pub parent_instance: GObject,
pub constructed: gboolean,
pub static_object: gboolean,
pub argument_table: *mut VipsArgumentTable,
pub nickname: *mut ::std::os::raw::c_char,
pub description: *mut ::std::os::raw::c_char,
pub preclose: gboolean,
pub close: gboolean,
pub postclose: gboolean,
pub local_memory: usize,
}
#[test]
fn bindgen_test_layout__VipsObject() {
assert_eq!(
::std::mem::size_of::<_VipsObject>(),
80usize,
concat!("Size of: ", stringify!(_VipsObject))
);
assert_eq!(
::std::mem::align_of::<_VipsObject>(),
8usize,
concat!("Alignment of ", stringify!(_VipsObject))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).parent_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(parent_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).constructed as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(constructed))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).static_object as *const _ as usize },
28usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(static_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).argument_table as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(argument_table))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).nickname as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(nickname))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).description as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(description))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).preclose as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(preclose))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).close as *const _ as usize },
60usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(close))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).postclose as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(postclose))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObject>())).local_memory as *const _ as usize },
72usize,
concat!("Offset of field: ", stringify!(_VipsObject), "::", stringify!(local_memory))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsObjectClass {
pub parent_class: GObjectClass,
pub build: ::std::option::Option<
unsafe extern "C" fn(object: *mut VipsObject) -> ::std::os::raw::c_int,
>,
pub postbuild: ::std::option::Option<
unsafe extern "C" fn(object: *mut VipsObject) -> ::std::os::raw::c_int,
>,
pub summary_class:
::std::option::Option<unsafe extern "C" fn(cls: *mut _VipsObjectClass, buf: *mut VipsBuf)>,
pub summary:
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject, buf: *mut VipsBuf)>,
pub dump:
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject, buf: *mut VipsBuf)>,
pub sanity:
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject, buf: *mut VipsBuf)>,
pub rewind: ::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject)>,
pub preclose: ::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject)>,
pub close: ::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject)>,
pub postclose: ::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject)>,
pub new_from_string: ::std::option::Option<
unsafe extern "C" fn(string: *const ::std::os::raw::c_char) -> *mut VipsObject,
>,
pub to_string:
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject, buf: *mut VipsBuf)>,
pub output_needs_arg: gboolean,
pub output_to_arg: ::std::option::Option<
unsafe extern "C" fn(
object: *mut VipsObject,
string: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub nickname: *const ::std::os::raw::c_char,
pub description: *const ::std::os::raw::c_char,
pub argument_table: *mut VipsArgumentTable,
pub argument_table_traverse: *mut GSList,
pub argument_table_traverse_gtype: GType,
pub deprecated: gboolean,
pub _vips_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _vips_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _vips_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _vips_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
}
#[test]
fn bindgen_test_layout__VipsObjectClass() {
assert_eq!(
::std::mem::size_of::<_VipsObjectClass>(),
328usize,
concat!("Size of: ", stringify!(_VipsObjectClass))
);
assert_eq!(
::std::mem::align_of::<_VipsObjectClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsObjectClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(parent_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).build as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(build))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).postbuild as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(postbuild))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).summary_class as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(summary_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).summary as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(summary))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).dump as *const _ as usize },
168usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(dump))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).sanity as *const _ as usize },
176usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(sanity))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).rewind as *const _ as usize },
184usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(rewind))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).preclose as *const _ as usize },
192usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(preclose))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).close as *const _ as usize },
200usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(close))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).postclose as *const _ as usize },
208usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(postclose))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>())).new_from_string as *const _ as usize
},
216usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(new_from_string)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).to_string as *const _ as usize },
224usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(to_string))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>())).output_needs_arg as *const _ as usize
},
232usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(output_needs_arg)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).output_to_arg as *const _ as usize },
240usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(output_to_arg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).nickname as *const _ as usize },
248usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(nickname))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).description as *const _ as usize },
256usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(description))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).argument_table as *const _ as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(argument_table)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>())).argument_table_traverse as *const _
as usize
},
272usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(argument_table_traverse)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>())).argument_table_traverse_gtype as *const _
as usize
},
280usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(argument_table_traverse_gtype)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsObjectClass>())).deprecated as *const _ as usize },
288usize,
concat!("Offset of field: ", stringify!(_VipsObjectClass), "::", stringify!(deprecated))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>()))._vips_reserved1 as *const _ as usize
},
296usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(_vips_reserved1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>()))._vips_reserved2 as *const _ as usize
},
304usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(_vips_reserved2)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>()))._vips_reserved3 as *const _ as usize
},
312usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(_vips_reserved3)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsObjectClass>()))._vips_reserved4 as *const _ as usize
},
320usize,
concat!(
"Offset of field: ",
stringify!(_VipsObjectClass),
"::",
stringify!(_vips_reserved4)
)
);
}
extern "C" {
pub fn vips_value_is_null(psoec: *mut GParamSpec, value: *const GValue) -> gboolean;
}
extern "C" {
pub fn vips_object_set_property(
gobject: *mut GObject,
property_id: guint,
value: *const GValue,
pspec: *mut GParamSpec,
);
}
extern "C" {
pub fn vips_object_get_property(
gobject: *mut GObject,
property_id: guint,
value: *mut GValue,
pspec: *mut GParamSpec,
);
}
extern "C" {
pub fn vips_object_preclose(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_build(object: *mut VipsObject) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_summary_class(klass: *mut VipsObjectClass, buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_object_summary(object: *mut VipsObject, buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_object_dump(object: *mut VipsObject, buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_object_print_summary_class(klass: *mut VipsObjectClass);
}
extern "C" {
pub fn vips_object_print_summary(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_print_dump(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_print_name(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_sanity(object: *mut VipsObject) -> gboolean;
}
extern "C" {
pub fn vips_object_get_type() -> GType;
}
extern "C" {
pub fn vips_object_class_install_argument(
cls: *mut VipsObjectClass,
pspec: *mut GParamSpec,
flags: VipsArgumentFlags,
priority: ::std::os::raw::c_int,
offset: guint,
);
}
extern "C" {
pub fn vips_object_set_argument_from_string(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_argument_needsstring(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_object_get_argument_to_string(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
arg: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_set_required(
object: *mut VipsObject,
value: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
pub type VipsObjectSetArguments = ::std::option::Option<
unsafe extern "C" fn(
object: *mut VipsObject,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn vips_object_new(
type_: GType,
set: VipsObjectSetArguments,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut VipsObject;
}
extern "C" {
pub fn vips_object_set_valist(
object: *mut VipsObject,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_set(object: *mut VipsObject, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_set_from_string(
object: *mut VipsObject,
string: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_object_new_from_string(
object_class: *mut VipsObjectClass,
p: *const ::std::os::raw::c_char,
) -> *mut VipsObject;
}
extern "C" {
pub fn vips_object_to_string(object: *mut VipsObject, buf: *mut VipsBuf);
}
extern "C" {
pub fn vips_object_map(
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
pub type VipsTypeMapFn = ::std::option::Option<
unsafe extern "C" fn(
type_: GType,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type VipsTypeMap2Fn = ::std::option::Option<
unsafe extern "C" fn(
type_: GType,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type VipsClassMapFn = ::std::option::Option<
unsafe extern "C" fn(
cls: *mut VipsObjectClass,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn vips_type_map(
base: GType,
fn_: VipsTypeMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_type_map_all(
base: GType,
fn_: VipsTypeMapFn,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_type_depth(type_: GType) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_type_find(
basename: *const ::std::os::raw::c_char,
nickname: *const ::std::os::raw::c_char,
) -> GType;
}
extern "C" {
pub fn vips_nickname_find(type_: GType) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_class_map_all(
type_: GType,
fn_: VipsClassMapFn,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_class_find(
basename: *const ::std::os::raw::c_char,
nickname: *const ::std::os::raw::c_char,
) -> *const VipsObjectClass;
}
extern "C" {
pub fn vips_object_local_array(
parent: *mut VipsObject,
n: ::std::os::raw::c_int,
) -> *mut *mut VipsObject;
}
extern "C" {
pub fn vips_object_local_cb(vobject: *mut VipsObject, gobject: *mut GObject);
}
extern "C" {
pub fn vips_object_set_static(object: *mut VipsObject, static_object: gboolean);
}
extern "C" {
pub fn vips_object_print_all();
}
extern "C" {
pub fn vips_object_sanity_all();
}
extern "C" {
pub fn vips_object_rewind(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_unref_outputs(object: *mut VipsObject);
}
extern "C" {
pub fn vips_object_get_description(object: *mut VipsObject) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsThing {
pub i: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__VipsThing() {
assert_eq!(
::std::mem::size_of::<_VipsThing>(),
4usize,
concat!("Size of: ", stringify!(_VipsThing))
);
assert_eq!(
::std::mem::align_of::<_VipsThing>(),
4usize,
concat!("Alignment of ", stringify!(_VipsThing))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThing>())).i as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsThing), "::", stringify!(i))
);
}
pub type VipsThing = _VipsThing;
extern "C" {
pub fn vips_thing_get_type() -> GType;
}
extern "C" {
pub fn vips_thing_new(i: ::std::os::raw::c_int) -> *mut VipsThing;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArea {
pub data: *mut ::std::os::raw::c_void,
pub length: usize,
pub n: ::std::os::raw::c_int,
pub count: ::std::os::raw::c_int,
pub lock: *mut GMutex,
pub free_fn: VipsCallbackFn,
pub type_: GType,
pub sizeof_type: usize,
}
#[test]
fn bindgen_test_layout__VipsArea() {
assert_eq!(
::std::mem::size_of::<_VipsArea>(),
56usize,
concat!("Size of: ", stringify!(_VipsArea))
);
assert_eq!(
::std::mem::align_of::<_VipsArea>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArea))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).data as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).length as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(length))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).n as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(n))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).count as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).lock as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(lock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).free_fn as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(free_fn))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).type_ as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(type_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArea>())).sizeof_type as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_VipsArea), "::", stringify!(sizeof_type))
);
}
pub type VipsArea = _VipsArea;
extern "C" {
pub fn vips_area_copy(area: *mut VipsArea) -> *mut VipsArea;
}
extern "C" {
pub fn vips_area_unref(area: *mut VipsArea);
}
extern "C" {
pub fn vips_area_new(
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
) -> *mut VipsArea;
}
extern "C" {
pub fn vips_area_new_array(
type_: GType,
sizeof_type: usize,
n: ::std::os::raw::c_int,
) -> *mut VipsArea;
}
extern "C" {
pub fn vips_area_new_array_object(n: ::std::os::raw::c_int) -> *mut VipsArea;
}
extern "C" {
pub fn vips_area_get_data(
area: *mut VipsArea,
length: *mut usize,
n: *mut ::std::os::raw::c_int,
type_: *mut GType,
sizeof_type: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_area_get_type() -> GType;
}
extern "C" {
pub fn vips_save_string_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsRefString {
pub area: VipsArea,
}
#[test]
fn bindgen_test_layout__VipsRefString() {
assert_eq!(
::std::mem::size_of::<_VipsRefString>(),
56usize,
concat!("Size of: ", stringify!(_VipsRefString))
);
assert_eq!(
::std::mem::align_of::<_VipsRefString>(),
8usize,
concat!("Alignment of ", stringify!(_VipsRefString))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRefString>())).area as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsRefString), "::", stringify!(area))
);
}
pub type VipsRefString = _VipsRefString;
extern "C" {
pub fn vips_ref_string_new(str: *const ::std::os::raw::c_char) -> *mut VipsRefString;
}
extern "C" {
pub fn vips_ref_string_get(
refstr: *mut VipsRefString,
length: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_ref_string_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsBlob {
pub area: VipsArea,
}
#[test]
fn bindgen_test_layout__VipsBlob() {
assert_eq!(
::std::mem::size_of::<_VipsBlob>(),
56usize,
concat!("Size of: ", stringify!(_VipsBlob))
);
assert_eq!(
::std::mem::align_of::<_VipsBlob>(),
8usize,
concat!("Alignment of ", stringify!(_VipsBlob))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBlob>())).area as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsBlob), "::", stringify!(area))
);
}
pub type VipsBlob = _VipsBlob;
extern "C" {
pub fn vips_blob_new(
free_fn: VipsCallbackFn,
data: *const ::std::os::raw::c_void,
size: usize,
) -> *mut VipsBlob;
}
extern "C" {
pub fn vips_blob_copy(data: *const ::std::os::raw::c_void, size: usize) -> *mut VipsBlob;
}
extern "C" {
pub fn vips_blob_get(blob: *mut VipsBlob, size: *mut usize) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_blob_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArrayDouble {
pub area: VipsArea,
}
#[test]
fn bindgen_test_layout__VipsArrayDouble() {
assert_eq!(
::std::mem::size_of::<_VipsArrayDouble>(),
56usize,
concat!("Size of: ", stringify!(_VipsArrayDouble))
);
assert_eq!(
::std::mem::align_of::<_VipsArrayDouble>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArrayDouble))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArrayDouble>())).area as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArrayDouble), "::", stringify!(area))
);
}
pub type VipsArrayDouble = _VipsArrayDouble;
extern "C" {
pub fn vips_array_double_new(
array: *const f64,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayDouble;
}
extern "C" {
pub fn vips_array_double_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayDouble;
}
extern "C" {
pub fn vips_array_double_get(
array: *mut VipsArrayDouble,
n: *mut ::std::os::raw::c_int,
) -> *mut f64;
}
extern "C" {
pub fn vips_array_double_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArrayInt {
pub area: VipsArea,
}
#[test]
fn bindgen_test_layout__VipsArrayInt() {
assert_eq!(
::std::mem::size_of::<_VipsArrayInt>(),
56usize,
concat!("Size of: ", stringify!(_VipsArrayInt))
);
assert_eq!(
::std::mem::align_of::<_VipsArrayInt>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArrayInt))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArrayInt>())).area as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArrayInt), "::", stringify!(area))
);
}
pub type VipsArrayInt = _VipsArrayInt;
extern "C" {
pub fn vips_array_int_new(
array: *const ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayInt;
}
extern "C" {
pub fn vips_array_int_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayInt;
}
extern "C" {
pub fn vips_array_int_get(
array: *mut VipsArrayInt,
n: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_array_int_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsArrayImage {
pub area: VipsArea,
}
#[test]
fn bindgen_test_layout__VipsArrayImage() {
assert_eq!(
::std::mem::size_of::<_VipsArrayImage>(),
56usize,
concat!("Size of: ", stringify!(_VipsArrayImage))
);
assert_eq!(
::std::mem::align_of::<_VipsArrayImage>(),
8usize,
concat!("Alignment of ", stringify!(_VipsArrayImage))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsArrayImage>())).area as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsArrayImage), "::", stringify!(area))
);
}
pub type VipsArrayImage = _VipsArrayImage;
extern "C" {
pub fn vips_array_image_get_type() -> GType;
}
extern "C" {
pub fn vips_value_set_area(
value: *mut GValue,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn vips_value_get_area(
value: *const GValue,
length: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_value_get_save_string(value: *const GValue) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_value_set_save_string(value: *mut GValue, str: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn vips_value_set_save_stringf(value: *mut GValue, fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn vips_value_get_ref_string(
value: *const GValue,
length: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_value_set_ref_string(value: *mut GValue, str: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn vips_value_get_blob(
value: *const GValue,
length: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_value_set_blob(
value: *mut GValue,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
length: usize,
);
}
extern "C" {
pub fn vips_value_set_array(
value: *mut GValue,
n: ::std::os::raw::c_int,
type_: GType,
sizeof_type: usize,
);
}
extern "C" {
pub fn vips_value_get_array(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
type_: *mut GType,
sizeof_type: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_value_get_array_double(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut f64;
}
extern "C" {
pub fn vips_value_set_array_double(
value: *mut GValue,
array: *const f64,
n: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_value_get_array_int(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_value_set_array_int(
value: *mut GValue,
array: *const ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_value_get_array_object(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut GObject;
}
extern "C" {
pub fn vips_value_set_array_object(value: *mut GValue, n: ::std::os::raw::c_int);
}
extern "C" {
pub static mut vips__thread_profile: gboolean;
}
extern "C" {
pub fn vips_profile_set(profile: gboolean);
}
extern "C" {
pub fn vips__thread_profile_attach(thread_name: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn vips__thread_profile_detach();
}
extern "C" {
pub fn vips__thread_profile_stop();
}
extern "C" {
pub fn vips__thread_gate_start(gate_name: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn vips__thread_gate_stop(gate_name: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn vips__thread_malloc_free(size: gint64);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsRect {
pub left: ::std::os::raw::c_int,
pub top: ::std::os::raw::c_int,
pub width: ::std::os::raw::c_int,
pub height: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__VipsRect() {
assert_eq!(
::std::mem::size_of::<_VipsRect>(),
16usize,
concat!("Size of: ", stringify!(_VipsRect))
);
assert_eq!(
::std::mem::align_of::<_VipsRect>(),
4usize,
concat!("Alignment of ", stringify!(_VipsRect))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRect>())).left as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsRect), "::", stringify!(left))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRect>())).top as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(_VipsRect), "::", stringify!(top))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRect>())).width as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsRect), "::", stringify!(width))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRect>())).height as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_VipsRect), "::", stringify!(height))
);
}
pub type VipsRect = _VipsRect;
extern "C" {
pub fn vips_rect_isempty(r: *const VipsRect) -> gboolean;
}
extern "C" {
pub fn vips_rect_includespoint(
r: *const VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> gboolean;
}
extern "C" {
pub fn vips_rect_includesrect(r1: *const VipsRect, r2: *const VipsRect) -> gboolean;
}
extern "C" {
pub fn vips_rect_equalsrect(r1: *const VipsRect, r2: *const VipsRect) -> gboolean;
}
extern "C" {
pub fn vips_rect_marginadjust(r: *mut VipsRect, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_rect_intersectrect(r1: *const VipsRect, r2: *const VipsRect, out: *mut VipsRect);
}
extern "C" {
pub fn vips_rect_unionrect(r1: *const VipsRect, r2: *const VipsRect, out: *mut VipsRect);
}
extern "C" {
pub fn vips_rect_dup(r: *const VipsRect) -> *mut VipsRect;
}
extern "C" {
pub fn vips_rect_normalise(r: *mut VipsRect);
}
extern "C" {
pub fn vips__init(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__get_sizeof_vipsobject() -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VipsWindow {
pub ref_count: ::std::os::raw::c_int,
pub im: *mut _VipsImage,
pub top: ::std::os::raw::c_int,
pub height: ::std::os::raw::c_int,
pub data: *mut VipsPel,
pub baseaddr: *mut ::std::os::raw::c_void,
pub length: usize,
}
#[test]
fn bindgen_test_layout_VipsWindow() {
assert_eq!(
::std::mem::size_of::<VipsWindow>(),
48usize,
concat!("Size of: ", stringify!(VipsWindow))
);
assert_eq!(
::std::mem::align_of::<VipsWindow>(),
8usize,
concat!("Alignment of ", stringify!(VipsWindow))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).ref_count as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).im as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).top as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(top))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).height as *const _ as usize },
20usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(height))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).data as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).baseaddr as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(baseaddr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsWindow>())).length as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(VipsWindow), "::", stringify!(length))
);
}
extern "C" {
pub fn vips_window_ref(
im: *mut _VipsImage,
top: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> *mut VipsWindow;
}
extern "C" {
pub fn vips_window_unref(window: *mut VipsWindow) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_window_print(window: *mut VipsWindow);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VipsBufferThread {
pub hash: *mut GHashTable,
pub thread: *mut GThread,
}
#[test]
fn bindgen_test_layout_VipsBufferThread() {
assert_eq!(
::std::mem::size_of::<VipsBufferThread>(),
16usize,
concat!("Size of: ", stringify!(VipsBufferThread))
);
assert_eq!(
::std::mem::align_of::<VipsBufferThread>(),
8usize,
concat!("Alignment of ", stringify!(VipsBufferThread))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsBufferThread>())).hash as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(VipsBufferThread), "::", stringify!(hash))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsBufferThread>())).thread as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(VipsBufferThread), "::", stringify!(thread))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsBufferCache {
pub buffers: *mut GSList,
pub thread: *mut GThread,
pub im: *mut _VipsImage,
pub buffer_thread: *mut VipsBufferThread,
pub reserve: *mut GSList,
pub n_reserve: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__VipsBufferCache() {
assert_eq!(
::std::mem::size_of::<_VipsBufferCache>(),
48usize,
concat!("Size of: ", stringify!(_VipsBufferCache))
);
assert_eq!(
::std::mem::align_of::<_VipsBufferCache>(),
8usize,
concat!("Alignment of ", stringify!(_VipsBufferCache))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).buffers as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(buffers))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).thread as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(thread))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).im as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).buffer_thread as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(buffer_thread))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).reserve as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(reserve))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBufferCache>())).n_reserve as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_VipsBufferCache), "::", stringify!(n_reserve))
);
}
pub type VipsBufferCache = _VipsBufferCache;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsBuffer {
pub ref_count: ::std::os::raw::c_int,
pub im: *mut _VipsImage,
pub area: VipsRect,
pub done: gboolean,
pub cache: *mut VipsBufferCache,
pub buf: *mut VipsPel,
pub bsize: usize,
}
#[test]
fn bindgen_test_layout__VipsBuffer() {
assert_eq!(
::std::mem::size_of::<_VipsBuffer>(),
64usize,
concat!("Size of: ", stringify!(_VipsBuffer))
);
assert_eq!(
::std::mem::align_of::<_VipsBuffer>(),
8usize,
concat!("Alignment of ", stringify!(_VipsBuffer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).ref_count as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(ref_count))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).im as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).area as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(area))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).done as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(done))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).cache as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(cache))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).buf as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(buf))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsBuffer>())).bsize as *const _ as usize },
56usize,
concat!("Offset of field: ", stringify!(_VipsBuffer), "::", stringify!(bsize))
);
}
pub type VipsBuffer = _VipsBuffer;
extern "C" {
pub fn vips_buffer_dump_all();
}
extern "C" {
pub fn vips_buffer_done(buffer: *mut VipsBuffer);
}
extern "C" {
pub fn vips_buffer_undone(buffer: *mut VipsBuffer);
}
extern "C" {
pub fn vips_buffer_unref(buffer: *mut VipsBuffer);
}
extern "C" {
pub fn vips_buffer_new(im: *mut _VipsImage, area: *mut VipsRect) -> *mut VipsBuffer;
}
extern "C" {
pub fn vips_buffer_ref(im: *mut _VipsImage, area: *mut VipsRect) -> *mut VipsBuffer;
}
extern "C" {
pub fn vips_buffer_unref_ref(
buffer: *mut VipsBuffer,
im: *mut _VipsImage,
area: *mut VipsRect,
) -> *mut VipsBuffer;
}
extern "C" {
pub fn vips_buffer_print(buffer: *mut VipsBuffer);
}
extern "C" {
pub fn vips__render_shutdown();
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RegionType {
VIPS_REGION_NONE = 0,
VIPS_REGION_BUFFER = 1,
VIPS_REGION_OTHER_REGION = 2,
VIPS_REGION_OTHER_IMAGE = 3,
VIPS_REGION_WINDOW = 4,
}
pub use self::_RegionType as RegionType;
extern "C" {
pub fn vips__region_take_ownership(reg: *mut _VipsRegion);
}
extern "C" {
pub fn vips__region_check_ownership(reg: *mut _VipsRegion);
}
extern "C" {
pub fn vips__region_no_ownership(reg: *mut _VipsRegion);
}
pub type VipsRegionFillFn = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut _VipsRegion,
arg2: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn vips_region_fill(
reg: *mut _VipsRegion,
r: *mut VipsRect,
fn_: VipsRegionFillFn,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__image_wio_output(image: *mut _VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__image_pio_output(image: *mut _VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__argument_get_instance(
argument_class: *mut VipsArgumentClass,
object: *mut VipsObject,
) -> *mut VipsArgumentInstance;
}
extern "C" {
pub fn vips__argument_table_lookup(
table: *mut VipsArgumentTable,
pspec: *mut GParamSpec,
) -> *mut VipsArgument;
}
extern "C" {
pub fn vips__demand_hint_array(
image: *mut _VipsImage,
hint: ::std::os::raw::c_int,
in_: *mut *mut _VipsImage,
);
}
extern "C" {
pub fn vips__image_copy_fields_array(
out: *mut _VipsImage,
in_: *mut *mut _VipsImage,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im__INTMASK {
pub xsize: ::std::os::raw::c_int,
pub ysize: ::std::os::raw::c_int,
pub scale: ::std::os::raw::c_int,
pub offset: ::std::os::raw::c_int,
pub coeff: *mut ::std::os::raw::c_int,
pub filename: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_im__INTMASK() {
assert_eq!(
::std::mem::size_of::<im__INTMASK>(),
32usize,
concat!("Size of: ", stringify!(im__INTMASK))
);
assert_eq!(
::std::mem::align_of::<im__INTMASK>(),
8usize,
concat!("Alignment of ", stringify!(im__INTMASK))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).xsize as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(xsize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).ysize as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(ysize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).scale as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(scale))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).offset as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(offset))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).coeff as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(coeff))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__INTMASK>())).filename as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(im__INTMASK), "::", stringify!(filename))
);
}
pub type INTMASK = im__INTMASK;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im__DOUBLEMASK {
pub xsize: ::std::os::raw::c_int,
pub ysize: ::std::os::raw::c_int,
pub scale: f64,
pub offset: f64,
pub coeff: *mut f64,
pub filename: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_im__DOUBLEMASK() {
assert_eq!(
::std::mem::size_of::<im__DOUBLEMASK>(),
40usize,
concat!("Size of: ", stringify!(im__DOUBLEMASK))
);
assert_eq!(
::std::mem::align_of::<im__DOUBLEMASK>(),
8usize,
concat!("Alignment of ", stringify!(im__DOUBLEMASK))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).xsize as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(xsize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).ysize as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(ysize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).scale as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(scale))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).offset as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(offset))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).coeff as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(coeff))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im__DOUBLEMASK>())).filename as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(im__DOUBLEMASK), "::", stringify!(filename))
);
}
pub type DOUBLEMASK = im__DOUBLEMASK;
extern "C" {
pub fn im_create_imask(
filename: *const ::std::os::raw::c_char,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_create_imaskv(
filename: *const ::std::os::raw::c_char,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
...
) -> *mut INTMASK;
}
extern "C" {
pub fn im_create_dmask(
filename: *const ::std::os::raw::c_char,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_create_dmaskv(
filename: *const ::std::os::raw::c_char,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
...
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_read_imask(filename: *const ::std::os::raw::c_char) -> *mut INTMASK;
}
extern "C" {
pub fn im_read_dmask(filename: *const ::std::os::raw::c_char) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_print_imask(in_: *mut INTMASK);
}
extern "C" {
pub fn im_print_dmask(in_: *mut DOUBLEMASK);
}
extern "C" {
pub fn im_write_imask(in_: *mut INTMASK) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_write_dmask(in_: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_write_imask_name(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_write_dmask_name(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_free_imask(in_: *mut INTMASK) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_free_dmask(in_: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_log_imask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_log_dmask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_gauss_imask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_gauss_imask_sep(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_gauss_dmask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_gauss_dmask_sep(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_dup_imask(in_: *mut INTMASK, filename: *const ::std::os::raw::c_char)
-> *mut INTMASK;
}
extern "C" {
pub fn im_dup_dmask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_scale_dmask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_norm_dmask(mask: *mut DOUBLEMASK);
}
extern "C" {
pub fn im_imask2dmask(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_dmask2imask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_rotate_imask90(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_rotate_imask45(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_rotate_dmask90(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_rotate_dmask45(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_mattrn(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_matcat(
top: *mut DOUBLEMASK,
bottom: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_matmul(
in1: *mut DOUBLEMASK,
in2: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_lu_decomp(
mat: *const DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_lu_solve(lu: *const DOUBLEMASK, vec: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_matinv(
mat: *const DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_matinv_inplace(mat: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_local_dmask(out: *mut _VipsImage, mask: *mut DOUBLEMASK) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_local_imask(out: *mut _VipsImage, mask: *mut INTMASK) -> *mut INTMASK;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsDemandStyle {
VIPS_DEMAND_STYLE_ERROR = -1,
VIPS_DEMAND_STYLE_SMALLTILE = 0,
VIPS_DEMAND_STYLE_FATSTRIP = 1,
VIPS_DEMAND_STYLE_THINSTRIP = 2,
VIPS_DEMAND_STYLE_ANY = 3,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsImageType {
VIPS_IMAGE_ERROR = -1,
VIPS_IMAGE_NONE = 0,
VIPS_IMAGE_SETBUF = 1,
VIPS_IMAGE_SETBUF_FOREIGN = 2,
VIPS_IMAGE_OPENIN = 3,
VIPS_IMAGE_MMAPIN = 4,
VIPS_IMAGE_MMAPINRW = 5,
VIPS_IMAGE_OPENOUT = 6,
VIPS_IMAGE_PARTIAL = 7,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsInterpretation {
VIPS_INTERPRETATION_ERROR = -1,
VIPS_INTERPRETATION_MULTIBAND = 0,
VIPS_INTERPRETATION_B_W = 1,
VIPS_INTERPRETATION_HISTOGRAM = 10,
VIPS_INTERPRETATION_XYZ = 12,
VIPS_INTERPRETATION_LAB = 13,
VIPS_INTERPRETATION_CMYK = 15,
VIPS_INTERPRETATION_LABQ = 16,
VIPS_INTERPRETATION_RGB = 17,
VIPS_INTERPRETATION_CMC = 18,
VIPS_INTERPRETATION_LCH = 19,
VIPS_INTERPRETATION_LABS = 21,
VIPS_INTERPRETATION_sRGB = 22,
VIPS_INTERPRETATION_YXY = 23,
VIPS_INTERPRETATION_FOURIER = 24,
VIPS_INTERPRETATION_RGB16 = 25,
VIPS_INTERPRETATION_GREY16 = 26,
VIPS_INTERPRETATION_MATRIX = 27,
VIPS_INTERPRETATION_scRGB = 28,
VIPS_INTERPRETATION_HSV = 29,
VIPS_INTERPRETATION_LAST = 30,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsBandFormat {
VIPS_FORMAT_NOTSET = -1,
VIPS_FORMAT_UCHAR = 0,
VIPS_FORMAT_CHAR = 1,
VIPS_FORMAT_USHORT = 2,
VIPS_FORMAT_SHORT = 3,
VIPS_FORMAT_UINT = 4,
VIPS_FORMAT_INT = 5,
VIPS_FORMAT_FLOAT = 6,
VIPS_FORMAT_COMPLEX = 7,
VIPS_FORMAT_DOUBLE = 8,
VIPS_FORMAT_DPCOMPLEX = 9,
VIPS_FORMAT_LAST = 10,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsCoding {
VIPS_CODING_ERROR = -1,
VIPS_CODING_NONE = 0,
VIPS_CODING_LABQ = 2,
VIPS_CODING_RAD = 6,
VIPS_CODING_LAST = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsAccess {
VIPS_ACCESS_RANDOM = 0,
VIPS_ACCESS_SEQUENTIAL = 1,
VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = 2,
VIPS_ACCESS_LAST = 3,
}
pub type VipsStartFn = ::std::option::Option<
unsafe extern "C" fn(
out: *mut _VipsImage,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
pub type VipsGenerateFn = ::std::option::Option<
unsafe extern "C" fn(
out: *mut _VipsRegion,
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
stop: *mut gboolean,
) -> ::std::os::raw::c_int,
>;
pub type VipsStopFn = ::std::option::Option<
unsafe extern "C" fn(
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsProgress {
pub im: *mut _VipsImage,
pub run: ::std::os::raw::c_int,
pub eta: ::std::os::raw::c_int,
pub tpels: gint64,
pub npels: gint64,
pub percent: ::std::os::raw::c_int,
pub start: *mut GTimer,
}
#[test]
fn bindgen_test_layout__VipsProgress() {
assert_eq!(
::std::mem::size_of::<_VipsProgress>(),
48usize,
concat!("Size of: ", stringify!(_VipsProgress))
);
assert_eq!(
::std::mem::align_of::<_VipsProgress>(),
8usize,
concat!("Alignment of ", stringify!(_VipsProgress))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).im as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).run as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(run))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).eta as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(eta))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).tpels as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(tpels))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).npels as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(npels))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).percent as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(percent))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsProgress>())).start as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(_VipsProgress), "::", stringify!(start))
);
}
pub type VipsProgress = _VipsProgress;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsImage {
pub parent_instance: VipsObject,
pub Xsize: ::std::os::raw::c_int,
pub Ysize: ::std::os::raw::c_int,
pub Bands: ::std::os::raw::c_int,
pub BandFmt: VipsBandFormat,
pub Coding: VipsCoding,
pub Type: VipsInterpretation,
pub Xres: f64,
pub Yres: f64,
pub Xoffset: ::std::os::raw::c_int,
pub Yoffset: ::std::os::raw::c_int,
pub Length: ::std::os::raw::c_int,
pub Compression: ::std::os::raw::c_short,
pub Level: ::std::os::raw::c_short,
pub Bbits: ::std::os::raw::c_int,
pub time: *mut VipsProgress,
pub Hist: *mut ::std::os::raw::c_char,
pub filename: *mut ::std::os::raw::c_char,
pub data: *mut VipsPel,
pub kill: ::std::os::raw::c_int,
pub Xres_float: f32,
pub Yres_float: f32,
pub mode: *mut ::std::os::raw::c_char,
pub dtype: VipsImageType,
pub fd: ::std::os::raw::c_int,
pub baseaddr: *mut ::std::os::raw::c_void,
pub length: usize,
pub magic: guint32,
pub start_fn: VipsStartFn,
pub generate_fn: VipsGenerateFn,
pub stop_fn: VipsStopFn,
pub client1: *mut ::std::os::raw::c_void,
pub client2: *mut ::std::os::raw::c_void,
pub sslock: *mut GMutex,
pub regions: *mut GSList,
pub dhint: VipsDemandStyle,
pub meta: *mut GHashTable,
pub meta_traverse: *mut GSList,
pub sizeof_header: gint64,
pub windows: *mut GSList,
pub upstream: *mut GSList,
pub downstream: *mut GSList,
pub serial: ::std::os::raw::c_int,
pub history_list: *mut GSList,
pub progress_signal: *mut _VipsImage,
pub file_length: gint64,
pub hint_set: gboolean,
pub delete_on_close: gboolean,
pub delete_on_close_filename: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__VipsImage() {
assert_eq!(
::std::mem::size_of::<_VipsImage>(),
392usize,
concat!("Size of: ", stringify!(_VipsImage))
);
assert_eq!(
::std::mem::align_of::<_VipsImage>(),
8usize,
concat!("Alignment of ", stringify!(_VipsImage))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).parent_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(parent_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Xsize as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Xsize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Ysize as *const _ as usize },
84usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Ysize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Bands as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Bands))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).BandFmt as *const _ as usize },
92usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(BandFmt))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Coding as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Coding))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Type as *const _ as usize },
100usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Type))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Xres as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Xres))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Yres as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Yres))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Xoffset as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Xoffset))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Yoffset as *const _ as usize },
124usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Yoffset))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Length as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Length))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Compression as *const _ as usize },
132usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Compression))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Level as *const _ as usize },
134usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Level))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Bbits as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Bbits))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).time as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(time))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Hist as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Hist))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).filename as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(filename))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).data as *const _ as usize },
168usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).kill as *const _ as usize },
176usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(kill))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Xres_float as *const _ as usize },
180usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Xres_float))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).Yres_float as *const _ as usize },
184usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(Yres_float))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).mode as *const _ as usize },
192usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(mode))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).dtype as *const _ as usize },
200usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(dtype))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).fd as *const _ as usize },
204usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(fd))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).baseaddr as *const _ as usize },
208usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(baseaddr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).length as *const _ as usize },
216usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(length))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).magic as *const _ as usize },
224usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(magic))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).start_fn as *const _ as usize },
232usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(start_fn))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).generate_fn as *const _ as usize },
240usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(generate_fn))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).stop_fn as *const _ as usize },
248usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(stop_fn))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).client1 as *const _ as usize },
256usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(client1))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).client2 as *const _ as usize },
264usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(client2))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).sslock as *const _ as usize },
272usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(sslock))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).regions as *const _ as usize },
280usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(regions))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).dhint as *const _ as usize },
288usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(dhint))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).meta as *const _ as usize },
296usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(meta))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).meta_traverse as *const _ as usize },
304usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(meta_traverse))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).sizeof_header as *const _ as usize },
312usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(sizeof_header))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).windows as *const _ as usize },
320usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(windows))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).upstream as *const _ as usize },
328usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(upstream))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).downstream as *const _ as usize },
336usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(downstream))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).serial as *const _ as usize },
344usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(serial))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).history_list as *const _ as usize },
352usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(history_list))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).progress_signal as *const _ as usize },
360usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(progress_signal))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).file_length as *const _ as usize },
368usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(file_length))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).hint_set as *const _ as usize },
376usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(hint_set))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImage>())).delete_on_close as *const _ as usize },
380usize,
concat!("Offset of field: ", stringify!(_VipsImage), "::", stringify!(delete_on_close))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsImage>())).delete_on_close_filename as *const _ as usize
},
384usize,
concat!(
"Offset of field: ",
stringify!(_VipsImage),
"::",
stringify!(delete_on_close_filename)
)
);
}
pub type VipsImage = _VipsImage;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsImageClass {
pub parent_class: VipsObjectClass,
pub preeval: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, progress: *mut VipsProgress),
>,
pub eval: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, progress: *mut VipsProgress),
>,
pub posteval: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, progress: *mut VipsProgress),
>,
pub written: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, result: *mut ::std::os::raw::c_int),
>,
pub invalidate: ::std::option::Option<unsafe extern "C" fn(image: *mut VipsImage)>,
pub minimise: ::std::option::Option<unsafe extern "C" fn(image: *mut VipsImage)>,
}
#[test]
fn bindgen_test_layout__VipsImageClass() {
assert_eq!(
::std::mem::size_of::<_VipsImageClass>(),
376usize,
concat!("Size of: ", stringify!(_VipsImageClass))
);
assert_eq!(
::std::mem::align_of::<_VipsImageClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsImageClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(parent_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).preeval as *const _ as usize },
328usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(preeval))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).eval as *const _ as usize },
336usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(eval))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).posteval as *const _ as usize },
344usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(posteval))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).written as *const _ as usize },
352usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(written))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).invalidate as *const _ as usize },
360usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(invalidate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsImageClass>())).minimise as *const _ as usize },
368usize,
concat!("Offset of field: ", stringify!(_VipsImageClass), "::", stringify!(minimise))
);
}
pub type VipsImageClass = _VipsImageClass;
extern "C" {
pub fn vips_image_get_type() -> GType;
}
extern "C" {
pub fn vips_progress_set(progress: gboolean);
}
extern "C" {
pub fn vips_image_invalidate_all(image: *mut VipsImage);
}
extern "C" {
pub fn vips_image_minimise_all(image: *mut VipsImage);
}
extern "C" {
pub fn vips_image_set_progress(image: *mut VipsImage, progress: gboolean);
}
extern "C" {
pub fn vips_filename_get_filename(
vips_filename: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_filename_get_options(
vips_filename: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_image_new() -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_memory() -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_memory() -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_file(name: *const ::std::os::raw::c_char, ...) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_file_RW(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_file_raw(
filename: *const ::std::os::raw::c_char,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
offset: guint64,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_memory(
data: *const ::std::os::raw::c_void,
size: usize,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_memory_copy(
data: *const ::std::os::raw::c_void,
size: usize,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_from_buffer(
buf: *const ::std::os::raw::c_void,
len: usize,
option_string: *const ::std::os::raw::c_char,
...
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_matrix(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_matrixv(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_new_matrix_from_array(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
array: *const f64,
size: ::std::os::raw::c_int,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_matrix_from_array(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
array: *const f64,
size: ::std::os::raw::c_int,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_set_delete_on_close(image: *mut VipsImage, delete_on_close: gboolean);
}
extern "C" {
pub fn vips_get_disc_threshold() -> guint64;
}
extern "C" {
pub fn vips_image_new_temp_file(format: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_write(image: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_write_to_file(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_write_to_buffer(
in_: *mut VipsImage,
suffix: *const ::std::os::raw::c_char,
buf: *mut *mut ::std::os::raw::c_void,
size: *mut usize,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_write_to_memory(
in_: *mut VipsImage,
size: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_image_decode_predict(
in_: *mut VipsImage,
bands: *mut ::std::os::raw::c_int,
format: *mut VipsBandFormat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_decode(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_encode(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
coding: VipsCoding,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_isMSBfirst(image: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn vips_image_isfile(image: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn vips_image_ispartial(image: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn vips_image_copy_memory(image: *mut VipsImage) -> *mut VipsImage;
}
extern "C" {
pub fn vips_image_wio_input(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_pio_input(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_pio_output(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_inplace(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_write_prepare(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_write_line(
image: *mut VipsImage,
ypos: ::std::os::raw::c_int,
linebuffer: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_band_format_isint(format: VipsBandFormat) -> gboolean;
}
extern "C" {
pub fn vips_band_format_isuint(format: VipsBandFormat) -> gboolean;
}
extern "C" {
pub fn vips_band_format_is8bit(format: VipsBandFormat) -> gboolean;
}
extern "C" {
pub fn vips_band_format_isfloat(format: VipsBandFormat) -> gboolean;
}
extern "C" {
pub fn vips_band_format_iscomplex(format: VipsBandFormat) -> gboolean;
}
extern "C" {
pub fn vips_system(cmd_format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_array_image_new(
array: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayImage;
}
extern "C" {
pub fn vips_array_image_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayImage;
}
extern "C" {
pub fn vips_array_image_new_from_string(
string: *const ::std::os::raw::c_char,
flags: VipsAccess,
) -> *mut VipsArrayImage;
}
extern "C" {
pub fn vips_array_image_empty() -> *mut VipsArrayImage;
}
extern "C" {
pub fn vips_array_image_append(
array: *mut VipsArrayImage,
image: *mut VipsImage,
) -> *mut VipsArrayImage;
}
extern "C" {
pub fn vips_array_image_get(
array: *mut VipsArrayImage,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut VipsImage;
}
extern "C" {
pub fn vips_value_get_array_image(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut VipsImage;
}
extern "C" {
pub fn vips_value_set_array_image(value: *mut GValue, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_malloc(object: *mut VipsObject, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_strdup(
object: *mut VipsObject,
str: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_free(buf: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tracked_free(s: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn vips_tracked_malloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_tracked_get_mem() -> usize;
}
extern "C" {
pub fn vips_tracked_get_mem_highwater() -> usize;
}
extern "C" {
pub fn vips_tracked_get_allocs() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tracked_open(
pathname: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tracked_close(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tracked_get_files() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_error_buffer() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_error_clear();
}
extern "C" {
pub fn vips_error_freeze();
}
extern "C" {
pub fn vips_error_thaw();
}
extern "C" {
pub fn vips_error(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn vips_verror(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
);
}
extern "C" {
pub fn vips_error_system(
err: ::std::os::raw::c_int,
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn vips_verror_system(
err: ::std::os::raw::c_int,
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
);
}
extern "C" {
pub fn vips_error_g(error: *mut *mut GError);
}
extern "C" {
pub fn vips_g_error(error: *mut *mut GError);
}
extern "C" {
pub fn vips_warn(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn vips_vwarn(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
);
}
extern "C" {
pub fn vips_info_set(info: gboolean);
}
extern "C" {
pub fn vips_info(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn vips_vinfo(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
);
}
extern "C" {
pub fn vips_error_exit(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn vips_check_uncoded(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_coding(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
coding: VipsCoding,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_coding_known(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_coding_noneorlabq(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_coding_same(
domain: *const ::std::os::raw::c_char,
im1: *mut VipsImage,
im2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_mono(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
bands: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands_1or3(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands_atleast(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
bands: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands_1orn(
domain: *const ::std::os::raw::c_char,
im1: *mut VipsImage,
im2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands_1orn_unary(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bands_same(
domain: *const ::std::os::raw::c_char,
im1: *mut VipsImage,
im2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_bandno(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_int(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_uint(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_uintorf(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_noncomplex(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_complex(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_twocomponents(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_format(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
fmt: VipsBandFormat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_u8or16(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_8or16(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_u8or16orf(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_format_same(
domain: *const ::std::os::raw::c_char,
im1: *mut VipsImage,
im2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_size_same(
domain: *const ::std::os::raw::c_char,
im1: *mut VipsImage,
im2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_oddsquare(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_vector_length(
domain: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_vector(
domain: *const ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_hist(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_matrix(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
out: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_separable(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_precision_intfloat(
domain: *const ::std::os::raw::c_char,
precision: VipsPrecision,
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsFormatFlags {
VIPS_FORMAT_NONE = 0,
VIPS_FORMAT_PARTIAL = 1,
VIPS_FORMAT_BIGENDIAN = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsFormat {
pub parent_object: VipsObject,
}
#[test]
fn bindgen_test_layout__VipsFormat() {
assert_eq!(
::std::mem::size_of::<_VipsFormat>(),
80usize,
concat!("Size of: ", stringify!(_VipsFormat))
);
assert_eq!(
::std::mem::align_of::<_VipsFormat>(),
8usize,
concat!("Alignment of ", stringify!(_VipsFormat))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormat>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsFormat), "::", stringify!(parent_object))
);
}
pub type VipsFormat = _VipsFormat;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsFormatClass {
pub parent_class: VipsObjectClass,
pub is_a: ::std::option::Option<
unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> gboolean,
>,
pub header: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_char,
arg2: *mut VipsImage,
) -> ::std::os::raw::c_int,
>,
pub load: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_char,
arg2: *mut VipsImage,
) -> ::std::os::raw::c_int,
>,
pub save: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut VipsImage,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub get_flags: ::std::option::Option<
unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> VipsFormatFlags,
>,
pub priority: ::std::os::raw::c_int,
pub suffs: *mut *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__VipsFormatClass() {
assert_eq!(
::std::mem::size_of::<_VipsFormatClass>(),
384usize,
concat!("Size of: ", stringify!(_VipsFormatClass))
);
assert_eq!(
::std::mem::align_of::<_VipsFormatClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsFormatClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(parent_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).is_a as *const _ as usize },
328usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(is_a))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).header as *const _ as usize },
336usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(header))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).load as *const _ as usize },
344usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(load))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).save as *const _ as usize },
352usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(save))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).get_flags as *const _ as usize },
360usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(get_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).priority as *const _ as usize },
368usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(priority))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsFormatClass>())).suffs as *const _ as usize },
376usize,
concat!("Offset of field: ", stringify!(_VipsFormatClass), "::", stringify!(suffs))
);
}
pub type VipsFormatClass = _VipsFormatClass;
extern "C" {
pub fn vips_format_get_type() -> GType;
}
extern "C" {
pub fn vips_format_map(
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_format_for_file(filename: *const ::std::os::raw::c_char) -> *mut VipsFormatClass;
}
extern "C" {
pub fn vips_format_for_name(filename: *const ::std::os::raw::c_char) -> *mut VipsFormatClass;
}
extern "C" {
pub fn vips_format_get_flags(
format: *mut VipsFormatClass,
filename: *const ::std::os::raw::c_char,
) -> VipsFormatFlags;
}
extern "C" {
pub fn vips_format_read(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_format_write(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_jpeg2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_bufjpeg2vips(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut VipsImage,
header_only: gboolean,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2jpeg(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2mimejpeg(
in_: *mut VipsImage,
qfac: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2bufjpeg(
in_: *mut VipsImage,
out: *mut VipsImage,
qfac: ::std::os::raw::c_int,
obuf: *mut *mut ::std::os::raw::c_char,
olen: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tiff2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2tiff(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tile_cache(
in_: *mut VipsImage,
out: *mut VipsImage,
tile_width: ::std::os::raw::c_int,
tile_height: ::std::os::raw::c_int,
max_tiles: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_magick2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_bufmagick2vips(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut VipsImage,
header_only: gboolean,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_exr2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ppm2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2ppm(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_analyze2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_csv2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2csv(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_png2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2png(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2bufpng(
in_: *mut VipsImage,
out: *mut VipsImage,
compression: ::std::os::raw::c_int,
interlace: ::std::os::raw::c_int,
obuf: *mut *mut ::std::os::raw::c_char,
olen: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_webp2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2webp(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_raw2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bpp: ::std::os::raw::c_int,
offset: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2raw(in_: *mut VipsImage, fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_mat2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rad2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2rad(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fits2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2fits(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2dz(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsRegion {
pub parent_object: VipsObject,
pub im: *mut VipsImage,
pub valid: VipsRect,
pub type_: RegionType,
pub data: *mut VipsPel,
pub bpl: ::std::os::raw::c_int,
pub seq: *mut ::std::os::raw::c_void,
pub thread: *mut GThread,
pub window: *mut VipsWindow,
pub buffer: *mut VipsBuffer,
pub invalid: gboolean,
}
#[test]
fn bindgen_test_layout__VipsRegion() {
assert_eq!(
::std::mem::size_of::<_VipsRegion>(),
168usize,
concat!("Size of: ", stringify!(_VipsRegion))
);
assert_eq!(
::std::mem::align_of::<_VipsRegion>(),
8usize,
concat!("Alignment of ", stringify!(_VipsRegion))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(parent_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).im as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).valid as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(valid))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).type_ as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(type_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).data as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).bpl as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(bpl))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).seq as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(seq))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).thread as *const _ as usize },
136usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(thread))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).window as *const _ as usize },
144usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(window))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).buffer as *const _ as usize },
152usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(buffer))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegion>())).invalid as *const _ as usize },
160usize,
concat!("Offset of field: ", stringify!(_VipsRegion), "::", stringify!(invalid))
);
}
pub type VipsRegion = _VipsRegion;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsRegionClass {
pub parent_class: VipsObjectClass,
}
#[test]
fn bindgen_test_layout__VipsRegionClass() {
assert_eq!(
::std::mem::size_of::<_VipsRegionClass>(),
328usize,
concat!("Size of: ", stringify!(_VipsRegionClass))
);
assert_eq!(
::std::mem::align_of::<_VipsRegionClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsRegionClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsRegionClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsRegionClass), "::", stringify!(parent_class))
);
}
pub type VipsRegionClass = _VipsRegionClass;
extern "C" {
pub fn vips_region_get_type() -> GType;
}
extern "C" {
pub fn vips_region_new(image: *mut VipsImage) -> *mut VipsRegion;
}
extern "C" {
pub fn vips_region_buffer(reg: *mut VipsRegion, r: *mut VipsRect) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_image(reg: *mut VipsRegion, r: *mut VipsRect) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_region(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *mut VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_equalsregion(
reg1: *mut VipsRegion,
reg2: *mut VipsRegion,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_position(
reg: *mut VipsRegion,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_paint(reg: *mut VipsRegion, r: *mut VipsRect, value: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_region_paint_pel(reg: *mut VipsRegion, r: *mut VipsRect, ink: *mut VipsPel);
}
extern "C" {
pub fn vips_region_black(reg: *mut VipsRegion);
}
extern "C" {
pub fn vips_region_copy(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *mut VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_region_shrink(
from: *mut VipsRegion,
to: *mut VipsRegion,
target: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_prepare(reg: *mut VipsRegion, r: *mut VipsRect) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_prepare_to(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *mut VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_prepare_many(
reg: *mut *mut VipsRegion,
r: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_region_invalidate(reg: *mut VipsRegion);
}
extern "C" {
pub fn vips_region_dump_all();
}
pub type VipsRegionWrite = ::std::option::Option<
unsafe extern "C" fn(
region: *mut VipsRegion,
area: *mut VipsRect,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn vips_sink_disc(
im: *mut VipsImage,
write_fn: VipsRegionWrite,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sink(
im: *mut VipsImage,
start_fn: VipsStartFn,
generate_fn: VipsGenerateFn,
stop_fn: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sink_tile(
im: *mut VipsImage,
tile_width: ::std::os::raw::c_int,
tile_height: ::std::os::raw::c_int,
start_fn: VipsStartFn,
generate_fn: VipsGenerateFn,
stop_fn: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
pub type VipsSinkNotify = ::std::option::Option<
unsafe extern "C" fn(im: *mut VipsImage, rect: *mut VipsRect, a: *mut ::std::os::raw::c_void),
>;
extern "C" {
pub fn vips_sink_screen(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
tile_width: ::std::os::raw::c_int,
tile_height: ::std::os::raw::c_int,
max_tiles: ::std::os::raw::c_int,
priority: ::std::os::raw::c_int,
notify_fn: VipsSinkNotify,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sink_memory(im: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_start_one(
out: *mut VipsImage,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_stop_one(
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_start_many(
out: *mut VipsImage,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_stop_many(
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_allocate_input_array(out: *mut VipsImage, ...) -> *mut *mut VipsImage;
}
extern "C" {
pub fn vips_image_generate(
image: *mut VipsImage,
start_fn: VipsStartFn,
generate_fn: VipsGenerateFn,
stop_fn: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_pipeline_array(
image: *mut VipsImage,
hint: VipsDemandStyle,
in_: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_pipelinev(
image: *mut VipsImage,
hint: VipsDemandStyle,
...
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsInterpolate {
pub parent_object: VipsObject,
}
#[test]
fn bindgen_test_layout__VipsInterpolate() {
assert_eq!(
::std::mem::size_of::<_VipsInterpolate>(),
80usize,
concat!("Size of: ", stringify!(_VipsInterpolate))
);
assert_eq!(
::std::mem::align_of::<_VipsInterpolate>(),
8usize,
concat!("Alignment of ", stringify!(_VipsInterpolate))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsInterpolate>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsInterpolate), "::", stringify!(parent_object))
);
}
pub type VipsInterpolate = _VipsInterpolate;
pub type VipsInterpolateMethod = ::std::option::Option<
unsafe extern "C" fn(
interpolate: *mut VipsInterpolate,
out: *mut ::std::os::raw::c_void,
in_: *mut VipsRegion,
x: f64,
y: f64,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsInterpolateClass {
pub parent_class: VipsObjectClass,
pub interpolate: VipsInterpolateMethod,
pub get_window_size: ::std::option::Option<
unsafe extern "C" fn(interpolate: *mut VipsInterpolate) -> ::std::os::raw::c_int,
>,
pub window_size: ::std::os::raw::c_int,
pub get_window_offset: ::std::option::Option<
unsafe extern "C" fn(interpolate: *mut VipsInterpolate) -> ::std::os::raw::c_int,
>,
pub window_offset: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__VipsInterpolateClass() {
assert_eq!(
::std::mem::size_of::<_VipsInterpolateClass>(),
368usize,
concat!("Size of: ", stringify!(_VipsInterpolateClass))
);
assert_eq!(
::std::mem::align_of::<_VipsInterpolateClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsInterpolateClass))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).parent_class as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(parent_class)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).interpolate as *const _ as usize
},
328usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(interpolate)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).get_window_size as *const _ as usize
},
336usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(get_window_size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).window_size as *const _ as usize
},
344usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(window_size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).get_window_offset as *const _ as usize
},
352usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(get_window_offset)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsInterpolateClass>())).window_offset as *const _ as usize
},
360usize,
concat!(
"Offset of field: ",
stringify!(_VipsInterpolateClass),
"::",
stringify!(window_offset)
)
);
}
pub type VipsInterpolateClass = _VipsInterpolateClass;
extern "C" {
pub fn vips_interpolate_get_type() -> GType;
}
extern "C" {
pub fn vips_interpolate(
interpolate: *mut VipsInterpolate,
out: *mut ::std::os::raw::c_void,
in_: *mut VipsRegion,
x: f64,
y: f64,
);
}
extern "C" {
pub fn vips_interpolate_get_method(interpolate: *mut VipsInterpolate) -> VipsInterpolateMethod;
}
extern "C" {
pub fn vips_interpolate_get_window_size(
interpolate: *mut VipsInterpolate,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_interpolate_get_window_offset(
interpolate: *mut VipsInterpolate,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_interpolate_nearest_static() -> *mut VipsInterpolate;
}
extern "C" {
pub fn vips_interpolate_bilinear_static() -> *mut VipsInterpolate;
}
extern "C" {
pub fn vips_interpolate_new(nickname: *const ::std::os::raw::c_char) -> *mut VipsInterpolate;
}
extern "C" {
pub fn vips_g_mutex_new() -> *mut GMutex;
}
extern "C" {
pub fn vips_g_mutex_free(arg1: *mut GMutex);
}
extern "C" {
pub fn vips_g_cond_new() -> *mut GCond;
}
extern "C" {
pub fn vips_g_cond_free(arg1: *mut GCond);
}
extern "C" {
pub fn vips_g_thread_new(
arg1: *const ::std::os::raw::c_char,
arg2: GThreadFunc,
arg3: gpointer,
) -> *mut GThread;
}
extern "C" {
pub fn vips_thread_isworker() -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VipsSemaphore {
pub name: *mut ::std::os::raw::c_char,
pub v: ::std::os::raw::c_int,
pub mutex: *mut GMutex,
pub cond: *mut GCond,
}
#[test]
fn bindgen_test_layout_VipsSemaphore() {
assert_eq!(
::std::mem::size_of::<VipsSemaphore>(),
32usize,
concat!("Size of: ", stringify!(VipsSemaphore))
);
assert_eq!(
::std::mem::align_of::<VipsSemaphore>(),
8usize,
concat!("Alignment of ", stringify!(VipsSemaphore))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsSemaphore>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(VipsSemaphore), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsSemaphore>())).v as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(VipsSemaphore), "::", stringify!(v))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsSemaphore>())).mutex as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(VipsSemaphore), "::", stringify!(mutex))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<VipsSemaphore>())).cond as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(VipsSemaphore), "::", stringify!(cond))
);
}
extern "C" {
pub fn vips_semaphore_up(s: *mut VipsSemaphore) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_semaphore_down(s: *mut VipsSemaphore) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_semaphore_upn(
s: *mut VipsSemaphore,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_semaphore_downn(
s: *mut VipsSemaphore,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_semaphore_destroy(s: *mut VipsSemaphore);
}
extern "C" {
pub fn vips_semaphore_init(
s: *mut VipsSemaphore,
v: ::std::os::raw::c_int,
name: *mut ::std::os::raw::c_char,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsThreadState {
pub parent_object: VipsObject,
pub im: *mut VipsImage,
pub reg: *mut VipsRegion,
pub pos: VipsRect,
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub stop: gboolean,
pub a: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__VipsThreadState() {
assert_eq!(
::std::mem::size_of::<_VipsThreadState>(),
136usize,
concat!("Size of: ", stringify!(_VipsThreadState))
);
assert_eq!(
::std::mem::align_of::<_VipsThreadState>(),
8usize,
concat!("Alignment of ", stringify!(_VipsThreadState))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(parent_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).im as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(im))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).reg as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(reg))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).pos as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(pos))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).x as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(x))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).y as *const _ as usize },
116usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(y))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).stop as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(stop))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsThreadState>())).a as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_VipsThreadState), "::", stringify!(a))
);
}
pub type VipsThreadState = _VipsThreadState;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsThreadStateClass {
pub parent_class: VipsObjectClass,
}
#[test]
fn bindgen_test_layout__VipsThreadStateClass() {
assert_eq!(
::std::mem::size_of::<_VipsThreadStateClass>(),
328usize,
concat!("Size of: ", stringify!(_VipsThreadStateClass))
);
assert_eq!(
::std::mem::align_of::<_VipsThreadStateClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsThreadStateClass))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsThreadStateClass>())).parent_class as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_VipsThreadStateClass),
"::",
stringify!(parent_class)
)
);
}
pub type VipsThreadStateClass = _VipsThreadStateClass;
extern "C" {
pub fn vips_thread_state_set(
object: *mut VipsObject,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_thread_state_get_type() -> GType;
}
extern "C" {
pub fn vips_thread_state_new(
im: *mut VipsImage,
a: *mut ::std::os::raw::c_void,
) -> *mut VipsThreadState;
}
pub type VipsThreadStartFn = ::std::option::Option<
unsafe extern "C" fn(
im: *mut VipsImage,
a: *mut ::std::os::raw::c_void,
) -> *mut VipsThreadState,
>;
pub type VipsThreadpoolAllocateFn = ::std::option::Option<
unsafe extern "C" fn(
state: *mut VipsThreadState,
a: *mut ::std::os::raw::c_void,
stop: *mut gboolean,
) -> ::std::os::raw::c_int,
>;
pub type VipsThreadpoolWorkFn = ::std::option::Option<
unsafe extern "C" fn(
state: *mut VipsThreadState,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub type VipsThreadpoolProgressFn = ::std::option::Option<
unsafe extern "C" fn(a: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn vips_threadpool_run(
im: *mut VipsImage,
start: VipsThreadStartFn,
allocate: VipsThreadpoolAllocateFn,
work: VipsThreadpoolWorkFn,
progress: VipsThreadpoolProgressFn,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_get_tile_size(
im: *mut VipsImage,
tile_width: *mut ::std::os::raw::c_int,
tile_height: *mut ::std::os::raw::c_int,
n_lines: *mut ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_format_sizeof(format: VipsBandFormat) -> guint64;
}
extern "C" {
pub fn vips_format_sizeof_unsafe(format: VipsBandFormat) -> guint64;
}
extern "C" {
pub fn vips_image_get_width(image: *const VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_height(image: *const VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_bands(image: *const VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_format(image: *const VipsImage) -> VipsBandFormat;
}
extern "C" {
pub fn vips_image_guess_format(image: *const VipsImage) -> VipsBandFormat;
}
extern "C" {
pub fn vips_image_get_coding(image: *const VipsImage) -> VipsCoding;
}
extern "C" {
pub fn vips_image_get_interpretation(image: *const VipsImage) -> VipsInterpretation;
}
extern "C" {
pub fn vips_image_guess_interpretation(image: *const VipsImage) -> VipsInterpretation;
}
extern "C" {
pub fn vips_image_get_xres(image: *const VipsImage) -> f64;
}
extern "C" {
pub fn vips_image_get_yres(image: *const VipsImage) -> f64;
}
extern "C" {
pub fn vips_image_get_xoffset(image: *const VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_yoffset(image: *const VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_filename(image: *const VipsImage) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_image_get_mode(image: *const VipsImage) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_image_get_scale(image: *const VipsImage) -> f64;
}
extern "C" {
pub fn vips_image_get_offset(image: *const VipsImage) -> f64;
}
extern "C" {
pub fn vips_image_get_data(image: *mut VipsImage) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_image_init_fields(
image: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
coding: VipsCoding,
interpretation: VipsInterpretation,
xres: f64,
yres: f64,
);
}
extern "C" {
pub fn vips_image_set(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
value: *mut GValue,
);
}
extern "C" {
pub fn vips_image_get(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
value_copy: *mut GValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_as_string(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
out: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_typeof(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
) -> GType;
}
extern "C" {
pub fn vips_image_remove(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
) -> gboolean;
}
pub type VipsImageMapFn = ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
value: *mut GValue,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn vips_image_map(
image: *mut VipsImage,
fn_: VipsImageMapFn,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn vips_image_set_area(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn vips_image_get_area(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
data: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_set_blob(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
length: usize,
);
}
extern "C" {
pub fn vips_image_get_blob(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
data: *mut *mut ::std::os::raw::c_void,
length: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_int(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_set_int(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
i: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips_image_get_double(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_set_double(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
d: f64,
);
}
extern "C" {
pub fn vips_image_get_string(
image: *const VipsImage,
field: *const ::std::os::raw::c_char,
out: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_set_string(
image: *mut VipsImage,
field: *const ::std::os::raw::c_char,
str: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn vips_image_history_printf(
image: *mut VipsImage,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_history_args(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
argc: ::std::os::raw::c_int,
argv: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_get_history(image: *mut VipsImage) -> *const ::std::os::raw::c_char;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationFlags {
VIPS_OPERATION_NONE = 0,
VIPS_OPERATION_SEQUENTIAL = 1,
VIPS_OPERATION_SEQUENTIAL_UNBUFFERED = 2,
VIPS_OPERATION_NOCACHE = 4,
VIPS_OPERATION_DEPRECATED = 8,
}
pub type VipsOperationBuildFn =
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject) -> gboolean>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsOperation {
pub parent_instance: VipsObject,
pub hash: guint,
pub found_hash: gboolean,
pub pixels: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__VipsOperation() {
assert_eq!(
::std::mem::size_of::<_VipsOperation>(),
96usize,
concat!("Size of: ", stringify!(_VipsOperation))
);
assert_eq!(
::std::mem::align_of::<_VipsOperation>(),
8usize,
concat!("Alignment of ", stringify!(_VipsOperation))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperation>())).parent_instance as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsOperation), "::", stringify!(parent_instance))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperation>())).hash as *const _ as usize },
80usize,
concat!("Offset of field: ", stringify!(_VipsOperation), "::", stringify!(hash))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperation>())).found_hash as *const _ as usize },
84usize,
concat!("Offset of field: ", stringify!(_VipsOperation), "::", stringify!(found_hash))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperation>())).pixels as *const _ as usize },
88usize,
concat!("Offset of field: ", stringify!(_VipsOperation), "::", stringify!(pixels))
);
}
pub type VipsOperation = _VipsOperation;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsOperationClass {
pub parent_class: VipsObjectClass,
pub usage: ::std::option::Option<
unsafe extern "C" fn(cls: *mut _VipsOperationClass, buf: *mut VipsBuf),
>,
pub get_flags: ::std::option::Option<
unsafe extern "C" fn(operation: *mut VipsOperation) -> VipsOperationFlags,
>,
pub flags: VipsOperationFlags,
pub invalidate: ::std::option::Option<unsafe extern "C" fn(operation: *mut VipsOperation)>,
}
#[test]
fn bindgen_test_layout__VipsOperationClass() {
assert_eq!(
::std::mem::size_of::<_VipsOperationClass>(),
360usize,
concat!("Size of: ", stringify!(_VipsOperationClass))
);
assert_eq!(
::std::mem::align_of::<_VipsOperationClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsOperationClass))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsOperationClass>())).parent_class as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_VipsOperationClass),
"::",
stringify!(parent_class)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperationClass>())).usage as *const _ as usize },
328usize,
concat!("Offset of field: ", stringify!(_VipsOperationClass), "::", stringify!(usage))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperationClass>())).get_flags as *const _ as usize },
336usize,
concat!("Offset of field: ", stringify!(_VipsOperationClass), "::", stringify!(get_flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperationClass>())).flags as *const _ as usize },
344usize,
concat!("Offset of field: ", stringify!(_VipsOperationClass), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsOperationClass>())).invalidate as *const _ as usize },
352usize,
concat!("Offset of field: ", stringify!(_VipsOperationClass), "::", stringify!(invalidate))
);
}
pub type VipsOperationClass = _VipsOperationClass;
extern "C" {
pub fn vips_operation_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_get_flags(operation: *mut VipsOperation) -> VipsOperationFlags;
}
extern "C" {
pub fn vips_operation_class_print_usage(operation_class: *mut VipsOperationClass);
}
extern "C" {
pub fn vips_operation_invalidate(operation: *mut VipsOperation);
}
extern "C" {
pub fn vips_operation_call_valist(
operation: *mut VipsOperation,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_operation_new(name: *const ::std::os::raw::c_char) -> *mut VipsOperation;
}
extern "C" {
pub fn vips_call_required_optional(
operation: *mut *mut VipsOperation,
required: *mut __va_list_tag,
optional: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_call(operation_name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_call_split(
operation_name: *const ::std::os::raw::c_char,
optional: *mut __va_list_tag,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_call_split_option_string(
operation_name: *const ::std::os::raw::c_char,
option_string: *const ::std::os::raw::c_char,
optional: *mut __va_list_tag,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_call_options(group: *mut GOptionGroup, operation: *mut VipsOperation);
}
extern "C" {
pub fn vips_call_argv(
operation: *mut VipsOperation,
argc: ::std::os::raw::c_int,
argv: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache_drop_all();
}
extern "C" {
pub fn vips_cache_operation_lookup(operation: *mut VipsOperation) -> *mut VipsOperation;
}
extern "C" {
pub fn vips_cache_operation_add(operation: *mut VipsOperation);
}
extern "C" {
pub fn vips_cache_operation_buildp(operation: *mut *mut VipsOperation)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache_operation_build(operation: *mut VipsOperation) -> *mut VipsOperation;
}
extern "C" {
pub fn vips_cache_print();
}
extern "C" {
pub fn vips_cache_set_max(max: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_cache_set_max_mem(max_mem: usize);
}
extern "C" {
pub fn vips_cache_get_max() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache_get_size() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache_get_max_mem() -> usize;
}
extern "C" {
pub fn vips_cache_get_max_files() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache_set_max_files(max_files: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_cache_set_dump(dump: gboolean);
}
extern "C" {
pub fn vips_cache_set_trace(trace: gboolean);
}
extern "C" {
pub fn vips_concurrency_set(concurrency: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips_concurrency_get() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeign {
pub parent_object: VipsOperation,
}
#[test]
fn bindgen_test_layout__VipsForeign() {
assert_eq!(
::std::mem::size_of::<_VipsForeign>(),
96usize,
concat!("Size of: ", stringify!(_VipsForeign))
);
assert_eq!(
::std::mem::align_of::<_VipsForeign>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeign))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeign>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsForeign), "::", stringify!(parent_object))
);
}
pub type VipsForeign = _VipsForeign;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeignClass {
pub parent_class: VipsOperationClass,
pub priority: ::std::os::raw::c_int,
pub suffs: *mut *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__VipsForeignClass() {
assert_eq!(
::std::mem::size_of::<_VipsForeignClass>(),
376usize,
concat!("Size of: ", stringify!(_VipsForeignClass))
);
assert_eq!(
::std::mem::align_of::<_VipsForeignClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeignClass))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignClass>())).parent_class as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsForeignClass), "::", stringify!(parent_class))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignClass>())).priority as *const _ as usize },
360usize,
concat!("Offset of field: ", stringify!(_VipsForeignClass), "::", stringify!(priority))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignClass>())).suffs as *const _ as usize },
368usize,
concat!("Offset of field: ", stringify!(_VipsForeignClass), "::", stringify!(suffs))
);
}
pub type VipsForeignClass = _VipsForeignClass;
extern "C" {
pub fn vips_foreign_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_map(
base: *const ::std::os::raw::c_char,
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignFlags {
VIPS_FOREIGN_NONE = 0,
VIPS_FOREIGN_PARTIAL = 1,
VIPS_FOREIGN_BIGENDIAN = 2,
VIPS_FOREIGN_SEQUENTIAL = 4,
VIPS_FOREIGN_ALL = 7,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeignLoad {
pub parent_object: VipsForeign,
pub disc: gboolean,
pub access: VipsAccess,
pub flags: VipsForeignFlags,
pub sequential: gboolean,
pub out: *mut VipsImage,
pub real: *mut VipsImage,
pub nocache: gboolean,
}
#[test]
fn bindgen_test_layout__VipsForeignLoad() {
assert_eq!(
::std::mem::size_of::<_VipsForeignLoad>(),
136usize,
concat!("Size of: ", stringify!(_VipsForeignLoad))
);
assert_eq!(
::std::mem::align_of::<_VipsForeignLoad>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeignLoad))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(parent_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).disc as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(disc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).access as *const _ as usize },
100usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(access))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).flags as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).sequential as *const _ as usize },
108usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(sequential))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).out as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(out))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).real as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(real))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoad>())).nocache as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoad), "::", stringify!(nocache))
);
}
pub type VipsForeignLoad = _VipsForeignLoad;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeignLoadClass {
pub parent_class: VipsForeignClass,
pub is_a: ::std::option::Option<
unsafe extern "C" fn(filename: *const ::std::os::raw::c_char) -> gboolean,
>,
pub is_a_buffer: ::std::option::Option<
unsafe extern "C" fn(data: *const ::std::os::raw::c_void, size: usize) -> gboolean,
>,
pub get_flags_filename: ::std::option::Option<
unsafe extern "C" fn(filename: *const ::std::os::raw::c_char) -> VipsForeignFlags,
>,
pub get_flags:
::std::option::Option<unsafe extern "C" fn(load: *mut VipsForeignLoad) -> VipsForeignFlags>,
pub header: ::std::option::Option<
unsafe extern "C" fn(load: *mut VipsForeignLoad) -> ::std::os::raw::c_int,
>,
pub load: ::std::option::Option<
unsafe extern "C" fn(load: *mut VipsForeignLoad) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout__VipsForeignLoadClass() {
assert_eq!(
::std::mem::size_of::<_VipsForeignLoadClass>(),
424usize,
concat!("Size of: ", stringify!(_VipsForeignLoadClass))
);
assert_eq!(
::std::mem::align_of::<_VipsForeignLoadClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeignLoadClass))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsForeignLoadClass>())).parent_class as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignLoadClass),
"::",
stringify!(parent_class)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoadClass>())).is_a as *const _ as usize },
376usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoadClass), "::", stringify!(is_a))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsForeignLoadClass>())).is_a_buffer as *const _ as usize
},
384usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignLoadClass),
"::",
stringify!(is_a_buffer)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsForeignLoadClass>())).get_flags_filename as *const _
as usize
},
392usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignLoadClass),
"::",
stringify!(get_flags_filename)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoadClass>())).get_flags as *const _ as usize },
400usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignLoadClass),
"::",
stringify!(get_flags)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoadClass>())).header as *const _ as usize },
408usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoadClass), "::", stringify!(header))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignLoadClass>())).load as *const _ as usize },
416usize,
concat!("Offset of field: ", stringify!(_VipsForeignLoadClass), "::", stringify!(load))
);
}
pub type VipsForeignLoadClass = _VipsForeignLoadClass;
extern "C" {
pub fn vips_foreign_load_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_find_load(
filename: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_foreign_find_load_buffer(
data: *const ::std::os::raw::c_void,
size: usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_foreign_flags(
loader: *const ::std::os::raw::c_char,
filename: *const ::std::os::raw::c_char,
) -> VipsForeignFlags;
}
extern "C" {
pub fn vips_foreign_is_a(
loader: *const ::std::os::raw::c_char,
filename: *const ::std::os::raw::c_char,
) -> gboolean;
}
extern "C" {
pub fn vips_foreign_is_a_buffer(
loader: *const ::std::os::raw::c_char,
data: *const ::std::os::raw::c_void,
size: usize,
) -> gboolean;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsSaveable {
VIPS_SAVEABLE_MONO = 0,
VIPS_SAVEABLE_RGB = 1,
VIPS_SAVEABLE_RGBA = 2,
VIPS_SAVEABLE_RGBA_ONLY = 3,
VIPS_SAVEABLE_RGB_CMYK = 4,
VIPS_SAVEABLE_ANY = 5,
VIPS_SAVEABLE_LAST = 6,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeignSave {
pub parent_object: VipsForeign,
pub strip: gboolean,
pub background: *mut VipsArrayDouble,
pub in_: *mut VipsImage,
pub ready: *mut VipsImage,
}
#[test]
fn bindgen_test_layout__VipsForeignSave() {
assert_eq!(
::std::mem::size_of::<_VipsForeignSave>(),
128usize,
concat!("Size of: ", stringify!(_VipsForeignSave))
);
assert_eq!(
::std::mem::align_of::<_VipsForeignSave>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeignSave))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSave>())).parent_object as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(_VipsForeignSave), "::", stringify!(parent_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSave>())).strip as *const _ as usize },
96usize,
concat!("Offset of field: ", stringify!(_VipsForeignSave), "::", stringify!(strip))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSave>())).background as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(_VipsForeignSave), "::", stringify!(background))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSave>())).in_ as *const _ as usize },
112usize,
concat!("Offset of field: ", stringify!(_VipsForeignSave), "::", stringify!(in_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSave>())).ready as *const _ as usize },
120usize,
concat!("Offset of field: ", stringify!(_VipsForeignSave), "::", stringify!(ready))
);
}
pub type VipsForeignSave = _VipsForeignSave;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _VipsForeignSaveClass {
pub parent_class: VipsForeignClass,
pub saveable: VipsSaveable,
pub format_table: *mut VipsBandFormat,
pub coding: [gboolean; 7usize],
}
#[test]
fn bindgen_test_layout__VipsForeignSaveClass() {
assert_eq!(
::std::mem::size_of::<_VipsForeignSaveClass>(),
424usize,
concat!("Size of: ", stringify!(_VipsForeignSaveClass))
);
assert_eq!(
::std::mem::align_of::<_VipsForeignSaveClass>(),
8usize,
concat!("Alignment of ", stringify!(_VipsForeignSaveClass))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsForeignSaveClass>())).parent_class as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignSaveClass),
"::",
stringify!(parent_class)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSaveClass>())).saveable as *const _ as usize },
376usize,
concat!("Offset of field: ", stringify!(_VipsForeignSaveClass), "::", stringify!(saveable))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_VipsForeignSaveClass>())).format_table as *const _ as usize
},
384usize,
concat!(
"Offset of field: ",
stringify!(_VipsForeignSaveClass),
"::",
stringify!(format_table)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_VipsForeignSaveClass>())).coding as *const _ as usize },
392usize,
concat!("Offset of field: ", stringify!(_VipsForeignSaveClass), "::", stringify!(coding))
);
}
pub type VipsForeignSaveClass = _VipsForeignSaveClass;
extern "C" {
pub fn vips_foreign_save_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_find_save(
filename: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_foreign_find_save_buffer(
suffix: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_vipsload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_vipssave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_openslideload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_jpegload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_jpegload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_jpegsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_jpegsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut usize,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_jpegsave_mime(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignWebpPreset {
VIPS_FOREIGN_WEBP_PRESET_DEFAULT = 0,
VIPS_FOREIGN_WEBP_PRESET_PICTURE = 1,
VIPS_FOREIGN_WEBP_PRESET_PHOTO = 2,
VIPS_FOREIGN_WEBP_PRESET_DRAWING = 3,
VIPS_FOREIGN_WEBP_PRESET_ICON = 4,
VIPS_FOREIGN_WEBP_PRESET_TEXT = 5,
VIPS_FOREIGN_WEBP_PRESET_LAST = 6,
}
extern "C" {
pub fn vips_webpload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_webpload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_webpsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_webpsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut usize,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_webpsave_mime(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignTiffCompression {
VIPS_FOREIGN_TIFF_COMPRESSION_NONE = 0,
VIPS_FOREIGN_TIFF_COMPRESSION_JPEG = 1,
VIPS_FOREIGN_TIFF_COMPRESSION_DEFLATE = 2,
VIPS_FOREIGN_TIFF_COMPRESSION_PACKBITS = 3,
VIPS_FOREIGN_TIFF_COMPRESSION_CCITTFAX4 = 4,
VIPS_FOREIGN_TIFF_COMPRESSION_LZW = 5,
VIPS_FOREIGN_TIFF_COMPRESSION_LAST = 6,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignTiffPredictor {
VIPS_FOREIGN_TIFF_PREDICTOR_NONE = 1,
VIPS_FOREIGN_TIFF_PREDICTOR_HORIZONTAL = 2,
VIPS_FOREIGN_TIFF_PREDICTOR_FLOAT = 3,
VIPS_FOREIGN_TIFF_PREDICTOR_LAST = 4,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignTiffResunit {
VIPS_FOREIGN_TIFF_RESUNIT_CM = 0,
VIPS_FOREIGN_TIFF_RESUNIT_INCH = 1,
VIPS_FOREIGN_TIFF_RESUNIT_LAST = 2,
}
extern "C" {
pub fn vips_tiffload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tiffload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tiffsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_openexrload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_fitsload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_fitssave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_analyzeload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rawload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rawsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rawsave_fd(
in_: *mut VipsImage,
fd: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_csvload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_csvsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_matrixload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_matrixsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_matrixprint(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_magickload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_magickload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignPngFilter {
VIPS_FOREIGN_PNG_FILTER_NONE = 8,
VIPS_FOREIGN_PNG_FILTER_SUB = 16,
VIPS_FOREIGN_PNG_FILTER_UP = 32,
VIPS_FOREIGN_PNG_FILTER_AVG = 64,
VIPS_FOREIGN_PNG_FILTER_PAETH = 128,
VIPS_FOREIGN_PNG_FILTER_ALL = 234,
}
extern "C" {
pub fn vips_pngload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pngload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pngsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pngsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut usize,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_ppmload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_ppmsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_matload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_radload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_radsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_radsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut usize,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pdfload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pdfload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_svgload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_svgload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gifload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gifload_buffer(
buf: *mut ::std::os::raw::c_void,
len: usize,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignDzLayout {
VIPS_FOREIGN_DZ_LAYOUT_DZ = 0,
VIPS_FOREIGN_DZ_LAYOUT_ZOOMIFY = 1,
VIPS_FOREIGN_DZ_LAYOUT_GOOGLE = 2,
VIPS_FOREIGN_DZ_LAYOUT_LAST = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignDzDepth {
VIPS_FOREIGN_DZ_DEPTH_ONEPIXEL = 0,
VIPS_FOREIGN_DZ_DEPTH_ONETILE = 1,
VIPS_FOREIGN_DZ_DEPTH_ONE = 2,
VIPS_FOREIGN_DZ_DEPTH_LAST = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsForeignDzContainer {
VIPS_FOREIGN_DZ_CONTAINER_FS = 0,
VIPS_FOREIGN_DZ_CONTAINER_ZIP = 1,
VIPS_FOREIGN_DZ_CONTAINER_LAST = 2,
}
extern "C" {
pub fn vips_dzsave(
in_: *mut VipsImage,
name: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_kernel_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_flags_get_type() -> GType;
}
extern "C" {
pub fn vips_saveable_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_webp_preset_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_tiff_compression_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_tiff_predictor_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_tiff_resunit_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_png_filter_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_dz_layout_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_dz_depth_get_type() -> GType;
}
extern "C" {
pub fn vips_foreign_dz_container_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_math_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_math2_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_round_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_relational_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_boolean_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_complex_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_complex2_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_complexget_get_type() -> GType;
}
extern "C" {
pub fn vips_extend_get_type() -> GType;
}
extern "C" {
pub fn vips_direction_get_type() -> GType;
}
extern "C" {
pub fn vips_align_get_type() -> GType;
}
extern "C" {
pub fn vips_angle_get_type() -> GType;
}
extern "C" {
pub fn vips_angle45_get_type() -> GType;
}
extern "C" {
pub fn vips_token_get_type() -> GType;
}
extern "C" {
pub fn vips_demand_style_get_type() -> GType;
}
extern "C" {
pub fn vips_image_type_get_type() -> GType;
}
extern "C" {
pub fn vips_interpretation_get_type() -> GType;
}
extern "C" {
pub fn vips_band_format_get_type() -> GType;
}
extern "C" {
pub fn vips_coding_get_type() -> GType;
}
extern "C" {
pub fn vips_access_get_type() -> GType;
}
extern "C" {
pub fn vips_intent_get_type() -> GType;
}
extern "C" {
pub fn vips_pcs_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_flags_get_type() -> GType;
}
extern "C" {
pub fn vips_combine_get_type() -> GType;
}
extern "C" {
pub fn vips_operation_morphology_get_type() -> GType;
}
extern "C" {
pub fn vips_combine_mode_get_type() -> GType;
}
extern "C" {
pub fn vips_precision_get_type() -> GType;
}
extern "C" {
pub fn vips_argument_flags_get_type() -> GType;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationMath {
VIPS_OPERATION_MATH_SIN = 0,
VIPS_OPERATION_MATH_COS = 1,
VIPS_OPERATION_MATH_TAN = 2,
VIPS_OPERATION_MATH_ASIN = 3,
VIPS_OPERATION_MATH_ACOS = 4,
VIPS_OPERATION_MATH_ATAN = 5,
VIPS_OPERATION_MATH_LOG = 6,
VIPS_OPERATION_MATH_LOG10 = 7,
VIPS_OPERATION_MATH_EXP = 8,
VIPS_OPERATION_MATH_EXP10 = 9,
VIPS_OPERATION_MATH_LAST = 10,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationMath2 {
VIPS_OPERATION_MATH2_POW = 0,
VIPS_OPERATION_MATH2_WOP = 1,
VIPS_OPERATION_MATH2_LAST = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationRound {
VIPS_OPERATION_ROUND_RINT = 0,
VIPS_OPERATION_ROUND_CEIL = 1,
VIPS_OPERATION_ROUND_FLOOR = 2,
VIPS_OPERATION_ROUND_LAST = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationRelational {
VIPS_OPERATION_RELATIONAL_EQUAL = 0,
VIPS_OPERATION_RELATIONAL_NOTEQ = 1,
VIPS_OPERATION_RELATIONAL_LESS = 2,
VIPS_OPERATION_RELATIONAL_LESSEQ = 3,
VIPS_OPERATION_RELATIONAL_MORE = 4,
VIPS_OPERATION_RELATIONAL_MOREEQ = 5,
VIPS_OPERATION_RELATIONAL_LAST = 6,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationBoolean {
VIPS_OPERATION_BOOLEAN_AND = 0,
VIPS_OPERATION_BOOLEAN_OR = 1,
VIPS_OPERATION_BOOLEAN_EOR = 2,
VIPS_OPERATION_BOOLEAN_LSHIFT = 3,
VIPS_OPERATION_BOOLEAN_RSHIFT = 4,
VIPS_OPERATION_BOOLEAN_LAST = 5,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationComplex {
VIPS_OPERATION_COMPLEX_POLAR = 0,
VIPS_OPERATION_COMPLEX_RECT = 1,
VIPS_OPERATION_COMPLEX_CONJ = 2,
VIPS_OPERATION_COMPLEX_LAST = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationComplex2 {
VIPS_OPERATION_COMPLEX2_CROSS_PHASE = 0,
VIPS_OPERATION_COMPLEX2_LAST = 1,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationComplexget {
VIPS_OPERATION_COMPLEXGET_REAL = 0,
VIPS_OPERATION_COMPLEXGET_IMAG = 1,
VIPS_OPERATION_COMPLEXGET_LAST = 2,
}
extern "C" {
pub fn vips_add(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sum(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_subtract(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_multiply(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_divide(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_linear(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
a: *mut f64,
b: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_linear1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
a: f64,
b: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_remainder(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_remainder_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_remainder_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_invert(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_abs(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sign(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_round(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
round: VipsOperationRound,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_floor(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_ceil(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rint(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_math(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math: VipsOperationMath,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sin(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cos(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tan(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_asin(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_acos(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_atan(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_exp(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_exp10(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_log(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_log10(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_complex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
cmplx: VipsOperationComplex,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_polar(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rect(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_conj(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_complex2(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
cmplx: VipsOperationComplex2,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cross_phase(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_complexget(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
get: VipsOperationComplexget,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_real(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_imag(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_complexform(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_relational(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_equal(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_notequal(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_less(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lesseq(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_more(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_moreeq(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_relational_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_equal_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_notequal_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_less_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lesseq_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_more_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_moreeq_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_relational_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_equal_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_notequal_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_less_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lesseq_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_more_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_moreeq_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_boolean(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_andimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_orimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_eorimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lshift(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rshift(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_boolean_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_andimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_orimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_eorimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lshift_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rshift_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_boolean_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_andimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_orimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_eorimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_lshift_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rshift_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_math2(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pow(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_wop(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_math2_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pow_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_wop_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_math2_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pow_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_wop_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_avg(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_deviate(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_min(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_max(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_stats(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_measure(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
h: ::std::os::raw::c_int,
v: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_getpoint(
in_: *mut VipsImage,
vector: *mut *mut f64,
n: *mut ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_find(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_find_ndim(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_find_indexed(
in_: *mut VipsImage,
index: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hough_line(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hough_circle(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_project(
in_: *mut VipsImage,
columns: *mut *mut VipsImage,
rows: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_profile(
in_: *mut VipsImage,
columns: *mut *mut VipsImage,
rows: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsExtend {
VIPS_EXTEND_BLACK = 0,
VIPS_EXTEND_COPY = 1,
VIPS_EXTEND_REPEAT = 2,
VIPS_EXTEND_MIRROR = 3,
VIPS_EXTEND_WHITE = 4,
VIPS_EXTEND_BACKGROUND = 5,
VIPS_EXTEND_LAST = 6,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsDirection {
VIPS_DIRECTION_HORIZONTAL = 0,
VIPS_DIRECTION_VERTICAL = 1,
VIPS_DIRECTION_LAST = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsAlign {
VIPS_ALIGN_LOW = 0,
VIPS_ALIGN_CENTRE = 1,
VIPS_ALIGN_HIGH = 2,
VIPS_ALIGN_LAST = 3,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsAngle {
VIPS_ANGLE_D0 = 0,
VIPS_ANGLE_D90 = 1,
VIPS_ANGLE_D180 = 2,
VIPS_ANGLE_D270 = 3,
VIPS_ANGLE_LAST = 4,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsAngle45 {
VIPS_ANGLE45_D0 = 0,
VIPS_ANGLE45_D45 = 1,
VIPS_ANGLE45_D90 = 2,
VIPS_ANGLE45_D135 = 3,
VIPS_ANGLE45_D180 = 4,
VIPS_ANGLE45_D225 = 5,
VIPS_ANGLE45_D270 = 6,
VIPS_ANGLE45_D315 = 7,
VIPS_ANGLE45_LAST = 8,
}
extern "C" {
pub fn vips_copy(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tilecache(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_linecache(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sequential(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cache(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_copy_file(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_embed(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_flip(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_insert(
main: *mut VipsImage,
sub: *mut VipsImage,
out: *mut *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_join(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_arrayjoin(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_extract_area(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_crop(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_extract_band(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
band: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_replicate(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
across: ::std::os::raw::c_int,
down: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_grid(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
tile_height: ::std::os::raw::c_int,
across: ::std::os::raw::c_int,
down: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_wrap(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
angle: VipsAngle,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rot45(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_autorot_get_angle(image: *mut VipsImage) -> VipsAngle;
}
extern "C" {
pub fn vips_autorot_remove_angle(image: *mut VipsImage);
}
extern "C" {
pub fn vips_autorot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_zoom(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
xfac: ::std::os::raw::c_int,
yfac: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_subsample(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
xfac: ::std::os::raw::c_int,
yfac: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
format: VipsBandFormat,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_uchar(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_char(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_ushort(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_short(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_uint(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_int(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_float(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_double(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_complex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_cast_dpcomplex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_scale(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_msb(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_byteswap(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandjoin(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandjoin2(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandjoin_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *mut f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandjoin_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandrank(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandfold(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandunfold(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandbool(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandand(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandor(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandeor(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_bandmean(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_recomb(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
m: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_ifthenelse(
cond: *mut VipsImage,
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_flatten(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_premultiply(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_unpremultiply(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_falsecolour(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gamma(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsCombine {
VIPS_COMBINE_MAX = 0,
VIPS_COMBINE_SUM = 1,
VIPS_COMBINE_LAST = 2,
}
extern "C" {
pub fn vips_conv(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_convf(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_convi(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_conva(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_convsep(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_convasep(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_compass(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gaussblur(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
sigma: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sharpen(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_spcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_fastcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsOperationMorphology {
VIPS_OPERATION_MORPHOLOGY_ERODE = 0,
VIPS_OPERATION_MORPHOLOGY_DILATE = 1,
VIPS_OPERATION_MORPHOLOGY_LAST = 2,
}
extern "C" {
pub fn vips_morph(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
morph: VipsOperationMorphology,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rank(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
index: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_median(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
size: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_countlines(
in_: *mut VipsImage,
nolines: *mut f64,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_labelregions(
in_: *mut VipsImage,
mask: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_merge(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mosaic(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mosaic1(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_match(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut *mut VipsImage,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_globalbalance(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_remosaic(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
old_str: *const ::std::os::raw::c_char,
new_str: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_maplut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
lut: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_percent(
in_: *mut VipsImage,
percent: f64,
threshold: *mut ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_stdif(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_cum(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_norm(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_equal(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_plot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_match(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_local(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_ismonotonic(
in_: *mut VipsImage,
out: *mut gboolean,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_hist_entropy(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_fwfft(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_invfft(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_freqmult(
in_: *mut VipsImage,
mask: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_spectrum(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_phasecor(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsKernel {
VIPS_KERNEL_NEAREST = 0,
VIPS_KERNEL_LINEAR = 1,
VIPS_KERNEL_CUBIC = 2,
VIPS_KERNEL_LANCZOS2 = 3,
VIPS_KERNEL_LANCZOS3 = 4,
VIPS_KERNEL_LAST = 5,
}
extern "C" {
pub fn vips_shrink(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_shrinkh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_shrinkv(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
vshrink: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_reduce(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_reduceh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_reducev(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_similarity(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_affine(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
a: f64,
b: f64,
c: f64,
d: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_resize(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
scale: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mapim(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
index: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_quadratic(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
coeff: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsIntent {
VIPS_INTENT_PERCEPTUAL = 0,
VIPS_INTENT_RELATIVE = 1,
VIPS_INTENT_SATURATION = 2,
VIPS_INTENT_ABSOLUTE = 3,
VIPS_INTENT_LAST = 4,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsPCS {
VIPS_PCS_LAB = 0,
VIPS_PCS_XYZ = 1,
VIPS_PCS_LAST = 2,
}
extern "C" {
pub fn vips_colourspace_issupported(image: *const VipsImage) -> gboolean;
}
extern "C" {
pub fn vips_colourspace(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
space: VipsInterpretation,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LabQ2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_rad2float(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_float2rad(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LabS2LabQ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LabQ2LabS(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LabQ2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Lab2LabQ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LCh2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Lab2LCh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Yxy2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_CMC2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Lab2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_XYZ2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_XYZ2scRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_scRGB2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_scRGB2BW(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sRGB2scRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_scRGB2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_HSV2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sRGB2HSV(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LCh2CMC(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_CMC2LCh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_XYZ2Yxy(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Yxy2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_LabS2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_Lab2LabS(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_icc_present() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_icc_transform(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
output_profile: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_icc_import(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_icc_export(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_icc_ac2rc(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
profile_filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_dE76(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_dE00(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_dECMC(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_Lab2XYZ(L: f32, a: f32, b: f32, X: *mut f32, Y: *mut f32, Z: *mut f32);
}
extern "C" {
pub fn vips_col_XYZ2Lab(X: f32, Y: f32, Z: f32, L: *mut f32, a: *mut f32, b: *mut f32);
}
extern "C" {
pub fn vips_col_ab2h(a: f64, b: f64) -> f64;
}
extern "C" {
pub fn vips_col_ab2Ch(a: f32, b: f32, C: *mut f32, h: *mut f32);
}
extern "C" {
pub fn vips_col_Ch2ab(C: f32, h: f32, a: *mut f32, b: *mut f32);
}
extern "C" {
pub fn vips_col_L2Lcmc(L: f32) -> f32;
}
extern "C" {
pub fn vips_col_C2Ccmc(C: f32) -> f32;
}
extern "C" {
pub fn vips_col_Ch2hcmc(C: f32, h: f32) -> f32;
}
extern "C" {
pub fn vips_col_make_tables_CMC();
}
extern "C" {
pub fn vips_col_Lcmc2L(Lcmc: f32) -> f32;
}
extern "C" {
pub fn vips_col_Ccmc2C(Ccmc: f32) -> f32;
}
extern "C" {
pub fn vips_col_Chcmc2h(C: f32, hcmc: f32) -> f32;
}
extern "C" {
pub fn vips_col_sRGB2scRGB_8(
r: ::std::os::raw::c_int,
g: ::std::os::raw::c_int,
b: ::std::os::raw::c_int,
R: *mut f32,
G: *mut f32,
B: *mut f32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_sRGB2scRGB_16(
r: ::std::os::raw::c_int,
g: ::std::os::raw::c_int,
b: ::std::os::raw::c_int,
R: *mut f32,
G: *mut f32,
B: *mut f32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_scRGB2XYZ(
R: f32,
G: f32,
B: f32,
X: *mut f32,
Y: *mut f32,
Z: *mut f32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_XYZ2scRGB(
X: f32,
Y: f32,
Z: f32,
R: *mut f32,
G: *mut f32,
B: *mut f32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_scRGB2sRGB_8(
R: f32,
G: f32,
B: f32,
r: *mut ::std::os::raw::c_int,
g: *mut ::std::os::raw::c_int,
b: *mut ::std::os::raw::c_int,
og: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_scRGB2sRGB_16(
R: f32,
G: f32,
B: f32,
r: *mut ::std::os::raw::c_int,
g: *mut ::std::os::raw::c_int,
b: *mut ::std::os::raw::c_int,
og: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_scRGB2BW_16(
R: f32,
G: f32,
B: f32,
g: *mut ::std::os::raw::c_int,
og: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_col_scRGB2BW_8(
R: f32,
G: f32,
B: f32,
g: *mut ::std::os::raw::c_int,
og: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_pythagoras(L1: f32, a1: f32, b1: f32, L2: f32, a2: f32, b2: f32) -> f32;
}
extern "C" {
pub fn vips_col_dE00(L1: f32, a1: f32, b1: f32, L2: f32, a2: f32, b2: f32) -> f32;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsCombineMode {
VIPS_COMBINE_MODE_SET = 0,
VIPS_COMBINE_MODE_ADD = 1,
VIPS_COMBINE_MODE_LAST = 2,
}
extern "C" {
pub fn vips_draw_rect(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_rect1(
image: *mut VipsImage,
ink: f64,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_point(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_point1(
image: *mut VipsImage,
ink: f64,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_image(
image: *mut VipsImage,
sub: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_mask(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
mask: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_mask1(
image: *mut VipsImage,
ink: f64,
mask: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_line(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_line1(
image: *mut VipsImage,
ink: f64,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_circle(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
cx: ::std::os::raw::c_int,
cy: ::std::os::raw::c_int,
radius: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_circle1(
image: *mut VipsImage,
ink: f64,
cx: ::std::os::raw::c_int,
cy: ::std::os::raw::c_int,
radius: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_flood(
image: *mut VipsImage,
ink: *mut f64,
n: ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_flood1(
image: *mut VipsImage,
ink: f64,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_draw_smudge(
image: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_black(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_xyz(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_grey(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gaussmat(
out: *mut *mut VipsImage,
sigma: f64,
min_ampl: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_logmat(
out: *mut *mut VipsImage,
sigma: f64,
min_ampl: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_text(
out: *mut *mut VipsImage,
text: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gaussnoise(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_eye(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_sines(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_zone(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_identity(out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_buildlut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_invertlut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_tonelut(out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_ideal(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_ideal_ring(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff: f64,
ringwidth: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_ideal_band(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_butterworth(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_butterworth_ring(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
order: f64,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_butterworth_band(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
order: f64,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
amplitude_cutoff: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_gaussian(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff: f64,
amplitude_cutoff: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_gaussian_ring(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff: f64,
amplitude_cutoff: f64,
ringwidth: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_gaussian_band(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
frequency_cutoff_x: f64,
frequency_cutoff_y: f64,
radius: f64,
amplitude_cutoff: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_mask_fractal(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
fractal_dimension: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_fractsurf(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
fractal_dimension: f64,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_worley(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_perlin(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_video_v4l1(
im: *mut VipsImage,
device: *const ::std::os::raw::c_char,
channel: ::std::os::raw::c_int,
brightness: ::std::os::raw::c_int,
colour: ::std::os::raw::c_int,
contrast: ::std::os::raw::c_int,
hue: ::std::os::raw::c_int,
ngrabs: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_video_test(
im: *mut VipsImage,
brightness: ::std::os::raw::c_int,
error: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_gmic(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
padding: ::std::os::raw::c_int,
x_scale: f64,
y_scale: f64,
command: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut vips__image_sizeof_bandformat: [guint64; 0usize];
}
extern "C" {
pub fn im_cp_desc(out: *mut VipsImage, in_: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cp_descv(im: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_demand_hint(im: *mut VipsImage, hint: VipsDemandStyle, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_image_new_mode(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut VipsImage;
}
extern "C" {
pub fn im_init_world(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_open(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut VipsImage;
}
extern "C" {
pub fn im_open_local(
parent: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut VipsImage;
}
extern "C" {
pub fn im_open_local_array(
parent: *mut VipsImage,
images: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_add_callback(
im: *mut VipsImage,
callback: *const ::std::os::raw::c_char,
fn_: VipsCallbackFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_add_callback1(
im: *mut VipsImage,
callback: *const ::std::os::raw::c_char,
fn_: VipsCallbackFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
pub type im_construct_fn = ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
pub fn im_local(
im: *mut VipsImage,
cons: im_construct_fn,
dest: VipsCallbackFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn im_local_array(
im: *mut VipsImage,
out: *mut *mut ::std::os::raw::c_void,
n: ::std::os::raw::c_int,
cons: im_construct_fn,
dest: VipsCallbackFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_close(im: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_init(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
extern "C" {
pub fn im_Type2char(type_: VipsInterpretation) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_BandFmt2char(fmt: VipsBandFormat) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_Coding2char(coding: VipsCoding) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_Compression2char(n: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_dtype2char(n: VipsImageType) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_dhint2char(style: VipsDemandStyle) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_char2Type(str: *const ::std::os::raw::c_char) -> VipsInterpretation;
}
extern "C" {
pub fn im_char2BandFmt(str: *const ::std::os::raw::c_char) -> VipsBandFormat;
}
extern "C" {
pub fn im_char2Coding(str: *const ::std::os::raw::c_char) -> VipsCoding;
}
extern "C" {
pub fn im_char2dtype(str: *const ::std::os::raw::c_char) -> VipsImageType;
}
extern "C" {
pub fn im_char2dhint(str: *const ::std::os::raw::c_char) -> VipsDemandStyle;
}
pub type im_generate_fn = ::std::option::Option<
unsafe extern "C" fn(
out: *mut VipsRegion,
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn im_generate(
im: *mut VipsImage,
start: VipsStartFn,
generate: im_generate_fn,
stop: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cache(
in_: *mut VipsImage,
out: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
max: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub type im_wrapone_fn = ::std::option::Option<
unsafe extern "C" fn(
in_: *mut ::std::os::raw::c_void,
out: *mut ::std::os::raw::c_void,
width: ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn im_wrapone(
in_: *mut VipsImage,
out: *mut VipsImage,
fn_: im_wrapone_fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
pub type im_wraptwo_fn = ::std::option::Option<
unsafe extern "C" fn(
in1: *mut ::std::os::raw::c_void,
in2: *mut ::std::os::raw::c_void,
out: *mut ::std::os::raw::c_void,
width: ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn im_wraptwo(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
fn_: im_wraptwo_fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
pub type im_wrapmany_fn = ::std::option::Option<
unsafe extern "C" fn(
in_: *mut *mut ::std::os::raw::c_void,
out: *mut ::std::os::raw::c_void,
width: ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn im_wrapmany(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
fn_: im_wrapmany_fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ref_string_get_length(value: *const GValue) -> usize;
}
extern "C" {
pub fn im_add(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_subtract(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_multiply(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_divide(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_min(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_minpos(
in_: *mut VipsImage,
xpos: *mut ::std::os::raw::c_int,
ypos: *mut ::std::os::raw::c_int,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_max(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maxpos(
in_: *mut VipsImage,
xpos: *mut ::std::os::raw::c_int,
ypos: *mut ::std::os::raw::c_int,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_avg(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_deviate(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_invert(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lintra(
a: f64,
in_: *mut VipsImage,
b: f64,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lintra_vec(
n: ::std::os::raw::c_int,
a: *mut f64,
in_: *mut VipsImage,
b: *mut f64,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_abs(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_sign(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_stats(in_: *mut VipsImage) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_measure_area(
im: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
h: ::std::os::raw::c_int,
v: ::std::os::raw::c_int,
sel: *mut ::std::os::raw::c_int,
nsel: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_sintra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_costra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tantra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_asintra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_acostra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_atantra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_logtra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_log10tra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_exptra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_exp10tra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_floor(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rint(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ceil(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_equal(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_notequal(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_less(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lesseq(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_more(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_moreeq(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_andimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_orimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eorimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_andimage_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_orimage_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eorimage_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_andimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_orimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eorimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_shiftleft_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_shiftleft(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_shiftright_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_shiftright(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_remainder(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_remainder_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_remainderconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_powtra(in_: *mut VipsImage, out: *mut VipsImage, e: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_powtra_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
e: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_expntra(in_: *mut VipsImage, out: *mut VipsImage, e: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_expntra_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
e: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_equal_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_notequal_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_less_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lesseq_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_more_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_moreeq_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_equalconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_notequalconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lessconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lesseqconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_moreconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_moreeqconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maxpos_vec(
im: *mut VipsImage,
xpos: *mut ::std::os::raw::c_int,
ypos: *mut ::std::os::raw::c_int,
maxima: *mut f64,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_minpos_vec(
im: *mut VipsImage,
xpos: *mut ::std::os::raw::c_int,
ypos: *mut ::std::os::raw::c_int,
minima: *mut f64,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maxpos_avg(
im: *mut VipsImage,
xpos: *mut f64,
ypos: *mut f64,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_linreg(
ins: *mut *mut VipsImage,
out: *mut VipsImage,
xs: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cross_phase(
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_point(
im: *mut VipsImage,
interpolate: *mut VipsInterpolate,
x: f64,
y: f64,
band: ::std::os::raw::c_int,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_point_bilinear(
im: *mut VipsImage,
x: f64,
y: f64,
band: ::std::os::raw::c_int,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_set(
in_: *mut VipsImage,
out: *mut VipsImage,
interpretation: VipsInterpretation,
xres: f32,
yres: f32,
xoffset: ::std::os::raw::c_int,
yoffset: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_set_meta(
in_: *mut VipsImage,
out: *mut VipsImage,
field: *const ::std::os::raw::c_char,
value: *mut GValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_morph(
in_: *mut VipsImage,
out: *mut VipsImage,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
coding: VipsCoding,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_swap(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_file(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_copy_native(
in_: *mut VipsImage,
out: *mut VipsImage,
is_msb_first: gboolean,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_embed(
in_: *mut VipsImage,
out: *mut VipsImage,
type_: ::std::os::raw::c_int,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fliphor(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flipver(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_insert(
main: *mut VipsImage,
sub: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_insert_noexpand(
main: *mut VipsImage,
sub: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lrjoin(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tbjoin(
top: *mut VipsImage,
bottom: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_extract_area(
in_: *mut VipsImage,
out: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_extract_band(
in_: *mut VipsImage,
out: *mut VipsImage,
band: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_extract_bands(
in_: *mut VipsImage,
out: *mut VipsImage,
band: ::std::os::raw::c_int,
nbands: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_extract_areabands(
in_: *mut VipsImage,
out: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
band: ::std::os::raw::c_int,
nbands: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_replicate(
in_: *mut VipsImage,
out: *mut VipsImage,
across: ::std::os::raw::c_int,
down: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_wrap(
in_: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rotquad(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2fmt(
in_: *mut VipsImage,
out: *mut VipsImage,
fmt: VipsBandFormat,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_bandjoin(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gbandjoin(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rank_image(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
index: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maxvalue(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_grid(
in_: *mut VipsImage,
out: *mut VipsImage,
tile_height: ::std::os::raw::c_int,
across: ::std::os::raw::c_int,
down: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_scale(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_scaleps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_msb(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_msb_band(
in_: *mut VipsImage,
out: *mut VipsImage,
band: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_zoom(
in_: *mut VipsImage,
out: *mut VipsImage,
xfac: ::std::os::raw::c_int,
yfac: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_subsample(
in_: *mut VipsImage,
out: *mut VipsImage,
xshrink: ::std::os::raw::c_int,
yshrink: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gaussnoise(
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
mean: f64,
sigma: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_text(
out: *mut VipsImage,
text: *const ::std::os::raw::c_char,
font: *const ::std::os::raw::c_char,
width: ::std::os::raw::c_int,
alignment: ::std::os::raw::c_int,
dpi: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_black(
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_make_xy(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_zone(out: *mut VipsImage, size: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fzone(out: *mut VipsImage, size: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_feye(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
factor: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eye(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
factor: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_grey(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fgrey(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_sines(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
horfreq: f64,
verfreq: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_buildlut(input: *mut DOUBLEMASK, output: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_invertlut(
input: *mut DOUBLEMASK,
output: *mut VipsImage,
lut_size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_identity(lut: *mut VipsImage, bands: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_identity_ushort(
lut: *mut VipsImage,
bands: ::std::os::raw::c_int,
sz: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tone_build_range(
out: *mut VipsImage,
in_max: ::std::os::raw::c_int,
out_max: ::std::os::raw::c_int,
Lb: f64,
Lw: f64,
Ps: f64,
Pm: f64,
Ph: f64,
S: f64,
M: f64,
H: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tone_build(
out: *mut VipsImage,
Lb: f64,
Lw: f64,
Ps: f64,
Pm: f64,
Ph: f64,
S: f64,
M: f64,
H: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_system(
im: *mut VipsImage,
cmd: *const ::std::os::raw::c_char,
out: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_system_image(
im: *mut VipsImage,
in_format: *const ::std::os::raw::c_char,
out_format: *const ::std::os::raw::c_char,
cmd_format: *const ::std::os::raw::c_char,
log: *mut *mut ::std::os::raw::c_char,
) -> *mut VipsImage;
}
extern "C" {
pub fn im_c2amph(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_c2rect(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_c2imag(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_c2real(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ri2c(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rot90(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rot180(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rot270(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ifthenelse(
c: *mut VipsImage,
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_blend(
c: *mut VipsImage,
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_vips2mask(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_vips2imask(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
extern "C" {
pub fn im_mask2vips(in_: *mut DOUBLEMASK, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_imask2vips(in_: *mut INTMASK, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_bandmean(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_recomb(
in_: *mut VipsImage,
out: *mut VipsImage,
recomb: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_argb2rgba(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_falsecolour(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gammacorrect(
in_: *mut VipsImage,
out: *mut VipsImage,
exponent: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tile_cache_random(
in_: *mut VipsImage,
out: *mut VipsImage,
tile_width: ::std::os::raw::c_int,
tile_height: ::std::os::raw::c_int,
max_tiles: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_shrink(
in_: *mut VipsImage,
out: *mut VipsImage,
xshrink: f64,
yshrink: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_affinei(
in_: *mut VipsImage,
out: *mut VipsImage,
interpolate: *mut VipsInterpolate,
a: f64,
b: f64,
c: f64,
d: f64,
dx: f64,
dy: f64,
ox: ::std::os::raw::c_int,
oy: ::std::os::raw::c_int,
ow: ::std::os::raw::c_int,
oh: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_affinei_all(
in_: *mut VipsImage,
out: *mut VipsImage,
interpolate: *mut VipsInterpolate,
a: f64,
b: f64,
c: f64,
d: f64,
dx: f64,
dy: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rightshift_size(
in_: *mut VipsImage,
out: *mut VipsImage,
xshift: ::std::os::raw::c_int,
yshift: ::std::os::raw::c_int,
band_fmt: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2XYZ_temp(
in_: *mut VipsImage,
out: *mut VipsImage,
X0: f64,
Y0: f64,
Z0: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_XYZ2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_XYZ2Lab_temp(
in_: *mut VipsImage,
out: *mut VipsImage,
X0: f64,
Y0: f64,
Z0: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2LCh(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LCh2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LCh2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_UCS2LCh(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_XYZ2Yxy(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Yxy2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_float2rad(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rad2float(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2LabQ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabQ2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2LabS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabS2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabQ2LabS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabS2LabQ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabQ2sRGB(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_XYZ2sRGB(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_sRGB2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_col_display {
_unused: [u8; 0],
}
extern "C" {
pub fn im_Lab2disp(
in_: *mut VipsImage,
out: *mut VipsImage,
disp: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_disp2Lab(
in_: *mut VipsImage,
out: *mut VipsImage,
disp: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dE_fromdisp(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: *mut VipsImage,
arg4: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dECMC_fromdisp(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: *mut VipsImage,
arg4: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_transform(
in_: *mut VipsImage,
out: *mut VipsImage,
input_profile_filename: *const ::std::os::raw::c_char,
output_profile_filename: *const ::std::os::raw::c_char,
intent: VipsIntent,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_import(
in_: *mut VipsImage,
out: *mut VipsImage,
input_profile_filename: *const ::std::os::raw::c_char,
intent: VipsIntent,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_import_embedded(
in_: *mut VipsImage,
out: *mut VipsImage,
intent: VipsIntent,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_export_depth(
in_: *mut VipsImage,
out: *mut VipsImage,
depth: ::std::os::raw::c_int,
output_profile_filename: *const ::std::os::raw::c_char,
intent: VipsIntent,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_ac2rc(
in_: *mut VipsImage,
out: *mut VipsImage,
profile_filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_LabQ2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_UCS2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_UCS2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_Lab2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_XYZ2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dE_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dECMC_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dE_fromXYZ(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dE00_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lab_morph(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
L_offset: f64,
L_scale: f64,
a_scale: f64,
b_scale: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_quadratic(
in_: *mut VipsImage,
out: *mut VipsImage,
coeff: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maplut(
in_: *mut VipsImage,
out: *mut VipsImage,
lut: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_hist(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histgr(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histcum(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histnorm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histeq(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_heq(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histnD(
in_: *mut VipsImage,
out: *mut VipsImage,
bins: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_hist_indexed(
index: *mut VipsImage,
value: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histplot(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_project(
in_: *mut VipsImage,
hout: *mut VipsImage,
vout: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_profile(
in_: *mut VipsImage,
out: *mut VipsImage,
dir: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_hsp(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_histspec(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lhisteq(
in_: *mut VipsImage,
out: *mut VipsImage,
xwin: ::std::os::raw::c_int,
ywin: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_stdif(
in_: *mut VipsImage,
out: *mut VipsImage,
a: f64,
m0: f64,
b: f64,
s0: f64,
xwin: ::std::os::raw::c_int,
ywin: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_mpercent(
in_: *mut VipsImage,
percent: f64,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_mpercent_hist(
hist: *mut VipsImage,
percent: f64,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_ismonotonic(
lut: *mut VipsImage,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tone_analyse(
in_: *mut VipsImage,
out: *mut VipsImage,
Ps: f64,
Pm: f64,
Ph: f64,
S: f64,
M: f64,
H: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tone_map(
in_: *mut VipsImage,
out: *mut VipsImage,
lut: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dilate(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_erode(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_aconv(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
n_layers: ::std::os::raw::c_int,
cluster: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_conv(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_conv_f(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_aconvsep(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
n_layers: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsep(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsep_f(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_compass(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gradient(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lindetect(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_addgnoise(
in_: *mut VipsImage,
out: *mut VipsImage,
sigma: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_contrast_surface_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
half_win_size: ::std::os::raw::c_int,
spacing: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_contrast_surface(
in_: *mut VipsImage,
out: *mut VipsImage,
half_win_size: ::std::os::raw::c_int,
spacing: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_grad_x(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_grad_y(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fastcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_spcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gradcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_sharpen(
in_: *mut VipsImage,
out: *mut VipsImage,
mask_size: ::std::os::raw::c_int,
x1: f64,
y2: f64,
y3: f64,
m1: f64,
m2: f64,
) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ImMaskType {
IM_MASK_IDEAL_HIGHPASS = 0,
IM_MASK_IDEAL_LOWPASS = 1,
IM_MASK_BUTTERWORTH_HIGHPASS = 2,
IM_MASK_BUTTERWORTH_LOWPASS = 3,
IM_MASK_GAUSS_HIGHPASS = 4,
IM_MASK_GAUSS_LOWPASS = 5,
IM_MASK_IDEAL_RINGPASS = 6,
IM_MASK_IDEAL_RINGREJECT = 7,
IM_MASK_BUTTERWORTH_RINGPASS = 8,
IM_MASK_BUTTERWORTH_RINGREJECT = 9,
IM_MASK_GAUSS_RINGPASS = 10,
IM_MASK_GAUSS_RINGREJECT = 11,
IM_MASK_IDEAL_BANDPASS = 12,
IM_MASK_IDEAL_BANDREJECT = 13,
IM_MASK_BUTTERWORTH_BANDPASS = 14,
IM_MASK_BUTTERWORTH_BANDREJECT = 15,
IM_MASK_GAUSS_BANDPASS = 16,
IM_MASK_GAUSS_BANDREJECT = 17,
IM_MASK_FRACTAL_FLT = 18,
}
extern "C" {
pub fn im_flt_image_freq(
in_: *mut VipsImage,
out: *mut VipsImage,
flag: ImMaskType,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_create_fmask(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
flag: ImMaskType,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fwfft(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_invfft(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_invfftr(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_freqflt(
in_: *mut VipsImage,
mask: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_disp_ps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fractsurf(
out: *mut VipsImage,
size: ::std::os::raw::c_int,
frd: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_phasecor_fft(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cntlines(
im: *mut VipsImage,
nolines: *mut f64,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_label_regions(
test: *mut VipsImage,
mask: *mut VipsImage,
segments: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rank(
in_: *mut VipsImage,
out: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
index: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_zerox(
in_: *mut VipsImage,
out: *mut VipsImage,
sign: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_benchmarkn(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_benchmark2(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_circle(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
radius: ::std::os::raw::c_int,
fill: gboolean,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_mask(
image: *mut VipsImage,
mask_im: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_image(
image: *mut VipsImage,
sub: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_rect(
image: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
fill: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
pub type VipsPlotFn = ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn im_draw_line_user(
image: *mut VipsImage,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
plot: VipsPlotFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
c: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_line(
image: *mut VipsImage,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lineset(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
ink: *mut VipsImage,
n: ::std::os::raw::c_int,
x1v: *mut ::std::os::raw::c_int,
y1v: *mut ::std::os::raw::c_int,
x2v: *mut ::std::os::raw::c_int,
y2v: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_insertset(
main: *mut VipsImage,
sub: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
x: *mut ::std::os::raw::c_int,
y: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_flood(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_flood_blob(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_flood_other(
image: *mut VipsImage,
test: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
serial: ::std::os::raw::c_int,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_point(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_read_point(
image: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_draw_smudge(
image: *mut VipsImage,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_filename_split(
path: *const ::std::os::raw::c_char,
name: *mut ::std::os::raw::c_char,
mode: *mut ::std::os::raw::c_char,
);
}
extern "C" {
pub fn im_skip_dir(filename: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn im_filename_suffix(
path: *const ::std::os::raw::c_char,
suffix: *mut ::std::os::raw::c_char,
);
}
extern "C" {
pub fn im_filename_suffix_match(
path: *const ::std::os::raw::c_char,
suffixes: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_getnextoption(in_: *mut *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn im_getsuboption(buf: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn im_lrmerge(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tbmerge(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lrmosaic(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
balancetype: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tbmosaic(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
balancetype: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_match_linear(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_match_linear_search(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_global_balance(
in_: *mut VipsImage,
out: *mut VipsImage,
gamma: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_global_balancef(
in_: *mut VipsImage,
out: *mut VipsImage,
gamma: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_remosaic(
in_: *mut VipsImage,
out: *mut VipsImage,
old_str: *const ::std::os::raw::c_char,
new_str: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lrmerge1(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tbmerge1(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_lrmosaic1(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
balancetype: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_tbmosaic1(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
xr1: ::std::os::raw::c_int,
yr1: ::std::os::raw::c_int,
xs1: ::std::os::raw::c_int,
ys1: ::std::os::raw::c_int,
xr2: ::std::os::raw::c_int,
yr2: ::std::os::raw::c_int,
xs2: ::std::os::raw::c_int,
ys2: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
balancetype: ::std::os::raw::c_int,
mwidth: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_correl(
ref_: *mut VipsImage,
sec: *mut VipsImage,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
hwindowsize: ::std::os::raw::c_int,
hsearchsize: ::std::os::raw::c_int,
correlation: *mut f64,
x: *mut ::std::os::raw::c_int,
y: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_align_bands(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_maxpos_subpel(in_: *mut VipsImage, x: *mut f64, y: *mut f64)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_foreign_load(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_foreign_save(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__deprecated_open_read(
filename: *const ::std::os::raw::c_char,
sequential: gboolean,
) -> *mut VipsImage;
}
extern "C" {
pub fn vips__deprecated_open_write(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
extern "C" {
pub fn im__format_init();
}
extern "C" {
pub fn im__tiff_register();
}
extern "C" {
pub fn im__jpeg_register();
}
extern "C" {
pub fn im__png_register();
}
extern "C" {
pub fn im__csv_register();
}
extern "C" {
pub fn im__ppm_register();
}
extern "C" {
pub fn im__analyze_register();
}
extern "C" {
pub fn im__exr_register();
}
extern "C" {
pub fn im__magick_register();
}
extern "C" {
pub fn im__bandup(
domain: *const ::std::os::raw::c_char,
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__bandalike_vec(
domain: *const ::std::os::raw::c_char,
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__bandalike(
domain: *const ::std::os::raw::c_char,
in1: *mut VipsImage,
in2: *mut VipsImage,
out1: *mut VipsImage,
out2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__formatalike_vec(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__formatalike(
in1: *mut VipsImage,
in2: *mut VipsImage,
out1: *mut VipsImage,
out2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
pub type im__wrapscan_fn = ::std::option::Option<
unsafe extern "C" fn(
p: *mut ::std::os::raw::c_void,
n: ::std::os::raw::c_int,
seq: *mut ::std::os::raw::c_void,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn im__wrapscan(
in_: *mut VipsImage,
start: VipsStartFn,
scan: im__wrapscan_fn,
stop: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__colour_difference(
domain: *const ::std::os::raw::c_char,
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
buffer_fn: im_wrapmany_fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__colour_unary(
domain: *const ::std::os::raw::c_char,
in_: *mut VipsImage,
out: *mut VipsImage,
interpretation: VipsInterpretation,
buffer_fn: im_wrapone_fn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__insert_base(
domain: *const ::std::os::raw::c_char,
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> *mut *mut VipsImage;
}
extern "C" {
pub fn im__find_lroverlap(
ref_in: *mut VipsImage,
sec_in: *mut VipsImage,
out: *mut VipsImage,
bandno_in: ::std::os::raw::c_int,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
halfcorrelation: ::std::os::raw::c_int,
halfarea: ::std::os::raw::c_int,
dx0: *mut ::std::os::raw::c_int,
dy0: *mut ::std::os::raw::c_int,
scale1: *mut f64,
angle1: *mut f64,
dx1: *mut f64,
dy1: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__find_tboverlap(
ref_in: *mut VipsImage,
sec_in: *mut VipsImage,
out: *mut VipsImage,
bandno_in: ::std::os::raw::c_int,
xref: ::std::os::raw::c_int,
yref: ::std::os::raw::c_int,
xsec: ::std::os::raw::c_int,
ysec: ::std::os::raw::c_int,
halfcorrelation: ::std::os::raw::c_int,
halfarea: ::std::os::raw::c_int,
dx0: *mut ::std::os::raw::c_int,
dy0: *mut ::std::os::raw::c_int,
scale1: *mut f64,
angle1: *mut f64,
dx1: *mut f64,
dy1: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__find_best_contrast(
image: *mut VipsImage,
xpos: ::std::os::raw::c_int,
ypos: ::std::os::raw::c_int,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
xarray: *mut ::std::os::raw::c_int,
yarray: *mut ::std::os::raw::c_int,
cont: *mut ::std::os::raw::c_int,
nbest: ::std::os::raw::c_int,
hcorsize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__balance(
ref_: *mut VipsImage,
sec: *mut VipsImage,
out: *mut VipsImage,
ref_out: *mut *mut VipsImage,
sec_out: *mut *mut VipsImage,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
balancetype: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn imb_LCh2Lab(arg1: *mut f32, arg2: *mut f32, arg3: ::std::os::raw::c_int);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_colour_temperature {
pub X0: f64,
pub Y0: f64,
pub Z0: f64,
}
#[test]
fn bindgen_test_layout_im_colour_temperature() {
assert_eq!(
::std::mem::size_of::<im_colour_temperature>(),
24usize,
concat!("Size of: ", stringify!(im_colour_temperature))
);
assert_eq!(
::std::mem::align_of::<im_colour_temperature>(),
8usize,
concat!("Alignment of ", stringify!(im_colour_temperature))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_colour_temperature>())).X0 as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_colour_temperature), "::", stringify!(X0))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_colour_temperature>())).Y0 as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_colour_temperature), "::", stringify!(Y0))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_colour_temperature>())).Z0 as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im_colour_temperature), "::", stringify!(Z0))
);
}
extern "C" {
pub fn imb_XYZ2Lab(
arg1: *mut f32,
arg2: *mut f32,
arg3: ::std::os::raw::c_int,
arg4: *mut im_colour_temperature,
);
}
extern "C" {
pub fn imb_LabS2Lab(
arg1: *mut ::std::os::raw::c_short,
arg2: *mut f32,
arg3: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn imb_Lab2LabS(
arg1: *mut f32,
arg2: *mut ::std::os::raw::c_short,
n: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn vips__Lab2LabQ_vec(out: *mut VipsPel, in_: *mut f32, width: ::std::os::raw::c_int);
}
extern "C" {
pub fn vips__LabQ2Lab_vec(out: *mut f32, in_: *mut VipsPel, width: ::std::os::raw::c_int);
}
extern "C" {
pub fn im_copy_dmask_matrix(mask: *mut DOUBLEMASK, matrix: *mut *mut f64);
}
extern "C" {
pub fn im_copy_matrix_dmask(matrix: *mut *mut f64, mask: *mut DOUBLEMASK);
}
extern "C" {
pub fn im_ivector(
nl: ::std::os::raw::c_int,
nh: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fvector(nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int) -> *mut f32;
}
extern "C" {
pub fn im_dvector(nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int) -> *mut f64;
}
extern "C" {
pub fn im_free_ivector(
v: *mut ::std::os::raw::c_int,
nl: ::std::os::raw::c_int,
nh: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn im_free_fvector(v: *mut f32, nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int);
}
extern "C" {
pub fn im_free_dvector(v: *mut f64, nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int);
}
extern "C" {
pub fn im_imat_alloc(
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
) -> *mut *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn im_free_imat(
m: *mut *mut ::std::os::raw::c_int,
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn im_fmat_alloc(
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
) -> *mut *mut f32;
}
extern "C" {
pub fn im_free_fmat(
m: *mut *mut f32,
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn im_dmat_alloc(
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
) -> *mut *mut f64;
}
extern "C" {
pub fn im_free_dmat(
m: *mut *mut f64,
nrl: ::std::os::raw::c_int,
nrh: ::std::os::raw::c_int,
ncl: ::std::os::raw::c_int,
nch: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn im_invmat(arg1: *mut *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_offsets45(size: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn im_conv_f_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsep_f_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_greyc_mask(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
iterations: ::std::os::raw::c_int,
amplitude: f32,
sharpness: f32,
anisotropy: f32,
alpha: f32,
sigma: f32,
dl: f32,
da: f32,
gauss_prec: f32,
interpolation: ::std::os::raw::c_int,
fast_approx: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_imask(
domain: *const ::std::os::raw::c_char,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_dmask(
domain: *const ::std::os::raw::c_char,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_check_dmask_1d(
domain: *const ::std::os::raw::c_char,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_get_option_group() -> *mut GOptionGroup;
}
pub type im_arg_type = *mut ::std::os::raw::c_char;
pub type im_object = *mut ::std::os::raw::c_void;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum im_type_flags {
IM_TYPE_NONE = 0,
IM_TYPE_OUTPUT = 1,
IM_TYPE_ARG = 2,
IM_TYPE_RW = 4,
}
pub type im_init_obj_fn = ::std::option::Option<
unsafe extern "C" fn(
obj: *mut im_object,
str: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>;
pub type im_dest_obj_fn =
::std::option::Option<unsafe extern "C" fn(obj: im_object) -> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_type_desc {
pub type_: im_arg_type,
pub size: ::std::os::raw::c_int,
pub flags: im_type_flags,
pub init: im_init_obj_fn,
pub dest: im_dest_obj_fn,
}
#[test]
fn bindgen_test_layout_im_type_desc() {
assert_eq!(
::std::mem::size_of::<im_type_desc>(),
32usize,
concat!("Size of: ", stringify!(im_type_desc))
);
assert_eq!(
::std::mem::align_of::<im_type_desc>(),
8usize,
concat!("Alignment of ", stringify!(im_type_desc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_type_desc>())).type_ as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_type_desc), "::", stringify!(type_))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_type_desc>())).size as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_type_desc), "::", stringify!(size))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_type_desc>())).flags as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(im_type_desc), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_type_desc>())).init as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im_type_desc), "::", stringify!(init))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_type_desc>())).dest as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(im_type_desc), "::", stringify!(dest))
);
}
pub type im_print_obj_fn =
::std::option::Option<unsafe extern "C" fn(obj: im_object) -> ::std::os::raw::c_int>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_arg_desc {
pub name: *mut ::std::os::raw::c_char,
pub desc: *mut im_type_desc,
pub print: im_print_obj_fn,
}
#[test]
fn bindgen_test_layout_im_arg_desc() {
assert_eq!(
::std::mem::size_of::<im_arg_desc>(),
24usize,
concat!("Size of: ", stringify!(im_arg_desc))
);
assert_eq!(
::std::mem::align_of::<im_arg_desc>(),
8usize,
concat!("Alignment of ", stringify!(im_arg_desc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_arg_desc>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_arg_desc), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_arg_desc>())).desc as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_arg_desc), "::", stringify!(desc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_arg_desc>())).print as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im_arg_desc), "::", stringify!(print))
);
}
pub type im_dispatch_fn =
::std::option::Option<unsafe extern "C" fn(argv: *mut im_object) -> ::std::os::raw::c_int>;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum im_fn_flags {
IM_FN_NONE = 0,
IM_FN_PIO = 1,
IM_FN_TRANSFORM = 2,
IM_FN_PTOP = 4,
IM_FN_NOCACHE = 8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_function {
pub name: *mut ::std::os::raw::c_char,
pub desc: *mut ::std::os::raw::c_char,
pub flags: im_fn_flags,
pub disp: im_dispatch_fn,
pub argc: ::std::os::raw::c_int,
pub argv: *mut im_arg_desc,
}
#[test]
fn bindgen_test_layout_im_function() {
assert_eq!(
::std::mem::size_of::<im_function>(),
48usize,
concat!("Size of: ", stringify!(im_function))
);
assert_eq!(
::std::mem::align_of::<im_function>(),
8usize,
concat!("Alignment of ", stringify!(im_function))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).desc as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(desc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).flags as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(flags))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).disp as *const _ as usize },
24usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(disp))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).argc as *const _ as usize },
32usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(argc))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_function>())).argv as *const _ as usize },
40usize,
concat!("Offset of field: ", stringify!(im_function), "::", stringify!(argv))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_package {
pub name: *mut ::std::os::raw::c_char,
pub nfuncs: ::std::os::raw::c_int,
pub table: *mut *mut im_function,
}
#[test]
fn bindgen_test_layout_im_package() {
assert_eq!(
::std::mem::size_of::<im_package>(),
24usize,
concat!("Size of: ", stringify!(im_package))
);
assert_eq!(
::std::mem::align_of::<im_package>(),
8usize,
concat!("Alignment of ", stringify!(im_package))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_package>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_package), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_package>())).nfuncs as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_package), "::", stringify!(nfuncs))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_package>())).table as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(im_package), "::", stringify!(table))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_mask_object {
pub name: *mut ::std::os::raw::c_char,
pub mask: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_im_mask_object() {
assert_eq!(
::std::mem::size_of::<im_mask_object>(),
16usize,
concat!("Size of: ", stringify!(im_mask_object))
);
assert_eq!(
::std::mem::align_of::<im_mask_object>(),
8usize,
concat!("Alignment of ", stringify!(im_mask_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_mask_object>())).name as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_mask_object), "::", stringify!(name))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_mask_object>())).mask as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_mask_object), "::", stringify!(mask))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_doublevec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut f64,
}
#[test]
fn bindgen_test_layout_im_doublevec_object() {
assert_eq!(
::std::mem::size_of::<im_doublevec_object>(),
16usize,
concat!("Size of: ", stringify!(im_doublevec_object))
);
assert_eq!(
::std::mem::align_of::<im_doublevec_object>(),
8usize,
concat!("Alignment of ", stringify!(im_doublevec_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_doublevec_object>())).n as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_doublevec_object), "::", stringify!(n))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_doublevec_object>())).vec as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_doublevec_object), "::", stringify!(vec))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_intvec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_im_intvec_object() {
assert_eq!(
::std::mem::size_of::<im_intvec_object>(),
16usize,
concat!("Size of: ", stringify!(im_intvec_object))
);
assert_eq!(
::std::mem::align_of::<im_intvec_object>(),
8usize,
concat!("Alignment of ", stringify!(im_intvec_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_intvec_object>())).n as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_intvec_object), "::", stringify!(n))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_intvec_object>())).vec as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_intvec_object), "::", stringify!(vec))
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct im_imagevec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut *mut VipsImage,
}
#[test]
fn bindgen_test_layout_im_imagevec_object() {
assert_eq!(
::std::mem::size_of::<im_imagevec_object>(),
16usize,
concat!("Size of: ", stringify!(im_imagevec_object))
);
assert_eq!(
::std::mem::align_of::<im_imagevec_object>(),
8usize,
concat!("Alignment of ", stringify!(im_imagevec_object))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_imagevec_object>())).n as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(im_imagevec_object), "::", stringify!(n))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<im_imagevec_object>())).vec as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(im_imagevec_object), "::", stringify!(vec))
);
}
extern "C" {
pub static mut im__input_int: im_type_desc;
}
extern "C" {
pub static mut im__input_intvec: im_type_desc;
}
extern "C" {
pub static mut im__input_imask: im_type_desc;
}
extern "C" {
pub static mut im__output_int: im_type_desc;
}
extern "C" {
pub static mut im__output_intvec: im_type_desc;
}
extern "C" {
pub static mut im__output_imask: im_type_desc;
}
extern "C" {
pub static mut im__input_double: im_type_desc;
}
extern "C" {
pub static mut im__input_doublevec: im_type_desc;
}
extern "C" {
pub static mut im__input_dmask: im_type_desc;
}
extern "C" {
pub static mut im__output_double: im_type_desc;
}
extern "C" {
pub static mut im__output_doublevec: im_type_desc;
}
extern "C" {
pub static mut im__output_dmask: im_type_desc;
}
extern "C" {
pub static mut im__output_dmask_screen: im_type_desc;
}
extern "C" {
pub static mut im__output_complex: im_type_desc;
}
extern "C" {
pub static mut im__input_string: im_type_desc;
}
extern "C" {
pub static mut im__output_string: im_type_desc;
}
extern "C" {
pub static mut im__input_imagevec: im_type_desc;
}
extern "C" {
pub static mut im__input_image: im_type_desc;
}
extern "C" {
pub static mut im__output_image: im_type_desc;
}
extern "C" {
pub static mut im__rw_image: im_type_desc;
}
extern "C" {
pub static mut im__input_display: im_type_desc;
}
extern "C" {
pub static mut im__output_display: im_type_desc;
}
extern "C" {
pub static mut im__input_gvalue: im_type_desc;
}
extern "C" {
pub static mut im__output_gvalue: im_type_desc;
}
extern "C" {
pub static mut im__input_interpolate: im_type_desc;
}
extern "C" {
pub fn im__iprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__ivprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__dprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__dvprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__dmsprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__cprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__sprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__displayprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im__gprint(obj: im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_load_plugin(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
extern "C" {
pub fn im_load_plugins(fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_close_plugins() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_map_packages(
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn im_find_function(name: *const ::std::os::raw::c_char) -> *mut im_function;
}
extern "C" {
pub fn im_find_package(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
extern "C" {
pub fn im_package_of_function(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
extern "C" {
pub fn im_free_vargv(fn_: *mut im_function, vargv: *mut im_object) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_allocate_vargv(fn_: *mut im_function, vargv: *mut im_object)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_run_command(
name: *mut ::std::os::raw::c_char,
argc: ::std::os::raw::c_int,
argv: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips__input_interpolate_init(
obj: *mut im_object,
str: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
impl VipsBBits {
pub const IM_BBITS_FLOAT: VipsBBits = VipsBBits::IM_BBITS_INT;
}
impl VipsBBits {
pub const IM_BBITS_DOUBLE: VipsBBits = VipsBBits::IM_BBITS_COMPLEX;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum VipsBBits {
IM_BBITS_BYTE = 8,
IM_BBITS_SHORT = 16,
IM_BBITS_INT = 32,
IM_BBITS_COMPLEX = 64,
IM_BBITS_DPCOMPLEX = 128,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IMAGE_BOX {
pub xstart: ::std::os::raw::c_int,
pub ystart: ::std::os::raw::c_int,
pub xsize: ::std::os::raw::c_int,
pub ysize: ::std::os::raw::c_int,
pub chsel: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_IMAGE_BOX() {
assert_eq!(
::std::mem::size_of::<IMAGE_BOX>(),
20usize,
concat!("Size of: ", stringify!(IMAGE_BOX))
);
assert_eq!(
::std::mem::align_of::<IMAGE_BOX>(),
4usize,
concat!("Alignment of ", stringify!(IMAGE_BOX))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<IMAGE_BOX>())).xstart as *const _ as usize },
0usize,
concat!("Offset of field: ", stringify!(IMAGE_BOX), "::", stringify!(xstart))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<IMAGE_BOX>())).ystart as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(IMAGE_BOX), "::", stringify!(ystart))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<IMAGE_BOX>())).xsize as *const _ as usize },
8usize,
concat!("Offset of field: ", stringify!(IMAGE_BOX), "::", stringify!(xsize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<IMAGE_BOX>())).ysize as *const _ as usize },
12usize,
concat!("Offset of field: ", stringify!(IMAGE_BOX), "::", stringify!(ysize))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<IMAGE_BOX>())).chsel as *const _ as usize },
16usize,
concat!("Offset of field: ", stringify!(IMAGE_BOX), "::", stringify!(chsel))
);
}
extern "C" {
pub fn im_extract(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: *mut IMAGE_BOX,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_measure(
im: *mut VipsImage,
box_: *mut IMAGE_BOX,
h: ::std::os::raw::c_int,
v: ::std::os::raw::c_int,
sel: *mut ::std::os::raw::c_int,
nsel: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
extern "C" {
pub fn im_isuint(im: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn im_isint(im: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn im_isfloat(im: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn im_isscalar(im: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn im_iscomplex(im: *mut VipsImage) -> gboolean;
}
extern "C" {
pub fn im_c2ps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum im_arch_type {
IM_ARCH_NATIVE = 0,
IM_ARCH_BYTE_SWAPPED = 1,
IM_ARCH_LSB_FIRST = 2,
IM_ARCH_MSB_FIRST = 3,
}
extern "C" {
pub fn im_isnative(arch: im_arch_type) -> gboolean;
}
extern "C" {
pub fn im_copy_from(
in_: *mut VipsImage,
out: *mut VipsImage,
architecture: im_arch_type,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_errormsg(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn im_verrormsg(fmt: *const ::std::os::raw::c_char, ap: *mut __va_list_tag);
}
extern "C" {
pub fn im_errormsg_system(err: ::std::os::raw::c_int, fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn im_diagnostics(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn im_warning(fmt: *const ::std::os::raw::c_char, ...);
}
extern "C" {
pub fn im_iterate(
im: *mut VipsImage,
start: VipsStartFn,
generate: im_generate_fn,
stop: VipsStopFn,
a: *mut ::std::os::raw::c_void,
b: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_render_priority(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
max: ::std::os::raw::c_int,
priority: ::std::os::raw::c_int,
notify: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut VipsImage,
arg2: *mut VipsRect,
arg3: *mut ::std::os::raw::c_void,
),
>,
client: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cmulnorm(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fav4(arg1: *mut *mut VipsImage, arg2: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gadd(
arg1: f64,
arg2: *mut VipsImage,
arg3: f64,
arg4: *mut VipsImage,
arg5: f64,
arg6: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_litecor(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: *mut VipsImage,
arg4: ::std::os::raw::c_int,
arg5: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_render_fade(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
max: ::std::os::raw::c_int,
fps: ::std::os::raw::c_int,
steps: ::std::os::raw::c_int,
priority: ::std::os::raw::c_int,
notify: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut VipsImage,
arg2: *mut VipsRect,
arg3: *mut ::std::os::raw::c_void,
),
>,
client: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_render(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
max: ::std::os::raw::c_int,
notify: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut VipsImage,
arg2: *mut VipsRect,
arg3: *mut ::std::os::raw::c_void,
),
>,
client: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cooc_matrix(
im: *mut VipsImage,
m: *mut VipsImage,
xp: ::std::os::raw::c_int,
yp: ::std::os::raw::c_int,
xs: ::std::os::raw::c_int,
ys: ::std::os::raw::c_int,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cooc_asm(m: *mut VipsImage, asmoment: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cooc_contrast(m: *mut VipsImage, contrast: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cooc_correlation(m: *mut VipsImage, correlation: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_cooc_entropy(m: *mut VipsImage, entropy: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_glds_matrix(
im: *mut VipsImage,
m: *mut VipsImage,
xpos: ::std::os::raw::c_int,
ypos: ::std::os::raw::c_int,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_glds_asm(m: *mut VipsImage, asmoment: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_glds_contrast(m: *mut VipsImage, contrast: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_glds_entropy(m: *mut VipsImage, entropy: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_glds_mean(m: *mut VipsImage, mean: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dif_std(
im: *mut VipsImage,
xpos: ::std::os::raw::c_int,
ypos: ::std::os::raw::c_int,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
dx: ::std::os::raw::c_int,
dy: ::std::os::raw::c_int,
pmean: *mut f64,
pstd: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_simcontr(
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_spatres(
in_: *mut VipsImage,
out: *mut VipsImage,
step: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_stretch3(
in_: *mut VipsImage,
out: *mut VipsImage,
dx: f64,
dy: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_remainderconst_vec(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
c: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_andconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_and_vec(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: ::std::os::raw::c_int,
arg4: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_orconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_or_vec(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: ::std::os::raw::c_int,
arg4: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eorconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_eor_vec(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: ::std::os::raw::c_int,
arg4: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_affine(
in_: *mut VipsImage,
out: *mut VipsImage,
a: f64,
b: f64,
c: f64,
d: f64,
dx: f64,
dy: f64,
ox: ::std::os::raw::c_int,
oy: ::std::os::raw::c_int,
ow: ::std::os::raw::c_int,
oh: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_similarity(
in_: *mut VipsImage,
out: *mut VipsImage,
a: f64,
b: f64,
dx: f64,
dy: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_similarity_area(
in_: *mut VipsImage,
out: *mut VipsImage,
a: f64,
b: f64,
dx: f64,
dy: f64,
ox: ::std::os::raw::c_int,
oy: ::std::os::raw::c_int,
ow: ::std::os::raw::c_int,
oh: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_icc_export(
in_: *mut VipsImage,
out: *mut VipsImage,
output_profile_filename: *const ::std::os::raw::c_char,
intent: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2dcm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2cm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2us(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2ui(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2s(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2i(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2d(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2f(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_clip2c(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_slice(
in_: *mut VipsImage,
out: *mut VipsImage,
arg1: f64,
arg2: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_thresh(in_: *mut VipsImage, out: *mut VipsImage, arg1: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_print(message: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsub(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
xskip: ::std::os::raw::c_int,
yskip: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_bernd(
tiffname: *const ::std::os::raw::c_char,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
w: ::std::os::raw::c_int,
h: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_resize_linear(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convf(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsepf(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_conv_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convf_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsep_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_convsepf_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fastcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_spcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_gradcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_erode_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
m: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_dilate_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
m: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_rank_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
xsize: ::std::os::raw::c_int,
ysize: ::std::os::raw::c_int,
order: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_circle(
im: *mut VipsImage,
cx: ::std::os::raw::c_int,
cy: ::std::os::raw::c_int,
radius: ::std::os::raw::c_int,
intensity: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_line(
arg1: *mut VipsImage,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
arg5: ::std::os::raw::c_int,
arg6: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_segment(
test: *mut VipsImage,
mask: *mut VipsImage,
segments: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_paintrect(
im: *mut VipsImage,
r: *mut VipsRect,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_insertplace(
main: *mut VipsImage,
sub: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood_copy(
in_: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood_blob_copy(
in_: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood_other_copy(
test: *mut VipsImage,
mark: *mut VipsImage,
out: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
serial: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood(
im: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood_blob(
im: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
ink: *mut VipsPel,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_flood_other(
test: *mut VipsImage,
mark: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
serial: ::std::os::raw::c_int,
dout: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fastline(
im: *mut VipsImage,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
pel: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_fastlineuser(
im: *mut VipsImage,
x1: ::std::os::raw::c_int,
y1: ::std::os::raw::c_int,
x2: ::std::os::raw::c_int,
y2: ::std::os::raw::c_int,
fn_: VipsPlotFn,
client1: *mut ::std::os::raw::c_void,
client2: *mut ::std::os::raw::c_void,
client3: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_plotmask(
im: *mut VipsImage,
ix: ::std::os::raw::c_int,
iy: ::std::os::raw::c_int,
ink: *mut VipsPel,
mask: *mut VipsPel,
r: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_readpoint(
im: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
pel: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_plotpoint(
im: *mut VipsImage,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
pel: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_smudge(
image: *mut VipsImage,
ix: ::std::os::raw::c_int,
iy: ::std::os::raw::c_int,
r: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn im_smear(
im: *mut VipsImage,
ix: ::std::os::raw::c_int,
iy: ::std::os::raw::c_int,
r: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_init(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_get_argv0() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_shutdown();
}
extern "C" {
pub fn vips_thread_shutdown();
}
extern "C" {
pub fn vips_add_option_entries(option_group: *mut GOptionGroup);
}
extern "C" {
pub fn vips_leak_set(leak: gboolean);
}
extern "C" {
pub fn vips_version_string() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_version(flag: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vips_guess_prefix(
argv0: *const ::std::os::raw::c_char,
env_name: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn vips_guess_libdir(
argv0: *const ::std::os::raw::c_char,
env_name: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
pub _address: u8,
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
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))
);
}